From 551c51c02649aeb38d72002d6bb70b58dbee1eb2 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 8 Aug 2025 10:42:40 -0400 Subject: MacondoBackend --- quacker/macondo.h | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'quacker/macondo.h') 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 #include -#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; }; -- cgit v1.2.3