blob: a292d3ba763230c9abfc4eaa05da1c64c29e633f (
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
|
#ifndef UNDOBUFFER_H
#define UNDOBUFFER_H
#include <QObject>
#include "dive.h"
class UndoBuffer : public QObject
{
Q_OBJECT
public:
explicit UndoBuffer(QObject *parent = 0);
~UndoBuffer();
bool canUndo();
bool canRedo();
private:
int curIdx;
public slots:
void redo();
void undo();
void recordbefore(QString commandName, dive *affectedDive);
void recordAfter(dive *affectedDive);
};
#endif // UNDOBUFFER_H
|