diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2017-12-22 13:39:13 +0000 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2017-12-22 13:39:13 +0000 |
commit | d8db367f6a4e49776834c82b092700dbda56cecc (patch) | |
tree | f06b386f2a160a8f0b6e8c10e6f4353b3fed3d47 /tikzit/src/gui/undocommands.h | |
parent | 9d8317cd593d47911bb6b2e6fb8ef0077e24ae36 (diff) |
edge bend undo works
Diffstat (limited to 'tikzit/src/gui/undocommands.h')
-rw-r--r-- | tikzit/src/gui/undocommands.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tikzit/src/gui/undocommands.h b/tikzit/src/gui/undocommands.h index bdf9ad2..bb6a8e9 100644 --- a/tikzit/src/gui/undocommands.h +++ b/tikzit/src/gui/undocommands.h @@ -24,4 +24,25 @@ private: QMap<Node*,QPointF> _newNodePositions; }; +class EdgeBendCommand : public QUndoCommand +{ +public: + explicit EdgeBendCommand(TikzScene *scene, Edge *edge, + float oldWeight, int oldBend, + int oldInAngle, int oldOutAngle); + void undo() override; + void redo() override; +private: + TikzScene *_scene; + Edge *_edge; + float _oldWeight; + int _oldBend; + int _oldInAngle; + int _oldOutAngle; + float _newWeight; + int _newBend; + int _newInAngle; + int _newOutAngle; +}; + #endif // UNDOCOMMANDS_H |