53 #include "ui_anchorpoint_dialog.h"
55 #include "../../tools/vabstracttool.h"
56 #include "../../tools/pattern_piece_tool.h"
66 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
67 setWindowIcon(QIcon(
":/toolicon/32x32/anchor_point.png"));
76 connect(
ui->comboBoxPiece, &QComboBox::currentTextChanged,
this, [
this](){ CheckPieces(); });
103 if (
ui->comboBoxPiece->count() <= 0)
109 const qint32 index =
ui->comboBoxPiece->findData(
id);
112 ui->comboBoxPiece->setCurrentIndex(index);
116 ui->comboBoxPiece->setCurrentIndex(0);
157 this->setModal(
true);
174 AddVisualization<AnchorPointVisual>();
180 auto visPoint = qobject_cast<AnchorPointVisual *>(
vis);
182 visPoint->setParentItem(tool);
192 if (
ui->comboBoxPiece->count() <= 0 ||
ui->comboBoxPiece->currentIndex() == -1)
211 if (
ui->comboBoxPoint->currentIndex() != -1)
void SetPieceId(quint32 id)
Ui::AnchorPointDialog * ui
virtual void CheckState() Q_DECL_FINAL
CheckState enable, when all is correct, or disable, when something wrong, button ok.
virtual void SetPiecesList(const QVector< quint32 > &list) Q_DECL_OVERRIDE
virtual ~AnchorPointDialog()
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
void SetPointId(quint32 id)
quint32 GetPointId() const
void EnbleShowMode(bool disable)
quint32 GetPieceId() const
virtual void ShowVisualization() Q_DECL_OVERRIDE
AnchorPointDialog(const VContainer *data, quint32 toolId, QWidget *parent=nullptr)
static VDataTool * getTool(quint32 id)
getTool return tool from tool list.
The VContainer class container of all variables.
VPiece GetPiece(quint32 id) const
void setObject1Id(const quint32 &value)