OChess v0.0.2
Programmer's Manual
EngineTab.hpp
1#include "UCI.hpp"
2#include "ochess.hpp"
3
4// Foreign event
5wxDECLARE_EVENT(CLOSE_TAB_EVENT, wxCommandEvent);
6wxDECLARE_EVENT(REFRESH_ENGINE_LIST, wxCommandEvent);
7wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);
8
13class EngineTab : public TabEngine, public TabInfos {
14 std::string confGroup, enginePath;
15 uciadapter::UCI *engine;
16 std::uint32_t engine_id;
17 void InitConfiguration();
18 void LoadConfiguration();
19 void RefreshItemList();
20 void OnSave(wxCommandEvent &event);
21 void OnDelete(wxCommandEvent &event);
22
23public:
24 EngineTab(wxWindow *parent, uciadapter::UCI *engine,
25 std::string engine_path);
26 EngineTab(wxWindow *parent, std::uint32_t id);
27 ~EngineTab();
29 std::shared_ptr<Game> GetGame() { return nullptr; }
30 std::shared_ptr<GameBase> GetBase() { return nullptr; }
31 std::uint32_t GetEngineId() { return engine_id; };
32};
Tab used to configure UCI chess engines.
Definition: EngineTab.hpp:13
void ApplyPreferences()
Can be called to load preferences that have been modify in the application settings.
Definition: EngineTab.hpp:28
Class TabEngine.
Definition: gui.h:173
Used by each tab of the GUI to attach additional informations and features.
Definition: ochess.hpp:47