summaryrefslogtreecommitdiff
path: root/quacker/macondo.h
diff options
context:
space:
mode:
Diffstat (limited to 'quacker/macondo.h')
-rw-r--r--quacker/macondo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/quacker/macondo.h b/quacker/macondo.h
index e6eb749..2490e2f 100644
--- a/quacker/macondo.h
+++ b/quacker/macondo.h
@@ -1,20 +1,26 @@
#include <QWidget>
+#include "game.h"
class QPushButton;
class QProcess;
class QTimer;
+class TopLevel;
class Macondo : public QWidget {
Q_OBJECT
public:
- explicit Macondo(QWidget *parent = 0);
+ Macondo(TopLevel *topLevel);
public slots:
void run();
void updateResults();
void processStarted();
+ void movesUpdated(Quackle::MoveList *moves);
+ inline void setGame(Quackle::Game *game) { m_game = game; }
private:
+ TopLevel *m_topLevel;
QPushButton *m_runButton;
QTimer *m_updateTimer;
std::string m_execPath;
QProcess *m_process = nullptr;
+ Quackle::Game *m_game = nullptr;
};