54 #include <QDomElement>
55 #include <QUndoCommand>
58 #include "../ifc/xml/vabstractpattern.h"
59 #include "../vmisc/logging.h"
60 #include "../tools/nodeDetails/vtoolinternalpath.h"
71 setText(tr(
"save path options"));
82 qCDebug(vUndo,
"Undo.");
85 if (domElement.isElement())
98 qCDebug(vUndo,
"Can't find path with id = %u.",
nodeId);
106 qCDebug(vUndo,
"Redo.");
109 if (domElement.isElement())
122 qCDebug(vUndo,
"Can't find path with id = %u.",
nodeId);
132 const quint32
id = saveCommand->
PathId();
virtual void redo() Q_DECL_OVERRIDE
const VPiecePath m_oldPath
virtual void undo() Q_DECL_OVERRIDE
virtual bool mergeWith(const QUndoCommand *command) Q_DECL_OVERRIDE
virtual int id() const Q_DECL_OVERRIDE
VPiecePath NewPath() const
SavePiecePathOptions(const VPiecePath &oldPath, const VPiecePath &newPath, VAbstractPattern *doc, VContainer *data, quint32 id, QUndoCommand *parent=nullptr)
virtual ~SavePiecePathOptions()
static const QString TagPath
The VContainer class container of all variables.
void UpdatePiecePath(quint32 id, const VPiecePath &path)
QDomElement elementById(quint32 id, const QString &tagName=QString())
static void RemoveAllChildren(QDomElement &domElement)
RemoveAllChildren remove all children from file.
QVector< quint32 > MissingNodes(const VPiecePath &path) const
void DecrementReferences(const QVector< quint32 > &nodes) const
void IncrementReferences(const QVector< quint32 > &nodes) const