#include <addpiece.h>
Public Member Functions | |
AddPiece (const QDomElement &xml, VAbstractPattern *doc, const VPiece &piece, const QString &blockName=QString(), QUndoCommand *parent=nullptr) | |
virtual | ~AddPiece () |
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 Member Functions | |
QDomElement | getPiecesElement () const |
Private Attributes | |
VPiece | m_piece |
QString | m_blockName |
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 67 of file addpiece.h.
AddPiece::AddPiece | ( | const QDomElement & | xml, |
VAbstractPattern * | doc, | ||
const VPiece & | piece, | ||
const QString & | blockName = QString() , |
||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 58 of file addpiece.cpp.
References VUndoCommand::doc, VDomDocument::getParameterId(), VUndoCommand::nodeId, and VUndoCommand::xml.
|
virtual |
Definition at line 69 of file addpiece.cpp.
|
private |
Definition at line 127 of file addpiece.cpp.
References VUndoCommand::doc, VAbstractPattern::getActiveNodeElement(), VAbstractPattern::getDraftBlockElement(), m_blockName, and VAbstractPattern::TagPieces.
|
virtual |
Definition at line 109 of file addpiece.cpp.
References getPiecesElement(), VUndoCommand::RedoFullParsing(), VAbstractPattern::TagPieces, and VUndoCommand::xml.
|
virtual |
Definition at line 73 of file addpiece.cpp.
References VUndoCommand::DecrementReferences(), VUndoCommand::doc, VDomDocument::elementById(), VPiece::getAnchors(), VPiece::GetCustomSARecords(), VPiece::GetInternalPaths(), VPiecePath::GetNodes(), VPiece::GetPath(), getPiecesElement(), m_piece, VUndoCommand::NeedFullParsing(), VUndoCommand::nodeId, VAbstractPattern::TagPiece, and VAbstractPattern::TagPieces.
|
private |
Definition at line 81 of file addpiece.h.
Referenced by getPiecesElement().
|
private |
Definition at line 80 of file addpiece.h.
Referenced by undo().