66 #include "../../visualization/visualization.h"
67 #include "../../visualization/line/vistoolline.h"
68 #include "../ifc/ifcdef.h"
70 #include "ui_dialogline.h"
83 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
93 ui->lineType_ComboBox->removeItem(index);
96 index =
ui->lineColor_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineColor());
99 ui->lineColor_ComboBox->setCurrentIndex(index);
102 index =
ui->lineWeight_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineWeight());
105 ui->lineWeight_ComboBox->setCurrentIndex(index);
108 index =
ui->lineType_ComboBox->findData(
qApp->getCurrentDocument()->getDefaultLineType());
111 ui->lineType_ComboBox->setCurrentIndex(index);
149 ui->name_LineEdit->setText(tr(
"Line_") +
ui->comboBoxFirstPoint->currentText() +
150 "_" +
ui->comboBoxSecondPoint->currentText());
192 vis->setLineWeight(value);
236 ui->name_LineEdit->setText(tr(
"Line_") +
ui->comboBoxFirstPoint->currentText() +
237 "_" +
ui->comboBoxSecondPoint->currentText());
247 AddVisualization<VisToolLine>();
278 if (
SetObject(
id,
ui->comboBoxFirstPoint, tr(
"Select second point")))
312 return qvariant_cast<quint32>(
ui->comboBoxFirstPoint->currentData());
322 return qvariant_cast<quint32>(
ui->comboBoxSecondPoint->currentData());
The DialogLine class dialog for ToolLine. Help create line and edit option.
virtual void ShowVisualization() Q_DECL_OVERRIDE
virtual void PointNameChanged() Q_DECL_OVERRIDE
virtual ~DialogLine() Q_DECL_OVERRIDE
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
QString getLineWeight() const
getLineWeight return weight of the lines
void setFirstPoint(const quint32 &value)
setFirstPoint set id first point
DialogLine(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
DialogLine create dialog.
QString getLineColor() const
quint32 getFirstPoint() const
getFirstPoint return id first 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.
QString getLineType() const
getLineType return type of line
void setLineName()
setLineName set the name of the line
void setLineType(const QString &value)
setLineType set type of line
Ui::DialogLine * ui
ui keeps information about user interface
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
void setLineColor(const QString &value)
void setSecondPoint(const quint32 &value)
setSecondPoint set id second point
quint32 getSecondPoint() const
getSecondPoint return id second point
The VContainer class container of all variables.
void setLineWeight(const QString &value)
void setObject1Id(const quint32 &value)
void setLineStyle(const Qt::PenStyle &value)
const QString LineTypeSolidLine
const QString LineTypeNone
Qt::PenStyle lineTypeToPenStyle(const QString &lineType)
LineStyle return pen style for current line style.