2022-02-26 17:05:47 +01:00
|
|
|
#include "UCI.hpp"
|
2022-02-26 18:46:06 +01:00
|
|
|
#include "ochess.hpp"
|
2022-02-26 17:05:47 +01:00
|
|
|
|
2022-02-26 20:34:42 +01:00
|
|
|
// Foreign event
|
|
|
|
wxDECLARE_EVENT(CLOSE_TAB_EVENT, wxCommandEvent);
|
2022-02-26 21:43:09 +01:00
|
|
|
wxDECLARE_EVENT(REFRESH_ENGINE_LIST, wxCommandEvent);
|
2022-02-26 20:34:42 +01:00
|
|
|
|
2022-02-28 13:02:27 +01:00
|
|
|
class EngineTab : public TabEngine, public TabInfos {
|
2022-02-26 17:05:47 +01:00
|
|
|
uciadapter::UCI *engine;
|
2022-02-26 18:46:06 +01:00
|
|
|
std::string confGroup, enginePath;
|
2022-02-26 20:34:42 +01:00
|
|
|
std::string engineName;
|
2022-02-26 18:46:06 +01:00
|
|
|
void InitConfiguration();
|
2022-02-26 21:43:09 +01:00
|
|
|
void LoadConfiguration();
|
|
|
|
void RefreshItemList();
|
2022-02-26 17:05:47 +01:00
|
|
|
public:
|
2022-02-26 19:21:52 +01:00
|
|
|
EngineTab(wxWindow *parent, uciadapter::UCI *engine,
|
|
|
|
std::string engine_path_or_name);
|
2022-02-26 21:43:09 +01:00
|
|
|
EngineTab(wxWindow *parent, std::string name);
|
2022-02-28 18:51:47 +01:00
|
|
|
~EngineTab();
|
2022-02-26 17:05:47 +01:00
|
|
|
void ApplyPreferences() {}
|
2022-02-28 20:16:57 +01:00
|
|
|
std::shared_ptr<Game> GetGame() { return (std::shared_ptr<Game>(NULL)); }
|
2022-02-28 20:30:57 +01:00
|
|
|
std::shared_ptr<GameBase> GetBase() { return (std::shared_ptr<GameBase>(NULL)); }
|
2022-02-26 18:46:06 +01:00
|
|
|
void OnSave(wxCommandEvent &event);
|
2022-02-26 20:34:42 +01:00
|
|
|
void OnDelete(wxCommandEvent &event);
|
2022-02-26 17:05:47 +01:00
|
|
|
};
|