summaryrefslogtreecommitdiff
path: root/src/gui/undocommands.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r--src/gui/undocommands.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h
index 292632e..0e7a63d 100644
--- a/src/gui/undocommands.h
+++ b/src/gui/undocommands.h
@@ -191,4 +191,18 @@ private:
Graph *_newGraph;
};
+class ReflectNodesCommand : public GraphUpdateCommand
+{
+public:
+ explicit ReflectNodesCommand(TikzScene *scene,
+ QSet<Node*> nodes,
+ bool horizontal,
+ QUndoCommand *parent = 0);
+ void undo() override;
+ void redo() override;
+private:
+ QSet<Node*> _nodes;
+ bool _horizontal;
+};
+
#endif // UNDOCOMMANDS_H