33 #include "ui_point_intersectxy_dialog.h"
36 #include "../ifc/xml/vabstractpattern.h"
37 #include "../ifc/ifcdef.h"
38 #include "../vmisc/vabstractapplication.h"
39 #include "../vmisc/vcommonsettings.h"
40 #include "../../visualization/visualization.h"
41 #include "../../visualization/line/point_intersectxy_visual.h"
60 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
61 setWindowIcon(QIcon(
":/toolicon/32x32/point_intersectxy_icon.png"));
63 ui->pointName_LineEdit->setClearButtonEnabled(
true);
74 int index =
ui->lineColor_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineColor());
77 ui->lineColor_ComboBox->setCurrentIndex(index);
80 index =
ui->lineWeight_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineWeight());
83 ui->lineWeight_ComboBox->setCurrentIndex(index);
86 index =
ui->lineType_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineType());
89 ui->lineType_ComboBox->setCurrentIndex(index);
208 vis->setLineWeight(value);
251 if (
SetObject(
id,
ui->firstPoint_ComboBox, tr(
"Select point for Y value (horizontal)")))
299 AddVisualization<PointIntersectXYVisual>();
The PointIntersectXYDialog class dialog for ToolPointOfIntersection. Help create point and edit optio...
virtual void ShowVisualization() Q_DECL_OVERRIDE
virtual ~PointIntersectXYDialog() Q_DECL_OVERRIDE
void setLineType(const QString &value)
setLineType set type of the lines
quint32 getSecondPointId() const
getSecondPointId return id of second point
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 void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
void setSecondPointId(const quint32 &value)
setSecondPointId set id of second point
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
QString getLineType() const
getLineType return type of the lines
QString getLineColor() const
getLineColor get the color of lines
void setFirstPointId(const quint32 &value)
setFirstPointId set id of first point
quint32 getFirstPointId() const
getFirstPointId return id of first point
QString getLineWeight() const
getLineWeight return weight of the lines
PointIntersectXYDialog(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
PointIntersectXYDialog create dialog.
void setLineColor(const QString &value)
setLineColor set color of the lines
void setPointName(const QString &value)
setPointName set name of point
Ui::PointIntersectXYDialog * ui
virtual void RefreshGeometry() Q_DECL_OVERRIDE
void setPoint1Id(const quint32 &value)
void setPoint2Id(const quint32 &value)
The VContainer class container of all variables.
void setLineWeight(const QString &value)
void setLineStyle(const Qt::PenStyle &value)
const QString LineTypeDashLine
Qt::PenStyle lineTypeToPenStyle(const QString &lineType)
LineStyle return pen style for current line style.