KiCad PCB EDA Suite
dialog_layers_select_to_pcb_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Aug 4 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 BEGIN_EVENT_TABLE( LAYERS_MAP_DIALOG_BASE, DIALOG_SHIM )
13  EVT_COMBOBOX( ID_M_COMBOCOPPERLAYERSCOUNT, LAYERS_MAP_DIALOG_BASE::_wxFB_OnBrdLayersCountSelection )
14  EVT_BUTTON( ID_STORE_CHOICE, LAYERS_MAP_DIALOG_BASE::_wxFB_OnStoreSetup )
15  EVT_BUTTON( ID_GET_PREVIOUS_CHOICE, LAYERS_MAP_DIALOG_BASE::_wxFB_OnGetSetup )
16  EVT_BUTTON( ID_RESET_CHOICE, LAYERS_MAP_DIALOG_BASE::_wxFB_OnResetClick )
17  EVT_BUTTON( wxID_OK, LAYERS_MAP_DIALOG_BASE::_wxFB_OnOkClick )
18 END_EVENT_TABLE()
19 
20 LAYERS_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 {
22  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
23 
24  wxBoxSizer* bSizerMain;
25  bSizerMain = new wxBoxSizer( wxVERTICAL );
26 
27  wxBoxSizer* sbUpperSizer;
28  sbUpperSizer = new wxBoxSizer( wxHORIZONTAL );
29 
30  wxBoxSizer* bSizerLayerSelection;
31  bSizerLayerSelection = new wxBoxSizer( wxVERTICAL );
32 
33  m_staticTextLayerSel = new wxStaticText( this, wxID_ANY, _("Layer selection:"), wxDefaultPosition, wxDefaultSize, 0 );
34  m_staticTextLayerSel->Wrap( -1 );
35  bSizerLayerSelection->Add( m_staticTextLayerSel, 0, wxALL, 5 );
36 
37  m_bSizerLayerList = new wxBoxSizer( wxHORIZONTAL );
38 
39 
40  m_bSizerLayerList->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
41 
42  m_flexLeftColumnBoxSizer = new wxFlexGridSizer( 16, 4, 0, 0 );
43  m_flexLeftColumnBoxSizer->AddGrowableCol( 0 );
44  m_flexLeftColumnBoxSizer->AddGrowableCol( 1 );
45  m_flexLeftColumnBoxSizer->AddGrowableCol( 2 );
46  m_flexLeftColumnBoxSizer->AddGrowableCol( 3 );
47  m_flexLeftColumnBoxSizer->SetFlexibleDirection( wxBOTH );
48  m_flexLeftColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
49 
50 
51  m_bSizerLayerList->Add( m_flexLeftColumnBoxSizer, 1, wxEXPAND, 5 );
52 
53  m_staticlineSep = new wxStaticLine( this, ID_M_STATICLINESEP, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
54  m_bSizerLayerList->Add( m_staticlineSep, 0, wxEXPAND | wxALL, 5 );
55 
56  m_flexRightColumnBoxSizer = new wxFlexGridSizer( 16, 4, 0, 0 );
57  m_flexRightColumnBoxSizer->AddGrowableCol( 0 );
58  m_flexRightColumnBoxSizer->AddGrowableCol( 1 );
59  m_flexRightColumnBoxSizer->AddGrowableCol( 2 );
60  m_flexRightColumnBoxSizer->AddGrowableCol( 3 );
61  m_flexRightColumnBoxSizer->SetFlexibleDirection( wxBOTH );
62  m_flexRightColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
63 
64 
65  m_bSizerLayerList->Add( m_flexRightColumnBoxSizer, 1, wxEXPAND, 5 );
66 
67 
68  bSizerLayerSelection->Add( m_bSizerLayerList, 1, wxEXPAND, 5 );
69 
70 
71  sbUpperSizer->Add( bSizerLayerSelection, 1, wxEXPAND, 5 );
72 
73  wxBoxSizer* bRightSizer;
74  bRightSizer = new wxBoxSizer( wxVERTICAL );
75 
76  wxBoxSizer* bSizerLyrCnt;
77  bSizerLyrCnt = new wxBoxSizer( wxVERTICAL );
78 
79  m_staticTextCopperlayerCount = new wxStaticText( this, ID_M_STATICTEXTCOPPERLAYERCOUNT, _("Copper layers count:"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_staticTextCopperlayerCount->Wrap( -1 );
81  bSizerLyrCnt->Add( m_staticTextCopperlayerCount, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
82 
83  m_comboCopperLayersCount = new wxComboBox( this, ID_M_COMBOCOPPERLAYERSCOUNT, _("2 Layers"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
84  m_comboCopperLayersCount->Append( _("2 Layers") );
85  m_comboCopperLayersCount->Append( _("4 Layers") );
86  m_comboCopperLayersCount->Append( _("6 Layers") );
87  m_comboCopperLayersCount->Append( _("8 Layers") );
88  m_comboCopperLayersCount->Append( _("10 Layers") );
89  m_comboCopperLayersCount->Append( _("12 Layers") );
90  m_comboCopperLayersCount->Append( _("14 Layers") );
91  m_comboCopperLayersCount->Append( _("16 Layers") );
92  bSizerLyrCnt->Add( m_comboCopperLayersCount, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
93 
94 
95  bRightSizer->Add( bSizerLyrCnt, 0, wxEXPAND, 5 );
96 
97 
98  bRightSizer->Add( 5, 15, 1, wxEXPAND, 5 );
99 
100  wxBoxSizer* bSizerButtons;
101  bSizerButtons = new wxBoxSizer( wxVERTICAL );
102 
103  m_buttonStore = new wxButton( this, ID_STORE_CHOICE, _("Store Choice"), wxDefaultPosition, wxDefaultSize, 0 );
104  bSizerButtons->Add( m_buttonStore, 0, wxALL|wxEXPAND, 5 );
105 
106  m_buttonRetrieve = new wxButton( this, ID_GET_PREVIOUS_CHOICE, _("Get Stored Choice"), wxDefaultPosition, wxDefaultSize, 0 );
107  bSizerButtons->Add( m_buttonRetrieve, 0, wxALL|wxEXPAND, 5 );
108 
109  m_buttonReset = new wxButton( this, ID_RESET_CHOICE, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
110  bSizerButtons->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 );
111 
112 
113  bRightSizer->Add( bSizerButtons, 0, wxEXPAND, 5 );
114 
115 
116  sbUpperSizer->Add( bRightSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
117 
118 
119  bSizerMain->Add( sbUpperSizer, 1, wxEXPAND, 5 );
120 
121  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
122  bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
123 
124  m_sdbSizerButtons = new wxStdDialogButtonSizer();
125  m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
126  m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
127  m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
128  m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
129  m_sdbSizerButtons->Realize();
130 
131  bSizerMain->Add( m_sdbSizerButtons, 0, wxALL|wxEXPAND, 5 );
132 
133 
134  this->SetSizer( bSizerMain );
135  this->Layout();
136 
137  this->Centre( wxBOTH );
138 }
139 
141 {
142 }
#define ID_M_STATICTEXTCOPPERLAYERCOUNT
#define ID_GET_PREVIOUS_CHOICE
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
#define ID_M_COMBOCOPPERLAYERSCOUNT
Class LAYERS_MAP_DIALOG_BASE.
#define ID_M_STATICLINESEP
#define ID_STORE_CHOICE
#define ID_RESET_CHOICE