KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_drill_chart_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15DIALOG_DRILL_CHART_PROPERTIES_BASE::DIALOG_DRILL_CHART_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
16{
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18
19 wxBoxSizer* bMain;
20 bMain = new wxBoxSizer( wxVERTICAL );
21
22 m_infoBar = new WX_INFOBAR( this );
23 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
24 m_infoBar->SetEffectDuration( 500 );
25 bMain->Add( m_infoBar, 0, wxEXPAND, 0 );
26
27 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
28 m_contentsPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
29 wxBoxSizer* bContents;
30 bContents = new wxBoxSizer( wxVERTICAL );
31
32 wxFlexGridSizer* fgContents;
33 fgContents = new wxFlexGridSizer( 0, 2, 5, 5 );
34 fgContents->AddGrowableCol( 1 );
35 fgContents->SetFlexibleDirection( wxBOTH );
36 fgContents->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
37
38 m_layerLabel = new wxStaticText( m_contentsPanel, wxID_ANY, _("Layer:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_layerLabel->Wrap( -1 );
40 fgContents->Add( m_layerLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
41
42 m_LayerSelectionCtrl = new PCB_LAYER_BOX_SELECTOR( m_contentsPanel, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
43 m_LayerSelectionCtrl->SetMinSize( wxSize( 175,-1 ) );
44
45 fgContents->Add( m_LayerSelectionCtrl, 0, wxEXPAND|wxRIGHT, 5 );
46
47 m_unitsLabel = new wxStaticText( m_contentsPanel, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_unitsLabel->Wrap( -1 );
49 fgContents->Add( m_unitsLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
50
51 wxString m_unitsCtrlChoices[] = { _("mm"), _("inch") };
52 int m_unitsCtrlNChoices = sizeof( m_unitsCtrlChoices ) / sizeof( wxString );
53 m_unitsCtrl = new wxChoice( m_contentsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_unitsCtrlNChoices, m_unitsCtrlChoices, 0 );
54 m_unitsCtrl->SetSelection( 0 );
55 fgContents->Add( m_unitsCtrl, 0, wxEXPAND|wxRIGHT, 5 );
56
57 m_precisionLabel = new wxStaticText( m_contentsPanel, wxID_ANY, _("Decimal places:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_precisionLabel->Wrap( -1 );
59 fgContents->Add( m_precisionLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
60
61 m_precisionCtrl = new wxSpinCtrl( m_contentsPanel, wxID_ANY, wxT("3"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 6, 0 );
62 fgContents->Add( m_precisionCtrl, 0, wxRIGHT, 5 );
63
64
65 bContents->Add( fgContents, 0, wxEXPAND|wxALL, 5 );
66
67 wxStaticBoxSizer* sbInclude;
68 sbInclude = new wxStaticBoxSizer( new wxStaticBox( m_contentsPanel, wxID_ANY, _("Include") ), wxVERTICAL );
69
70 wxFlexGridSizer* fgFilter;
71 fgFilter = new wxFlexGridSizer( 0, 3, 5, 5 );
72 fgFilter->SetFlexibleDirection( wxBOTH );
73 fgFilter->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
74
75 m_filterPlated = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Plated holes"), wxDefaultPosition, wxDefaultSize, 0 );
76 m_filterPlated->SetValue(true);
77 fgFilter->Add( m_filterPlated, 0, wxRIGHT, 5 );
78
79 m_filterNonPlated = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Non-plated holes"), wxDefaultPosition, wxDefaultSize, 0 );
80 m_filterNonPlated->SetValue(true);
81 fgFilter->Add( m_filterNonPlated, 0, wxRIGHT, 5 );
82
83 m_filterVias = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
84 m_filterVias->SetValue(true);
85 fgFilter->Add( m_filterVias, 0, wxRIGHT, 5 );
86
87 m_filterSlots = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Slots"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_filterSlots->SetValue(true);
89 fgFilter->Add( m_filterSlots, 0, wxRIGHT, 5 );
90
91 m_filterBackdrills = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Backdrills"), wxDefaultPosition, wxDefaultSize, 0 );
92 m_filterBackdrills->SetValue(true);
93 fgFilter->Add( m_filterBackdrills, 0, wxRIGHT, 5 );
94
95 m_filterCastellated = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Castellated"), wxDefaultPosition, wxDefaultSize, 0 );
96 m_filterCastellated->SetValue(true);
97 fgFilter->Add( m_filterCastellated, 0, wxRIGHT, 5 );
98
99
100 sbInclude->Add( fgFilter, 0, wxEXPAND|wxALL, 5 );
101
102
103 bContents->Add( sbInclude, 0, wxEXPAND|wxALL, 5 );
104
105 m_showTotals = new wxCheckBox( m_contentsPanel, wxID_ANY, _("Show totals row"), wxDefaultPosition, wxDefaultSize, 0 );
106 m_showTotals->SetValue(true);
107 bContents->Add( m_showTotals, 0, wxALL|wxEXPAND, 5 );
108
109 m_cbLocked = new wxCheckBox( m_contentsPanel, wxID_ANY, _("Locked"), wxDefaultPosition, wxDefaultSize, 0 );
110 bContents->Add( m_cbLocked, 0, wxALL|wxEXPAND, 5 );
111
112
113 m_contentsPanel->SetSizer( bContents );
114 m_contentsPanel->Layout();
115 bContents->Fit( m_contentsPanel );
116 m_notebook->AddPage( m_contentsPanel, _("Contents"), false );
117 m_columnsPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
118 wxBoxSizer* bColumns;
119 bColumns = new wxBoxSizer( wxVERTICAL );
120
121 wxBoxSizer* bColumnsTop;
122 bColumnsTop = new wxBoxSizer( wxHORIZONTAL );
123
124 m_columnGrid = new WX_GRID( m_columnsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
125
126 // Grid
127 m_columnGrid->CreateGrid( 0, 5 );
128 m_columnGrid->EnableEditing( true );
129 m_columnGrid->EnableGridLines( true );
130 m_columnGrid->SetGridLineColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVEBORDER ) );
131 m_columnGrid->EnableDragGridSize( false );
132 m_columnGrid->SetMargins( 0, 0 );
133
134 // Columns
135 m_columnGrid->EnableDragColMove( false );
136 m_columnGrid->EnableDragColSize( true );
137 m_columnGrid->SetColLabelSize( 22 );
138 m_columnGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
139
140 // Rows
141 m_columnGrid->EnableDragRowSize( false );
142 m_columnGrid->SetRowLabelSize( 0 );
143 m_columnGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
144
145 // Label Appearance
146
147 // Cell Defaults
148 m_columnGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
149 bColumnsTop->Add( m_columnGrid, 1, wxEXPAND|wxALL, 5 );
150
151 wxBoxSizer* bColButtons;
152 bColButtons = new wxBoxSizer( wxVERTICAL );
153
154 m_moveUpButton = new wxButton( m_columnsPanel, wxID_ANY, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 );
155 bColButtons->Add( m_moveUpButton, 0, wxEXPAND|wxBOTTOM, 5 );
156
157 m_moveDownButton = new wxButton( m_columnsPanel, wxID_ANY, _("Move Down"), wxDefaultPosition, wxDefaultSize, 0 );
158 bColButtons->Add( m_moveDownButton, 0, wxEXPAND|wxBOTTOM, 5 );
159
160 m_resetColumnsButton = new wxButton( m_columnsPanel, wxID_ANY, _("Reset to Default"), wxDefaultPosition, wxDefaultSize, 0 );
161 bColButtons->Add( m_resetColumnsButton, 0, wxEXPAND|wxTOP, 5 );
162
163
164 bColumnsTop->Add( bColButtons, 0, wxALIGN_TOP|wxALL, 5 );
165
166
167 bColumns->Add( bColumnsTop, 1, wxEXPAND, 0 );
168
169 wxBoxSizer* bTemplate;
170 bTemplate = new wxBoxSizer( wxHORIZONTAL );
171
172 m_importTemplateButton = new wxButton( m_columnsPanel, wxID_ANY, _("Import Template..."), wxDefaultPosition, wxDefaultSize, 0 );
173 bTemplate->Add( m_importTemplateButton, 0, wxRIGHT, 5 );
174
175 m_exportTemplateButton = new wxButton( m_columnsPanel, wxID_ANY, _("Export Template..."), wxDefaultPosition, wxDefaultSize, 0 );
176 bTemplate->Add( m_exportTemplateButton, 0, wxRIGHT, 5 );
177
178
179 bColumns->Add( bTemplate, 0, wxEXPAND|wxALL, 5 );
180
181
182 m_columnsPanel->SetSizer( bColumns );
183 m_columnsPanel->Layout();
184 bColumns->Fit( m_columnsPanel );
185 m_notebook->AddPage( m_columnsPanel, _("Columns"), false );
186 m_appearancePanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
187 wxBoxSizer* bAppearance;
188 bAppearance = new wxBoxSizer( wxVERTICAL );
189
190 m_borderCheckbox = new wxCheckBox( m_appearancePanel, wxID_ANY, _("External border"), wxDefaultPosition, wxDefaultSize, 0 );
191 m_borderCheckbox->SetValue(true);
192 bAppearance->Add( m_borderCheckbox, 0, wxALL|wxEXPAND, 5 );
193
194 m_headerBorder = new wxCheckBox( m_appearancePanel, wxID_ANY, _("Header separator"), wxDefaultPosition, wxDefaultSize, 0 );
195 m_headerBorder->SetValue(true);
196 bAppearance->Add( m_headerBorder, 0, wxALL|wxEXPAND, 5 );
197
198 m_rowSeparators = new wxCheckBox( m_appearancePanel, wxID_ANY, _("Row separators"), wxDefaultPosition, wxDefaultSize, 0 );
199 m_rowSeparators->SetValue(true);
200 bAppearance->Add( m_rowSeparators, 0, wxALL|wxEXPAND, 5 );
201
202 m_colSeparators = new wxCheckBox( m_appearancePanel, wxID_ANY, _("Column separators"), wxDefaultPosition, wxDefaultSize, 0 );
203 m_colSeparators->SetValue(true);
204 bAppearance->Add( m_colSeparators, 0, wxALL|wxEXPAND, 5 );
205
206 wxFlexGridSizer* fgAppearance;
207 fgAppearance = new wxFlexGridSizer( 0, 3, 5, 5 );
208 fgAppearance->AddGrowableCol( 1 );
209 fgAppearance->SetFlexibleDirection( wxBOTH );
210 fgAppearance->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
211
212 m_borderWidthLabel = new wxStaticText( m_appearancePanel, wxID_ANY, _("Border width:"), wxDefaultPosition, wxDefaultSize, 0 );
213 m_borderWidthLabel->Wrap( -1 );
214 fgAppearance->Add( m_borderWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
215
216 m_borderWidthCtrl = new wxTextCtrl( m_appearancePanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
217 fgAppearance->Add( m_borderWidthCtrl, 0, wxEXPAND, 5 );
218
219 m_borderWidthUnits = new wxStaticText( m_appearancePanel, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
220 m_borderWidthUnits->Wrap( -1 );
221 fgAppearance->Add( m_borderWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
222
223 m_separatorsWidthLabel = new wxStaticText( m_appearancePanel, wxID_ANY, _("Separator width:"), wxDefaultPosition, wxDefaultSize, 0 );
224 m_separatorsWidthLabel->Wrap( -1 );
225 fgAppearance->Add( m_separatorsWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
226
227 m_separatorsWidthCtrl = new wxTextCtrl( m_appearancePanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
228 fgAppearance->Add( m_separatorsWidthCtrl, 0, wxEXPAND, 5 );
229
230 m_separatorsWidthUnits = new wxStaticText( m_appearancePanel, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
231 m_separatorsWidthUnits->Wrap( -1 );
232 fgAppearance->Add( m_separatorsWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
233
234
235 bAppearance->Add( fgAppearance, 0, wxEXPAND|wxALL, 5 );
236
237
238 m_appearancePanel->SetSizer( bAppearance );
239 m_appearancePanel->Layout();
240 bAppearance->Fit( m_appearancePanel );
241 m_notebook->AddPage( m_appearancePanel, _("Appearance"), false );
242
243 bMain->Add( m_notebook, 1, wxEXPAND|wxALL, 5 );
244
245 m_sdbSizer = new wxStdDialogButtonSizer();
246 m_sdbSizerOK = new wxButton( this, wxID_OK );
247 m_sdbSizer->AddButton( m_sdbSizerOK );
248 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
249 m_sdbSizer->AddButton( m_sdbSizerCancel );
250 m_sdbSizer->Realize();
251
252 bMain->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
253
254
255 this->SetSizer( bMain );
256 this->Layout();
257 bMain->Fit( this );
258
259 this->Centre( wxBOTH );
260
261 // Connect Events
262 m_moveUpButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onMoveUp ), NULL, this );
263 m_moveDownButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onMoveDown ), NULL, this );
264 m_resetColumnsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onResetColumns ), NULL, this );
265 m_importTemplateButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onImportTemplate ), NULL, this );
266 m_exportTemplateButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onExportTemplate ), NULL, this );
267 m_borderCheckbox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onBorderChecked ), NULL, this );
268}
269
271{
272 // Disconnect Events
273 m_moveUpButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onMoveUp ), NULL, this );
274 m_moveDownButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onMoveDown ), NULL, this );
275 m_resetColumnsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onResetColumns ), NULL, this );
276 m_importTemplateButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onImportTemplate ), NULL, this );
277 m_exportTemplateButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onExportTemplate ), NULL, this );
278 m_borderCheckbox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_DRILL_CHART_PROPERTIES_BASE::onBorderChecked ), NULL, this );
279
280}
virtual void onBorderChecked(wxCommandEvent &event)
DIALOG_DRILL_CHART_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Drill Chart Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onExportTemplate(wxCommandEvent &event)
virtual void onResetColumns(wxCommandEvent &event)
virtual void onImportTemplate(wxCommandEvent &event)
virtual void onMoveDown(wxCommandEvent &event)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
Class to display a pcb layer list in a wxBitmapComboBox.
A modified version of the wxInfoBar class that allows us to:
Definition wx_infobar.h:76
#define _(s)