2022-02-26 17:05:47 +01:00
|
|
|
#include "EngineTabBF.h"
|
|
|
|
#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 17:05:47 +01:00
|
|
|
class EngineTab : public EngineTabBF, public TabInfos {
|
|
|
|
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 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 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
|
|
|
};
|