aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/GameTab.hpp
diff options
context:
space:
mode:
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();
+
+};