Re: LibreCAD modified for the interface of a laser machine
Posted by
dxli on
Jan 04, 2012; 12:23am
URL: https://forum.librecad.org/LibreCAD-modified-for-the-interface-of-a-laser-machine-tp5113327p5118366.html
Hi Diego,
To create a dialog in LibreCAD, the flow is like,
1, Signals (button clicked, checked, toggled, etc.), or command Event;
2, slot for the signal/event,( mostly in GUI classes, for example, qc_applicationwindow.h/cpp);
3, request action from the slot to actionhandle ( qg_actionhandle.h/cpp)
4, the action class itself, the rs_action* files in src/actions/
for pop-up dialogs, have a look at qg_dlg* files in the folder src/ui/forms/, and the qg_dialogfactory.h/cpp file
Dongxu
On Tue, Jan 3, 2012 at 7:11 PM, diegoroman17_2 [via LibreCAD]
<[hidden email]> wrote:
Hi Ries,
Exactly I need to create these new dialogs in LibreCAD for my project. I downloaded the source code LibreCAD and am at a stage of identifying who does what, to understand how it works and how I can add my system requirements.
Regarding the second part I do not understand what you mean to create my own language? Which part would enter this part that you propose? Why phyton? LibreCAD generated the data for each of the primitive with respect to which power should be cut. The interpreter of the data to be programmed in another application outside LibreCAD to is then executed when click on the button "start". This application is programmed in C for speed of execution that this language is presented in its applications and computation speed greatly needed in the generation of trajectories. It must be said that this application is completely transparent to the user (see non-execution).
Greetings Diego
--
Dongxu Li, Ph.D.