Seamly2D
Code documentation
TogglePieceLock Class Reference

#include <toggle_piecelock.h>

Inheritance diagram for TogglePieceLock:
Collaboration diagram for TogglePieceLock:

Signals

void updateList (quint32 m_id)
 
- Signals inherited from VUndoCommand
void ClearScene ()
 
void NeedFullParsing ()
 
void NeedLiteParsing (const Document &parse)
 

Public Member Functions

 TogglePieceLock (quint32 id, bool lock, VContainer *data, VAbstractPattern *doc, QUndoCommand *parent=nullptr)
 
virtual ~TogglePieceLock ()
 
virtual void undo () Q_DECL_OVERRIDE
 
virtual void redo () Q_DECL_OVERRIDE
 
virtual int id () const Q_DECL_OVERRIDE
 
quint32 getpieceId () const
 
bool getNewLock () const
 
- Public Member Functions inherited from VUndoCommand
 VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr)
 
virtual ~VUndoCommand ()=default
 

Private Member Functions

void doCmd (bool lock)
 

Private Attributes

quint32 m_id
 
VContainerm_data
 
bool m_oldLock
 
bool m_newLock
 

Additional Inherited Members

- 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 36 of file toggle_piecelock.h.

Constructor & Destructor Documentation

◆ TogglePieceLock()

TogglePieceLock::TogglePieceLock ( quint32  id,
bool  lock,
VContainer data,
VAbstractPattern doc,
QUndoCommand *  parent = nullptr 
)

Definition at line 43 of file toggle_piecelock.cpp.

◆ ~TogglePieceLock()

TogglePieceLock::~TogglePieceLock ( )
virtual

Definition at line 54 of file toggle_piecelock.cpp.

Member Function Documentation

◆ doCmd()

◆ getNewLock()

bool TogglePieceLock::getNewLock ( ) const

Definition at line 89 of file toggle_piecelock.cpp.

References m_newLock.

◆ getpieceId()

quint32 TogglePieceLock::getpieceId ( ) const

Definition at line 83 of file toggle_piecelock.cpp.

References m_id.

◆ id()

int TogglePieceLock::id ( ) const
virtual

Definition at line 77 of file toggle_piecelock.cpp.

References TogglePieceLock.

◆ redo()

void TogglePieceLock::redo ( )
virtual

Definition at line 68 of file toggle_piecelock.cpp.

References doCmd(), m_newLock, and m_oldLock.

◆ undo()

void TogglePieceLock::undo ( )
virtual

Definition at line 59 of file toggle_piecelock.cpp.

References doCmd(), m_newLock, and m_oldLock.

◆ updateList

Member Data Documentation

◆ m_data

VContainer* TogglePieceLock::m_data
private

Definition at line 54 of file toggle_piecelock.h.

Referenced by doCmd().

◆ m_id

quint32 TogglePieceLock::m_id
private

Definition at line 53 of file toggle_piecelock.h.

Referenced by doCmd(), and getpieceId().

◆ m_newLock

bool TogglePieceLock::m_newLock
private

Definition at line 56 of file toggle_piecelock.h.

Referenced by getNewLock(), redo(), and undo().

◆ m_oldLock

bool TogglePieceLock::m_oldLock
private

Definition at line 55 of file toggle_piecelock.h.

Referenced by redo(), and undo().


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