56 #include "../vmisc/def.h"
57 #include "../vmisc/logging.h"
58 #include "../ifc/xml/vabstractpattern.h"
63 const quint32 &
id, QUndoCommand *parent)
64 :
VUndoCommand(QDomElement(), doc, parent), oldXml(oldXml), newXml(newXml)
66 setText(tr(
"save tool option"));
77 qCDebug(vUndo,
"Undo.");
80 if (domElement.isElement())
82 domElement.parentNode().replaceChild(
oldXml, domElement);
88 qCDebug(vUndo,
"Can't find tool with id = %u.",
nodeId);
96 qCDebug(vUndo,
"Redo.");
99 if (domElement.isElement())
101 domElement.parentNode().replaceChild(
newXml, domElement);
107 qCDebug(vUndo,
"Can't find tool with id = %u.",
nodeId);
117 const quint32
id = saveCommand->
getToolId();
QDomElement elementById(quint32 id, const QString &tagName=QString())
void NeedLiteParsing(const Document &parse)