From 306eff0aaf77d94f70a91d2ba8c2fe0a1046df51 Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 13 Aug 2025 13:45:54 -0400 Subject: Various code cleanup, fix issues with move box --- quacker/quacker.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'quacker/quacker.h') diff --git a/quacker/quacker.h b/quacker/quacker.h index b9a9602..399deee 100644 --- a/quacker/quacker.h +++ b/quacker/quacker.h @@ -66,7 +66,6 @@ class BaseView; class HistoryView; class Letterbox; class ListerDialog; -class MoveBox; class QuackerSettings; class Settings; class SimViewer; @@ -201,6 +200,10 @@ protected slots: // update *positional* views - emit positionChanged void updatePositionViews(); + // updates move views from either simulation results if available + // or kibitzed moves + void updateMoveViews(); + // update history views when a new position is added void updateHistoryViews(); @@ -229,11 +232,6 @@ protected slots: void startBirthday(); void birthdayBash(); void birthdayGram(int index, bool on); -public slots: - // updates move views from either provided list, - // or simulation results if available, - // or kibitzed moves - void updateMoveViews(const Quackle::MoveList *list = nullptr); signals: // emitted when views (eg board) should update based on the @@ -246,6 +244,9 @@ signals: // emitted when views of history must update void historyChanged(const Quackle::History &history); + // emitted when game pointer is changed + void gameChanged(Quackle::Game *game); + protected: Quackle::DataManager m_dataManager; Quackle::Game *m_game; @@ -323,7 +324,7 @@ private: HistoryView *m_dashboard; QWidget *m_choicesWidget; - MoveBox *m_moveBox; + View *m_moveBox; View *m_noteEditor; QFrame *m_frameWidget; -- cgit v1.2.3