#include <movedoublelabel.h>
|
| MoveDoubleLabel (VAbstractPattern *doc, const QPointF &pos, MoveDoublePoint type, quint32 toolId, quint32 pointId, QUndoCommand *parent=nullptr) |
|
virtual | ~MoveDoubleLabel ()=default |
|
virtual bool | mergeWith (const QUndoCommand *command) Q_DECL_OVERRIDE |
|
virtual int | id () const Q_DECL_OVERRIDE |
|
quint32 | GetToolId () const |
|
MoveDoublePoint | GetPointType () const |
|
| 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 |
|
Definition at line 65 of file movedoublelabel.h.
◆ MoveDoubleLabel()
MoveDoubleLabel::MoveDoubleLabel |
( |
VAbstractPattern * |
doc, |
|
|
const QPointF & |
pos, |
|
|
MoveDoublePoint |
type, |
|
|
quint32 |
toolId, |
|
|
quint32 |
pointId, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
Definition at line 67 of file movedoublelabel.cpp.
References AttrMx1, AttrMx2, AttrMy1, AttrMy2, VUndoCommand::doc, VDomDocument::elementById(), FirstPoint, VDomDocument::GetParametrDouble(), m_idTool, MoveAbstractLabel::m_oldPos, VUndoCommand::nodeId, qApp, and VAbstractPattern::TagPoint.
◆ ~MoveDoubleLabel()
virtual MoveDoubleLabel::~MoveDoubleLabel |
( |
| ) |
|
|
virtualdefault |
◆ Do()
void MoveDoubleLabel::Do |
( |
const QPointF & |
pos | ) |
|
|
protectedvirtual |
Implements MoveAbstractLabel.
Definition at line 145 of file movedoublelabel.cpp.
References AttrMx1, AttrMx2, AttrMy1, AttrMy2, VUndoCommand::doc, VDomDocument::elementById(), FirstPoint, VAbstractPattern::getTool(), m_idTool, m_type, VUndoCommand::nodeId, qApp, VDomDocument::SetAttribute(), and VAbstractPattern::TagPoint.
◆ GetPointType()
◆ GetToolId()
quint32 MoveDoubleLabel::GetToolId |
( |
| ) |
const |
|
inline |
◆ id()
int MoveDoubleLabel::id |
( |
| ) |
const |
|
virtual |
◆ mergeWith()
bool MoveDoubleLabel::mergeWith |
( |
const QUndoCommand * |
command | ) |
|
|
virtual |
◆ m_idTool
quint32 MoveDoubleLabel::m_idTool |
|
private |
◆ m_scene
QGraphicsScene* MoveDoubleLabel::m_scene |
|
private |
◆ m_type
The documentation for this class was generated from the following files: