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