mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-03 10:47:39 +00:00
Improve engine managemen
This commit is contained in:
parent
ca6c1b1e75
commit
e601902dd5
11 changed files with 146 additions and 16 deletions
|
@ -15,6 +15,17 @@ EditorPanel::EditorPanel(wxFrame *parent, Game *game)
|
|||
tags_list->InsertColumn(1, L"Value", wxLIST_FORMAT_LEFT, 500);
|
||||
tagTextCtrl->SetHint("Tag");
|
||||
valueTextCtrl->SetHint("Value");
|
||||
CONFIG_OPEN(conf);
|
||||
conf->SetPath("engines/");
|
||||
wxString engine_name;
|
||||
long index;
|
||||
if (conf->GetFirstGroup(engine_name, index)) {
|
||||
do {
|
||||
engine_list->Append(engine_name);
|
||||
} while (conf->GetNextGroup(engine_name, index));
|
||||
}
|
||||
|
||||
CONFIG_CLOSE(conf);
|
||||
RefreshTagsList();
|
||||
|
||||
// Bind events
|
||||
|
|
|
@ -82,7 +82,7 @@ EditorPanelBF::EditorPanelBF( wxWindow* parent, wxWindowID id, const wxPoint& po
|
|||
engine_list_label->Wrap( -1 );
|
||||
engine_page_sizer->Add( engine_list_label, 0, wxALL, 5 );
|
||||
|
||||
engine_list = new wxListCtrl( engine_page, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_ICON );
|
||||
engine_list = new wxListBox( engine_page, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
||||
engine_page_sizer->Add( engine_list, 1, wxALL|wxEXPAND, 5 );
|
||||
|
||||
analyze_game_button = new wxButton( engine_page, wxID_ANY, wxT("Analyze game"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <wx/icon.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/listctrl.h>
|
||||
#include <wx/listbox.h>
|
||||
#include <wx/notebook.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
@ -55,7 +56,7 @@ class EditorPanelBF : public wxPanel
|
|||
wxButton* delete_button;
|
||||
wxPanel* engine_page;
|
||||
wxStaticText* engine_list_label;
|
||||
wxListCtrl* engine_list;
|
||||
wxListBox* engine_list;
|
||||
wxButton* analyze_game_button;
|
||||
wxButton* live_analysis_button;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue