#include <movespline.h>
Public Member Functions | |
MoveSpline (VAbstractPattern *doc, const VSpline *oldSpl, const VSpline &newSpl, const quint32 &id, QUndoCommand *parent=nullptr) | |
virtual | ~MoveSpline () 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 | getSplineId () const |
VSpline | getNewSpline () const |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Private Member Functions | |
void | Do (const VSpline &spl) |
Private Attributes | |
VSpline | oldSpline |
VSpline | newSpline |
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 66 of file movespline.h.
MoveSpline::MoveSpline | ( | VAbstractPattern * | doc, |
const VSpline * | oldSpl, | ||
const VSpline & | newSpl, | ||
const quint32 & | id, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 67 of file movespline.cpp.
References id(), VUndoCommand::nodeId, SCASSERT, and scene.
|
virtual |
Definition at line 81 of file movespline.cpp.
|
private |
Definition at line 125 of file movespline.cpp.
References AttrAngle1, AttrAngle2, AttrLength1, AttrLength2, AttrPoint1, AttrPoint4, VUndoCommand::doc, VDomDocument::elementById(), VSpline::GetC1LengthFormula(), VSpline::GetC2LengthFormula(), VSpline::GetEndAngleFormula(), VSpline::GetP1(), VSpline::GetP4(), VSpline::GetStartAngleFormula(), VGObject::id(), LiteParse, VUndoCommand::NeedLiteParsing(), VUndoCommand::nodeId, VDomDocument::SetAttribute(), and VAbstractPattern::TagSpline.
|
inline |
|
inline |
Definition at line 88 of file movespline.h.
References VUndoCommand::nodeId.
Referenced by mergeWith().
|
virtual |
|
virtual |
Definition at line 103 of file movespline.cpp.
References getNewSpline(), getSplineId(), newSpline, VUndoCommand::nodeId, and SCASSERT.
|
virtual |
Definition at line 94 of file movespline.cpp.
References Do(), VMainGraphicsView::NewSceneRect(), newSpline, qApp, and scene.
|
virtual |
Definition at line 85 of file movespline.cpp.
References Do(), VMainGraphicsView::NewSceneRect(), oldSpline, qApp, and scene.
|
private |
Definition at line 82 of file movespline.h.
Referenced by getNewSpline(), mergeWith(), and redo().
|
private |
Definition at line 81 of file movespline.h.
Referenced by undo().
|
private |
Definition at line 83 of file movespline.h.
Referenced by MoveSpline(), redo(), and undo().