2017-11-23 13:05:26 +00:00
///////////////////////////////////////////////////////////////////////////
2024-05-19 01:28:43 +00:00
// C++ code generated with wxFormBuilder (version 4.1.0-0-g733bf3d)
2017-11-23 13:05:26 +00:00
// http://www.wxformbuilder.org/
//
2019-01-29 06:15:38 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2017-11-23 13:05:26 +00:00
///////////////////////////////////////////////////////////////////////////
2023-10-23 17:01:04 +00:00
# include "widgets/std_bitmap_button.h"
2017-11-23 13:05:26 +00:00
# include "widgets/text_ctrl_eval.h"
# include "dialog_export_step_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_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 )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2019-01-29 06:15:38 +00:00
2017-11-23 13:05:26 +00:00
bSizerSTEPFile = new wxBoxSizer ( wxVERTICAL ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
bSizerTop = new wxBoxSizer ( wxHORIZONTAL ) ;
2024-05-19 01:28:43 +00:00
m_txtFormat = new wxStaticText ( this , wxID_ANY , _ ( " Format: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_txtFormat - > Wrap ( - 1 ) ;
bSizerTop - > Add ( m_txtFormat , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
wxString m_choiceFormatChoices [ ] = { _ ( " STEP " ) , _ ( " GLB (Binary glTF) " ) , _ ( " XAO " ) , _ ( " BREP (OCCT) " ) } ;
int m_choiceFormatNChoices = sizeof ( m_choiceFormatChoices ) / sizeof ( wxString ) ;
m_choiceFormat = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceFormatNChoices , m_choiceFormatChoices , 0 ) ;
m_choiceFormat - > SetSelection ( 0 ) ;
bSizerTop - > Add ( m_choiceFormat , 0 , wxALL , 5 ) ;
2021-07-01 12:16:28 +00:00
m_txtBrdFile = new wxStaticText ( this , wxID_ANY , _ ( " File: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-11-23 13:05:26 +00:00
m_txtBrdFile - > Wrap ( - 1 ) ;
2023-10-23 17:01:04 +00:00
bSizerTop - > Add ( m_txtBrdFile , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2023-10-23 17:01:04 +00:00
m_outputFileName = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_outputFileName - > SetToolTip ( _ ( " Enter a filename if you do not want to use default file names \n Can be used only when printing the current sheet " ) ) ;
2024-05-19 01:28:43 +00:00
m_outputFileName - > SetMinSize ( wxSize ( 400 , - 1 ) ) ;
2023-10-23 17:01:04 +00:00
bSizerTop - > Add ( m_outputFileName , 1 , wxALIGN_CENTER_VERTICAL , 5 ) ;
m_browseButton = new STD_BITMAP_BUTTON ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxBU_AUTODRAW | 0 ) ;
bSizerTop - > Add ( m_browseButton , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2021-07-01 12:16:28 +00:00
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
bSizerSTEPFile - > Add ( bSizerTop , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 6 ) ;
wxBoxSizer * bSizerMain ;
bSizerMain = new wxBoxSizer ( wxHORIZONTAL ) ;
wxStaticBoxSizer * sbGeneralOptions ;
sbGeneralOptions = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " General Options " ) ) , wxVERTICAL ) ;
m_cbExportCompound_hidden = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export as Compound shape " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbExportCompound_hidden - > Hide ( ) ;
m_cbExportCompound_hidden - > SetToolTip ( _ ( " Merges all shapes into a single Compound shape. Useful for external software that does de-duplication based on shape names. " ) ) ;
sbGeneralOptions - > Add ( m_cbExportCompound_hidden , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportBody = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export board body " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbGeneralOptions - > Add ( m_cbExportBody , 0 , wxALL , 5 ) ;
m_cbExportComponents = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export components " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbGeneralOptions - > Add ( m_cbExportComponents , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportTracks = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export tracks and vias " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbExportTracks - > SetToolTip ( _ ( " Export tracks and vias on external copper layers. " ) ) ;
sbGeneralOptions - > Add ( m_cbExportTracks , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportPads = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export pads " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbGeneralOptions - > Add ( m_cbExportPads , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportZones = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export zones " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbExportZones - > SetToolTip ( _ ( " Export zones on external copper layers. " ) ) ;
sbGeneralOptions - > Add ( m_cbExportZones , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportInnerCopper = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export inner copper layers " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbGeneralOptions - > Add ( m_cbExportInnerCopper , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportSilkscreen = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export silkscreen " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbExportSilkscreen - > SetToolTip ( _ ( " Export silkscreen graphics as a set of flat faces. " ) ) ;
sbGeneralOptions - > Add ( m_cbExportSilkscreen , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportSoldermask = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export solder mask " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbExportSoldermask - > SetToolTip ( _ ( " Export solder mask layers as a set of flat faces. " ) ) ;
sbGeneralOptions - > Add ( m_cbExportSoldermask , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbFuseShapes = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Fuse shapes (time consuming) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbFuseShapes - > SetToolTip ( _ ( " Combine intersecting geometry into one shape. " ) ) ;
sbGeneralOptions - > Add ( m_cbFuseShapes , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbExportSolderpaste_hidden = new wxCheckBox ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Export solder paste " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbExportSolderpaste_hidden - > Hide ( ) ;
m_cbExportSolderpaste_hidden - > SetToolTip ( _ ( " Export solder paste graphics. " ) ) ;
sbGeneralOptions - > Add ( m_cbExportSolderpaste_hidden , 0 , wxBOTTOM | wxRIGHT , 5 ) ;
m_staticTextNetFilter = new wxStaticText ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Net filter (supports wildcards): " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextNetFilter - > Wrap ( - 1 ) ;
sbGeneralOptions - > Add ( m_staticTextNetFilter , 0 , wxLEFT | wxRIGHT | wxTOP , 5 ) ;
m_txtNetFilter = new wxTextCtrl ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_txtNetFilter - > SetToolTip ( _ ( " Only copper items belonging to nets matching this filter will be exported. " ) ) ;
sbGeneralOptions - > Add ( m_txtNetFilter , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticTextTolerance = new wxStaticText ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Board outline chaining tolerance: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextTolerance - > Wrap ( - 1 ) ;
sbGeneralOptions - > Add ( m_staticTextTolerance , 0 , wxLEFT | wxRIGHT | wxTOP , 5 ) ;
wxString m_choiceToleranceChoices [ ] = { _ ( " Tight (0.001 mm) " ) , _ ( " Standard (0.01 mm) " ) , _ ( " Loose (0.1 mm) " ) } ;
int m_choiceToleranceNChoices = sizeof ( m_choiceToleranceChoices ) / sizeof ( wxString ) ;
m_choiceTolerance = new wxChoice ( sbGeneralOptions - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceToleranceNChoices , m_choiceToleranceChoices , 0 ) ;
m_choiceTolerance - > SetSelection ( 1 ) ;
m_choiceTolerance - > SetToolTip ( _ ( " Tolerance sets the distance between two points that are considered joined when building the board outlines. " ) ) ;
sbGeneralOptions - > Add ( m_choiceTolerance , 0 , wxALL | wxEXPAND , 5 ) ;
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
bSizerMain - > Add ( sbGeneralOptions , 1 , wxEXPAND | wxALL , 5 ) ;
wxBoxSizer * bSizer5 ;
bSizer5 = new wxBoxSizer ( wxVERTICAL ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
wxStaticBoxSizer * sbCoordinates ;
sbCoordinates = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Coordinates " ) ) , wxVERTICAL ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_rbDrillAndPlotOrigin = new wxRadioButton ( sbCoordinates - > GetStaticBox ( ) , wxID_ANY , _ ( " Drill/place file origin " ) , wxDefaultPosition , wxDefaultSize , wxRB_GROUP ) ;
2024-05-19 01:28:43 +00:00
sbCoordinates - > Add ( m_rbDrillAndPlotOrigin , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_rbGridOrigin = new wxRadioButton ( sbCoordinates - > GetStaticBox ( ) , wxID_ANY , _ ( " Grid origin " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2024-05-19 01:28:43 +00:00
sbCoordinates - > Add ( m_rbGridOrigin , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_rbUserDefinedOrigin = new wxRadioButton ( sbCoordinates - > GetStaticBox ( ) , wxID_ANY , _ ( " User defined origin " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2024-05-19 01:28:43 +00:00
sbCoordinates - > Add ( m_rbUserDefinedOrigin , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_rbBoardCenterOrigin = new wxRadioButton ( sbCoordinates - > GetStaticBox ( ) , wxID_ANY , _ ( " Board center origin " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2024-05-19 01:28:43 +00:00
sbCoordinates - > Add ( m_rbBoardCenterOrigin , 0 , wxALL , 5 ) ;
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
bSizer5 - > Add ( sbCoordinates , 0 , wxEXPAND | wxALL , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
wxStaticBoxSizer * sbUserDefinedOrigin ;
sbUserDefinedOrigin = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " User Defined Origin " ) ) , wxVERTICAL ) ;
2019-01-29 06:15:38 +00:00
2017-11-23 13:05:26 +00:00
wxFlexGridSizer * fgSizer1 ;
2021-07-01 12:16:28 +00:00
fgSizer1 = new wxFlexGridSizer ( 0 , 2 , 5 , 0 ) ;
2017-11-23 13:05:26 +00:00
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_staticTextUnits = new wxStaticText ( sbUserDefinedOrigin - > GetStaticBox ( ) , wxID_ANY , _ ( " Units: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-10-02 06:34:07 +00:00
m_staticTextUnits - > Wrap ( - 1 ) ;
2021-07-02 15:32:11 +00:00
fgSizer1 - > Add ( m_staticTextUnits , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2017-11-23 13:05:26 +00:00
wxString m_STEP_OrgUnitChoiceChoices [ ] = { _ ( " mm " ) , _ ( " inch " ) } ;
int m_STEP_OrgUnitChoiceNChoices = sizeof ( m_STEP_OrgUnitChoiceChoices ) / sizeof ( wxString ) ;
2021-07-01 12:16:28 +00:00
m_STEP_OrgUnitChoice = new wxChoice ( sbUserDefinedOrigin - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_STEP_OrgUnitChoiceNChoices , m_STEP_OrgUnitChoiceChoices , 0 ) ;
2017-11-23 13:05:26 +00:00
m_STEP_OrgUnitChoice - > SetSelection ( 0 ) ;
2021-07-01 12:16:28 +00:00
fgSizer1 - > Add ( m_STEP_OrgUnitChoice , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_staticTextXpos = new wxStaticText ( sbUserDefinedOrigin - > GetStaticBox ( ) , wxID_ANY , _ ( " X position: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-10-02 06:34:07 +00:00
m_staticTextXpos - > Wrap ( - 1 ) ;
2021-07-02 15:32:11 +00:00
fgSizer1 - > Add ( m_staticTextXpos , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_STEP_Xorg = new TEXT_CTRL_EVAL ( sbUserDefinedOrigin - > GetStaticBox ( ) , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-11-23 13:05:26 +00:00
# ifdef __WXGTK__
if ( ! m_STEP_Xorg - > HasFlag ( wxTE_MULTILINE ) )
{
m_STEP_Xorg - > SetMaxLength ( 8 ) ;
}
# else
m_STEP_Xorg - > SetMaxLength ( 8 ) ;
# endif
2021-07-01 12:16:28 +00:00
fgSizer1 - > Add ( m_STEP_Xorg , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_staticTextYpos = new wxStaticText ( sbUserDefinedOrigin - > GetStaticBox ( ) , wxID_ANY , _ ( " Y position: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-10-02 06:34:07 +00:00
m_staticTextYpos - > Wrap ( - 1 ) ;
2021-07-02 15:32:11 +00:00
fgSizer1 - > Add ( m_staticTextYpos , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_STEP_Yorg = new TEXT_CTRL_EVAL ( sbUserDefinedOrigin - > GetStaticBox ( ) , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-11-23 13:05:26 +00:00
# ifdef __WXGTK__
if ( ! m_STEP_Yorg - > HasFlag ( wxTE_MULTILINE ) )
{
m_STEP_Yorg - > SetMaxLength ( 8 ) ;
}
# else
m_STEP_Yorg - > SetMaxLength ( 8 ) ;
# endif
2021-07-01 12:16:28 +00:00
fgSizer1 - > Add ( m_STEP_Yorg , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
sbUserDefinedOrigin - > Add ( fgSizer1 , 1 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
bSizer5 - > Add ( sbUserDefinedOrigin , 0 , wxEXPAND | wxALL , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
wxStaticBoxSizer * sbOtherOptions ;
sbOtherOptions = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Other Options " ) ) , wxVERTICAL ) ;
2019-01-29 06:15:38 +00:00
2023-04-13 14:30:31 +00:00
m_cbRemoveDNP = new wxCheckBox ( sbOtherOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Ignore 'Do not populate' components " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbRemoveDNP - > SetToolTip ( _ ( " Do not show components marked 'Do not populate' " ) ) ;
2022-11-19 08:31:37 +00:00
2024-05-19 01:28:43 +00:00
sbOtherOptions - > Add ( m_cbRemoveDNP , 0 , wxALL , 5 ) ;
2023-04-13 14:30:31 +00:00
m_cbRemoveUnspecified = new wxCheckBox ( sbOtherOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Ignore 'Unspecified' components " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbRemoveUnspecified - > SetToolTip ( _ ( " Do not show components with Footprint Type 'Unspecified' " ) ) ;
2024-05-19 01:28:43 +00:00
sbOtherOptions - > Add ( m_cbRemoveUnspecified , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2021-07-01 12:16:28 +00:00
m_cbSubstModels = new wxCheckBox ( sbOtherOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Substitute similarly named models " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-06-08 22:46:37 +00:00
m_cbSubstModels - > SetToolTip ( _ ( " Replace VRML models with STEP models of the same name " ) ) ;
2024-05-19 01:28:43 +00:00
sbOtherOptions - > Add ( m_cbSubstModels , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-06-08 22:46:37 +00:00
2021-07-01 12:16:28 +00:00
m_cbOverwriteFile = new wxCheckBox ( sbOtherOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Overwrite old file " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2024-05-19 01:28:43 +00:00
sbOtherOptions - > Add ( m_cbOverwriteFile , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2023-12-05 10:55:26 +00:00
2023-11-19 12:21:25 +00:00
m_cbOptimizeStep = new wxCheckBox ( sbOtherOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Optimize STEP file " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbOptimizeStep - > SetToolTip ( _ ( " Disables writing parametric curves. Optimizes file size and write/read times, but may reduce compatibility with other software. " ) ) ;
2024-05-19 01:28:43 +00:00
sbOtherOptions - > Add ( m_cbOptimizeStep , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
bSizer5 - > Add ( sbOtherOptions , 1 , wxEXPAND | wxALL , 5 ) ;
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
bSizerMain - > Add ( bSizer5 , 1 , wxEXPAND , 5 ) ;
2019-01-29 06:15:38 +00:00
2024-05-19 01:28:43 +00:00
bSizerSTEPFile - > Add ( bSizerMain , 1 , wxEXPAND , 5 ) ;
2019-01-29 06:15:38 +00:00
2018-05-09 11:24:42 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2019-01-29 06:15:38 +00:00
2023-01-09 13:49:20 +00:00
bSizerSTEPFile - > Add ( m_sdbSizer , 0 , wxBOTTOM | wxEXPAND | wxRIGHT | wxTOP , 5 ) ;
2019-01-29 06:15:38 +00:00
2017-11-23 13:05:26 +00:00
this - > SetSizer ( bSizerSTEPFile ) ;
this - > Layout ( ) ;
2020-10-23 01:59:37 +00:00
bSizerSTEPFile - > Fit ( this ) ;
2019-01-29 06:15:38 +00:00
2017-11-23 13:05:26 +00:00
this - > Centre ( wxBOTH ) ;
2019-01-29 06:15:38 +00:00
2017-11-23 13:05:26 +00:00
// Connect Events
2024-05-19 01:28:43 +00:00
m_choiceFormat - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_EXPORT_STEP_BASE : : onFormatChoice ) , NULL , this ) ;
2023-10-23 17:01:04 +00:00
m_browseButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_STEP_BASE : : onBrowseClicked ) , NULL , this ) ;
2018-02-18 00:02:45 +00:00
m_STEP_OrgUnitChoice - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_STEP_BASE : : onUpdateUnits ) , NULL , this ) ;
m_STEP_Xorg - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_STEP_BASE : : onUpdateXPos ) , NULL , this ) ;
m_STEP_Yorg - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_STEP_BASE : : onUpdateYPos ) , NULL , this ) ;
2018-05-09 11:24:42 +00:00
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_STEP_BASE : : onExportButton ) , NULL , this ) ;
2017-11-23 13:05:26 +00:00
}
DIALOG_EXPORT_STEP_BASE : : ~ DIALOG_EXPORT_STEP_BASE ( )
{
// Disconnect Events
2024-05-19 01:28:43 +00:00
m_choiceFormat - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_EXPORT_STEP_BASE : : onFormatChoice ) , NULL , this ) ;
2023-10-23 17:01:04 +00:00
m_browseButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_STEP_BASE : : onBrowseClicked ) , NULL , this ) ;
2018-02-18 00:02:45 +00:00
m_STEP_OrgUnitChoice - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_STEP_BASE : : onUpdateUnits ) , NULL , this ) ;
m_STEP_Xorg - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_STEP_BASE : : onUpdateXPos ) , NULL , this ) ;
m_STEP_Yorg - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_STEP_BASE : : onUpdateYPos ) , NULL , this ) ;
2018-05-09 11:24:42 +00:00
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_STEP_BASE : : onExportButton ) , NULL , this ) ;
2019-01-29 06:15:38 +00:00
2017-11-23 13:05:26 +00:00
}