#include <toggle_piecelock.h>
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 |
VContainer * | m_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 |
VAbstractPattern * | doc |
quint32 | nodeId |
bool | redoFlag |
Definition at line 36 of file toggle_piecelock.h.
TogglePieceLock::TogglePieceLock | ( | quint32 | id, |
bool | lock, | ||
VContainer * | data, | ||
VAbstractPattern * | doc, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 43 of file toggle_piecelock.cpp.
|
virtual |
Definition at line 54 of file toggle_piecelock.cpp.
|
private |
Definition at line 95 of file toggle_piecelock.cpp.
References AttrPieceLocked, VContainer::DataPieces(), VUndoCommand::doc, VDomDocument::elementById(), m_data, m_id, qApp, SCASSERT, VDomDocument::SetAttribute(), VPiece::setIsLocked(), VAbstractMainWindow::ShowToolTip(), VAbstractPattern::TagPiece, updateList(), and VContainer::UpdatePiece().
bool TogglePieceLock::getNewLock | ( | ) | const |
Definition at line 89 of file toggle_piecelock.cpp.
References m_newLock.
quint32 TogglePieceLock::getpieceId | ( | ) | const |
Definition at line 83 of file toggle_piecelock.cpp.
References m_id.
|
virtual |
Definition at line 77 of file toggle_piecelock.cpp.
References TogglePieceLock.
|
virtual |
Definition at line 68 of file toggle_piecelock.cpp.
|
virtual |
Definition at line 59 of file toggle_piecelock.cpp.
|
signal |
|
private |
Definition at line 54 of file toggle_piecelock.h.
Referenced by doCmd().
|
private |
Definition at line 53 of file toggle_piecelock.h.
Referenced by doCmd(), and getpieceId().
|
private |
Definition at line 56 of file toggle_piecelock.h.
Referenced by getNewLock(), redo(), and undo().
|
private |
Definition at line 55 of file toggle_piecelock.h.