OChess v0.0.2
Programmer's Manual
EngineTab Class Reference

Tab used to configure UCI chess engines. More...

#include <EngineTab.hpp>

Inheritance diagram for EngineTab:
TabEngine TabInfos

Public Member Functions

 EngineTab (wxWindow *parent, uciadapter::UCI *engine, std::string engine_path)
 
 EngineTab (wxWindow *parent, std::uint32_t id)
 
void ApplyPreferences ()
 Can be called to load preferences that have been modify in the application settings. More...
 
std::shared_ptr< GameGetGame ()
 
std::shared_ptr< GameBaseGetBase ()
 
std::uint32_t GetEngineId ()
 
- Public Member Functions inherited from TabEngine
 TabEngine (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
- Public Member Functions inherited from TabInfos
 TabInfos (Type type_)
 
void Link (TabInfos *tab)
 
virtual void Refresh ()
 
virtual void OnLink ()
 Callback that is called when the current tab is linked to another one. More...
 
virtual void ApplyPreferences ()
 Can be called to load preferences that have been modify in the application settings. More...
 
virtual std::shared_ptr< GameGetGame ()=0
 
virtual std::shared_ptr< GameBaseGetBase ()=0
 
virtual std::uint32_t GetEngineId ()
 

Private Member Functions

void InitConfiguration ()
 
void LoadConfiguration ()
 
void RefreshItemList ()
 
void OnSave (wxCommandEvent &event)
 
void OnDelete (wxCommandEvent &event)
 

Private Attributes

std::string confGroup
 
std::string enginePath
 
uciadapter::UCI * engine
 
std::uint32_t engine_id
 

Additional Inherited Members

- Public Types inherited from TabInfos
enum  Type { GAME , BASE , ENGINE , NONE }
 Which type of tab is it?
 
typedef enum TabInfos::Type Type
 Which type of tab is it?
 
- Public Attributes inherited from TabInfos
Type type
 
long id
 Each tab has an associated unique id.
 
long linked_id
 Specify to which tab id this tab is linked (e.g: database to linked to on of its opened game tab)
 
bool is_linked
 Set to true if this tab is attach to another one (c.f linked_id)
 
bool is_dirty
 True if current tab is dirty.
 
- Protected Attributes inherited from TabEngine
wxStaticText * engine_name_label
 
wxTextCtrl * engine_name
 
wxStaticText * engine_location_label
 
wxTextCtrl * engine_location
 
wxStaticLine * separator_1
 
wxStaticText * params_label
 
wxPropertyGrid * engine_parameters
 
wxButton * save_button
 
wxButton * delete_button
 

Detailed Description

Tab used to configure UCI chess engines.

Member Function Documentation

◆ ApplyPreferences()

void EngineTab::ApplyPreferences ( )
inlinevirtual

Can be called to load preferences that have been modify in the application settings.

Reimplemented from TabInfos.

◆ GetBase()

std::shared_ptr< GameBase > EngineTab::GetBase ( )
inlinevirtual

Implements TabInfos.

◆ GetEngineId()

std::uint32_t EngineTab::GetEngineId ( )
inlinevirtual

Reimplemented from TabInfos.

◆ GetGame()

std::shared_ptr< Game > EngineTab::GetGame ( )
inlinevirtual

Implements TabInfos.


The documentation for this class was generated from the following files: