61 #include "../../visualization/visualization.h"
62 #include "../../visualization/line/vistooltriangle.h"
63 #include "../ifc/xml/vabstractpattern.h"
64 #include "../vmisc/vabstractapplication.h"
66 #include "ui_dialogtriangle.h"
79 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
80 setWindowIcon(QIcon(
":/toolicon/32x32/triangle.png"));
82 ui->lineEditNamePoint->setClearButtonEnabled(
true);
128 if (
SetObject(
id,
ui->comboBoxAxisP1, tr(
"Select second point of axis")))
137 if (
SetObject(
id,
ui->comboBoxAxisP2, tr(
"Select first point")))
154 if (
SetObject(
id,
ui->comboBoxFirstPoint, tr(
"Select second point")))
235 AddVisualization<VisToolTriangle>();
The DialogTriangle class dialog for ToolTriangle. Help create point and edit option.
virtual void PointNameChanged() Q_DECL_OVERRIDE
quint32 GetSecondPointId() const
GetSecondPointId return id of second point.
quint32 GetFirstPointId() const
GetFirstPointId return id of first point.
DialogTriangle(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
DialogTriangle create dialog.
Ui::DialogTriangle * ui
ui keeps information about user interface
virtual void ShowVisualization() Q_DECL_OVERRIDE
quint32 GetAxisP2Id() const
GetAxisP2Id return id second point of axis.
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.
virtual ~DialogTriangle() Q_DECL_OVERRIDE
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
void SetAxisP2Id(const quint32 &value)
SetAxisP2Id set id second point of axis.
void SetFirstPointId(const quint32 &value)
SetFirstPointId set id of first point.
quint32 GetAxisP1Id() const
GetAxisP1Id return id first point of axis.
void SetSecondPointId(const quint32 &value)
SetSecondPointId set id of second point.
void SetPointName(const QString &value)
SetPointName set name of point.
void SetAxisP1Id(const quint32 &value)
SetAxisP1Id set id first point of axis.
The VContainer class container of all variables.
virtual void VisualMode(const quint32 &pointId)
void setObject1Id(const quint32 &value)