Reverse undo buffer

Reverse all the code using the UndoBuffer class so that we can
use the QUndoStack and QUndoCommand classes. These are Qt's own
inbuild undo framework classes, offering a better undo/redo
process.

Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Grace Karanja 2015-02-11 09:10:34 +03:00 committed by Dirk Hohndel
parent 6374d9cc03
commit 013da6b0af
7 changed files with 3 additions and 152 deletions

View file

@ -34,7 +34,6 @@ class DivePlannerWidget;
class ProfileWidget2;
class PlannerDetails;
class PlannerSettingsWidget;
class UndoBuffer;
enum MainWindowTitleFormat {
MWTF_DEFAULT,
@ -89,7 +88,6 @@ public:
void printPlan();
void checkSurvey(QSettings *s);
void setApplicationState(const QByteArray& state);
UndoBuffer *undoBuffer;
private
slots:
/* file menu action */
@ -159,9 +157,6 @@ slots:
void on_paste_triggered();
void on_actionFilterTags_triggered();
void on_actionConfigure_Dive_Computer_triggered();
void on_action_Undo_triggered();
void on_action_Redo_triggered();
void checkForUndoAndRedo();
protected:
void closeEvent(QCloseEvent *);