Login  Register

Re: Source File of Circle

Posted by dxli on Oct 06, 2012; 2:47am
URL: https://forum.librecad.org/Source-File-of-Circle-tp5707092p5707106.html

Hi zac,

The GUI widgets are kept in librecad/src/ui/forms/

for example: qg_circleoptions.ui

Those widgets are shown/hidden by rs_actions ( in folder, librecad/src/actions/ ), for example:

rs_actiondrawcirclecr

the class, RS_ActionDrawCircleCR has virtual functions: hideOptions() showOptions()

the widgets simply set radius by calling:  

ActionDrawCircleCR::setRadius(double r) {
                data.radius = r;
        }

zac wrote
I want the file where radius of circle is taken from  GUI andvalue is stored in a variable.
Please help.