1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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()
{
}
|