KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_create_array_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf02)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14DIALOG_CREATE_ARRAY_BASE::DIALOG_CREATE_ARRAY_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
15{
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
17
18 wxBoxSizer* bMainSizer;
19 bMainSizer = new wxBoxSizer( wxVERTICAL );
20
21 wxBoxSizer* bSizer7;
22 bSizer7 = new wxBoxSizer( wxHORIZONTAL );
23
24 m_gridTypeNotebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
25 m_gridPanel = new wxPanel( m_gridTypeNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
26 wxBoxSizer* bSizerGridArray;
27 bSizerGridArray = new wxBoxSizer( wxHORIZONTAL );
28
29 wxBoxSizer* bSizerGridLeft;
30 bSizerGridLeft = new wxBoxSizer( wxVERTICAL );
31
32 wxStaticBoxSizer* sbSizerGridSize;
33 sbSizerGridSize = new wxStaticBoxSizer( new wxStaticBox( m_gridPanel, wxID_ANY, _("Grid Array Size") ), wxVERTICAL );
34
35 wxFlexGridSizer* fgSizerGridSize;
36 fgSizerGridSize = new wxFlexGridSizer( 0, 2, 5, 5 );
37 fgSizerGridSize->AddGrowableCol( 1 );
38 fgSizerGridSize->SetFlexibleDirection( wxBOTH );
39 fgSizerGridSize->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
40
41 m_labelNx = new wxStaticText( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("Horizontal count:"), wxDefaultPosition, wxDefaultSize, 0 );
42 m_labelNx->Wrap( -1 );
43 m_labelNx->SetToolTip( _("Number of columns") );
44
45 fgSizerGridSize->Add( m_labelNx, 0, wxALIGN_CENTER_VERTICAL, 5 );
46
47 m_entryNx = new TEXT_CTRL_EVAL( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("5"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_entryNx->SetMinSize( wxSize( 60,-1 ) );
49
50 fgSizerGridSize->Add( m_entryNx, 0, wxEXPAND, 5 );
51
52 m_labelNy = new wxStaticText( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("Vertical count:"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_labelNy->Wrap( -1 );
54 m_labelNy->SetToolTip( _("Number of rows") );
55
56 fgSizerGridSize->Add( m_labelNy, 0, wxALIGN_CENTER_VERTICAL, 5 );
57
58 m_entryNy = new TEXT_CTRL_EVAL( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("5"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_entryNy->SetToolTip( _("Number of rows") );
60 m_entryNy->SetMinSize( wxSize( 60,-1 ) );
61
62 fgSizerGridSize->Add( m_entryNy, 0, wxEXPAND, 5 );
63
64
65 sbSizerGridSize->Add( fgSizerGridSize, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
66
67
68 bSizerGridLeft->Add( sbSizerGridSize, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 10 );
69
70 wxStaticBoxSizer* sbSizerItemsSpacing;
71 sbSizerItemsSpacing = new wxStaticBoxSizer( new wxStaticBox( m_gridPanel, wxID_ANY, _("Items Spacing") ), wxVERTICAL );
72
73 wxFlexGridSizer* fgSizerItemSpacing;
74 fgSizerItemSpacing = new wxFlexGridSizer( 0, 3, 5, 5 );
75 fgSizerItemSpacing->AddGrowableCol( 1 );
76 fgSizerItemSpacing->SetFlexibleDirection( wxBOTH );
77 fgSizerItemSpacing->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
78
79 m_labelDx = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("Horizontal spacing:"), wxDefaultPosition, wxDefaultSize, 0 );
80 m_labelDx->Wrap( -1 );
81 m_labelDx->SetToolTip( _("Distance between columns") );
82
83 fgSizerItemSpacing->Add( m_labelDx, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
84
85 m_entryDx = new wxTextCtrl( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("5"), wxDefaultPosition, wxDefaultSize, 0 );
86 fgSizerItemSpacing->Add( m_entryDx, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
87
88 m_unitLabelDx = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_unitLabelDx->Wrap( -1 );
90 fgSizerItemSpacing->Add( m_unitLabelDx, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
91
92 m_labelDy = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("Vertical spacing:"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_labelDy->Wrap( -1 );
94 m_labelDy->SetToolTip( _("Distance between rows") );
95
96 fgSizerItemSpacing->Add( m_labelDy, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
97
98 m_entryDy = new wxTextCtrl( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("5"), wxDefaultPosition, wxDefaultSize, 0 );
99 fgSizerItemSpacing->Add( m_entryDy, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
100
101 m_unitLabelDy = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
102 m_unitLabelDy->Wrap( -1 );
103 fgSizerItemSpacing->Add( m_unitLabelDy, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
104
105
106 fgSizerItemSpacing->Add( 0, 5, 1, wxEXPAND, 5 );
107
108
109 fgSizerItemSpacing->Add( 0, 0, 1, wxEXPAND, 5 );
110
111
112 fgSizerItemSpacing->Add( 0, 0, 1, wxEXPAND, 5 );
113
114 m_labelOffsetX = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("Horizontal offset:"), wxDefaultPosition, wxDefaultSize, 0 );
115 m_labelOffsetX->Wrap( -1 );
116 m_labelOffsetX->SetToolTip( _("Offset added to the next row position.") );
117
118 fgSizerItemSpacing->Add( m_labelOffsetX, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
119
120 m_entryOffsetX = new wxTextCtrl( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
121 fgSizerItemSpacing->Add( m_entryOffsetX, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
122
123 m_unitLabelOffsetX = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
124 m_unitLabelOffsetX->Wrap( -1 );
125 fgSizerItemSpacing->Add( m_unitLabelOffsetX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
126
127 m_labelOffsetY = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("Vertical offset:"), wxDefaultPosition, wxDefaultSize, 0 );
128 m_labelOffsetY->Wrap( -1 );
129 m_labelOffsetY->SetToolTip( _("Offset added to the next column position") );
130
131 fgSizerItemSpacing->Add( m_labelOffsetY, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
132
133 m_entryOffsetY = new wxTextCtrl( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
134 fgSizerItemSpacing->Add( m_entryOffsetY, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
135
136 m_unitLabelOffsetY = new wxStaticText( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
137 m_unitLabelOffsetY->Wrap( -1 );
138 fgSizerItemSpacing->Add( m_unitLabelOffsetY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
139
140
141 sbSizerItemsSpacing->Add( fgSizerItemSpacing, 1, wxEXPAND|wxBOTTOM, 5 );
142
143
144 bSizerGridLeft->Add( sbSizerItemsSpacing, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
145
146 wxStaticBoxSizer* sbSizerStagger;
147 sbSizerStagger = new wxStaticBoxSizer( new wxStaticBox( m_gridPanel, wxID_ANY, _("Stagger Settings") ), wxVERTICAL );
148
149 wxBoxSizer* bSizerStaggerset;
150 bSizerStaggerset = new wxBoxSizer( wxHORIZONTAL );
151
152 m_labelStagger = new wxStaticText( sbSizerStagger->GetStaticBox(), wxID_ANY, _("Stagger:"), wxDefaultPosition, wxDefaultSize, 0 );
153 m_labelStagger->Wrap( -1 );
154 m_labelStagger->SetToolTip( _("Value -1, 0 or 1 disable this option.") );
155
156 bSizerStaggerset->Add( m_labelStagger, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
157
158 m_entryStagger = new TEXT_CTRL_EVAL( sbSizerStagger->GetStaticBox(), wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
159 bSizerStaggerset->Add( m_entryStagger, 1, wxRIGHT|wxLEFT|wxEXPAND, 5 );
160
161
162 sbSizerStagger->Add( bSizerStaggerset, 1, wxEXPAND, 5 );
163
164 m_staggerRows = new wxRadioButton( sbSizerStagger->GetStaticBox(), wxID_ANY, _("Rows"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
165 sbSizerStagger->Add( m_staggerRows, 0, wxALL, 5 );
166
167 m_staggerCols = new wxRadioButton( sbSizerStagger->GetStaticBox(), wxID_ANY, _("Columns"), wxDefaultPosition, wxDefaultSize, 0 );
168 m_staggerCols->SetValue( true );
169 sbSizerStagger->Add( m_staggerCols, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
170
171
172 bSizerGridLeft->Add( sbSizerStagger, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
173
174
175 bSizerGridArray->Add( bSizerGridLeft, 1, wxEXPAND, 5 );
176
177 m_gridPadNumberingPanel = new wxPanel( m_gridPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
179
180 wxBoxSizer* bSizer15;
181 bSizer15 = new wxBoxSizer( wxVERTICAL );
182
183 m_gridPadNumberingSizer = new wxBoxSizer( wxVERTICAL );
184
185 wxString m_radioBoxGridNumberingAxisChoices[] = { _("Horizontal, then vertical"), _("Vertical, then horizontal") };
186 int m_radioBoxGridNumberingAxisNChoices = sizeof( m_radioBoxGridNumberingAxisChoices ) / sizeof( wxString );
187 m_radioBoxGridNumberingAxis = new wxRadioBox( m_gridPadNumberingPanel, wxID_ANY, _("Numbering Direction"), wxDefaultPosition, wxDefaultSize, m_radioBoxGridNumberingAxisNChoices, m_radioBoxGridNumberingAxisChoices, 1, wxRA_SPECIFY_COLS );
188 m_radioBoxGridNumberingAxis->SetSelection( 0 );
189 m_gridPadNumberingSizer->Add( m_radioBoxGridNumberingAxis, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
190
191 m_checkBoxGridReverseNumbering = new wxCheckBox( m_gridPadNumberingPanel, wxID_ANY, _("Reverse numbering on alternate rows/columns"), wxDefaultPosition, wxDefaultSize, 0 );
193
194 wxString m_rbGridStartNumberingOptChoices[] = { _("Use first free number"), _("From start value") };
195 int m_rbGridStartNumberingOptNChoices = sizeof( m_rbGridStartNumberingOptChoices ) / sizeof( wxString );
196 m_rbGridStartNumberingOpt = new wxRadioBox( m_gridPadNumberingPanel, wxID_ANY, _("Initial Pad Number"), wxDefaultPosition, wxDefaultSize, m_rbGridStartNumberingOptNChoices, m_rbGridStartNumberingOptChoices, 1, wxRA_SPECIFY_COLS );
197 m_rbGridStartNumberingOpt->SetSelection( 1 );
198 m_gridPadNumberingSizer->Add( m_rbGridStartNumberingOpt, 0, wxALL|wxEXPAND, 5 );
199
200 wxString m_radioBoxGridNumberingSchemeChoices[] = { _("Continuous (1, 2, 3...)"), _("Coordinate (A1, A2, ... B1, ...)") };
201 int m_radioBoxGridNumberingSchemeNChoices = sizeof( m_radioBoxGridNumberingSchemeChoices ) / sizeof( wxString );
202 m_radioBoxGridNumberingScheme = new wxRadioBox( m_gridPadNumberingPanel, wxID_ANY, _("Pad Numbering Scheme"), wxDefaultPosition, wxDefaultSize, m_radioBoxGridNumberingSchemeNChoices, m_radioBoxGridNumberingSchemeChoices, 1, wxRA_SPECIFY_COLS );
203 m_radioBoxGridNumberingScheme->SetSelection( 1 );
204 m_gridPadNumberingSizer->Add( m_radioBoxGridNumberingScheme, 0, wxALL|wxEXPAND, 5 );
205
206 m_labelPriAxisNumbering = new wxStaticText( m_gridPadNumberingPanel, wxID_ANY, _("Primary axis numbering:"), wxDefaultPosition, wxDefaultSize, 0 );
207 m_labelPriAxisNumbering->Wrap( -1 );
208 m_gridPadNumberingSizer->Add( m_labelPriAxisNumbering, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
209
210 wxArrayString m_choicePriAxisNumberingChoices;
211 m_choicePriAxisNumbering = new wxChoice( m_gridPadNumberingPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePriAxisNumberingChoices, 0 );
212 m_choicePriAxisNumbering->SetSelection( 0 );
213 m_gridPadNumberingSizer->Add( m_choicePriAxisNumbering, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
214
215 m_labelSecAxisNumbering = new wxStaticText( m_gridPadNumberingPanel, wxID_ANY, _("Secondary axis numbering:"), wxDefaultPosition, wxDefaultSize, 0 );
216 m_labelSecAxisNumbering->Wrap( -1 );
217 m_labelSecAxisNumbering->Enable( false );
218
219 m_gridPadNumberingSizer->Add( m_labelSecAxisNumbering, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
220
221 wxArrayString m_choiceSecAxisNumberingChoices;
222 m_choiceSecAxisNumbering = new wxChoice( m_gridPadNumberingPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSecAxisNumberingChoices, 0 );
223 m_choiceSecAxisNumbering->SetSelection( 0 );
224 m_choiceSecAxisNumbering->Enable( false );
225
226 m_gridPadNumberingSizer->Add( m_choiceSecAxisNumbering, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
227
228 wxFlexGridSizer* fgSizer1;
229 fgSizer1 = new wxFlexGridSizer( 2, 3, 0, 0 );
230 fgSizer1->AddGrowableCol( 0 );
231 fgSizer1->SetFlexibleDirection( wxBOTH );
232 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
233
234 m_labelGridNumberingOffset = new wxStaticText( m_gridPadNumberingPanel, wxID_ANY, _("Pad numbering start:"), wxDefaultPosition, wxDefaultSize, 0 );
235 m_labelGridNumberingOffset->Wrap( -1 );
236 fgSizer1->Add( m_labelGridNumberingOffset, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
237
238 m_entryGridPriNumberingOffset = new wxTextCtrl( m_gridPadNumberingPanel, wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
239 m_entryGridPriNumberingOffset->SetMinSize( wxSize( 72,-1 ) );
240
241 fgSizer1->Add( m_entryGridPriNumberingOffset, 0, wxALL, 5 );
242
243 m_entryGridSecNumberingOffset = new wxTextCtrl( m_gridPadNumberingPanel, wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
244 m_entryGridSecNumberingOffset->SetMinSize( wxSize( 72,-1 ) );
245
246 fgSizer1->Add( m_entryGridSecNumberingOffset, 0, wxALL, 5 );
247
248 m_labelGridNumberingStep = new wxStaticText( m_gridPadNumberingPanel, wxID_ANY, _("Pad numbering increment:"), wxDefaultPosition, wxDefaultSize, 0 );
249 m_labelGridNumberingStep->Wrap( -1 );
250 fgSizer1->Add( m_labelGridNumberingStep, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
251
252 m_entryGridPriNumberingStep = new wxTextCtrl( m_gridPadNumberingPanel, wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
253 m_entryGridPriNumberingStep->SetMinSize( wxSize( 72,-1 ) );
254
255 fgSizer1->Add( m_entryGridPriNumberingStep, 0, wxALL, 5 );
256
257 m_entryGridSecNumberingStep = new wxTextCtrl( m_gridPadNumberingPanel, wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
258 m_entryGridSecNumberingStep->SetMinSize( wxSize( 72,-1 ) );
259
260 fgSizer1->Add( m_entryGridSecNumberingStep, 0, wxALL, 5 );
261
262
263 m_gridPadNumberingSizer->Add( fgSizer1, 0, wxEXPAND, 5 );
264
265
266 bSizer15->Add( m_gridPadNumberingSizer, 1, wxEXPAND|wxLEFT, 10 );
267
268
269 m_gridPadNumberingPanel->SetSizer( bSizer15 );
270 m_gridPadNumberingPanel->Layout();
271 bSizer15->Fit( m_gridPadNumberingPanel );
272 bSizerGridArray->Add( m_gridPadNumberingPanel, 1, wxEXPAND, 5 );
273
274
275 m_gridPanel->SetSizer( bSizerGridArray );
276 m_gridPanel->Layout();
277 bSizerGridArray->Fit( m_gridPanel );
278 m_gridTypeNotebook->AddPage( m_gridPanel, _("Grid Array"), false );
279 m_circularPanel = new wxPanel( m_gridTypeNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
280 wxBoxSizer* bSizer4;
281 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
282
283 wxBoxSizer* bSizerCircLeft;
284 bSizerCircLeft = new wxBoxSizer( wxVERTICAL );
285
286 wxStaticBoxSizer* sbSizerInfo;
287 sbSizerInfo = new wxStaticBoxSizer( new wxStaticBox( m_circularPanel, wxID_ANY, _("Reference Position") ), wxVERTICAL );
288
289 m_stInfoItems = new wxStaticText( sbSizerInfo->GetStaticBox(), wxID_ANY, _("Position of the selected item (or group) to duplicate"), wxDefaultPosition, wxDefaultSize, 0 );
290 m_stInfoItems->Wrap( -1 );
291 sbSizerInfo->Add( m_stInfoItems, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
292
293 wxFlexGridSizer* fgSizer4;
294 fgSizer4 = new wxFlexGridSizer( 0, 3, 5, 5 );
295 fgSizer4->AddGrowableCol( 1 );
296 fgSizer4->SetFlexibleDirection( wxBOTH );
297 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
298
299 m_stRefPosXTxt = new wxStaticText( sbSizerInfo->GetStaticBox(), wxID_ANY, _("Ref point pos X:"), wxDefaultPosition, wxDefaultSize, 0 );
300 m_stRefPosXTxt->Wrap( -1 );
301 fgSizer4->Add( m_stRefPosXTxt, 0, wxALIGN_CENTER_VERTICAL, 5 );
302
303 m_tcRefPosX = new wxTextCtrl( sbSizerInfo->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
304 fgSizer4->Add( m_tcRefPosX, 0, wxEXPAND, 5 );
305
306 m_stRefPosXUnit = new wxStaticText( sbSizerInfo->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
307 m_stRefPosXUnit->Wrap( -1 );
308 fgSizer4->Add( m_stRefPosXUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
309
310 m_stRefPosYTxt = new wxStaticText( sbSizerInfo->GetStaticBox(), wxID_ANY, _("Ref point pos Y:"), wxDefaultPosition, wxDefaultSize, 0 );
311 m_stRefPosYTxt->Wrap( -1 );
312 fgSizer4->Add( m_stRefPosYTxt, 0, wxALIGN_CENTER_VERTICAL, 5 );
313
314 m_tcRefPosY = new wxTextCtrl( sbSizerInfo->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
315 fgSizer4->Add( m_tcRefPosY, 0, wxEXPAND, 5 );
316
317 m_stRefPosYUnit = new wxStaticText( sbSizerInfo->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
318 m_stRefPosYUnit->Wrap( -1 );
319 fgSizer4->Add( m_stRefPosYUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
320
321
322 sbSizerInfo->Add( fgSizer4, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
323
324
325 bSizerCircLeft->Add( sbSizerInfo, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
326
327 wxStaticBoxSizer* sbSizerCircParams;
328 sbSizerCircParams = new wxStaticBoxSizer( new wxStaticBox( m_circularPanel, wxID_ANY, _("Array Settings") ), wxVERTICAL );
329
330 m_radioBtnSetByPos = new wxRadioButton( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("Set center by position"), wxDefaultPosition, wxDefaultSize, 0 );
331 m_radioBtnSetByPos->SetValue( true );
332 sbSizerCircParams->Add( m_radioBtnSetByPos, 0, wxALL, 5 );
333
334 wxFlexGridSizer* fgSizerArrayPrms;
335 fgSizerArrayPrms = new wxFlexGridSizer( 0, 3, 5, 5 );
336 fgSizerArrayPrms->AddGrowableCol( 1 );
337 fgSizerArrayPrms->SetFlexibleDirection( wxBOTH );
338 fgSizerArrayPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
339
340 m_labelCentreX = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("Center pos X:"), wxDefaultPosition, wxDefaultSize, 0 );
341 m_labelCentreX->Wrap( -1 );
342 fgSizerArrayPrms->Add( m_labelCentreX, 0, wxALIGN_CENTER_VERTICAL, 5 );
343
344 m_entryCentreX = new wxTextCtrl( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
345 fgSizerArrayPrms->Add( m_entryCentreX, 0, wxEXPAND, 5 );
346
347 m_unitLabelCentreX = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
348 m_unitLabelCentreX->Wrap( -1 );
349 fgSizerArrayPrms->Add( m_unitLabelCentreX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
350
351 m_labelCentreY = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("Center pos Y:"), wxDefaultPosition, wxDefaultSize, 0 );
352 m_labelCentreY->Wrap( -1 );
353 fgSizerArrayPrms->Add( m_labelCentreY, 0, wxALIGN_CENTER_VERTICAL, 5 );
354
355 m_entryCentreY = new wxTextCtrl( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
356 fgSizerArrayPrms->Add( m_entryCentreY, 0, wxEXPAND, 5 );
357
358 m_unitLabelCentreY = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
359 m_unitLabelCentreY->Wrap( -1 );
360 fgSizerArrayPrms->Add( m_unitLabelCentreY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
361
362
363 sbSizerCircParams->Add( fgSizerArrayPrms, 0, wxEXPAND|wxLEFT, 25 );
364
365
366 sbSizerCircParams->Add( 0, 15, 1, wxEXPAND, 5 );
367
368 m_radioBtnSetByRadius = new wxRadioButton( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("Set center by radius"), wxDefaultPosition, wxDefaultSize, 0 );
369 sbSizerCircParams->Add( m_radioBtnSetByRadius, 0, wxALL, 5 );
370
371 wxBoxSizer* bSizerRadius;
372 bSizerRadius = new wxBoxSizer( wxVERTICAL );
373
374 m_labelCircRadius = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("Radius of circular array:"), wxDefaultPosition, wxDefaultSize, 0 );
375 m_labelCircRadius->Wrap( -1 );
376 bSizerRadius->Add( m_labelCircRadius, 0, wxTOP|wxRIGHT, 5 );
377
378 wxBoxSizer* bSizerRadiusValue;
379 bSizerRadiusValue = new wxBoxSizer( wxHORIZONTAL );
380
381 m_tcValueCircRadius = new wxTextCtrl( sbSizerCircParams->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
382 m_tcValueCircRadius->SetToolTip( _("Distance between Ref point and Center pos.") );
383
384 bSizerRadiusValue->Add( m_tcValueCircRadius, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 3 );
385
386 m_unitLabelCircRadius = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
387 m_unitLabelCircRadius->Wrap( -1 );
388 bSizerRadiusValue->Add( m_unitLabelCircRadius, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
389
390
391 bSizerRadius->Add( bSizerRadiusValue, 0, wxEXPAND, 5 );
392
393 m_labelCircCenterAngle = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("Angle from center to reference position:"), wxDefaultPosition, wxDefaultSize, 0 );
394 m_labelCircCenterAngle->Wrap( -1 );
395 bSizerRadius->Add( m_labelCircCenterAngle, 0, wxTOP|wxRIGHT, 5 );
396
397 wxBoxSizer* bSizerRadiusValue1;
398 bSizerRadiusValue1 = new wxBoxSizer( wxHORIZONTAL );
399
400 m_tcValueCircCenterAngle = new wxTextCtrl( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
401 #ifdef __WXGTK__
402 if ( !m_tcValueCircCenterAngle->HasFlag( wxTE_MULTILINE ) )
403 {
404 m_tcValueCircCenterAngle->SetMaxLength( 8 );
405 }
406 #else
407 m_tcValueCircCenterAngle->SetMaxLength( 8 );
408 #endif
409 m_tcValueCircCenterAngle->SetToolTip( _("Angle between Ref point and Center pos.") );
410
411 bSizerRadiusValue1->Add( m_tcValueCircCenterAngle, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 3 );
412
413 m_unitLabelCircCenterAngle = new wxStaticText( sbSizerCircParams->GetStaticBox(), wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
414 m_unitLabelCircCenterAngle->Wrap( -1 );
415 bSizerRadiusValue1->Add( m_unitLabelCircCenterAngle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
416
417
418 bSizerRadius->Add( bSizerRadiusValue1, 0, wxEXPAND, 5 );
419
420
421 sbSizerCircParams->Add( bSizerRadius, 0, wxEXPAND|wxLEFT, 25 );
422
423
424 sbSizerCircParams->Add( 0, 5, 0, 0, 5 );
425
426
427 bSizerCircLeft->Add( sbSizerCircParams, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
428
429 wxStaticBoxSizer* sbSizerDupPrms;
430 sbSizerDupPrms = new wxStaticBoxSizer( new wxStaticBox( m_circularPanel, wxID_ANY, _("Duplication Settings") ), wxVERTICAL );
431
432 wxFlexGridSizer* fgSizerDupPrms;
433 fgSizerDupPrms = new wxFlexGridSizer( 0, 3, 5, 5 );
434 fgSizerDupPrms->AddGrowableCol( 1 );
435 fgSizerDupPrms->SetFlexibleDirection( wxBOTH );
436 fgSizerDupPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
437
438 m_labelCircAngle = new wxStaticText( sbSizerDupPrms->GetStaticBox(), wxID_ANY, _("Angle between new items:"), wxDefaultPosition, wxDefaultSize, 0 );
439 m_labelCircAngle->Wrap( -1 );
440 fgSizerDupPrms->Add( m_labelCircAngle, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
441
442 m_entryCircAngle = new wxTextCtrl( sbSizerDupPrms->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
443 m_entryCircAngle->SetToolTip( _("Positive angles represent an anti-clockwise rotation. An angle of 0 will produce a full circle divided evenly into \"Count\" portions.") );
444
445 fgSizerDupPrms->Add( m_entryCircAngle, 0, wxEXPAND, 5 );
446
447 m_unitLabelCircAngle = new wxStaticText( sbSizerDupPrms->GetStaticBox(), wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
448 m_unitLabelCircAngle->Wrap( -1 );
449 fgSizerDupPrms->Add( m_unitLabelCircAngle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
450
451 m_labelCircCount = new wxStaticText( sbSizerDupPrms->GetStaticBox(), wxID_ANY, _("Item count:"), wxDefaultPosition, wxDefaultSize, 0 );
452 m_labelCircCount->Wrap( -1 );
453 fgSizerDupPrms->Add( m_labelCircCount, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
454
455 m_entryCircCount = new TEXT_CTRL_EVAL( sbSizerDupPrms->GetStaticBox(), wxID_ANY, _("4"), wxDefaultPosition, wxDefaultSize, 0 );
456 m_entryCircCount->SetToolTip( _("How many items in the array.") );
457
458 fgSizerDupPrms->Add( m_entryCircCount, 0, wxEXPAND, 5 );
459
460
461 fgSizerDupPrms->Add( 0, 0, 0, wxEXPAND, 5 );
462
463 m_labelCircRotate = new wxStaticText( sbSizerDupPrms->GetStaticBox(), wxID_ANY, _("Rotate items:"), wxDefaultPosition, wxDefaultSize, 0 );
464 m_labelCircRotate->Wrap( -1 );
465 fgSizerDupPrms->Add( m_labelCircRotate, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
466
467 m_entryRotateItemsCb = new wxCheckBox( sbSizerDupPrms->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
468 m_entryRotateItemsCb->SetValue(true);
469 m_entryRotateItemsCb->SetToolTip( _("Rotate the item as well as move it - multi-selections will be rotated together") );
470
471 fgSizerDupPrms->Add( m_entryRotateItemsCb, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
472
473
474 sbSizerDupPrms->Add( fgSizerDupPrms, 0, wxBOTTOM|wxEXPAND, 5 );
475
476
477 bSizerCircLeft->Add( sbSizerDupPrms, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
478
479
480 bSizer4->Add( bSizerCircLeft, 1, wxEXPAND, 5 );
481
482 m_circularPadNumberingPanel = new wxPanel( m_circularPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
484
485 wxBoxSizer* bSizer13;
486 bSizer13 = new wxBoxSizer( wxHORIZONTAL );
487
488
489 bSizer13->Add( 10, 0, 0, wxEXPAND, 5 );
490
491 m_circPadNumberingSizer = new wxStaticBoxSizer( new wxStaticBox( m_circularPadNumberingPanel, wxID_ANY, _("Numbering Options") ), wxVERTICAL );
492
493 wxString m_rbCircStartNumberingOptChoices[] = { _("Use first free number"), _("From start value") };
494 int m_rbCircStartNumberingOptNChoices = sizeof( m_rbCircStartNumberingOptChoices ) / sizeof( wxString );
495 m_rbCircStartNumberingOpt = new wxRadioBox( m_circPadNumberingSizer->GetStaticBox(), wxID_ANY, _("Initial Pad Number:"), wxDefaultPosition, wxDefaultSize, m_rbCircStartNumberingOptNChoices, m_rbCircStartNumberingOptChoices, 1, wxRA_SPECIFY_COLS );
496 m_rbCircStartNumberingOpt->SetSelection( 0 );
497 m_circPadNumberingSizer->Add( m_rbCircStartNumberingOpt, 0, wxALL|wxEXPAND, 5 );
498
499 m_labelCircNumbering = new wxStaticText( m_circPadNumberingSizer->GetStaticBox(), wxID_ANY, _("Pad Numbering:"), wxDefaultPosition, wxDefaultSize, 0 );
500 m_labelCircNumbering->Wrap( -1 );
502
503 wxArrayString m_choiceCircNumberingChoices;
504 m_choiceCircNumbering = new wxChoice( m_circPadNumberingSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCircNumberingChoices, 0 );
505 m_choiceCircNumbering->SetSelection( 0 );
506 m_circPadNumberingSizer->Add( m_choiceCircNumbering, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
507
508 wxFlexGridSizer* fgSizer2;
509 fgSizer2 = new wxFlexGridSizer( 0, 2, 0, 0 );
510 fgSizer2->AddGrowableCol( 0 );
511 fgSizer2->SetFlexibleDirection( wxBOTH );
512 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
513
514 m_labelCircNumStart = new wxStaticText( m_circPadNumberingSizer->GetStaticBox(), wxID_ANY, _("Pad numbering start:"), wxDefaultPosition, wxDefaultSize, 0 );
515 m_labelCircNumStart->Wrap( -1 );
516 fgSizer2->Add( m_labelCircNumStart, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
517
518 m_entryCircNumberingStart = new wxTextCtrl( m_circPadNumberingSizer->GetStaticBox(), wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
519 fgSizer2->Add( m_entryCircNumberingStart, 1, wxALL, 5 );
520
521 m_labelCircNumStep = new wxStaticText( m_circPadNumberingSizer->GetStaticBox(), wxID_ANY, _("Pad numbering increment:"), wxDefaultPosition, wxDefaultSize, 0 );
522 m_labelCircNumStep->Wrap( -1 );
523 fgSizer2->Add( m_labelCircNumStep, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
524
525 m_entryCircNumberingStep = new wxTextCtrl( m_circPadNumberingSizer->GetStaticBox(), wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
526 fgSizer2->Add( m_entryCircNumberingStep, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
527
528
529 m_circPadNumberingSizer->Add( fgSizer2, 0, wxEXPAND, 5 );
530
531
532 bSizer13->Add( m_circPadNumberingSizer, 1, wxEXPAND, 5 );
533
534
535 m_circularPadNumberingPanel->SetSizer( bSizer13 );
537 bSizer13->Fit( m_circularPadNumberingPanel );
538 bSizer4->Add( m_circularPadNumberingPanel, 0, wxEXPAND | wxALL, 5 );
539
540
541 m_circularPanel->SetSizer( bSizer4 );
542 m_circularPanel->Layout();
543 bSizer4->Fit( m_circularPanel );
544 m_gridTypeNotebook->AddPage( m_circularPanel, _("Circular Array"), true );
545
546 bSizer7->Add( m_gridTypeNotebook, 1, wxALL|wxEXPAND, 10 );
547
548 m_footprintReannotatePanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
549 wxBoxSizer* bSizer8;
550 bSizer8 = new wxBoxSizer( wxVERTICAL );
551
552 wxStaticBoxSizer* sbSizerFootprintAnnotation;
553 sbSizerFootprintAnnotation = new wxStaticBoxSizer( new wxStaticBox( m_footprintReannotatePanel, wxID_ANY, _("Footprint Annotation") ), wxVERTICAL );
554
555 m_radioBtnKeepRefs = new wxRadioButton( sbSizerFootprintAnnotation->GetStaticBox(), wxID_ANY, _("Keep existing reference designators"), wxDefaultPosition, wxDefaultSize, 0 );
556 sbSizerFootprintAnnotation->Add( m_radioBtnKeepRefs, 0, wxALL, 5 );
557
558 m_radioBtnUniqueRefs = new wxRadioButton( sbSizerFootprintAnnotation->GetStaticBox(), wxID_ANY, _("Assign unique reference designators"), wxDefaultPosition, wxDefaultSize, 0 );
559 m_radioBtnUniqueRefs->SetValue( true );
560 m_radioBtnUniqueRefs->SetToolTip( _("This can conflict with reference designators in the schematic that have not yet been synchronized with the board.") );
561
562 sbSizerFootprintAnnotation->Add( m_radioBtnUniqueRefs, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
563
564
565 bSizer8->Add( sbSizerFootprintAnnotation, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
566
567
568 m_footprintReannotatePanel->SetSizer( bSizer8 );
570 bSizer8->Fit( m_footprintReannotatePanel );
571 bSizer7->Add( m_footprintReannotatePanel, 1, wxEXPAND | wxALL, 5 );
572
573
574 bMainSizer->Add( bSizer7, 1, wxEXPAND, 5 );
575
576 m_stdButtons = new wxStdDialogButtonSizer();
577 m_stdButtonsOK = new wxButton( this, wxID_OK );
578 m_stdButtons->AddButton( m_stdButtonsOK );
579 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
580 m_stdButtons->AddButton( m_stdButtonsCancel );
581 m_stdButtons->Realize();
582
583 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
584
585
586 this->SetSizer( bMainSizer );
587 this->Layout();
588 bMainSizer->Fit( this );
589
590 // Connect Events
591 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_CREATE_ARRAY_BASE::OnClose ) );
592 m_entryNx->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
593 m_entryNy->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
594 m_entryDx->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
595 m_entryDy->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
596 m_entryOffsetX->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
597 m_entryOffsetY->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
598 m_entryStagger->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
599 m_rbGridStartNumberingOpt->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
600 m_radioBoxGridNumberingScheme->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
601 m_radioBtnSetByPos->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnButtonPosition ), NULL, this );
602 m_entryCentreX->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
603 m_entryCentreY->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
604 m_radioBtnSetByRadius->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnButtonRadius ), NULL, this );
605 m_tcValueCircRadius->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnRadiusChanged ), NULL, this );
606 m_tcValueCircCenterAngle->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnRadiusChanged ), NULL, this );
607 m_entryCircAngle->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
608 m_entryCircCount->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
609 m_rbCircStartNumberingOpt->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
610}
611
613{
614 // Disconnect Events
615 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_CREATE_ARRAY_BASE::OnClose ) );
616 m_entryNx->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
617 m_entryNy->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
618 m_entryDx->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
619 m_entryDy->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
620 m_entryOffsetX->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
621 m_entryOffsetY->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
622 m_entryStagger->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
623 m_rbGridStartNumberingOpt->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
624 m_radioBoxGridNumberingScheme->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
625 m_radioBtnSetByPos->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnButtonPosition ), NULL, this );
626 m_entryCentreX->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
627 m_entryCentreY->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
628 m_radioBtnSetByRadius->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnButtonRadius ), NULL, this );
629 m_tcValueCircRadius->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnRadiusChanged ), NULL, this );
630 m_tcValueCircCenterAngle->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnRadiusChanged ), NULL, this );
631 m_entryCircAngle->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
632 m_entryCircCount->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
633 m_rbCircStartNumberingOpt->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_CREATE_ARRAY_BASE::OnParameterChanged ), NULL, this );
634
635}
virtual void OnButtonPosition(wxCommandEvent &event)
virtual void OnRadiusChanged(wxCommandEvent &event)
virtual void OnClose(wxCloseEvent &event)
wxStaticBoxSizer * m_circPadNumberingSizer
virtual void OnButtonRadius(wxCommandEvent &event)
virtual void OnParameterChanged(wxCommandEvent &event)
DIALOG_CREATE_ARRAY_BASE(wxWindow *parent, wxWindowID id=wxID_DIALOG_CREATE_ARRAY, const wxString &title=_("Create Array"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStdDialogButtonSizer * m_stdButtons
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
wxTextCtrl wrapper to handle math expression evaluation.
#define _(s)