subsurface/qt-ui/undocommands.h
Grace Karanja 6d996a7874 Add a structure to hold undo commands
Add the undocommands.cpp / undocommands.h files, which will hold a
collection of classes that will hold undo commands.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-02-11 08:05:53 -08:00

17 lines
301 B
C++

#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;
};
#endif // UNDOCOMMANDS_H