#include <add_draftblock.h>
Public Member Functions | |
AddDraftBlock (const QDomElement &xml, VAbstractPattern *doc, const QString &draftBlockName, QUndoCommand *parent=nullptr) | |
virtual | ~AddDraftBlock () Q_DECL_OVERRIDE |
virtual void | undo () Q_DECL_OVERRIDE |
virtual void | redo () Q_DECL_OVERRIDE |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Private Attributes | |
QString | draftBlockName |
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 65 of file add_draftblock.h.
AddDraftBlock::AddDraftBlock | ( | const QDomElement & | xml, |
VAbstractPattern * | doc, | ||
const QString & | draftBlockName, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 61 of file add_draftblock.cpp.
References draftBlockName, and SCASSERT.
|
virtual |
Definition at line 71 of file add_draftblock.cpp.
|
virtual |
Definition at line 93 of file add_draftblock.cpp.
References VAbstractPattern::CreateEmptyFile(), VUndoCommand::doc, VAbstractPattern::draftBlockCount(), VUndoCommand::RedoFullParsing(), and VUndoCommand::xml.
|
virtual |
Definition at line 75 of file add_draftblock.cpp.
References VUndoCommand::ClearScene(), VUndoCommand::doc, VAbstractPattern::draftBlockCount(), draftBlockName, VAbstractPattern::getDraftBlockElement(), and VUndoCommand::NeedFullParsing().
|
private |
Definition at line 77 of file add_draftblock.h.
Referenced by AddDraftBlock(), and undo().