19LAYERS_MAP_DIALOG_BASE::
LAYERS_MAP_DIALOG_BASE( wxWindow* parent, wxWindowID
id, const wxString& title, const wxPoint& pos, const wxSize& size,
long style ) :
DIALOG_SHIM( parent,
id, title, pos, size, style )
21 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
23 wxBoxSizer* bSizerMain;
24 bSizerMain =
new wxBoxSizer( wxVERTICAL );
26 wxBoxSizer* sbUpperSizer;
27 sbUpperSizer =
new wxBoxSizer( wxHORIZONTAL );
29 wxBoxSizer* bSizerLayerSelection;
30 bSizerLayerSelection =
new wxBoxSizer( wxVERTICAL );
32 m_staticTextLayerSel =
new wxStaticText(
this, wxID_ANY,
_(
"Layer selection:"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_staticTextLayerSel->Wrap( -1 );
34 bSizerLayerSelection->Add( m_staticTextLayerSel, 0, wxALL, 5 );
36 m_bSizerLayerList =
new wxBoxSizer( wxHORIZONTAL );
39 m_bSizerLayerList->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
41 m_flexLeftColumnBoxSizer =
new wxFlexGridSizer( 16, 4, 0, 0 );
42 m_flexLeftColumnBoxSizer->AddGrowableCol( 0 );
43 m_flexLeftColumnBoxSizer->AddGrowableCol( 1 );
44 m_flexLeftColumnBoxSizer->AddGrowableCol( 2 );
45 m_flexLeftColumnBoxSizer->AddGrowableCol( 3 );
46 m_flexLeftColumnBoxSizer->SetFlexibleDirection( wxBOTH );
47 m_flexLeftColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
50 m_bSizerLayerList->Add( m_flexLeftColumnBoxSizer, 1, wxEXPAND, 5 );
52 m_staticlineSep =
new wxStaticLine(
this,
ID_M_STATICLINESEP, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
53 m_bSizerLayerList->Add( m_staticlineSep, 0, wxEXPAND | wxALL, 5 );
55 m_flexRightColumnBoxSizer =
new wxFlexGridSizer( 16, 4, 0, 0 );
56 m_flexRightColumnBoxSizer->AddGrowableCol( 0 );
57 m_flexRightColumnBoxSizer->AddGrowableCol( 1 );
58 m_flexRightColumnBoxSizer->AddGrowableCol( 2 );
59 m_flexRightColumnBoxSizer->AddGrowableCol( 3 );
60 m_flexRightColumnBoxSizer->SetFlexibleDirection( wxBOTH );
61 m_flexRightColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
64 m_bSizerLayerList->Add( m_flexRightColumnBoxSizer, 1, wxEXPAND, 5 );
67 bSizerLayerSelection->Add( m_bSizerLayerList, 1, wxEXPAND, 5 );
70 sbUpperSizer->Add( bSizerLayerSelection, 1, wxEXPAND, 5 );
72 wxBoxSizer* bRightSizer;
73 bRightSizer =
new wxBoxSizer( wxVERTICAL );
75 wxBoxSizer* bSizerLyrCnt;
76 bSizerLyrCnt =
new wxBoxSizer( wxVERTICAL );
79 m_staticTextCopperlayerCount->Wrap( -1 );
80 bSizerLyrCnt->Add( m_staticTextCopperlayerCount, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
82 m_comboCopperLayersCount =
new wxComboBox(
this,
ID_M_COMBOCOPPERLAYERSCOUNT,
_(
"2 Layers"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
83 m_comboCopperLayersCount->Append(
_(
"2 Layers") );
84 m_comboCopperLayersCount->Append(
_(
"4 Layers") );
85 m_comboCopperLayersCount->Append(
_(
"6 Layers") );
86 m_comboCopperLayersCount->Append(
_(
"8 Layers") );
87 m_comboCopperLayersCount->Append(
_(
"10 Layers") );
88 m_comboCopperLayersCount->Append(
_(
"12 Layers") );
89 m_comboCopperLayersCount->Append(
_(
"14 Layers") );
90 m_comboCopperLayersCount->Append(
_(
"16 Layers") );
91 m_comboCopperLayersCount->Append(
_(
"18 Layers") );
92 m_comboCopperLayersCount->Append(
_(
"20 Layers") );
93 m_comboCopperLayersCount->Append(
_(
"22 Layers") );
94 m_comboCopperLayersCount->Append(
_(
"24 Layers") );
95 m_comboCopperLayersCount->Append(
_(
"26 Layers") );
96 m_comboCopperLayersCount->Append(
_(
"28 Layers") );
97 m_comboCopperLayersCount->Append(
_(
"30 Layers") );
98 m_comboCopperLayersCount->Append(
_(
"32 Layers") );
99 bSizerLyrCnt->Add( m_comboCopperLayersCount, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
102 bRightSizer->Add( bSizerLyrCnt, 0, wxEXPAND, 5 );
105 bRightSizer->Add( 5, 15, 1, wxEXPAND, 5 );
107 wxBoxSizer* bSizerButtons;
108 bSizerButtons =
new wxBoxSizer( wxVERTICAL );
110 m_buttonStore =
new wxButton(
this,
ID_STORE_CHOICE,
_(
"Store Choice"), wxDefaultPosition, wxDefaultSize, 0 );
111 bSizerButtons->Add( m_buttonStore, 0, wxALL|wxEXPAND, 5 );
113 m_buttonRetrieve =
new wxButton(
this,
ID_GET_PREVIOUS_CHOICE,
_(
"Get Stored Choice"), wxDefaultPosition, wxDefaultSize, 0 );
114 bSizerButtons->Add( m_buttonRetrieve, 0, wxALL|wxEXPAND, 5 );
116 m_buttonReset =
new wxButton(
this,
ID_RESET_CHOICE,
_(
"Reset"), wxDefaultPosition, wxDefaultSize, 0 );
117 bSizerButtons->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 );
120 bRightSizer->Add( bSizerButtons, 0, wxEXPAND, 5 );
123 sbUpperSizer->Add( bRightSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
126 bSizerMain->Add( sbUpperSizer, 1, wxEXPAND|wxALL, 5 );
128 m_sdbSizerButtons =
new wxStdDialogButtonSizer();
129 m_sdbSizerButtonsOK =
new wxButton(
this, wxID_OK );
130 m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
131 m_sdbSizerButtonsCancel =
new wxButton(
this, wxID_CANCEL );
132 m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
133 m_sdbSizerButtons->Realize();
135 bSizerMain->Add( m_sdbSizerButtons, 0, wxALL|wxEXPAND, 5 );
138 this->SetSizer( bSizerMain );
140 bSizerMain->Fit(
this );
142 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Class LAYERS_MAP_DIALOG_BASE.
void _wxFB_OnStoreSetup(wxCommandEvent &event)
void _wxFB_OnGetSetup(wxCommandEvent &event)
~LAYERS_MAP_DIALOG_BASE()
void _wxFB_OnResetClick(wxCommandEvent &event)
void _wxFB_OnBrdLayersCountSelection(wxCommandEvent &event)
#define ID_M_STATICLINESEP
#define ID_M_COMBOCOPPERLAYERSCOUNT
#define ID_M_STATICTEXTCOPPERLAYERCOUNT
#define ID_GET_PREVIOUS_CHOICE