aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseTab.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base_tab/BaseTab.hpp')
-rw-r--r--src/base_tab/BaseTab.hpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/base_tab/BaseTab.hpp b/src/base_tab/BaseTab.hpp
index b265414..e025c63 100644
--- a/src/base_tab/BaseTab.hpp
+++ b/src/base_tab/BaseTab.hpp
@@ -1,28 +1,19 @@
#include "gamebase/GameBase.hpp"
-#include "gamebase/PGNGameBase.hpp"
#include "ochess.hpp"
+#include "BaseGameTab.hpp"
+#include "BaseImportTab.hpp"
-// Foreign events
-wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent);
-wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);
-
-class BaseTab : public TabBase_TabGames, public TabInfos {
+class BaseTab : public TabBase, public TabInfos {
std::shared_ptr<GameBase> base;
- std::vector<std::uint32_t> deleted;
- std::vector<std::shared_ptr<Game>> edited;
- std::string base_file;
+ BaseGameTab *games_tab;
+ BaseImportTab *import_tab;
public:
BaseTab(wxFrame *parent, std::string base_file);
void ApplyPreferences();
- void LoadFile();
- void OnDelete(wxCommandEvent &event);
- void OnSave(wxCommandEvent &event);
- void OnExport(wxCommandEvent &event);
- void OnOpenGame(wxListEvent &event);
- void OnImport(wxCommandEvent &event);
+ void RefreshLabel();
std::shared_ptr<Game> GetGame() { return (std::shared_ptr<Game>(NULL)); }
std::shared_ptr<GameBase> GetBase() { return (std::shared_ptr<GameBase>(base)); };
}; \ No newline at end of file