KiCad PCB EDA Suite
dialog_eeschema_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jan 2 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 BEGIN_EVENT_TABLE( DIALOG_EESCHEMA_OPTIONS_BASE, DIALOG_SHIM )
13  EVT_SIZE( DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnSize )
14  EVT_SCROLL( DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnScaleSlider )
15  EVT_CHECKBOX( wxID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnScaleAuto )
16  EVT_CHOICE( wxID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnChooseUnits )
17  EVT_BUTTON( wxID_ADD_FIELD, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnAddButtonClick )
18  EVT_BUTTON( wxID_DELETE_FIELD, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnDeleteButtonClick )
19 END_EVENT_TABLE()
20 
21 DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
22 {
23  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
24 
25  wxBoxSizer* mainSizer;
26  mainSizer = new wxBoxSizer( wxVERTICAL );
27 
28  wxBoxSizer* bOptionsSizer;
29  bOptionsSizer = new wxBoxSizer( wxVERTICAL );
30 
31  m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
32  m_panel5 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
33  wxBoxSizer* bSizer82;
34  bSizer82 = new wxBoxSizer( wxVERTICAL );
35 
36  wxFlexGridSizer* fgSizer32;
37  fgSizer32 = new wxFlexGridSizer( 0, 3, 0, 0 );
38  fgSizer32->AddGrowableCol( 0 );
39  fgSizer32->AddGrowableCol( 1 );
40  fgSizer32->AddGrowableCol( 2 );
41  fgSizer32->SetFlexibleDirection( wxBOTH );
42  fgSizer32->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
43 
44  m_staticText3 = new wxStaticText( m_panel5, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 );
45  m_staticText3->Wrap( -1 );
46  fgSizer32->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
47 
48  wxArrayString m_choiceGridSizeChoices;
49  m_choiceGridSize = new wxChoice( m_panel5, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeChoices, 0 );
50  m_choiceGridSize->SetSelection( 0 );
51  fgSizer32->Add( m_choiceGridSize, 0, wxEXPAND|wxALL, 3 );
52 
53  m_staticGridUnits = new wxStaticText( m_panel5, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
54  m_staticGridUnits->Wrap( -1 );
55  fgSizer32->Add( m_staticGridUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
56 
57  m_staticText51 = new wxStaticText( m_panel5, wxID_ANY, _("&Bus thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
58  m_staticText51->Wrap( -1 );
59  fgSizer32->Add( m_staticText51, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
60 
61  m_spinBusWidth = new wxSpinCtrl( m_panel5, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 );
62  fgSizer32->Add( m_spinBusWidth, 0, wxALL|wxEXPAND, 3 );
63 
64  m_staticBusWidthUnits = new wxStaticText( m_panel5, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
65  m_staticBusWidthUnits->Wrap( -1 );
66  fgSizer32->Add( m_staticBusWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
67 
68  m_staticText5 = new wxStaticText( m_panel5, wxID_ANY, _("&Line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
69  m_staticText5->Wrap( -1 );
70  fgSizer32->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
71 
72  m_spinLineWidth = new wxSpinCtrl( m_panel5, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 );
73  fgSizer32->Add( m_spinLineWidth, 0, wxALL|wxEXPAND, 3 );
74 
75  m_staticLineWidthUnits = new wxStaticText( m_panel5, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
76  m_staticLineWidthUnits->Wrap( -1 );
77  fgSizer32->Add( m_staticLineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
78 
79  m_staticText26 = new wxStaticText( m_panel5, wxID_ANY, _("&Part ID notation:"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_staticText26->Wrap( -1 );
81  fgSizer32->Add( m_staticText26, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 3 );
82 
83  wxString m_choiceSeparatorRefIdChoices[] = { _("A"), _(".A"), _("-A"), _("_A"), _(".1"), _("-1"), _("_1") };
84  int m_choiceSeparatorRefIdNChoices = sizeof( m_choiceSeparatorRefIdChoices ) / sizeof( wxString );
85  m_choiceSeparatorRefId = new wxChoice( m_panel5, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSeparatorRefIdNChoices, m_choiceSeparatorRefIdChoices, 0 );
86  m_choiceSeparatorRefId->SetSelection( 0 );
87  fgSizer32->Add( m_choiceSeparatorRefId, 0, wxALL|wxEXPAND, 3 );
88 
89 
90  fgSizer32->Add( 0, 0, 1, wxEXPAND, 5 );
91 
92  m_stIconScale = new wxStaticText( m_panel5, wxID_ANY, _("Icon scale:"), wxDefaultPosition, wxDefaultSize, 0 );
93  m_stIconScale->Wrap( -1 );
94  fgSizer32->Add( m_stIconScale, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
95 
96  m_scaleSlider = new STEPPED_SLIDER( m_panel5, wxID_ANY, 50, 50, 275, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
97  fgSizer32->Add( m_scaleSlider, 0, wxALL|wxEXPAND, 3 );
98 
99  m_staticText211 = new wxStaticText( m_panel5, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
100  m_staticText211->Wrap( -1 );
101  fgSizer32->Add( m_staticText211, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
102 
103 
104  fgSizer32->Add( 0, 0, 1, wxEXPAND, 5 );
105 
106  m_scaleAuto = new wxCheckBox( m_panel5, wxID_ANY, _("Auto"), wxDefaultPosition, wxDefaultSize, 0 );
107  fgSizer32->Add( m_scaleAuto, 0, wxALL|wxEXPAND, 3 );
108 
109 
110  fgSizer32->Add( 0, 0, 1, wxEXPAND, 5 );
111 
112 
113  bSizer82->Add( fgSizer32, 0, wxALL|wxEXPAND, 5 );
114 
115  wxBoxSizer* bSizer92;
116  bSizer92 = new wxBoxSizer( wxVERTICAL );
117 
118  m_staticline3 = new wxStaticLine( m_panel5, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
119  bSizer92->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
120 
121  m_checkShowGrid = new wxCheckBox( m_panel5, wxID_ANY, _("&Show grid"), wxDefaultPosition, wxDefaultSize, 0 );
122  bSizer92->Add( m_checkShowGrid, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
123 
124  m_checkHVOrientation = new wxCheckBox( m_panel5, wxID_ANY, _("&Restrict buses and wires to H and V orientation"), wxDefaultPosition, wxDefaultSize, 0 );
125  bSizer92->Add( m_checkHVOrientation, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
126 
127  m_checkShowHiddenPins = new wxCheckBox( m_panel5, wxID_ANY, _("S&how hidden pins"), wxDefaultPosition, wxDefaultSize, 0 );
128  bSizer92->Add( m_checkShowHiddenPins, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
129 
130  m_checkPageLimits = new wxCheckBox( m_panel5, wxID_ANY, _("Show page limi&ts"), wxDefaultPosition, wxDefaultSize, 0 );
131  m_checkPageLimits->SetValue(true);
132  bSizer92->Add( m_checkPageLimits, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
133 
134  m_footprintPreview = new wxCheckBox( m_panel5, wxID_ANY, _("Footprint previews in symbol chooser (experimental)"), wxDefaultPosition, wxDefaultSize, 0 );
135  bSizer92->Add( m_footprintPreview, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 3 );
136 
137 
138  bSizer82->Add( bSizer92, 0, wxALL|wxEXPAND, 5 );
139 
140 
141  m_panel5->SetSizer( bSizer82 );
142  m_panel5->Layout();
143  bSizer82->Fit( m_panel5 );
144  m_notebook->AddPage( m_panel5, _("Display"), true );
145  m_panel3 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
146  wxBoxSizer* bSizer8;
147  bSizer8 = new wxBoxSizer( wxVERTICAL );
148 
149  wxFlexGridSizer* fgSizer3;
150  fgSizer3 = new wxFlexGridSizer( 0, 3, 0, 0 );
151  fgSizer3->AddGrowableCol( 0 );
152  fgSizer3->AddGrowableCol( 1 );
153  fgSizer3->AddGrowableCol( 2 );
154  fgSizer3->SetFlexibleDirection( wxBOTH );
155  fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
156 
157  m_staticText2 = new wxStaticText( m_panel3, wxID_ANY, _("&Measurement units:"), wxDefaultPosition, wxDefaultSize, 0 );
158  m_staticText2->Wrap( -1 );
159  fgSizer3->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
160 
161  wxArrayString m_choiceUnitsChoices;
162  m_choiceUnits = new wxChoice( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsChoices, 0 );
163  m_choiceUnits->SetSelection( 0 );
164  fgSizer3->Add( m_choiceUnits, 0, wxALL|wxEXPAND, 3 );
165 
166 
167  fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
168 
169  m_staticTextHpitch = new wxStaticText( m_panel3, wxID_ANY, _("&Horizontal pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
170  m_staticTextHpitch->Wrap( -1 );
171  fgSizer3->Add( m_staticTextHpitch, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
172 
173  m_spinRepeatHorizontal = new wxSpinCtrl( m_panel3, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 0 );
174  fgSizer3->Add( m_spinRepeatHorizontal, 0, wxALL|wxEXPAND, 3 );
175 
176  m_staticRepeatXUnits = new wxStaticText( m_panel3, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
177  m_staticRepeatXUnits->Wrap( -1 );
178  fgSizer3->Add( m_staticRepeatXUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
179 
180  m_staticTextVpitch = new wxStaticText( m_panel3, wxID_ANY, _("&Vertical pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
181  m_staticTextVpitch->Wrap( -1 );
182  fgSizer3->Add( m_staticTextVpitch, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
183 
184  m_spinRepeatVertical = new wxSpinCtrl( m_panel3, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 100 );
185  fgSizer3->Add( m_spinRepeatVertical, 0, wxALL|wxEXPAND, 3 );
186 
187  m_staticRepeatYUnits = new wxStaticText( m_panel3, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
188  m_staticRepeatYUnits->Wrap( -1 );
189  fgSizer3->Add( m_staticRepeatYUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
190 
191  m_staticText16 = new wxStaticText( m_panel3, wxID_ANY, _("&Increment of repeated labels:"), wxDefaultPosition, wxDefaultSize, 0 );
192  m_staticText16->Wrap( -1 );
193  fgSizer3->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
194 
195  m_spinRepeatLabel = new wxSpinCtrl( m_panel3, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -10, 10, 1 );
196  fgSizer3->Add( m_spinRepeatLabel, 0, wxALL|wxEXPAND, 3 );
197 
198 
199  fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
200 
201  m_staticTextTsize = new wxStaticText( m_panel3, wxID_ANY, _("Def&ault text size:"), wxDefaultPosition, wxDefaultSize, 0 );
202  m_staticTextTsize->Wrap( -1 );
203  fgSizer3->Add( m_staticTextTsize, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
204 
205  m_spinTextSize = new wxSpinCtrl( m_panel3, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 1000, 0 );
206  fgSizer3->Add( m_spinTextSize, 0, wxALL|wxEXPAND, 3 );
207 
208  m_staticTextSizeUnits = new wxStaticText( m_panel3, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
209  m_staticTextSizeUnits->Wrap( -1 );
210  fgSizer3->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
211 
212  m_staticTextTimeInterval = new wxStaticText( m_panel3, wxID_ANY, _("&Auto-save time interval"), wxDefaultPosition, wxDefaultSize, 0 );
213  m_staticTextTimeInterval->Wrap( -1 );
214  fgSizer3->Add( m_staticTextTimeInterval, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
215 
216  m_spinAutoSaveInterval = new wxSpinCtrl( m_panel3, ID_M_SPINAUTOSAVEINTERVAL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 1000, 10 );
217  m_spinAutoSaveInterval->SetToolTip( _("Delay after the first change to create a backup file of the board on disk.\nIf set to 0, auto backup is disabled") );
218 
219  fgSizer3->Add( m_spinAutoSaveInterval, 0, wxALL|wxEXPAND, 3 );
220 
221  m_staticText23 = new wxStaticText( m_panel3, wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 );
222  m_staticText23->Wrap( -1 );
223  fgSizer3->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
224 
225 
226  bSizer8->Add( fgSizer3, 0, wxALL|wxEXPAND, 5 );
227 
228  wxBoxSizer* bSizer9;
229  bSizer9 = new wxBoxSizer( wxVERTICAL );
230 
231  m_staticline2 = new wxStaticLine( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
232  bSizer9->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
233 
234  m_checkAutoplaceFields = new wxCheckBox( m_panel3, wxID_ANY, _("A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
235  bSizer9->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
236 
237  m_checkAutoplaceJustify = new wxCheckBox( m_panel3, wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
238  bSizer9->Add( m_checkAutoplaceJustify, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
239 
240  m_checkAutoplaceAlign = new wxCheckBox( m_panel3, wxID_ANY, _("Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
241  bSizer9->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
242 
243 
244  bSizer8->Add( bSizer9, 0, wxALL|wxEXPAND, 5 );
245 
246 
247  m_panel3->SetSizer( bSizer8 );
248  m_panel3->Layout();
249  bSizer8->Fit( m_panel3 );
250  m_notebook->AddPage( m_panel3, _("Editing"), false );
251  m_tabControls = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
252  wxBoxSizer* bSizer81;
253  bSizer81 = new wxBoxSizer( wxVERTICAL );
254 
255  wxFlexGridSizer* fgSizer31;
256  fgSizer31 = new wxFlexGridSizer( 0, 3, 0, 0 );
257  fgSizer31->AddGrowableCol( 0 );
258  fgSizer31->AddGrowableCol( 1 );
259  fgSizer31->AddGrowableCol( 2 );
260  fgSizer31->SetFlexibleDirection( wxBOTH );
261  fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
262 
263 
264  bSizer81->Add( fgSizer31, 0, wxALL|wxEXPAND, 5 );
265 
266  m_controlsSizer = new wxBoxSizer( wxVERTICAL );
267 
268  wxBoxSizer* bSizer13;
269  bSizer13 = new wxBoxSizer( wxHORIZONTAL );
270 
271  m_staticText20 = new wxStaticText( m_tabControls, wxID_ANY, _("Hotkeys:"), wxDefaultPosition, wxDefaultSize, 0 );
272  m_staticText20->Wrap( -1 );
273  bSizer13->Add( m_staticText20, 1, wxALL, 5 );
274 
275  m_staticText21 = new wxStaticText( m_tabControls, wxID_ANY, _("Double-click to edit"), wxDefaultPosition, wxDefaultSize, 0 );
276  m_staticText21->Wrap( -1 );
277  bSizer13->Add( m_staticText21, 0, wxALL, 5 );
278 
279 
280  m_controlsSizer->Add( bSizer13, 0, wxEXPAND, 5 );
281 
282  m_panelHotkeys = new wxPanel( m_tabControls, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
283  m_controlsSizer->Add( m_panelHotkeys, 1, wxEXPAND | wxALL, 5 );
284 
285  m_checkEnableZoomCenter = new wxCheckBox( m_tabControls, wxID_ANY, _("Cen&ter and warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
286  m_checkEnableZoomCenter->SetToolTip( _("Keep the cursor at its current location when zooming") );
287 
288  m_controlsSizer->Add( m_checkEnableZoomCenter, 0, wxTOP|wxRIGHT|wxLEFT, 3 );
289 
290  m_checkEnableMousewheelPan = new wxCheckBox( m_tabControls, xwID_ANY, _("Use touchpa&d to pan"), wxDefaultPosition, wxDefaultSize, 0 );
291  m_checkEnableMousewheelPan->SetToolTip( _("Use touchpad to pan canvas") );
292 
293  m_controlsSizer->Add( m_checkEnableMousewheelPan, 0, wxLEFT|wxRIGHT|wxTOP, 3 );
294 
295  m_checkAutoPan = new wxCheckBox( m_tabControls, wxID_ANY, _("&Pan while moving object"), wxDefaultPosition, wxDefaultSize, 0 );
296  m_controlsSizer->Add( m_checkAutoPan, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
297 
298 
299  bSizer81->Add( m_controlsSizer, 1, wxALL|wxEXPAND, 5 );
300 
301 
302  m_tabControls->SetSizer( bSizer81 );
303  m_tabControls->Layout();
304  bSizer81->Fit( m_tabControls );
305  m_notebook->AddPage( m_tabControls, _("Controls"), false );
306  m_tabColors = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
307  wxBoxSizer* bSizer14;
308  bSizer14 = new wxBoxSizer( wxVERTICAL );
309 
310  m_panelColors = new wxPanel( m_tabColors, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
311  bSizer14->Add( m_panelColors, 1, wxEXPAND | wxALL, 5 );
312 
313 
314  m_tabColors->SetSizer( bSizer14 );
315  m_tabColors->Layout();
316  bSizer14->Fit( m_tabColors );
317  m_notebook->AddPage( m_tabColors, _("Colors"), false );
318  m_panel2 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
319  m_panel2->SetToolTip( _("User defined field names for schematic components. ") );
320 
321  wxBoxSizer* bSizer6;
322  bSizer6 = new wxBoxSizer( wxHORIZONTAL );
323 
324  wxBoxSizer* bSizer11;
325  bSizer11 = new wxBoxSizer( wxVERTICAL );
326 
327  m_fieldGrid = new wxGrid( m_panel2, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
328 
329  // Grid
330  m_fieldGrid->CreateGrid( 0, 3 );
331  m_fieldGrid->EnableEditing( true );
332  m_fieldGrid->EnableGridLines( true );
333  m_fieldGrid->EnableDragGridSize( false );
334  m_fieldGrid->SetMargins( 0, 0 );
335 
336  // Columns
337  m_fieldGrid->SetColSize( 0, 150 );
338  m_fieldGrid->SetColSize( 1, 150 );
339  m_fieldGrid->SetColSize( 2, 75 );
340  m_fieldGrid->EnableDragColMove( false );
341  m_fieldGrid->EnableDragColSize( true );
342  m_fieldGrid->SetColLabelSize( 30 );
343  m_fieldGrid->SetColLabelValue( 0, _("Name") );
344  m_fieldGrid->SetColLabelValue( 1, _("Default Value") );
345  m_fieldGrid->SetColLabelValue( 2, _("Visible") );
346  m_fieldGrid->SetColLabelValue( 3, _("Name") );
347  m_fieldGrid->SetColLabelValue( 4, wxEmptyString );
348  m_fieldGrid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
349 
350  // Rows
351  m_fieldGrid->EnableDragRowSize( true );
352  m_fieldGrid->SetRowLabelSize( 80 );
353  m_fieldGrid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
354 
355  // Label Appearance
356 
357  // Cell Defaults
358  m_fieldGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
359  bSizer11->Add( m_fieldGrid, 1, wxALL|wxEXPAND, 5 );
360 
361 
362  bSizer6->Add( bSizer11, 1, wxEXPAND, 5 );
363 
364  wxBoxSizer* bSizer10;
365  bSizer10 = new wxBoxSizer( wxVERTICAL );
366 
367  addFieldButton = new wxButton( m_panel2, wxID_ADD_FIELD, _("&Add"), wxDefaultPosition, wxDefaultSize, 0 );
368  bSizer10->Add( addFieldButton, 0, wxALL|wxEXPAND, 5 );
369 
370  deleteFieldButton = new wxButton( m_panel2, wxID_DELETE_FIELD, _("De&lete"), wxDefaultPosition, wxDefaultSize, 0 );
371  bSizer10->Add( deleteFieldButton, 0, wxALL|wxEXPAND, 5 );
372 
373 
374  bSizer10->Add( 0, 0, 1, wxEXPAND, 5 );
375 
376 
377  bSizer6->Add( bSizer10, 0, wxEXPAND, 5 );
378 
379 
380  m_panel2->SetSizer( bSizer6 );
381  m_panel2->Layout();
382  bSizer6->Fit( m_panel2 );
383  m_notebook->AddPage( m_panel2, _("Default Fields"), false );
384 
385  bOptionsSizer->Add( m_notebook, 1, wxALL|wxEXPAND, 5 );
386 
387  wxBoxSizer* bSizer12;
388  bSizer12 = new wxBoxSizer( wxHORIZONTAL );
389 
390  m_sdbSizer = new wxStdDialogButtonSizer();
391  m_sdbSizerOK = new wxButton( this, wxID_OK );
392  m_sdbSizer->AddButton( m_sdbSizerOK );
393  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
394  m_sdbSizer->AddButton( m_sdbSizerCancel );
395  m_sdbSizer->Realize();
396 
397  bSizer12->Add( m_sdbSizer, 1, wxALL|wxEXPAND, 5 );
398 
399 
400  bOptionsSizer->Add( bSizer12, 0, wxBOTTOM|wxEXPAND, 5 );
401 
402 
403  mainSizer->Add( bOptionsSizer, 1, wxEXPAND, 12 );
404 
405 
406  this->SetSizer( mainSizer );
407  this->Layout();
408  mainSizer->Fit( this );
409 
410  this->Centre( wxBOTH );
411 }
412 
414 {
415 }
EVT_CHECKBOX(ID_CURRENT_FORMAT_IS_DEFAULT, NETLIST_DIALOG::SelectDefaultNetlistType) NETLIST_PAGE_DIALOG
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
Customized wxSlider with forced stepping.
Class DIALOG_EESCHEMA_OPTIONS_BASE.