52 #ifndef DIALOGSPLINEPATH_H
53 #define DIALOGSPLINEPATH_H
55 #include <qcompilerdetection.h>
56 #include <QMetaObject>
63 #include "../vgeometry/vsplinepath.h"
64 #include "../vmisc/def.h"
96 virtual void ShowDialog(
bool click) Q_DECL_OVERRIDE;
101 virtual void SaveData() Q_DECL_OVERRIDE;
103 virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
155 QSet<quint32>
AllIds() const;
159 void collapseFormula(QPlainTextEdit *textEdit, QPushButton *pushButton,
int height);
The DialogSplinePath class dialog for ToolSplinePath. Help create spline path and edit option.
QVector< bool > flagAngle2
QSet< quint32 > AllIds() const
int formulaBaseHeightLength2
QVector< bool > flagLength2
void DeployAngle1TextEdit()
QVector< bool > flagAngle1
flagAngle1 true if value of first angle is correct
QString getPenStyle() const
virtual ~DialogSplinePath() Q_DECL_OVERRIDE
QVector< bool > flagLength1
Ui::DialogSplinePath * ui
ui keeps information about user interface
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
virtual void CheckState() Q_DECL_FINAL
CheckState enable, when all is correct, or disable, when something wrong, button ok.
void PointChanged(int row)
PointChanged selected another point in list.
void SetPath(const VSplinePath &value)
SetPath set spline path.
void NewItem(const VSplinePoint &point)
NewItem add point to list.
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
void collapseFormula(QPlainTextEdit *textEdit, QPushButton *pushButton, int height)
void setPenStyle(const QString &value)
DialogSplinePath(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
DialogSplinePath create dialog.
void setLineColor(const QString &value)
QString getLineColor() const
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.
int formulaBaseHeightAngle1
formulaBaseHeight base height defined by dialogui
virtual void ShowDialog(bool click) Q_DECL_OVERRIDE
void DeployLength1TextEdit()
VSplinePath GetPath() const
GetPath return spline path.
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
virtual void ShowVisualization() Q_DECL_OVERRIDE
void currentPointChanged(int index)
currentPointChanged changed point in combo box
int formulaBaseHeightAngle2
void PathUpdated(const VSplinePath &path)
void ShowPointIssue(const QString &pName)
void DeployLength2TextEdit()
void DeployAngle2TextEdit()
QString getLineWeight() const
getLineWeight return weight of the lines
int formulaBaseHeightLength1
void DataPoint(const VSplinePoint &p)
dataPoint show data of point in fields
VSplinePath path
path spline path
VSplinePath ExtractPath() const
The VContainer class container of all variables.
The VSplinePath class keep information about splinePath.
The VSplinePoint class keep information about point in spline path. Each point have two angles and tw...