summaryrefslogtreecommitdiffstats
path: root/qt-ui/undocommands.h
blob: addef8138f3d11e7da9b9bca32bc63d3ae1aa982 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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;
};

class UndoShiftTime : public QUndoCommand {
public:
	UndoShiftTime(QList<int> diveList, int amount);
	virtual void undo();
	virtual void redo();

private:
	QList<int> dives;
	int timeChanged;
};

#endif // UNDOCOMMANDS_H