aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/GameTab.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-25 15:29:04 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-25 15:29:04 +0100
commit3b6e7d39cf2d03f2e43c249ece6da32f1f8030a7 (patch)
tree4ae10cf81fc75264f59b5e991b1beeae66b3fea4 /src/game_tab/GameTab.hpp
parent98488e899a750703562d868d734251cfe032e294 (diff)
Prepare API for adding games to database
Diffstat (limited to 'src/game_tab/GameTab.hpp')
-rw-r--r--src/game_tab/GameTab.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game_tab/GameTab.hpp b/src/game_tab/GameTab.hpp
index 7686f12..d013266 100644
--- a/src/game_tab/GameTab.hpp
+++ b/src/game_tab/GameTab.hpp
@@ -13,7 +13,6 @@
wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);
wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
-
class GameTab : public wxPanel, public TabInfos {
EditorPanel *editor_panel;
BoardPanel *board_panel;
@@ -21,8 +20,10 @@ class GameTab : public wxPanel, public TabInfos {
void RefreshLabel();
void OnRefreshTabTitle(wxCommandEvent &event);
void OnGameChange(wxCommandEvent &event);
+
public:
GameTab(wxFrame *parent, Game *game);
void ApplyPreferences();
-
+ void *GetGame() { return (game); }
+ void *GetBase() { return (NULL); };
};