diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-26 12:51:48 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-26 12:51:48 +0100 |
| commit | 1d78e106adf4cc5894f299d597c02a9b7e508173 (patch) | |
| tree | 04e722a73340082f6c2b06d9901bb705f762eead /src/base_tab/BaseTab.hpp | |
| parent | 2bd85f53bcaeb12090b9ac2d4cf7c781b280e678 (diff) | |
Debug database tab
Diffstat (limited to 'src/base_tab/BaseTab.hpp')
| -rw-r--r-- | src/base_tab/BaseTab.hpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/base_tab/BaseTab.hpp b/src/base_tab/BaseTab.hpp index da70af4..c8efd11 100644 --- a/src/base_tab/BaseTab.hpp +++ b/src/base_tab/BaseTab.hpp @@ -7,21 +7,27 @@ wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent); - class BaseTab : public TabBase, public TabInfos { + /// @brief The opened database std::shared_ptr<GameBase> base; + /// @brief The last opened game std::shared_ptr<Game> game; + + /// All sub tabs BaseGameTab *games_tab; BaseImportTab *import_tab; BaseManageTab *manage_tab; - void OnNewGame(wxCommandEvent &event); + std::string base_file; + + void OnOpenGame(wxCommandEvent &event); + void OnSave(wxCommandEvent &event); + void OpenDatabase(std::string dbpath); + public: BaseTab(wxFrame *parent, std::string base_file); - void ApplyPreferences(); - void RefreshLabel(); + void Refresh(); std::shared_ptr<Game> GetGame() { return (std::shared_ptr<Game>(game)); } std::shared_ptr<GameBase> GetBase() { return (std::shared_ptr<GameBase>(base)); }; - void Refresh() {import_tab->RefreshImportLists();}; };
\ No newline at end of file |
