#include <moveabstractlabel.h>
Public Member Functions | |
MoveAbstractLabel (VAbstractPattern *doc, quint32 pointId, const QPointF &pos, QUndoCommand *parent=nullptr) | |
virtual | ~MoveAbstractLabel ()=default |
virtual void | undo () Q_DECL_OVERRIDE |
virtual void | redo () Q_DECL_OVERRIDE |
quint32 | GetPointId () const |
QPointF | GetNewPos () const |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Protected Member Functions | |
virtual void | Do (const QPointF &pos)=0 |
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 | |
QPointF | m_oldPos |
QPointF | m_newPos |
Protected Attributes inherited from VUndoCommand | |
QDomElement | xml |
VAbstractPattern * | doc |
quint32 | nodeId |
bool | redoFlag |
Additional Inherited Members | |
Signals inherited from VUndoCommand | |
void | ClearScene () |
void | NeedFullParsing () |
void | NeedLiteParsing (const Document &parse) |
Definition at line 65 of file moveabstractlabel.h.
MoveAbstractLabel::MoveAbstractLabel | ( | VAbstractPattern * | doc, |
quint32 | pointId, | ||
const QPointF & | pos, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 62 of file moveabstractlabel.cpp.
References m_newPos, and VUndoCommand::nodeId.
|
virtualdefault |
|
protectedpure virtual |
Implemented in MoveOperationLabel, MoveLabel, and MoveDoubleLabel.
|
inline |
Definition at line 96 of file moveabstractlabel.h.
References m_newPos.
Referenced by MoveDoubleLabel::mergeWith(), MoveLabel::mergeWith(), and MoveOperationLabel::mergeWith().
|
inline |
Definition at line 90 of file moveabstractlabel.h.
References VUndoCommand::nodeId.
Referenced by MoveDoubleLabel::mergeWith(), MoveLabel::mergeWith(), and MoveOperationLabel::mergeWith().
|
virtual |
Definition at line 81 of file moveabstractlabel.cpp.
|
virtual |
Definition at line 73 of file moveabstractlabel.cpp.
|
protected |
Definition at line 81 of file moveabstractlabel.h.
Referenced by GetNewPos(), MoveDoubleLabel::mergeWith(), MoveLabel::mergeWith(), MoveOperationLabel::mergeWith(), MoveAbstractLabel(), and redo().
|
protected |
Definition at line 80 of file moveabstractlabel.h.
Referenced by MoveDoubleLabel::MoveDoubleLabel(), MoveLabel::MoveLabel(), MoveOperationLabel::MoveOperationLabel(), and undo().