Seamly2D
Code documentation
MoveOperationLabel Class Reference

#include <moveoperationlabel.h>

Inheritance diagram for MoveOperationLabel:
Collaboration diagram for MoveOperationLabel:

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
 
VAbstractPatterndoc
 
quint32 nodeId
 
bool redoFlag
 

Detailed Description

Definition at line 64 of file moveoperationlabel.h.

Constructor & Destructor Documentation

◆ MoveOperationLabel()

MoveOperationLabel::MoveOperationLabel ( quint32  idTool,
VAbstractPattern doc,
const QPointF &  pos,
quint32  idPoint,
QUndoCommand *  parent = nullptr 
)

◆ ~MoveOperationLabel()

virtual MoveOperationLabel::~MoveOperationLabel ( )
virtualdefault

Member Function Documentation

◆ Do()

void MoveOperationLabel::Do ( const QPointF &  pos)
protectedvirtual

◆ GetToolId()

quint32 MoveOperationLabel::GetToolId ( ) const
inline

Definition at line 88 of file moveoperationlabel.h.

References m_idTool.

Referenced by mergeWith().

◆ id()

int MoveOperationLabel::id ( ) const
virtual

Definition at line 112 of file moveoperationlabel.cpp.

References RotationMoveLabel.

◆ mergeWith()

bool MoveOperationLabel::mergeWith ( const QUndoCommand *  command)
virtual

Member Data Documentation

◆ m_idTool

quint32 MoveOperationLabel::m_idTool
private

Definition at line 81 of file moveoperationlabel.h.

Referenced by Do(), GetToolId(), mergeWith(), and MoveOperationLabel().

◆ m_scene

QGraphicsScene* MoveOperationLabel::m_scene
private

Definition at line 83 of file moveoperationlabel.h.


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