55 #include "../vmisc/def.h"
56 #include "../vmisc/logging.h"
57 #include "../ifc/xml/vabstractpattern.h"
64 , draftBlockName(draftBlockName)
77 qCDebug(vUndo,
"Undo.");
85 QDomElement rootElement =
doc->documentElement();
87 rootElement.removeChild(draftBlock);
95 qCDebug(vUndo,
"Redo.");
102 QDomElement rootElement =
doc->documentElement();
104 rootElement.appendChild(
xml);
virtual void redo() Q_DECL_OVERRIDE
AddDraftBlock(const QDomElement &xml, VAbstractPattern *doc, const QString &draftBlockName, QUndoCommand *parent=nullptr)
virtual ~AddDraftBlock() Q_DECL_OVERRIDE
virtual void undo() Q_DECL_OVERRIDE
int draftBlockCount() const
QDomElement getDraftBlockElement(const QString &name)
virtual void CreateEmptyFile()=0
virtual void RedoFullParsing()