diff options
Diffstat (limited to 'src/preferences/BoardPrefsPanelBF.cpp')
| -rw-r--r-- | src/preferences/BoardPrefsPanelBF.cpp | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/src/preferences/BoardPrefsPanelBF.cpp b/src/preferences/BoardPrefsPanelBF.cpp new file mode 100644 index 0000000..06058f9 --- /dev/null +++ b/src/preferences/BoardPrefsPanelBF.cpp @@ -0,0 +1,106 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#include "BoardPrefsPanelBF.h" + +/////////////////////////////////////////////////////////////////////////// + +BoardPrefsPanelBF::BoardPrefsPanelBF( 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 ); + + splitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D|wxSP_LIVE_UPDATE ); + splitter->Connect( wxEVT_IDLE, wxIdleEventHandler( BoardPrefsPanelBF::splitterOnIdle ), NULL, this ); + + board_canvas = new wxPanel( splitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); + options_panel = new wxPanel( splitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); + wxBoxSizer* options_sizer; + options_sizer = new wxBoxSizer( wxVERTICAL ); + + wxBoxSizer* themes_sizer; + themes_sizer = new wxBoxSizer( wxHORIZONTAL ); + + wxBoxSizer* piece_theme_sizer; + piece_theme_sizer = new wxBoxSizer( wxVERTICAL ); + + piece_theme_label = new wxStaticText( options_panel, wxID_ANY, wxT("Piece theme"), wxDefaultPosition, wxDefaultSize, 0 ); + piece_theme_label->Wrap( -1 ); + piece_theme_sizer->Add( piece_theme_label, 0, wxALL, 5 ); + + piece_theme = new wxListBox( options_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); + piece_theme_sizer->Add( piece_theme, 1, wxALL|wxEXPAND, 5 ); + + + themes_sizer->Add( piece_theme_sizer, 1, wxEXPAND, 5 ); + + wxBoxSizer* square_theme_sizer; + square_theme_sizer = new wxBoxSizer( wxVERTICAL ); + + square_theme_label = new wxStaticText( options_panel, wxID_ANY, wxT("Square theme"), wxDefaultPosition, wxDefaultSize, 0 ); + square_theme_label->Wrap( -1 ); + square_theme_sizer->Add( square_theme_label, 0, wxALL, 5 ); + + square_theme = new wxListBox( options_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); + square_theme_sizer->Add( square_theme, 1, wxALL|wxEXPAND, 5 ); + + + themes_sizer->Add( square_theme_sizer, 1, wxEXPAND, 5 ); + + + options_sizer->Add( themes_sizer, 1, wxEXPAND, 5 ); + + show_side_badge = new wxCheckBox( options_panel, wxID_ANY, wxT("Side to play badge"), wxDefaultPosition, wxDefaultSize, 0 ); + options_sizer->Add( show_side_badge, 0, wxALL, 5 ); + + show_captures = new wxCheckBox( options_panel, wxID_ANY, wxT("Show captured pieces"), wxDefaultPosition, wxDefaultSize, 0 ); + options_sizer->Add( show_captures, 0, wxALL, 5 ); + + black_by_default = new wxCheckBox( options_panel, wxID_ANY, wxT("Black side by default"), wxDefaultPosition, wxDefaultSize, 0 ); + options_sizer->Add( black_by_default, 0, wxALL, 5 ); + + wxBoxSizer* border_radius_sizer; + border_radius_sizer = new wxBoxSizer( wxHORIZONTAL ); + + border_radius_label = new wxStaticText( options_panel, wxID_ANY, wxT("Corner radius:"), wxDefaultPosition, wxDefaultSize, 0 ); + border_radius_label->Wrap( -1 ); + border_radius_sizer->Add( border_radius_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + + corner_radius = new wxSpinCtrl( options_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 20, 0 ); + border_radius_sizer->Add( corner_radius, 0, wxALL, 5 ); + + + options_sizer->Add( border_radius_sizer, 0, wxEXPAND, 5 ); + + wxBoxSizer* board_size_sizer; + board_size_sizer = new wxBoxSizer( wxHORIZONTAL ); + + board_size_label = new wxStaticText( options_panel, wxID_ANY, wxT("Board squares size:"), wxDefaultPosition, wxDefaultSize, 0 ); + board_size_label->Wrap( -1 ); + board_size_sizer->Add( board_size_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + + square_size = new wxSpinCtrl( options_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 20, 150, 0 ); + board_size_sizer->Add( square_size, 0, wxALL|wxEXPAND, 5 ); + + + options_sizer->Add( board_size_sizer, 0, wxEXPAND, 5 ); + + + options_panel->SetSizer( options_sizer ); + options_panel->Layout(); + options_sizer->Fit( options_panel ); + splitter->SplitHorizontally( board_canvas, options_panel, 350 ); + main_sizer->Add( splitter, 1, wxEXPAND, 5 ); + + + this->SetSizer( main_sizer ); + this->Layout(); +} + +BoardPrefsPanelBF::~BoardPrefsPanelBF() +{ +} |
