diff options
Diffstat (limited to 'qt-ui/undocommands.h')
-rw-r--r-- | qt-ui/undocommands.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-ui/undocommands.h b/qt-ui/undocommands.h index addef8138..36c789fee 100644 --- a/qt-ui/undocommands.h +++ b/qt-ui/undocommands.h @@ -2,6 +2,7 @@ #define UNDOCOMMANDS_H #include <QUndoCommand> +#include <QMap> #include "dive.h" class UndoDeleteDive : public QUndoCommand { @@ -25,4 +26,15 @@ private: int timeChanged; }; +class UndoRenumberDives : public QUndoCommand { +public: + UndoRenumberDives(QMap<int,int> originalNumbers, int startNumber); + virtual void undo(); + virtual void redo(); + +private: + QMap<int,int> oldNumbers; + int start; +}; + #endif // UNDOCOMMANDS_H |