#include <set_piece_color.h>
Signals | |
void | updateList (quint32 m_id) |
Signals inherited from VUndoCommand | |
void | ClearScene () |
void | NeedFullParsing () |
void | NeedLiteParsing (const Document &parse) |
Public Member Functions | |
SetPieceColor (quint32 id, QString color, VContainer *data, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~SetPieceColor () |
virtual void | undo () Q_DECL_OVERRIDE |
virtual void | redo () Q_DECL_OVERRIDE |
virtual int | id () const Q_DECL_OVERRIDE |
quint32 | getpieceId () const |
QString | getColor () const |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Private Member Functions | |
void | doCmd (QString color) |
Private Attributes | |
quint32 | m_id |
VContainer * | m_data |
QString | m_oldColor |
QString | m_newColor |
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 set_piece_color.h.
SetPieceColor::SetPieceColor | ( | quint32 | id, |
QString | color, | ||
VContainer * | data, | ||
VAbstractPattern * | doc, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 43 of file set_piece_color.cpp.
|
virtual |
Definition at line 54 of file set_piece_color.cpp.
|
private |
Definition at line 95 of file set_piece_color.cpp.
References VContainer::DataPieces(), VUndoCommand::doc, VDomDocument::elementById(), m_data, m_id, qApp, SCASSERT, VDomDocument::SetAttribute(), VAbstractPiece::setColor(), VAbstractMainWindow::ShowToolTip(), VAbstractPattern::TagPiece, updateList(), and VContainer::UpdatePiece().
QString SetPieceColor::getColor | ( | ) | const |
Definition at line 89 of file set_piece_color.cpp.
References m_newColor.
quint32 SetPieceColor::getpieceId | ( | ) | const |
Definition at line 83 of file set_piece_color.cpp.
References m_id.
|
virtual |
Definition at line 77 of file set_piece_color.cpp.
References SetPieceColor.
|
virtual |
Definition at line 68 of file set_piece_color.cpp.
References doCmd(), m_newColor, and m_oldColor.
|
virtual |
Definition at line 59 of file set_piece_color.cpp.
References doCmd(), m_newColor, and m_oldColor.
|
signal |
Referenced by PiecesWidget::cellDoubleClicked(), and doCmd().
|
private |
Definition at line 55 of file set_piece_color.h.
Referenced by doCmd().
|
private |
Definition at line 54 of file set_piece_color.h.
Referenced by doCmd(), and getpieceId().
|
private |
Definition at line 57 of file set_piece_color.h.
Referenced by getColor(), redo(), and undo().
|
private |
Definition at line 56 of file set_piece_color.h.