Seamly2D
Code documentation
AddPiece Class Reference

#include <addpiece.h>

Inheritance diagram for AddPiece:
Collaboration diagram for AddPiece:

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
 
VAbstractPatterndoc
 
quint32 nodeId
 
bool redoFlag
 

Detailed Description

Definition at line 67 of file addpiece.h.

Constructor & Destructor Documentation

◆ AddPiece()

AddPiece::AddPiece ( const QDomElement &  xml,
VAbstractPattern doc,
const VPiece piece,
const QString &  blockName = QString(),
QUndoCommand *  parent = nullptr 
)

◆ ~AddPiece()

AddPiece::~AddPiece ( )
virtual

Definition at line 69 of file addpiece.cpp.

Member Function Documentation

◆ getPiecesElement()

QDomElement AddPiece::getPiecesElement ( ) const
private

◆ redo()

void AddPiece::redo ( )
virtual

◆ undo()

Member Data Documentation

◆ m_blockName

QString AddPiece::m_blockName
private

Definition at line 81 of file addpiece.h.

Referenced by getPiecesElement().

◆ m_piece

VPiece AddPiece::m_piece
private

Definition at line 80 of file addpiece.h.

Referenced by undo().


The documentation for this class was generated from the following files: