summaryrefslogtreecommitdiff
path: root/src/gui/undocommands.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-02-15 16:32:33 +0100
committerAleks Kissinger <aleks0@gmail.com>2018-02-15 16:32:33 +0100
commit09c331761648541de907c866c56fb6084c6f7a9b (patch)
tree8e5a11c282255a0e5248c8a6093e362aa136861f /src/gui/undocommands.h
parent768e097abd17d07dd2748894b4dc1b09471dd6da (diff)
added support for changing edge mode, and started working on windows support
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r--src/gui/undocommands.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h
index 9032274..eea39ae 100644
--- a/src/gui/undocommands.h
+++ b/src/gui/undocommands.h
@@ -90,4 +90,15 @@ private:
Edge *_edge;
};
+class ChangeEdgeModeCommand : public QUndoCommand
+{
+public:
+ explicit ChangeEdgeModeCommand(TikzScene *scene, Edge *edge);
+ void undo() override;
+ void redo() override;
+private:
+ TikzScene *_scene;
+ Edge *_edge;
+};
+
#endif // UNDOCOMMANDS_H