aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/GameTab.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-23 18:11:55 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-23 18:11:55 +0100
commitce941c146aea7925bded6b9d2a0d0559d3156ad3 (patch)
tree4c52e02600e3fd127bfb28b3e974d45541ec9e4e /src/game_tab/GameTab.hpp
Create repository
Diffstat (limited to 'src/game_tab/GameTab.hpp')
-rw-r--r--src/game_tab/GameTab.hpp28
1 files changed, 28 insertions, 0 deletions
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 <utility>
+#include <wx/collpane.h>
+#include <wx/splitter.h>
+#include <wx/textctrl.h>
+
+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();
+
+};