3#include "gamebase/GameBase.hpp"
5#include "BaseGameTab.hpp"
6#include "BaseImportTab.hpp"
7#include "BaseManageTab.hpp"
10wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent);
11wxDECLARE_EVENT(CLOSE_LINKED_TAB, wxCommandEvent);
14wxDECLARE_EVENT(REFRESH_MANAGE_TAB, wxCommandEvent);
22 std::shared_ptr<GameBase>
base;
24 std::shared_ptr<Game>
game;
37 void OnSave(wxCommandEvent &event);
43 std::shared_ptr<Game> GetGame() {
return (std::shared_ptr<Game>(
game)); }
44 std::shared_ptr<GameBase> GetBase() {
return (std::shared_ptr<GameBase>(
base)); };
A BaseTab sub-tab to import games.
Definition: BaseImportTab.hpp:13
A BaseTab sub-tab to manage games.
Definition: BaseManageTab.hpp:13
Class that represents an opened chess games database in the MainWindow.
Definition: BaseTab.hpp:20
std::shared_ptr< GameBase > base
The opened database.
Definition: BaseTab.hpp:22
std::shared_ptr< Game > game
The last opened game.
Definition: BaseTab.hpp:24
void OnSave(wxCommandEvent &event)
Listen events from BaseManageTab.
Definition: BaseTab.cpp:49
BaseGameTab * games_tab
All sub tabs from this main table.
Definition: BaseTab.hpp:27
std::string base_file
 
Definition: BaseTab.hpp:32
void OnOpenGame(wxListEvent &event)
Listen events from BaseImportTab.
Definition: BaseTab.cpp:35
Class TabBase.
Definition: gui.h:266
Used by each tab of the GUI to attach additional informations and features.
Definition: ochess.hpp:47