From 3b6e7d39cf2d03f2e43c249ece6da32f1f8030a7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 25 Feb 2022 15:29:04 +0100 Subject: Prepare API for adding games to database --- src/game_tab/GameTab.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game_tab') 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); }; }; -- cgit v1.2.3