54 #include "../../dialogs/tools/anchorpoint_dialog.h"
55 #include "../../undocommands/savepieceoptions.h"
56 #include "../pattern_piece_tool.h"
57 #include "../vgeometry/vpointf.h"
67 const quint32 pointId = dialogTool->GetPointId();
68 const quint32 pieceId = dialogTool->GetPieceId();
75 const Document &parse,
const Source &typeCreation,
const QString &blockName,
76 const quint32 &idTool)
81 id = CreateNode<VPointF>(
data, pointId);
116 point->setParent(tool);
169 VPiece newPiece = oldPiece;
174 qApp->getUndoStack()->push(saveCommand);
182 const Source &typeCreation,
const QString &blockName,
const quint32 &idTool, QObject *qoParent)
183 :
VAbstractNode(doc, data, id, pointId, blockName, idTool, qoParent)
The VAbstractNode class parent class for all detail node.
static const QString AttrIdTool
quint32 idTool
idTool id tool.
quint32 idNode
idNodenode id.
virtual void ToolCreation(const Source &typeCreation) Q_DECL_OVERRIDE
void AddToModeling(const QDomElement &domElement)
AddToModeling add tag to modeling tag current pattern peace.
virtual void LiteParseTree(const Document &parse)=0
void AddToolOnRemove(VDataTool *tool)
virtual void UpdateToolData(const quint32 &id, VContainer *data)=0
static void AddTool(quint32 id, VDataTool *tool)
AddTool add tool to list tools.
static VDataTool * getTool(quint32 id)
getTool return tool from tool list.
static const QString TagPoint
The VContainer class container of all variables.
void UpdatePiece(quint32 id, const VPiece &piece)
static void UpdateId(quint32 newId)
UpdateId update id. If new id bigger when current save new like current.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
void UpdateGObject(quint32 id, T *obj)
UpdateGObject update GObject by id.
VPiece GetPiece(quint32 id) const
void SetAttribute(QDomElement &domElement, const QString &name, const T &value) const
SetAttribute set attribute in pattern file. Replace "," by ".".
static const QString AttrId
The VExceptionBadId class for exception bad id.
void setMode(const Draw &value)
setMode set mode creation.
QVector< quint32 > getAnchors() const
The VPointF class keep data of point.
void NeedLiteParsing(const Document &parse)
const QString AttrIdObject