#include <moveoperationlabel.h>
Public Member Functions | |
| MoveOperationLabel (quint32 idTool, VAbstractPattern *doc, const QPointF &pos, quint32 idPoint, QUndoCommand *parent=nullptr) | |
| virtual | ~MoveOperationLabel ()=default |
| virtual bool | mergeWith (const QUndoCommand *command) Q_DECL_OVERRIDE |
| virtual int | id () const Q_DECL_OVERRIDE |
| quint32 | GetToolId () const |
Public Member Functions inherited from MoveAbstractLabel | |
| 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) Q_DECL_OVERRIDE |
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 |
Private Attributes | |
| quint32 | m_idTool |
| QGraphicsScene * | m_scene |
Additional Inherited Members | |
Signals inherited from VUndoCommand | |
| void | ClearScene () |
| void | NeedFullParsing () |
| void | NeedLiteParsing (const Document &parse) |
Protected Attributes inherited from MoveAbstractLabel | |
| QPointF | m_oldPos |
| QPointF | m_newPos |
Protected Attributes inherited from VUndoCommand | |
| QDomElement | xml |
| VAbstractPattern * | doc |
| quint32 | nodeId |
| bool | redoFlag |
Definition at line 64 of file moveoperationlabel.h.
| MoveOperationLabel::MoveOperationLabel | ( | quint32 | idTool, |
| VAbstractPattern * | doc, | ||
| const QPointF & | pos, | ||
| quint32 | idPoint, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
Definition at line 67 of file moveoperationlabel.cpp.
References AttrMx, AttrMy, VUndoCommand::doc, VUndoCommand::getDestinationObject(), VDomDocument::GetParametrDouble(), m_idTool, MoveAbstractLabel::m_oldPos, VUndoCommand::nodeId, and qApp.
|
virtualdefault |
|
protectedvirtual |
Implements MoveAbstractLabel.
Definition at line 118 of file moveoperationlabel.cpp.
References AttrMx, AttrMy, VUndoCommand::doc, VUndoCommand::getDestinationObject(), VAbstractPattern::getTool(), m_idTool, VUndoCommand::nodeId, qApp, and VDomDocument::SetAttribute().
|
inline |
|
virtual |
Definition at line 112 of file moveoperationlabel.cpp.
References RotationMoveLabel.
|
virtual |
Definition at line 94 of file moveoperationlabel.cpp.
References MoveAbstractLabel::GetNewPos(), MoveAbstractLabel::GetPointId(), GetToolId(), m_idTool, MoveAbstractLabel::m_newPos, VUndoCommand::nodeId, and SCASSERT.
|
private |
Definition at line 81 of file moveoperationlabel.h.
Referenced by Do(), GetToolId(), mergeWith(), and MoveOperationLabel().
|
private |
Definition at line 83 of file moveoperationlabel.h.