50 #include <qcompilerdetection.h>
51 #include <QMetaObject>
57 #include "../vgeometry/varc.h"
58 #include "../vmisc/def.h"
84 QString
getF1()
const;
85 void setF1(
const QString &value);
87 QString
getF2()
const;
88 void setF2(
const QString &value);
122 virtual void SaveData() Q_DECL_OVERRIDE;
123 virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
The DialogArc class dialog for ToolArc. Help create arc and edit option.
QString getLineWeight() const
getLineWeight return weight of the lines
QString f1
f1 formula of first angle
bool flagF2
flagF2 true if value of second angle is correct
void EvalF()
EvalF1 calculate value of angle.
void setLineColor(const QString &value)
QString getRadius() const
getRadius return formula of radius
QString getF1() const
getF1 return formula first angle of arc
bool flagRadius
flagRadius true if value of radius is correct
Ui::DialogArc * ui
ui keeps information about user interface
void setF1(const QString &value)
setF1 set formula first angle of arc
QString getLineColor() const
void EvalRadius()
EvalRadius calculate value of radius.
virtual ~DialogArc() Q_DECL_OVERRIDE
QString getPenStyle() const
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
bool flagF1
flagF1 true if value of first angle is correct
void setPenStyle(const QString &value)
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
ChoosedObject gets id and type of selected object. Save right data and ignore wrong.
quint32 getCenter() const
getCenter return id of center point
void setF2(const QString &value)
setF2 set formula second angle of arc
void F2Changed()
F2Changed after change formula of second angle calculate value and show result.
void setRadius(const QString &value)
setRadius set formula of radius
DialogArc(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
DialogArc create dialog.
QTimer * timerF1
timerF1 timer of check formula of first angle
void setArc(const VArc &arc)
virtual void ShowVisualization() Q_DECL_OVERRIDE
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
QTimer * timerF2
timerF2 timer of check formula of second angle
QTimer * timerRadius
timerRadius timer of check formula of radius
void F1Changed()
F1Changed after change formula of first angle calculate value and show result.
int formulaBaseHeight
formulaBaseHeight base height defined by dialogui
void RadiusChanged()
RadiusChanged after change formula of radius calculate value and show result.
virtual void CheckState() Q_DECL_FINAL
CheckState if all is right enable button ok.
void setCenter(const quint32 &value)
setCenter set id of center point
void DeployFormulaTextEdit()
DeployFormulaTextEdit grow or shrink formula input.
QString radius
radius formula of radius
QString f2
f2 formula of second angle
QString getF2() const
getF2 return formula second angle of arc
VArc class for anticlockwise arc.
The VContainer class container of all variables.