46 #ifndef DIALOGELLIPTICALARC_H
47 #define DIALOGELLIPTICALARC_H
49 #include <qcompilerdetection.h>
50 #include <QMetaObject>
55 #include "../vgeometry/vellipticalarc.h"
56 #include "../vmisc/def.h"
83 QString
GetF1()
const;
84 void SetF1(
const QString &value);
86 QString
GetF2()
const;
87 void SetF2(
const QString &value);
132 virtual void SaveData() Q_DECL_OVERRIDE;
133 virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
203 void collapseFormula(QPlainTextEdit *textEdit, QPushButton *pushButton,
int height);
QString rotationAngle
rotationAngle formula of rotation angle
void DeployRadius1TextEdit()
DeployFormulaTextEdit grow or shrink formula input.
void collapseFormula(QPlainTextEdit *textEdit, QPushButton *pushButton, int height)
void SetRadius1(const QString &value)
SetRadius1 set formula of radius1.
void Radius1Changed()
Radius1Changed after change formula of radius1 calculate value and show result.
quint32 GetCenter() const
GetCenter return id of center point.
void SetF1(const QString &value)
SetF1 set formula first angle of elliptical arc.
void setPenStyle(const QString &value)
void SetCenter(const quint32 &value)
SetCenter set id of center point.
DialogEllipticalArc(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
DialogEllipticalArc create dialog.
virtual void CheckState() Q_DECL_FINAL
CheckState if all is right enable button ok.
void DeployRadius2TextEdit()
void SetRotationAngle(const QString &value)
SetRotationAngle set formula rotation angle of elliptical arc.
VEllipticalArc getArc() const
int formulaBaseHeightRotationAngle
void F1Changed()
F1Changed after change formula of first angle calculate value and show result.
QString radius2
radius2 formula of radius2
QString GetF2() const
GetF2 return formula second angle of elliptical arc.
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
void setArc(const VEllipticalArc &arc)
QTimer * timerRadius1
timerRadius1 timer of check formula of radius1
Ui::DialogEllipticalArc * ui
ui keeps information about user interface
int formulaBaseHeightRadius1
formulaBaseHeight base height defined by dialogui
void RotationAngleChanged()
RotationAngleChanged after change formula of rotation angle calculate value and show result.
QString GetRadius1() const
GetRadius1 return formula of radius1.
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.
QString f2
f2 formula of second angle
QString getLineColor() const
GetColor return color of elliptical arc.
int formulaBaseHeightRadius2
QTimer * timerRotationAngle
timerRotationAngle timer of check formula of rotation angle
void SetF2(const QString &value)
SetF2 set formula second angle of elliptical arc.
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
QString getLineWeight() const
getLineWeight return weight of the lines
QTimer * timerF2
timerF2 timer of check formula of second angle
void EvalAngles()
EvalAngles calculate value of angles.
bool flagRotationAngle
flagRotationAngle true if value of rotation angle is correct
QString f1
f1 formula of first angle
bool flagRadius1
flagRadius1 true if value of radius1 is correct
void Radius2Changed()
Radius2Changed after change formula of radius2 calculate value and show result.
bool flagF2
flagF2 true if value of second angle is correct
QString getPenStyle() const
virtual void ShowVisualization() Q_DECL_OVERRIDE
QTimer * timerF1
timerF1 timer of check formula of first angle
QString GetF1() const
GetF1 return formula first angle of elliptical arc.
void F2Changed()
F2Changed after change formula of second angle calculate value and show result.
QTimer * timerRadius2
timerRadius2 timer of check formula of radius2
QString GetRotationAngle() const
GetRotationAngle return formula rotation angle of elliptical arc.
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
void setLineColor(const QString &value)
setLineColor set color of elliptical arc
void EvalRadiuses()
EvalRadiuses calculate value of radiuses.
bool flagF1
flagF1 true if value of first angle is correct
virtual ~DialogEllipticalArc() Q_DECL_OVERRIDE
bool flagRadius2
flagRadius2 true if value of radius2 is correct
QString GetRadius2() const
GetRadius2 return formula of radius2.
QString radius1
radius1 formula of radius1
void SetRadius2(const QString &value)
SetRadius2 set formula of radius2.
void DeployRotationAngleTextEdit()
The VContainer class container of all variables.