mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
41 lines
546 B
C
41 lines
546 B
C
|
#ifndef UNDO_H
|
||
|
#define UNDO_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QMap>
|
||
|
#include <QList>
|
||
|
#include "Zug.h"
|
||
|
|
||
|
class Karte;
|
||
|
class Basisstapel;
|
||
|
class Scene;
|
||
|
|
||
|
class Undo : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
Undo(Scene *parent);
|
||
|
virtual ~Undo();
|
||
|
|
||
|
const QStringList speichere() const;
|
||
|
bool lade(const QStringList&);
|
||
|
|
||
|
public slots:
|
||
|
void speichere_zug(const Zug&);
|
||
|
void undo();
|
||
|
void clear();
|
||
|
|
||
|
signals:
|
||
|
void undo_meldung(const Zug&);
|
||
|
void undo_verfuegbar(bool);
|
||
|
|
||
|
private:
|
||
|
QList<Zug> verlauf;
|
||
|
Scene *scene;
|
||
|
|
||
|
void loesche_ueberschuessige_undoelemente();
|
||
|
};
|
||
|
|
||
|
#endif
|