diff --git a/src/base_tab/BaseTab.hpp b/src/base_tab/BaseTab.hpp index f58e182..a283975 100644 --- a/src/base_tab/BaseTab.hpp +++ b/src/base_tab/BaseTab.hpp @@ -11,7 +11,7 @@ wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent); class BaseTab : public BasePanelBF, public TabInfos { GameBase *base; std::vector deleted; - std::vector edited; + std::vector edited; std::string base_file; public: @@ -22,4 +22,6 @@ public: void OnSave(wxCommandEvent &event); void OnExport(wxCommandEvent &event); void OnOpenGame(wxListEvent &event); + void *GetGame() { return (NULL); } + void *GetBase() { return (base); }; }; \ No newline at end of file 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); }; }; diff --git a/src/ochess.hpp b/src/ochess.hpp index 33e9f22..2a71c13 100644 --- a/src/ochess.hpp +++ b/src/ochess.hpp @@ -54,4 +54,6 @@ public: Type type; TabInfos(Type type_) : type(type_) {} virtual void ApplyPreferences() = 0; + virtual void *GetGame() = 0; + virtual void *GetBase() = 0; };