aboutsummaryrefslogtreecommitdiff
path: root/src/engine_tab
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-28 13:02:27 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-28 13:02:27 +0100
commit7178f18ab88bcc93bfbf2019adf53d2f60d8fa20 (patch)
treecdbe28d8de4e0774885779a85f7e8c3b7e059f30 /src/engine_tab
parentff6b1980c93140db2143b5dcad27f5cdc946632b (diff)
Cleaning GUI files
Diffstat (limited to 'src/engine_tab')
-rw-r--r--src/engine_tab/EngineTab.cpp4
-rw-r--r--src/engine_tab/EngineTab.hpp3
-rw-r--r--src/engine_tab/EngineTabBF.cpp66
-rw-r--r--src/engine_tab/EngineTabBF.h59
4 files changed, 3 insertions, 129 deletions
diff --git a/src/engine_tab/EngineTab.cpp b/src/engine_tab/EngineTab.cpp
index ca5f2e9..6db6bdd 100644
--- a/src/engine_tab/EngineTab.cpp
+++ b/src/engine_tab/EngineTab.cpp
@@ -2,7 +2,7 @@
EngineTab::EngineTab(wxWindow *parent, uciadapter::UCI *engine,
std::string engine_path_or_name)
- : EngineTabBF(parent), TabInfos(TabInfos::ENGINE),
+ : TabEngine(parent), TabInfos(TabInfos::ENGINE),
enginePath(engine_path_or_name), engine(engine) {
SetLabel("New Engine");
@@ -30,7 +30,7 @@ EngineTab::EngineTab(wxWindow *parent, uciadapter::UCI *engine,
}
EngineTab::EngineTab(wxWindow *parent, std::string name)
- : EngineTabBF(parent), TabInfos(TabInfos::ENGINE) {
+ : TabEngine(parent), TabInfos(TabInfos::ENGINE) {
SetLabel(name);
engineName = name;
confGroup = "engines/" + engineName;
diff --git a/src/engine_tab/EngineTab.hpp b/src/engine_tab/EngineTab.hpp
index 3410964..b1e7ff0 100644
--- a/src/engine_tab/EngineTab.hpp
+++ b/src/engine_tab/EngineTab.hpp
@@ -1,4 +1,3 @@
-#include "EngineTabBF.h"
#include "UCI.hpp"
#include "ochess.hpp"
@@ -6,7 +5,7 @@
wxDECLARE_EVENT(CLOSE_TAB_EVENT, wxCommandEvent);
wxDECLARE_EVENT(REFRESH_ENGINE_LIST, wxCommandEvent);
-class EngineTab : public EngineTabBF, public TabInfos {
+class EngineTab : public TabEngine, public TabInfos {
uciadapter::UCI *engine;
std::string confGroup, enginePath;
std::string engineName;
diff --git a/src/engine_tab/EngineTabBF.cpp b/src/engine_tab/EngineTabBF.cpp
deleted file mode 100644
index 90ba99d..0000000
--- a/src/engine_tab/EngineTabBF.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487)
-// http://www.wxformbuilder.org/
-//
-// PLEASE DO *NOT* EDIT THIS FILE!
-///////////////////////////////////////////////////////////////////////////
-
-#include "EngineTabBF.h"
-
-///////////////////////////////////////////////////////////////////////////
-
-EngineTabBF::EngineTabBF( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
-{
- wxBoxSizer* main_sizer;
- main_sizer = new wxBoxSizer( wxVERTICAL );
-
- wxBoxSizer* engine_name_sizer;
- engine_name_sizer = new wxBoxSizer( wxHORIZONTAL );
-
- engine_name_label = new wxStaticText( this, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
- engine_name_label->Wrap( -1 );
- engine_name_sizer->Add( engine_name_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-
- engine_name = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
- engine_name_sizer->Add( engine_name, 1, wxALL, 5 );
-
-
- main_sizer->Add( engine_name_sizer, 0, wxEXPAND, 5 );
-
- wxBoxSizer* engine_location_sizer;
- engine_location_sizer = new wxBoxSizer( wxHORIZONTAL );
-
- engine_location_label = new wxStaticText( this, wxID_ANY, wxT("Location:"), wxDefaultPosition, wxDefaultSize, 0 );
- engine_location_label->Wrap( -1 );
- engine_location_sizer->Add( engine_location_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-
- engine_location = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
- engine_location_sizer->Add( engine_location, 1, wxALL, 5 );
-
-
- main_sizer->Add( engine_location_sizer, 0, wxEXPAND, 5 );
-
- separator_1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
- main_sizer->Add( separator_1, 0, wxEXPAND | wxALL, 5 );
-
- params_label = new wxStaticText( this, wxID_ANY, wxT("Parameters:"), wxDefaultPosition, wxDefaultSize, 0 );
- params_label->Wrap( -1 );
- main_sizer->Add( params_label, 0, wxALL, 5 );
-
- engine_parameters = new wxPropertyGrid(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPG_DEFAULT_STYLE|wxPG_SPLITTER_AUTO_CENTER);
- main_sizer->Add( engine_parameters, 1, wxALL|wxEXPAND, 5 );
-
- save_button = new wxButton( this, ENGINE_SAVE_CONF_BUTTON, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
- main_sizer->Add( save_button, 0, wxALL|wxEXPAND, 5 );
-
- delete_button = new wxButton( this, ENGINE_DELETE_CONF_BUTTON, wxT("Delete engine"), wxDefaultPosition, wxDefaultSize, 0 );
- main_sizer->Add( delete_button, 0, wxALL|wxEXPAND, 5 );
-
-
- this->SetSizer( main_sizer );
- this->Layout();
-}
-
-EngineTabBF::~EngineTabBF()
-{
-}
diff --git a/src/engine_tab/EngineTabBF.h b/src/engine_tab/EngineTabBF.h
deleted file mode 100644
index fe7dae1..0000000
--- a/src/engine_tab/EngineTabBF.h
+++ /dev/null
@@ -1,59 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487)
-// http://www.wxformbuilder.org/
-//
-// PLEASE DO *NOT* EDIT THIS FILE!
-///////////////////////////////////////////////////////////////////////////
-
-#pragma once
-
-#include <wx/artprov.h>
-#include <wx/xrc/xmlres.h>
-#include <wx/string.h>
-#include <wx/stattext.h>
-#include <wx/gdicmn.h>
-#include <wx/font.h>
-#include <wx/colour.h>
-#include <wx/settings.h>
-#include <wx/textctrl.h>
-#include <wx/sizer.h>
-#include <wx/statline.h>
-#include <wx/bitmap.h>
-#include <wx/image.h>
-#include <wx/icon.h>
-#include <wx/propgrid/propgrid.h>
-#include <wx/propgrid/advprops.h>
-#include <wx/button.h>
-#include <wx/panel.h>
-
-///////////////////////////////////////////////////////////////////////////
-
-#define ENGINE_SAVE_CONF_BUTTON 1000
-#define ENGINE_DELETE_CONF_BUTTON 1001
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class EngineTabBF
-///////////////////////////////////////////////////////////////////////////////
-class EngineTabBF : public wxPanel
-{
- private:
-
- protected:
- 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;
-
- public:
-
- EngineTabBF( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
-
- ~EngineTabBF();
-
-};
-