#ifndef UNDOCOMMANDS_H #define UNDOCOMMANDS_H #include #include #include "dive.h" class UndoDeleteDive : public QUndoCommand { public: UndoDeleteDive(QList deletedDives); virtual void undo(); virtual void redo(); private: QList diveList; }; class UndoShiftTime : public QUndoCommand { public: UndoShiftTime(QList changedDives, int amount); virtual void undo(); virtual void redo(); private: QList diveList; int timeChanged; }; class UndoRenumberDives : public QUndoCommand { public: UndoRenumberDives(QMap originalNumbers, int startNumber); virtual void undo(); virtual void redo(); private: QMap oldNumbers; int start; }; #endif // UNDOCOMMANDS_H