Debug and clean the game tab code

This commit is contained in:
Loic Guegan 2023-01-01 12:15:08 +01:00
parent 1eb91c5926
commit 5607057ac3
9 changed files with 89 additions and 121 deletions

View file

@ -8,11 +8,9 @@
// Foreign events
wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
class GameTabLeftPanel : public TabGameLeftPanel {
std::shared_ptr<Game> game;
BoardCanvas *board_canvas;
void NotifyEditor();
std::string last_absolute_move;
bool repeat;
@ -21,11 +19,6 @@ public:
void Notify(bool animate=false,bool backward=false);
void OnPlay(wxCommandEvent &event);
void OnGotoMove(wxCommandEvent &event);
void PreviousMove(bool isKeyDown);
void NextMove(bool isKeyDown);
void OnZoomIn(wxCommandEvent &event);
void OnZoomOut(wxCommandEvent &event);
void OnSwap(wxCommandEvent &event);
void OnRefreshBoard(wxCommandEvent &event);
void ApplyPreferences();
void DisableSaveTool(){game_toolbar->EnableTool(0,false);};