KiCad PCB EDA Suite
dialog_layers_select_to_pcb_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c5)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12BEGIN_EVENT_TABLE( LAYERS_MAP_DIALOG_BASE, DIALOG_SHIM )
17END_EVENT_TABLE()
18
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 )
20{
21 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
22
23 wxBoxSizer* bSizerMain;
24 bSizerMain = new wxBoxSizer( wxVERTICAL );
25
26 wxBoxSizer* sbUpperSizer;
27 sbUpperSizer = new wxBoxSizer( wxHORIZONTAL );
28
29 wxBoxSizer* bSizerLayerSelection;
30 bSizerLayerSelection = new wxBoxSizer( wxVERTICAL );
31
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 );
35
36 m_bSizerLayerList = new wxBoxSizer( wxHORIZONTAL );
37
38
39 m_bSizerLayerList->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
40
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 );
48
49
50 m_bSizerLayerList->Add( m_flexLeftColumnBoxSizer, 1, wxEXPAND, 5 );
51
52 m_staticlineSep = new wxStaticLine( this, ID_M_STATICLINESEP, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
53 m_bSizerLayerList->Add( m_staticlineSep, 0, wxEXPAND | wxALL, 5 );
54
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 );
62
63
64 m_bSizerLayerList->Add( m_flexRightColumnBoxSizer, 1, wxEXPAND, 5 );
65
66
67 bSizerLayerSelection->Add( m_bSizerLayerList, 1, wxEXPAND, 5 );
68
69
70 sbUpperSizer->Add( bSizerLayerSelection, 1, wxEXPAND, 5 );
71
72 wxBoxSizer* bRightSizer;
73 bRightSizer = new wxBoxSizer( wxVERTICAL );
74
75 wxBoxSizer* bSizerLyrCnt;
76 bSizerLyrCnt = new wxBoxSizer( wxVERTICAL );
77
78 m_staticTextCopperlayerCount = new wxStaticText( this, ID_M_STATICTEXTCOPPERLAYERCOUNT, _("Copper layers count:"), wxDefaultPosition, wxDefaultSize, 0 );
79 m_staticTextCopperlayerCount->Wrap( -1 );
80 bSizerLyrCnt->Add( m_staticTextCopperlayerCount, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
81
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 );
100
101
102 bRightSizer->Add( bSizerLyrCnt, 0, wxEXPAND, 5 );
103
104
105 bRightSizer->Add( 5, 15, 1, wxEXPAND, 5 );
106
107 wxBoxSizer* bSizerButtons;
108 bSizerButtons = new wxBoxSizer( wxVERTICAL );
109
110 m_buttonStore = new wxButton( this, ID_STORE_CHOICE, _("Store Choice"), wxDefaultPosition, wxDefaultSize, 0 );
111 bSizerButtons->Add( m_buttonStore, 0, wxALL|wxEXPAND, 5 );
112
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 );
115
116 m_buttonReset = new wxButton( this, ID_RESET_CHOICE, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
117 bSizerButtons->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 );
118
119
120 bRightSizer->Add( bSizerButtons, 0, wxEXPAND, 5 );
121
122
123 sbUpperSizer->Add( bRightSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
124
125
126 bSizerMain->Add( sbUpperSizer, 1, wxEXPAND|wxALL, 5 );
127
128 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
129 bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
130
131 m_sdbSizerButtons = new wxStdDialogButtonSizer();
132 m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
133 m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
134 m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
135 m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
136 m_sdbSizerButtons->Realize();
137
138 bSizerMain->Add( m_sdbSizerButtons, 0, wxALL|wxEXPAND, 5 );
139
140
141 this->SetSizer( bSizerMain );
142 this->Layout();
143 bSizerMain->Fit( this );
144
145 this->Centre( wxBOTH );
146}
147
149{
150}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
Class LAYERS_MAP_DIALOG_BASE.
void _wxFB_OnStoreSetup(wxCommandEvent &event)
void _wxFB_OnGetSetup(wxCommandEvent &event)
void _wxFB_OnResetClick(wxCommandEvent &event)
void _wxFB_OnBrdLayersCountSelection(wxCommandEvent &event)
#define ID_M_STATICLINESEP
#define ID_RESET_CHOICE
#define ID_M_COMBOCOPPERLAYERSCOUNT
#define ID_M_STATICTEXTCOPPERLAYERCOUNT
#define ID_GET_PREVIOUS_CHOICE
#define ID_STORE_CHOICE
#define _(s)