#include <movespoint.h>
Public Member Functions | |
| MoveSPoint (VAbstractPattern *doc, const double &x, const double &y, const quint32 &id, QGraphicsScene *scene, QUndoCommand *parent=nullptr) | |
| virtual | ~MoveSPoint () Q_DECL_OVERRIDE |
| virtual void | undo () Q_DECL_OVERRIDE |
| virtual void | redo () Q_DECL_OVERRIDE |
| virtual bool | mergeWith (const QUndoCommand *command) Q_DECL_OVERRIDE |
| virtual int | id () const Q_DECL_OVERRIDE |
| quint32 | getSPointId () const |
| double | getNewX () const |
| double | getNewY () const |
| void | Do (double x, double y) |
Public Member Functions inherited from VUndoCommand | |
| VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
| virtual | ~VUndoCommand ()=default |
Private Attributes | |
| double | oldX |
| double | oldY |
| double | newX |
| double | newY |
| QGraphicsScene * | scene |
Additional Inherited Members | |
Signals inherited from VUndoCommand | |
| void | ClearScene () |
| void | NeedFullParsing () |
| void | NeedLiteParsing (const Document &parse) |
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 65 of file movespoint.h.
| MoveSPoint::MoveSPoint | ( | VAbstractPattern * | doc, |
| const double & | x, | ||
| const double & | y, | ||
| const quint32 & | id, | ||
| QGraphicsScene * | scene, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
Definition at line 64 of file movespoint.cpp.
References AttrX, AttrY, VUndoCommand::doc, VDomDocument::elementById(), VDomDocument::GetParametrDouble(), id(), newX, newY, VUndoCommand::nodeId, oldX, oldY, qApp, SCASSERT, scene, and VAbstractPattern::TagPoint.
|
virtual |
Definition at line 93 of file movespoint.cpp.
| void MoveSPoint::Do | ( | double | x, |
| double | y | ||
| ) |
Definition at line 141 of file movespoint.cpp.
References AttrX, AttrY, VUndoCommand::doc, VDomDocument::elementById(), LiteBlockParse, VUndoCommand::NeedLiteParsing(), VUndoCommand::nodeId, qApp, VDomDocument::SetAttribute(), and VAbstractPattern::TagPoint.
|
inline |
|
inline |
|
inline |
Definition at line 90 of file movespoint.h.
References VUndoCommand::nodeId.
Referenced by mergeWith().
|
virtual |
|
virtual |
Definition at line 113 of file movespoint.cpp.
References getNewX(), getNewY(), getSPointId(), newX, newY, VUndoCommand::nodeId, and SCASSERT.
|
virtual |
Definition at line 105 of file movespoint.cpp.
|
virtual |
Definition at line 97 of file movespoint.cpp.
|
private |
Definition at line 84 of file movespoint.h.
Referenced by getNewX(), mergeWith(), MoveSPoint(), and redo().
|
private |
Definition at line 85 of file movespoint.h.
Referenced by getNewY(), mergeWith(), MoveSPoint(), and redo().
|
private |
Definition at line 82 of file movespoint.h.
Referenced by MoveSPoint(), and undo().
|
private |
Definition at line 83 of file movespoint.h.
Referenced by MoveSPoint(), and undo().
|
private |
Definition at line 86 of file movespoint.h.
Referenced by MoveSPoint().