#pragma once #include "ChessArbiter.hpp" #include "Game.hpp" #include "HalfMove.hpp" #include "left_panel/GameTabLeftPanel.hpp" #include "right_panel/GameTabRightPanel.hpp" #include "ochess.hpp" #include #include #include #include wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent); wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent); class GameTab : public wxPanel, public TabInfos { GameTabRightPanel *editor_panel; GameTabLeftPanel *board_panel; Game *game; void RefreshLabel(); void OnRefreshTabTitle(wxCommandEvent &event); void OnGameChange(wxCommandEvent &event); public: GameTab(wxFrame *parent, Game *game); ~GameTab(); void ApplyPreferences(); void *GetGame() { return (game); } void *GetBase() { return (NULL); }; };