blob: da70af489d08ccfb0cfd129d1239154b72171d40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "gamebase/GameBase.hpp"
#include "ochess.hpp"
#include "BaseGameTab.hpp"
#include "BaseImportTab.hpp"
#include "BaseManageTab.hpp"
wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent);
class BaseTab : public TabBase, public TabInfos {
std::shared_ptr<GameBase> base;
std::shared_ptr<Game> game;
BaseGameTab *games_tab;
BaseImportTab *import_tab;
BaseManageTab *manage_tab;
void OnNewGame(wxCommandEvent &event);
public:
BaseTab(wxFrame *parent, std::string base_file);
void ApplyPreferences();
void RefreshLabel();
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();};
};
|