diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/undocommands.cpp | 16 | ||||
-rw-r--r-- | qt-ui/undocommands.h | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/qt-ui/undocommands.cpp b/qt-ui/undocommands.cpp new file mode 100644 index 000000000..f76f021b3 --- /dev/null +++ b/qt-ui/undocommands.cpp @@ -0,0 +1,16 @@ +#include "undocommands.h" + +UndoDeleteDive::UndoDeleteDive(QList<dive *> diveList) +{ + +} + +void UndoDeleteDive::undo() +{ + +} + +void UndoDeleteDive::redo() +{ + +} diff --git a/qt-ui/undocommands.h b/qt-ui/undocommands.h new file mode 100644 index 000000000..9a7803f9e --- /dev/null +++ b/qt-ui/undocommands.h @@ -0,0 +1,17 @@ +#ifndef UNDOCOMMANDS_H +#define UNDOCOMMANDS_H + +#include <QUndoCommand> +#include "dive.h" + +class UndoDeleteDive : public QUndoCommand { +public: + UndoDeleteDive(QList<struct dive*> diveList); + virtual void undo(); + virtual void redo(); + +private: + QList<struct dive*> dives; +}; + +#endif // UNDOCOMMANDS_H |