summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-02-11 09:26:17 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-11 08:00:39 -0800
commitef14798d6d5e575a08aa8affc0815962813ecf29 (patch)
treec32ea22fb11a25b389344298f922081629e40271 /qt-ui/mainwindow.h
parent013da6b0af3e3dd5d074f2dbbc342d9b948717b4 (diff)
downloadsubsurface-ef14798d6d5e575a08aa8affc0815962813ecf29.tar.gz
Add undo stack
Add an instance of QUndoStack in the mainwindow, and add undo/redo actions in the edit menu. The QUndoStack will have a collection of QUndoCommands to process the undo and redo events. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 5ee085c29..25771d650 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -34,6 +34,7 @@ class DivePlannerWidget;
class ProfileWidget2;
class PlannerDetails;
class PlannerSettingsWidget;
+class QUndoStack;
enum MainWindowTitleFormat {
MWTF_DEFAULT,
@@ -88,6 +89,7 @@ public:
void printPlan();
void checkSurvey(QSettings *s);
void setApplicationState(const QByteArray& state);
+ QUndoStack *undoStack;
private
slots:
/* file menu action */