diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-08-01 17:23:00 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-08-01 17:23:00 +0200 |
commit | 74551d71e128efe0f105b52e84420555b70b9f6d (patch) | |
tree | a582fb097fa559bca18313a442440c5e744fe654 /src/gui/undocommands.h | |
parent | 7f074813bdb2bfca2f7a9933e7c922132197aaba (diff) |
added rotation
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r-- | src/gui/undocommands.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h index 0e7a63d..688c2ba 100644 --- a/src/gui/undocommands.h +++ b/src/gui/undocommands.h @@ -205,4 +205,18 @@ private: bool _horizontal; }; +class RotateNodesCommand : public GraphUpdateCommand +{ +public: + explicit RotateNodesCommand(TikzScene *scene, + QSet<Node*> nodes, + bool clockwise, + QUndoCommand *parent = 0); + void undo() override; + void redo() override; +private: + QSet<Node*> _nodes; + bool _clockwise; +}; + #endif // UNDOCOMMANDS_H |