15PANEL_FP_USER_LAYER_NAMES_BASE::PANEL_FP_USER_LAYER_NAMES_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
17 wxBoxSizer* bSizerMain;
18 bSizerMain =
new wxBoxSizer( wxVERTICAL );
20 wxBoxSizer* bSizerMargins;
21 bSizerMargins =
new wxBoxSizer( wxVERTICAL );
23 wxBoxSizer* bSizerUserLayerCount;
24 bSizerUserLayerCount =
new wxBoxSizer( wxHORIZONTAL );
26 m_lblUserLayers =
new wxStaticText(
this, wxID_ANY,
_(
"User layers:"), wxDefaultPosition, wxDefaultSize, 0 );
28 bSizerUserLayerCount->Add(
m_lblUserLayers, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
30 wxString m_choiceUserLayersChoices[] = {
_(
"0"),
_(
"1"),
_(
"2"),
_(
"3"),
_(
"4"),
_(
"5"),
_(
"6"),
_(
"7"),
_(
"8"),
_(
"9") };
31 int m_choiceUserLayersNChoices =
sizeof( m_choiceUserLayersChoices ) /
sizeof( wxString );
32 m_choiceUserLayers =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUserLayersNChoices, m_choiceUserLayersChoices, 0 );
37 bSizerUserLayerCount->Add( 0, 0, 1, wxEXPAND, 5 );
40 bSizerMargins->Add( bSizerUserLayerCount, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 8 );
43 bSizerMargins->Add( 0, 10, 0, wxEXPAND, 5 );
45 m_layerNamesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"User Layer Names"), wxDefaultPosition, wxDefaultSize, 0 );
50 bSizerMargins->Add( 0, 4, 0, wxEXPAND, 5 );
52 wxBoxSizer* layerNamesSizer;
53 layerNamesSizer =
new wxBoxSizer( wxVERTICAL );
87 wxBoxSizer* bButtonSize;
88 bButtonSize =
new wxBoxSizer( wxHORIZONTAL );
91 m_bpAdd->SetMinSize( wxSize( 30,29 ) );
93 bButtonSize->Add(
m_bpAdd, 0, wxBOTTOM|wxLEFT|wxTOP, 5 );
96 bButtonSize->Add( 20, 0, 0, wxEXPAND, 5 );
101 bButtonSize->Add(
m_bpDelete, 0, wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
104 bButtonSize->Add( 0, 0, 1, wxEXPAND, 5 );
107 layerNamesSizer->Add( bButtonSize, 0, wxEXPAND, 5 );
110 bSizerMargins->Add( layerNamesSizer, 1, wxEXPAND, 20 );
113 bSizerMain->Add( bSizerMargins, 1, wxEXPAND, 5 );
116 this->SetSizer( bSizerMain );
118 bSizerMain->Fit(
this );