ochess/src/engine_tab/EngineTab.hpp

25 lines
747 B
C++
Raw Normal View History

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);
~EngineTab();
2022-02-26 17:05:47 +01:00
void ApplyPreferences() {}
void *GetGame() { return (NULL); }
2022-02-26 18:46:06 +01:00
void *GetBase() { return (NULL); }
void OnSave(wxCommandEvent &event);
2022-02-26 20:34:42 +01:00
void OnDelete(wxCommandEvent &event);
2022-02-26 17:05:47 +01:00
};