summaryrefslogtreecommitdiff
path: root/tikzit/src/gui/undocommands.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2017-12-18 15:29:33 +0000
committerAleks Kissinger <aleks0@gmail.com>2017-12-18 15:29:33 +0000
commit2bf85f71dc07b2c4785b9408e3c426ccaab55b74 (patch)
tree29ed038fa42f7ba5f11a2af305b6c350149a1a9b /tikzit/src/gui/undocommands.h
parent5816cd5d5e3edf7ee7a7273c7c3a3d907dc54a4a (diff)
introduced some comments for source navigation
Diffstat (limited to 'tikzit/src/gui/undocommands.h')
-rw-r--r--tikzit/src/gui/undocommands.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/tikzit/src/gui/undocommands.h b/tikzit/src/gui/undocommands.h
new file mode 100644
index 0000000..bbdf6c3
--- /dev/null
+++ b/tikzit/src/gui/undocommands.h
@@ -0,0 +1,22 @@
+/**
+ * These classes store the data required to undo/redo a single UI action.
+ */
+
+#ifndef UNDOCOMMANDS_H
+#define UNDOCOMMANDS_H
+
+#include "tikzscene.h"
+
+#include <QUndoCommand>
+
+class MoveCommand : public QUndoCommand
+{
+public:
+ explicit MoveCommand(TikzScene *scene, QUndoCommand *parent = 0);
+ void undo() override;
+ void redo() override;
+private:
+ TikzScene *_scene;
+};
+
+#endif // UNDOCOMMANDS_H