From ce941c146aea7925bded6b9d2a0d0559d3156ad3 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 23 Feb 2022 18:11:55 +0100 Subject: Create repository --- src/game_tab/GameTab.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/game_tab/GameTab.hpp (limited to 'src/game_tab/GameTab.hpp') diff --git a/src/game_tab/GameTab.hpp b/src/game_tab/GameTab.hpp new file mode 100644 index 0000000..7686f12 --- /dev/null +++ b/src/game_tab/GameTab.hpp @@ -0,0 +1,28 @@ +#pragma once +#include "ChessArbiter.hpp" +#include "Game.hpp" +#include "HalfMove.hpp" +#include "board/BoardPanel.hpp" +#include "editor/EditorPanel.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 { + EditorPanel *editor_panel; + BoardPanel *board_panel; + Game *game; + void RefreshLabel(); + void OnRefreshTabTitle(wxCommandEvent &event); + void OnGameChange(wxCommandEvent &event); +public: + GameTab(wxFrame *parent, Game *game); + void ApplyPreferences(); + +}; -- cgit v1.2.3