mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 03:36:58 -04:00
added patience plugin
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2245 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
024e7f4b44
commit
0b78ed6ff8
430 changed files with 7336 additions and 0 deletions
40
plugins/patience_plugin/Patience/Undo.h
Normal file
40
plugins/patience_plugin/Patience/Undo.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue