KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_step_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15DIALOG_EXPORT_STEP_BASE::DIALOG_EXPORT_STEP_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 bSizerSTEPFile = new wxBoxSizer( wxVERTICAL );
20
21 bSizerTop = new wxBoxSizer( wxHORIZONTAL );
22
23 m_txtFormat = new wxStaticText( this, wxID_ANY, _("Format:"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_txtFormat->Wrap( -1 );
25 bSizerTop->Add( m_txtFormat, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
26
27 wxString m_choiceFormatChoices[] = { _("STEP"), _("GLB (Binary glTF)"), _("XAO"), _("BREP (OCCT)"), _("PLY (ASCII)"), _("STL"), _("STPZ"), _("U3D"), _("PDF") };
28 int m_choiceFormatNChoices = sizeof( m_choiceFormatChoices ) / sizeof( wxString );
29 m_choiceFormat = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFormatNChoices, m_choiceFormatChoices, 0 );
30 m_choiceFormat->SetSelection( 0 );
31 bSizerTop->Add( m_choiceFormat, 0, wxALL, 5 );
32
33 m_txtVariant = new wxStaticText( this, wxID_ANY, _("Variant:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_txtVariant->Wrap( -1 );
35 bSizerTop->Add( m_txtVariant, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
36
37 wxArrayString m_choiceVariantChoices;
38 m_choiceVariant = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVariantChoices, 0 );
39 m_choiceVariant->SetSelection( 0 );
40 bSizerTop->Add( m_choiceVariant, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
41
42 m_txtBrdFile = new wxStaticText( this, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_txtBrdFile->Wrap( -1 );
44 bSizerTop->Add( m_txtBrdFile, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
45
46 m_outputFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
47 m_outputFileName->SetToolTip( _("Enter a filename if you do not want to use default file names\nCan be used only when printing the current sheet") );
48 m_outputFileName->SetMinSize( wxSize( 400,-1 ) );
49
50 bSizerTop->Add( m_outputFileName, 1, wxALIGN_CENTER_VERTICAL, 5 );
51
52 m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
53 bSizerTop->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
54
55
56 bSizerSTEPFile->Add( bSizerTop, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 6 );
57
58 wxBoxSizer* bSizerMain;
59 bSizerMain = new wxBoxSizer( wxHORIZONTAL );
60
61 wxBoxSizer* bSizer8;
62 bSizer8 = new wxBoxSizer( wxVERTICAL );
63
64 wxStaticBoxSizer* sbBoardOptions;
65 sbBoardOptions = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Board Options") ), wxVERTICAL );
66
67 m_cbExportCompound_hidden = new wxCheckBox( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Export as Compound shape"), wxDefaultPosition, wxDefaultSize, 0 );
69 m_cbExportCompound_hidden->SetToolTip( _("Merges all shapes into a single Compound shape. Useful for external software that does de-duplication based on shape names.") );
70
71 sbBoardOptions->Add( m_cbExportCompound_hidden, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
72
73 m_cbExportBody = new wxCheckBox( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Export board body"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_cbExportBody->SetValue(true);
75 sbBoardOptions->Add( m_cbExportBody, 0, wxALL, 5 );
76
77 m_cbCutViasInBody = new wxCheckBox( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Cut vias in board body"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_cbCutViasInBody->SetToolTip( _("Cut via holes in board body even if conductor layers are not exported.") );
79
80 sbBoardOptions->Add( m_cbCutViasInBody, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
81
82 m_cbExportSilkscreen = new wxCheckBox( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Export silkscreen"), wxDefaultPosition, wxDefaultSize, 0 );
83 m_cbExportSilkscreen->SetToolTip( _("Export silkscreen graphics as a set of flat faces.") );
84
85 sbBoardOptions->Add( m_cbExportSilkscreen, 0, wxALL, 5 );
86
87 m_cbExportSoldermask = new wxCheckBox( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Export solder mask"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_cbExportSoldermask->SetToolTip( _("Export solder mask layers as a set of flat faces.") );
89
90 sbBoardOptions->Add( m_cbExportSoldermask, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
91
92 m_cbExportSolderpaste_hidden = new wxCheckBox( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Export solder paste"), wxDefaultPosition, wxDefaultSize, 0 );
94 m_cbExportSolderpaste_hidden->SetToolTip( _("Export solder paste graphics.") );
95
96 sbBoardOptions->Add( m_cbExportSolderpaste_hidden, 0, wxBOTTOM|wxRIGHT, 5 );
97
98 m_cbExportComponents = new wxCheckBox( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Export components"), wxDefaultPosition, wxDefaultSize, 0 );
99 m_cbExportComponents->SetValue(true);
100 sbBoardOptions->Add( m_cbExportComponents, 0, wxRIGHT|wxLEFT, 5 );
101
102 wxBoxSizer* bSizer51;
103 bSizer51 = new wxBoxSizer( wxVERTICAL );
104
105 m_rbAllComponents = new wxRadioButton( sbBoardOptions->GetStaticBox(), wxID_ANY, _("All components"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
106 m_rbAllComponents->SetValue( true );
107 bSizer51->Add( m_rbAllComponents, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
108
109 m_rbOnlySelected = new wxRadioButton( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Only selected"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_rbOnlySelected->SetToolTip( _("Export only the component models that are selected in the PCB editor") );
111
112 bSizer51->Add( m_rbOnlySelected, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
113
114 m_rbFilteredComponents = new wxRadioButton( sbBoardOptions->GetStaticBox(), wxID_ANY, _("Components matching filter:"), wxDefaultPosition, wxDefaultSize, 0 );
115 bSizer51->Add( m_rbFilteredComponents, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
116
117 m_txtComponentFilter = new wxTextCtrl( sbBoardOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
118 m_txtComponentFilter->Enable( false );
119 m_txtComponentFilter->SetToolTip( _("A list of comma-selected reference designators to export (wildcards are supported)") );
120
121 bSizer51->Add( m_txtComponentFilter, 0, wxALL|wxEXPAND, 5 );
122
123
124 sbBoardOptions->Add( bSizer51, 1, wxEXPAND|wxLEFT, 20 );
125
126
127 bSizer8->Add( sbBoardOptions, 0, wxEXPAND|wxALL, 5 );
128
129 wxStaticBoxSizer* sbConductorOptions;
130 sbConductorOptions = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Conductor Options") ), wxVERTICAL );
131
132 m_cbExportTracks = new wxCheckBox( sbConductorOptions->GetStaticBox(), wxID_ANY, _("Export tracks and vias"), wxDefaultPosition, wxDefaultSize, 0 );
133 m_cbExportTracks->SetToolTip( _("Export tracks and vias on external conductor layers.") );
134
135 sbConductorOptions->Add( m_cbExportTracks, 0, wxALL, 5 );
136
137 m_cbExportPads = new wxCheckBox( sbConductorOptions->GetStaticBox(), wxID_ANY, _("Export pads"), wxDefaultPosition, wxDefaultSize, 0 );
138 sbConductorOptions->Add( m_cbExportPads, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
139
140 m_cbExportZones = new wxCheckBox( sbConductorOptions->GetStaticBox(), wxID_ANY, _("Export zones"), wxDefaultPosition, wxDefaultSize, 0 );
141 m_cbExportZones->SetToolTip( _("Export zones on external conductor layers.") );
142
143 sbConductorOptions->Add( m_cbExportZones, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
144
145 m_cbExportInnerCopper = new wxCheckBox( sbConductorOptions->GetStaticBox(), wxID_ANY, _("Export inner conductor layers"), wxDefaultPosition, wxDefaultSize, 0 );
146 sbConductorOptions->Add( m_cbExportInnerCopper, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
147
148 m_cbFuseShapes = new wxCheckBox( sbConductorOptions->GetStaticBox(), wxID_ANY, _("Fuse shapes (time consuming)"), wxDefaultPosition, wxDefaultSize, 0 );
149 m_cbFuseShapes->SetToolTip( _("Combine intersecting geometry into one shape.") );
150
151 sbConductorOptions->Add( m_cbFuseShapes, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
152
153 m_cbFillAllVias = new wxCheckBox( sbConductorOptions->GetStaticBox(), wxID_ANY, _("Fill all vias"), wxDefaultPosition, wxDefaultSize, 0 );
154 m_cbFillAllVias->SetToolTip( _("Don't cut via holes in conductor layers.") );
155
156 sbConductorOptions->Add( m_cbFillAllVias, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
157
158 m_staticTextNetFilter = new wxStaticText( sbConductorOptions->GetStaticBox(), wxID_ANY, _("Net filter (supports wildcards):"), wxDefaultPosition, wxDefaultSize, 0 );
159 m_staticTextNetFilter->Wrap( -1 );
160 sbConductorOptions->Add( m_staticTextNetFilter, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
161
162 m_txtNetFilter = new wxTextCtrl( sbConductorOptions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
163 m_txtNetFilter->SetToolTip( _("Only copper items belonging to nets matching this filter will be exported.") );
164
165 sbConductorOptions->Add( m_txtNetFilter, 0, wxALL|wxEXPAND, 5 );
166
167
168 bSizer8->Add( sbConductorOptions, 0, wxEXPAND|wxALL, 5 );
169
170
171 bSizerMain->Add( bSizer8, 1, wxEXPAND, 5 );
172
173 wxBoxSizer* bSizer5;
174 bSizer5 = new wxBoxSizer( wxVERTICAL );
175
176 wxStaticBoxSizer* sbCoordinates;
177 sbCoordinates = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Coordinates") ), wxVERTICAL );
178
179 m_rbDrillAndPlotOrigin = new wxRadioButton( sbCoordinates->GetStaticBox(), wxID_ANY, _("Drill/place file origin"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
180 m_rbDrillAndPlotOrigin->SetValue( true );
181 sbCoordinates->Add( m_rbDrillAndPlotOrigin, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
182
183 m_rbGridOrigin = new wxRadioButton( sbCoordinates->GetStaticBox(), wxID_ANY, _("Grid origin"), wxDefaultPosition, wxDefaultSize, 0 );
184 sbCoordinates->Add( m_rbGridOrigin, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
185
186 m_rbUserDefinedOrigin = new wxRadioButton( sbCoordinates->GetStaticBox(), wxID_ANY, _("User defined origin"), wxDefaultPosition, wxDefaultSize, 0 );
187 sbCoordinates->Add( m_rbUserDefinedOrigin, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
188
189 m_rbBoardCenterOrigin = new wxRadioButton( sbCoordinates->GetStaticBox(), wxID_ANY, _("Board center origin"), wxDefaultPosition, wxDefaultSize, 0 );
190 sbCoordinates->Add( m_rbBoardCenterOrigin, 0, wxALL, 5 );
191
192
193 bSizer5->Add( sbCoordinates, 0, wxEXPAND|wxALL, 5 );
194
195 wxStaticBoxSizer* sbUserDefinedOrigin;
196 sbUserDefinedOrigin = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User Defined Origin") ), wxVERTICAL );
197
198 wxFlexGridSizer* fgSizer1;
199 fgSizer1 = new wxFlexGridSizer( 0, 3, 5, 0 );
200 fgSizer1->SetFlexibleDirection( wxBOTH );
201 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
202
203 m_originXLabel = new wxStaticText( sbUserDefinedOrigin->GetStaticBox(), wxID_ANY, _("X position:"), wxDefaultPosition, wxDefaultSize, 0 );
204 m_originXLabel->Wrap( -1 );
205 fgSizer1->Add( m_originXLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
206
207 m_originXCtrl = new TEXT_CTRL_EVAL( sbUserDefinedOrigin->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
208 #ifdef __WXGTK__
209 if ( !m_originXCtrl->HasFlag( wxTE_MULTILINE ) )
210 {
211 m_originXCtrl->SetMaxLength( 8 );
212 }
213 #else
214 m_originXCtrl->SetMaxLength( 8 );
215 #endif
216 fgSizer1->Add( m_originXCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
217
218 m_originXUnits = new wxStaticText( sbUserDefinedOrigin->GetStaticBox(), wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
219 m_originXUnits->Wrap( -1 );
220 fgSizer1->Add( m_originXUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
221
222 m_originYLabel = new wxStaticText( sbUserDefinedOrigin->GetStaticBox(), wxID_ANY, _("Y position:"), wxDefaultPosition, wxDefaultSize, 0 );
223 m_originYLabel->Wrap( -1 );
224 fgSizer1->Add( m_originYLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
225
226 m_originYCtrl = new TEXT_CTRL_EVAL( sbUserDefinedOrigin->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
227 #ifdef __WXGTK__
228 if ( !m_originYCtrl->HasFlag( wxTE_MULTILINE ) )
229 {
230 m_originYCtrl->SetMaxLength( 8 );
231 }
232 #else
233 m_originYCtrl->SetMaxLength( 8 );
234 #endif
235 fgSizer1->Add( m_originYCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
236
237 m_originYUnits = new wxStaticText( sbUserDefinedOrigin->GetStaticBox(), wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
238 m_originYUnits->Wrap( -1 );
239 fgSizer1->Add( m_originYUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
240
241
242 sbUserDefinedOrigin->Add( fgSizer1, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
243
244
245 bSizer5->Add( sbUserDefinedOrigin, 0, wxEXPAND|wxALL, 5 );
246
247 wxStaticBoxSizer* sbOtherOptions;
248 sbOtherOptions = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Other Options") ), wxVERTICAL );
249
250 m_cbRemoveDNP = new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Ignore 'Do not populate' components"), wxDefaultPosition, wxDefaultSize, 0 );
251 m_cbRemoveDNP->SetToolTip( _("Do not show components marked 'Do not populate'") );
252
253 sbOtherOptions->Add( m_cbRemoveDNP, 0, wxALL, 5 );
254
255 m_cbRemoveUnspecified = new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Ignore 'Unspecified' components"), wxDefaultPosition, wxDefaultSize, 0 );
256 m_cbRemoveUnspecified->SetToolTip( _("Do not show components with Footprint Type 'Unspecified'") );
257
258 sbOtherOptions->Add( m_cbRemoveUnspecified, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
259
260 m_cbSubstModels = new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Substitute similarly named models"), wxDefaultPosition, wxDefaultSize, 0 );
261 m_cbSubstModels->SetValue(true);
262 m_cbSubstModels->SetToolTip( _("Replace VRML models with STEP models of the same name") );
263
264 sbOtherOptions->Add( m_cbSubstModels, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
265
266 m_cbOverwriteFile = new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Overwrite old file"), wxDefaultPosition, wxDefaultSize, 0 );
267 m_cbOverwriteFile->SetValue(true);
268 sbOtherOptions->Add( m_cbOverwriteFile, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
269
270 m_cbOptimizeStep = new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Don't write P-curves to STEP file"), wxDefaultPosition, wxDefaultSize, 0 );
271 m_cbOptimizeStep->SetValue(true);
272 m_cbOptimizeStep->SetToolTip( _("Disables writing parametric curves. Optimizes file size and write/read times, but may reduce compatibility with other software.") );
273
274 sbOtherOptions->Add( m_cbOptimizeStep, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
275
276 m_staticTextTolerance = new wxStaticText( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Board outline chaining tolerance:"), wxDefaultPosition, wxDefaultSize, 0 );
277 m_staticTextTolerance->Wrap( -1 );
278 sbOtherOptions->Add( m_staticTextTolerance, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
279
280 wxString m_choiceToleranceChoices[] = { _("Tight (0.001 mm)"), _("Standard (0.01 mm)"), _("Loose (0.1 mm)") };
281 int m_choiceToleranceNChoices = sizeof( m_choiceToleranceChoices ) / sizeof( wxString );
282 m_choiceTolerance = new wxChoice( sbOtherOptions->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceToleranceNChoices, m_choiceToleranceChoices, 0 );
283 m_choiceTolerance->SetSelection( 0 );
284 m_choiceTolerance->SetToolTip( _("Tolerance sets the distance between two points that are considered joined when building the board outlines.") );
285
286 sbOtherOptions->Add( m_choiceTolerance, 0, wxALL|wxEXPAND, 5 );
287
288
289 bSizer5->Add( sbOtherOptions, 1, wxEXPAND|wxALL, 5 );
290
291
292 bSizerMain->Add( bSizer5, 1, wxEXPAND, 5 );
293
294
295 bSizerSTEPFile->Add( bSizerMain, 1, wxEXPAND, 5 );
296
297 m_sdbSizer = new wxStdDialogButtonSizer();
298 m_sdbSizerOK = new wxButton( this, wxID_OK );
299 m_sdbSizer->AddButton( m_sdbSizerOK );
300 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
301 m_sdbSizer->AddButton( m_sdbSizerCancel );
302 m_sdbSizer->Realize();
303
304 bSizerSTEPFile->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxRIGHT|wxTOP, 5 );
305
306
307 this->SetSizer( bSizerSTEPFile );
308 this->Layout();
309 bSizerSTEPFile->Fit( this );
310
311 this->Centre( wxBOTH );
312
313 // Connect Events
314 m_choiceFormat->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onFormatChoice ), NULL, this );
315 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onBrowseClicked ), NULL, this );
316 m_cbExportComponents->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onCbExportComponents ), NULL, this );
317 m_rbAllComponents->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::OnComponentModeChange ), NULL, this );
318 m_rbOnlySelected->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::OnComponentModeChange ), NULL, this );
319 m_rbFilteredComponents->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::OnComponentModeChange ), NULL, this );
320 m_originXCtrl->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_EXPORT_STEP_BASE::onUpdateXPos ), NULL, this );
321 m_originYCtrl->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_EXPORT_STEP_BASE::onUpdateYPos ), NULL, this );
322 m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onExportButton ), NULL, this );
323}
324
326{
327 // Disconnect Events
328 m_choiceFormat->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onFormatChoice ), NULL, this );
329 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onBrowseClicked ), NULL, this );
330 m_cbExportComponents->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onCbExportComponents ), NULL, this );
331 m_rbAllComponents->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::OnComponentModeChange ), NULL, this );
332 m_rbOnlySelected->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::OnComponentModeChange ), NULL, this );
333 m_rbFilteredComponents->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::OnComponentModeChange ), NULL, this );
334 m_originXCtrl->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_EXPORT_STEP_BASE::onUpdateXPos ), NULL, this );
335 m_originYCtrl->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_EXPORT_STEP_BASE::onUpdateYPos ), NULL, this );
336 m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_STEP_BASE::onExportButton ), NULL, this );
337
338}
wxStdDialogButtonSizer * m_sdbSizer
virtual void onBrowseClicked(wxCommandEvent &event)
virtual void onCbExportComponents(wxCommandEvent &event)
virtual void onFormatChoice(wxCommandEvent &event)
virtual void onExportButton(wxCommandEvent &event)
DIALOG_EXPORT_STEP_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export 3D Model"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onUpdateXPos(wxUpdateUIEvent &event)
virtual void onUpdateYPos(wxUpdateUIEvent &event)
virtual void OnComponentModeChange(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_browseButton
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)
A bitmap button widget that behaves like a standard dialog button except with an icon.
wxTextCtrl wrapper to handle math expression evaluation.
#define _(s)