#ifndef UNDOCOMMANDS_H #define UNDOCOMMANDS_H #include #include #include "dive.h" class UndoDeleteDive : public QUndoCommand { public: UndoDeleteDive(QList diveList); virtual void undo(); virtual void redo(); private: QList dives; }; class UndoShiftTime : public QUndoCommand { public: UndoShiftTime(QList diveList, int amount); virtual void undo(); virtual void redo(); private: QList dives; 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