diff options
author | pommicket <pommicket@gmail.com> | 2025-08-13 13:45:54 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-13 13:45:54 -0400 |
commit | 306eff0aaf77d94f70a91d2ba8c2fe0a1046df51 (patch) | |
tree | cc8312c07994d25d9737c21c7fd22063646c46cc /quacker/quacker.h | |
parent | e43c01bd11560561daa771463c57442c3b8a761d (diff) |
Various code cleanup, fix issues with move box
Diffstat (limited to 'quacker/quacker.h')
-rw-r--r-- | quacker/quacker.h | 15 |
1 files changed, 8 insertions, 7 deletions
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; |