#include <savetooloptions.h>
Public Member Functions | |
SaveToolOptions (const QDomElement &oldXml, const QDomElement &newXml, VAbstractPattern *doc, const quint32 &id, QUndoCommand *parent=nullptr) | |
virtual | ~SaveToolOptions () Q_DECL_OVERRIDE |
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 |
QDomElement | getNewXml () const |
quint32 | getToolId () const |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Private Attributes | |
const QDomElement | oldXml |
QDomElement | newXml |
Additional Inherited Members | |
Signals inherited from VUndoCommand | |
void | ClearScene () |
void | NeedFullParsing () |
void | NeedLiteParsing (const Document &parse) |
Protected Member Functions inherited from VUndoCommand | |
virtual void | RedoFullParsing () |
void | UndoDeleteAfterSibling (QDomNode &parentNode, const quint32 &siblingId) const |
void | IncrementReferences (const QVector< quint32 > &nodes) const |
void | DecrementReferences (const QVector< quint32 > &nodes) const |
void | IncrementReferences (const QVector< CustomSARecord > &nodes) const |
void | DecrementReferences (const QVector< CustomSARecord > &nodes) const |
void | IncrementReferences (const QVector< VPieceNode > &nodes) const |
void | DecrementReferences (const QVector< VPieceNode > &nodes) const |
QDomElement | getDestinationObject (quint32 idTool, quint32 idPoint) const |
Protected Attributes inherited from VUndoCommand | |
QDomElement | xml |
VAbstractPattern * | doc |
quint32 | nodeId |
bool | redoFlag |
Definition at line 64 of file savetooloptions.h.
SaveToolOptions::SaveToolOptions | ( | const QDomElement & | oldXml, |
const QDomElement & | newXml, | ||
VAbstractPattern * | doc, | ||
const quint32 & | id, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 62 of file savetooloptions.cpp.
References id(), and VUndoCommand::nodeId.
|
virtual |
Definition at line 71 of file savetooloptions.cpp.
|
inline |
|
inline |
Definition at line 90 of file savetooloptions.h.
References VUndoCommand::nodeId.
Referenced by mergeWith().
|
virtual |
Definition at line 129 of file savetooloptions.cpp.
References SaveToolOptions.
Referenced by SaveToolOptions().
|
virtual |
Definition at line 113 of file savetooloptions.cpp.
References getNewXml(), getToolId(), newXml, VUndoCommand::nodeId, and SCASSERT.
|
virtual |
Definition at line 94 of file savetooloptions.cpp.
References VUndoCommand::doc, VDomDocument::elementById(), LiteParse, VUndoCommand::NeedLiteParsing(), newXml, and VUndoCommand::nodeId.
|
virtual |
Definition at line 75 of file savetooloptions.cpp.
References VUndoCommand::doc, VDomDocument::elementById(), LiteParse, VUndoCommand::NeedLiteParsing(), VUndoCommand::nodeId, and oldXml.
|
private |
Definition at line 80 of file savetooloptions.h.
Referenced by getNewXml(), mergeWith(), and redo().
|
private |
Definition at line 79 of file savetooloptions.h.
Referenced by undo().