aboutsummaryrefslogtreecommitdiff
path: root/src/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.cpp')
-rw-r--r--src/gui.cpp30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/gui.cpp b/src/gui.cpp
index 72c3b05..b3d564b 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -74,36 +74,41 @@ DialogLiveEngine::DialogLiveEngine( wxWindow* parent, wxWindowID id, const wxStr
main_sizer->Add( current_engine_sizer, 0, wxEXPAND, 5 );
- wxGridSizer* infos_sizer;
- infos_sizer = new wxGridSizer( 0, 6, 0, 0 );
+ wxBoxSizer* infos_sizer;
+ infos_sizer = new wxBoxSizer( wxVERTICAL );
+
+ wxBoxSizer* infos_sizer_row1;
+ infos_sizer_row1 = new wxBoxSizer( wxHORIZONTAL );
multipv_label = new wxStaticText( this, wxID_ANY, wxT("MultiPV:"), wxDefaultPosition, wxDefaultSize, 0 );
multipv_label->Wrap( -1 );
- infos_sizer->Add( multipv_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+ infos_sizer_row1->Add( multipv_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
- multipv = new wxStaticText( this, wxID_ANY, wxT("?"), wxDefaultPosition, wxDefaultSize, 0 );
- multipv->Wrap( -1 );
- infos_sizer->Add( multipv, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+ multipv = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 100, 1 );
+ infos_sizer_row1->Add( multipv, 0, wxALL, 5 );
threads_label = new wxStaticText( this, wxID_ANY, wxT("Threads:"), wxDefaultPosition, wxDefaultSize, 0 );
threads_label->Wrap( -1 );
- infos_sizer->Add( threads_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+ infos_sizer_row1->Add( threads_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
threads = new wxStaticText( this, wxID_ANY, wxT("?"), wxDefaultPosition, wxDefaultSize, 0 );
threads->Wrap( -1 );
- infos_sizer->Add( threads, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+ infos_sizer_row1->Add( threads, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
m_staticText13 = new wxStaticText( this, wxID_ANY, wxT("Depth:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText13->Wrap( -1 );
- infos_sizer->Add( m_staticText13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+ infos_sizer_row1->Add( m_staticText13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
- depth = new wxSpinCtrl( this, wxID_ANY, wxT("30"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10000, 0 );
+ depth = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10000, 1 );
depth->Enable( false );
- infos_sizer->Add( depth, 0, wxALL, 5 );
+ infos_sizer_row1->Add( depth, 0, wxALL, 5 );
+
+ infos_sizer->Add( infos_sizer_row1, 0, wxEXPAND, 5 );
- main_sizer->Add( infos_sizer, 0, 0, 5 );
+
+ main_sizer->Add( infos_sizer, 0, wxEXPAND, 5 );
lines_list = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
main_sizer->Add( lines_list, 1, wxALL|wxEXPAND, 5 );
@@ -111,6 +116,7 @@ DialogLiveEngine::DialogLiveEngine( wxWindow* parent, wxWindowID id, const wxStr
this->SetSizer( main_sizer );
this->Layout();
+ main_sizer->Fit( this );
this->Centre( wxBOTH );
}