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>
This commit is contained in:
Grace Karanja 2015-02-11 09:26:17 +03:00 committed by Dirk Hohndel
parent 013da6b0af
commit ef14798d6d
2 changed files with 13 additions and 0 deletions

View file

@ -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 */