KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_map_gerber_layers_to_pcb_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13{
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* sbUpperSizer;
20 sbUpperSizer = new wxBoxSizer( wxHORIZONTAL );
21
22 wxBoxSizer* bSizerLayerSelection;
23 bSizerLayerSelection = new wxBoxSizer( wxVERTICAL );
24
25 m_staticTextLayerSel = new wxStaticText( this, wxID_ANY, _("Layer selection:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_staticTextLayerSel->Wrap( -1 );
27 bSizerLayerSelection->Add( m_staticTextLayerSel, 0, wxALL, 5 );
28
29 m_bSizerLayerList = new wxBoxSizer( wxHORIZONTAL );
30
31
32 m_bSizerLayerList->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
33
34 m_flexLeftColumnBoxSizer = new wxFlexGridSizer( 16, 4, 0, 0 );
35 m_flexLeftColumnBoxSizer->AddGrowableCol( 1 );
36 m_flexLeftColumnBoxSizer->SetFlexibleDirection( wxBOTH );
37 m_flexLeftColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
38
39
40 m_bSizerLayerList->Add( m_flexLeftColumnBoxSizer, 1, wxEXPAND, 5 );
41
42 m_staticlineSep = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
43 m_bSizerLayerList->Add( m_staticlineSep, 0, wxEXPAND | wxALL, 5 );
44
45 m_flexRightColumnBoxSizer = new wxFlexGridSizer( 16, 4, 0, 0 );
46 m_flexRightColumnBoxSizer->AddGrowableCol( 1 );
47 m_flexRightColumnBoxSizer->SetFlexibleDirection( wxBOTH );
48 m_flexRightColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
49
50
51 m_bSizerLayerList->Add( m_flexRightColumnBoxSizer, 1, wxEXPAND, 5 );
52
53
54 bSizerLayerSelection->Add( m_bSizerLayerList, 1, wxEXPAND, 5 );
55
56
57 sbUpperSizer->Add( bSizerLayerSelection, 1, wxEXPAND|wxRIGHT, 5 );
58
59 wxBoxSizer* bRightSizer;
60 bRightSizer = new wxBoxSizer( wxVERTICAL );
61
62 wxBoxSizer* bSizerLyrCnt;
63 bSizerLyrCnt = new wxBoxSizer( wxVERTICAL );
64
65 m_staticTextCopperlayerCount = new wxStaticText( this, wxID_ANY, _("Copper layers count:"), wxDefaultPosition, wxDefaultSize, 0 );
67 bSizerLyrCnt->Add( m_staticTextCopperlayerCount, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
68
69 m_comboCopperLayersCount = new wxComboBox( this, wxID_ANY, _("2 Layers"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
70 m_comboCopperLayersCount->Append( _("2 Layers") );
71 m_comboCopperLayersCount->Append( _("4 Layers") );
72 m_comboCopperLayersCount->Append( _("6 Layers") );
73 m_comboCopperLayersCount->Append( _("8 Layers") );
74 m_comboCopperLayersCount->Append( _("10 Layers") );
75 m_comboCopperLayersCount->Append( _("12 Layers") );
76 m_comboCopperLayersCount->Append( _("14 Layers") );
77 m_comboCopperLayersCount->Append( _("16 Layers") );
78 m_comboCopperLayersCount->Append( _("18 Layers") );
79 m_comboCopperLayersCount->Append( _("20 Layers") );
80 m_comboCopperLayersCount->Append( _("22 Layers") );
81 m_comboCopperLayersCount->Append( _("24 Layers") );
82 m_comboCopperLayersCount->Append( _("26 Layers") );
83 m_comboCopperLayersCount->Append( _("28 Layers") );
84 m_comboCopperLayersCount->Append( _("30 Layers") );
85 m_comboCopperLayersCount->Append( _("32 Layers") );
86 bSizerLyrCnt->Add( m_comboCopperLayersCount, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
87
88
89 bRightSizer->Add( bSizerLyrCnt, 0, wxEXPAND, 5 );
90
91
92 bRightSizer->Add( 5, 15, 1, wxEXPAND, 5 );
93
94 wxBoxSizer* bSizerButtons;
95 bSizerButtons = new wxBoxSizer( wxVERTICAL );
96
97 m_buttonStore = new wxButton( this, wxID_ANY, _("Store Choice"), wxDefaultPosition, wxDefaultSize, 0 );
98 bSizerButtons->Add( m_buttonStore, 0, wxALL|wxEXPAND, 5 );
99
100 m_buttonRetrieve = new wxButton( this, wxID_ANY, _("Get Stored Choice"), wxDefaultPosition, wxDefaultSize, 0 );
101 bSizerButtons->Add( m_buttonRetrieve, 0, wxALL|wxEXPAND, 5 );
102
103 m_buttonReset = new wxButton( this, wxID_ANY, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
104 bSizerButtons->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 );
105
106
107 bRightSizer->Add( bSizerButtons, 0, wxEXPAND, 5 );
108
109
110 sbUpperSizer->Add( bRightSizer, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
111
112
113 bSizerMain->Add( sbUpperSizer, 1, wxEXPAND|wxALL, 5 );
114
115 m_sdbSizerButtons = new wxStdDialogButtonSizer();
116 m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
118 m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
120 m_sdbSizerButtons->Realize();
121
122 bSizerMain->Add( m_sdbSizerButtons, 0, wxALL|wxEXPAND, 5 );
123
124
125 this->SetSizer( bSizerMain );
126 this->Layout();
127 bSizerMain->Fit( this );
128
129 this->Centre( wxBOTH );
130
131 // Connect Events
132 m_comboCopperLayersCount->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnBrdLayersCountSelection ), NULL, this );
133 m_buttonStore->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnStoreSetup ), NULL, this );
134 m_buttonRetrieve->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnGetSetup ), NULL, this );
135 m_buttonReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnResetClick ), NULL, this );
136}
137
139{
140 // Disconnect Events
141 m_comboCopperLayersCount->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnBrdLayersCountSelection ), NULL, this );
142 m_buttonStore->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnStoreSetup ), NULL, this );
143 m_buttonRetrieve->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnGetSetup ), NULL, this );
144 m_buttonReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE::OnResetClick ), NULL, this );
145
146}
DIALOG_MAP_GERBER_LAYERS_TO_PCB_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Layer Selection"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnBrdLayersCountSelection(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:61
#define _(s)