52 #ifndef DIALOGALONGLINE_H
53 #define DIALOGALONGLINE_H
55 #include <qcompilerdetection.h>
56 #include <QMetaObject>
61 #include "../vmisc/def.h"
99 virtual void Build(
const Tool &type) Q_DECL_OVERRIDE;
119 virtual void SaveData() Q_DECL_OVERRIDE;
120 virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
The DialogAlongLine class dialog for ToolAlongLine. Help create point and edit option.
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
QString getLineType() const
getLineType return type of line
void SetPointName(const QString &value)
SetPointName set name of point.
virtual ~DialogAlongLine() Q_DECL_OVERRIDE
QString GetFormula() const
GetFormula return string of formula.
virtual void ShowVisualization() Q_DECL_OVERRIDE
quint32 GetSecondPointId() const
GetSecondPointId return id second point of line.
virtual void Build(const Tool &type) Q_DECL_OVERRIDE
quint32 GetFirstPointId() const
GetFirstPointId return id first point of line.
Ui::DialogAlongLine * ui
ui keeps information about user interface
void SetFormula(const QString &value)
SetFormula set string of formula.
QString formula
formula formula
QString getLineColor() const
DialogAlongLine(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
DialogAlongLine create dialog.
QString getLineWeight() const
getLineWeight return weight of the lines
void SetFirstPointId(const quint32 &value)
SetFirstPointId set id first point of line.
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
void DeployFormulaTextEdit()
DeployFormulaTextEdit grow or shrink formula input.
void setLineType(const QString &value)
setLineType set type of line
void FormulaTextChanged()
FormulaTextChanged when formula text changes for validation and calc.
int formulaBaseHeight
formulaBaseHeight base height defined by dialogui
void setLineColor(const QString &value)
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
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.
void SetSecondPointId(const quint32 &value)
SetSecondPointId set id second point of line.
The VContainer class container of all variables.