55 #include <QDomElement>
57 #include <QUndoCommand>
60 #include "../ifc/xml/vabstractpattern.h"
61 #include "../ifc/ifcdef.h"
62 #include "../vmisc/logging.h"
63 #include "../vmisc/def.h"
64 #include "../vpatterndb/vpiecenode.h"
65 #include "../vpatterndb/floatItemData/vpatternlabeldata.h"
66 #include "../vpatterndb/floatItemData/vpiecelabeldata.h"
67 #include "../vpatterndb/floatItemData/vgrainlinedata.h"
68 #include "../tools/pattern_piece_tool.h"
75 , m_oldPiece(oldPiece)
76 , m_newPiece(newPiece)
78 setText(tr(
"save detail option"));
89 qCDebug(vUndo,
"Undo.");
92 if (domElement.isElement())
112 qCDebug(vUndo,
"Can't find piece with id = %u.",
nodeId);
120 qCDebug(vUndo,
"Redo.");
123 if (domElement.isElement())
144 qCDebug(vUndo,
"Can't find piece with id = %u.",
nodeId);
154 const quint32
id = saveCommand->
pieceId();
SavePieceOptions(const VPiece &oldPiece, const VPiece &newPiece, VAbstractPattern *doc, quint32 id, QUndoCommand *parent=nullptr)
virtual ~SavePieceOptions()
virtual void undo() Q_DECL_OVERRIDE
virtual void redo() Q_DECL_OVERRIDE
virtual bool mergeWith(const QUndoCommand *command) Q_DECL_OVERRIDE
virtual int id() const Q_DECL_OVERRIDE
VPiece getNewPiece() const
static const QString TagPiece
QDomElement elementById(quint32 id, const QString &tagName=QString())
static void RemoveAllChildren(QDomElement &domElement)
RemoveAllChildren remove all children from file.
QVector< CustomSARecord > GetCustomSARecords() const
QVector< quint32 > GetInternalPaths() const
QVector< quint32 > missingAnchors(const VPiece &piece) const
QVector< quint32 > getAnchors() const
QVector< quint32 > MissingInternalPaths(const VPiece &piece) const
QVector< quint32 > MissingNodes(const VPiece &piece) const
MissingNodes find missing nodes in piece. When we deleted object in piece and return this piece need ...
QVector< quint32 > MissingCSAPath(const VPiece &piece) const
void DecrementReferences(const QVector< quint32 > &nodes) const
void NeedLiteParsing(const Document &parse)
void IncrementReferences(const QVector< quint32 > &nodes) const