diff options
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 |