53 #ifndef UNION_DIALOG_H
54 #define UNION_DIALOG_H
56 #include <qcompilerdetection.h>
57 #include <QMetaObject>
63 #include "../vmisc/def.h"
79 QWidget *parent =
nullptr);
107 bool CheckObject(const quint32 &
id, const quint32 &pieceId) const;
108 bool checkPiece(const quint32 &pieceId) const;
The UnionDialog class dialog for Union Tool.
qint32 numberP
numberD number of piece, what we already have
virtual ~UnionDialog() Q_DECL_OVERRIDE
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
ChoosedObject gets id and type of selected object. Save correct data and ignore wrong.
void chosenPiece(const quint32 &id, const SceneObject &type, quint32 &pieceId, int &index)
chosenPiece help save information about piece and points on piece
qint32 numberD
d2 id second piece
quint32 getPiece2Id() const
getPiece2Id return id second piece
int piece2_Index
piece1_Index index edge first piece
QSound * m_beep
p2 id second point of piece
quint32 getPiece1Id() const
getPiece1Id return id first piece
quint32 p2
p1 id first point of piece
bool retainPieces() const
bool CheckObject(const quint32 &id, const quint32 &pieceId) const
CheckObject check if piece contains this id.
UnionDialog(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
UnionDialog create dialog.
bool checkPiece(const quint32 &pieceId) const
quint32 d1
piece2_Index index edge second piece
quint32 p1
numberP number of points, what we already have
quint32 d2
d1 id first piece
int getPiece2Index() const
getPiece2Index return index edge second piece
int piece1_Index
ui keeps information about user interface
int getPiece1Index() const
getPiece1Index return index edge first piece
The VContainer class container of all variables.