diff options
author | pommicket <pommicket@gmail.com> | 2025-08-08 10:42:40 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-08 10:42:40 -0400 |
commit | 551c51c02649aeb38d72002d6bb70b58dbee1eb2 (patch) | |
tree | c8b7117657854171105c14e8568a6ec8c489e30f /quacker/macondo.h | |
parent | 91af6685bdbfad63a035bb7997a8f3d2eb20d64a (diff) |
MacondoBackend
Diffstat (limited to 'quacker/macondo.h')
-rw-r--r-- | quacker/macondo.h | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/quacker/macondo.h b/quacker/macondo.h index b8dbf73..77af35f 100644 --- a/quacker/macondo.h +++ b/quacker/macondo.h @@ -1,38 +1,28 @@ -#include <QProcess> #include <QWidget> -#include "view.h" - - class QPushButton; class QTimer; -class TopLevel; +namespace Quackle { + class Game; +} +class MacondoBackend; -class Macondo : public View { +class Macondo : public QWidget { Q_OBJECT public: - Macondo(TopLevel *topLevel); - ~Macondo(); + Macondo(Quackle::Game *); public slots: void simulate(); void updateResults(); - void processStarted(); - void processFinished(int, QProcess::ExitStatus); - virtual void positionChanged(const Quackle::GamePosition *position); private: enum class Command { None, Simulate, Solve, }; - void loadGCG(); - void killProcess(); - TopLevel *m_topLevel; QPushButton *m_simulateButton; QTimer *m_updateTimer; - std::string m_execPath; - QProcess *m_process = nullptr; + MacondoBackend *m_backend; int m_viewingPlyNumber = 0; - bool m_runningSimulation = false; Command m_command = Command::None; }; |