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 May 6 2016)
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  sbSizerLayersTable = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Layers selection:") ), wxHORIZONTAL );
31 
32  m_flexLeftColumnBoxSizer = new wxFlexGridSizer( 16, 4, 0, 0 );
33  m_flexLeftColumnBoxSizer->AddGrowableCol( 0 );
34  m_flexLeftColumnBoxSizer->AddGrowableCol( 1 );
35  m_flexLeftColumnBoxSizer->AddGrowableCol( 2 );
36  m_flexLeftColumnBoxSizer->AddGrowableCol( 3 );
37  m_flexLeftColumnBoxSizer->SetFlexibleDirection( wxBOTH );
38  m_flexLeftColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
39 
40 
41  sbSizerLayersTable->Add( m_flexLeftColumnBoxSizer, 1, wxEXPAND, 5 );
42 
43  m_staticlineSep = new wxStaticLine( sbSizerLayersTable->GetStaticBox(), ID_M_STATICLINESEP, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
44  sbSizerLayersTable->Add( m_staticlineSep, 0, wxEXPAND | wxALL, 5 );
45 
46 
47  sbUpperSizer->Add( sbSizerLayersTable, 1, wxEXPAND, 5 );
48 
49  wxBoxSizer* bRightSizer;
50  bRightSizer = new wxBoxSizer( wxVERTICAL );
51 
52  wxBoxSizer* bSizerLyrCnt;
53  bSizerLyrCnt = new wxBoxSizer( wxVERTICAL );
54 
55  m_staticTextCopperlayerCount = new wxStaticText( this, ID_M_STATICTEXTCOPPERLAYERCOUNT, _("Copper layers count:"), wxDefaultPosition, wxDefaultSize, 0 );
56  m_staticTextCopperlayerCount->Wrap( -1 );
57  bSizerLyrCnt->Add( m_staticTextCopperlayerCount, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
58 
59  m_comboCopperLayersCount = new wxComboBox( this, ID_M_COMBOCOPPERLAYERSCOUNT, _("2 Layers"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
60  m_comboCopperLayersCount->Append( _("2 Layers") );
61  m_comboCopperLayersCount->Append( _("4 Layers") );
62  m_comboCopperLayersCount->Append( _("6 Layers") );
63  m_comboCopperLayersCount->Append( _("8 Layers") );
64  m_comboCopperLayersCount->Append( _("10 Layers") );
65  m_comboCopperLayersCount->Append( _("12 Layers") );
66  m_comboCopperLayersCount->Append( _("14 Layers") );
67  m_comboCopperLayersCount->Append( _("16 Layers") );
68  bSizerLyrCnt->Add( m_comboCopperLayersCount, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
69 
70 
71  bRightSizer->Add( bSizerLyrCnt, 0, wxEXPAND, 5 );
72 
73 
74  bRightSizer->Add( 5, 15, 1, wxEXPAND, 5 );
75 
76  wxBoxSizer* bSizerButtons;
77  bSizerButtons = new wxBoxSizer( wxVERTICAL );
78 
79  m_buttonStore = new wxButton( this, ID_STORE_CHOICE, _("Store Choice"), wxDefaultPosition, wxDefaultSize, 0 );
80  bSizerButtons->Add( m_buttonStore, 0, wxALL|wxEXPAND, 5 );
81 
82  m_buttonRetrieve = new wxButton( this, ID_GET_PREVIOUS_CHOICE, _("Get Stored Choice"), wxDefaultPosition, wxDefaultSize, 0 );
83  bSizerButtons->Add( m_buttonRetrieve, 0, wxALL|wxEXPAND, 5 );
84 
85  m_buttonReset = new wxButton( this, ID_RESET_CHOICE, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
86  bSizerButtons->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 );
87 
88 
89  bRightSizer->Add( bSizerButtons, 0, wxEXPAND, 5 );
90 
91 
92  sbUpperSizer->Add( bRightSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
93 
94 
95  bSizerMain->Add( sbUpperSizer, 1, wxEXPAND, 5 );
96 
97  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
98  bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
99 
100  m_sdbSizerButtons = new wxStdDialogButtonSizer();
101  m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
102  m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
103  m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
104  m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
105  m_sdbSizerButtons->Realize();
106 
107  bSizerMain->Add( m_sdbSizerButtons, 0, wxALIGN_RIGHT|wxALL, 5 );
108 
109 
110  this->SetSizer( bSizerMain );
111  this->Layout();
112 
113  this->Centre( wxBOTH );
114 }
115 
117 {
118 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
GERBVIEW_FRAME::OnZipFileHistory GERBVIEW_FRAME::Process_Config EDA_BASE_FRAME::OnSelectPreferredEditor EVT_COMBOBOX(ID_TOOLBARH_GERBVIEW_SELECT_ACTIVE_LAYER, GERBVIEW_FRAME::OnSelectActiveLayer) EVT_MENU_RANGE(ID_POPUP_GENERAL_START_RANGE
Class LAYERS_MAP_DIALOG_BASE.