2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2021-03-17 13:26:26 +00:00
// C++ code generated with wxFormBuilder (version Oct 26 2018)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
2017-12-27 17:09:27 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_export_vrml_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_EXPORT_3DFILE_BASE : : DIALOG_EXPORT_3DFILE_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 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizer1 ;
bSizer1 = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2017-12-27 17:09:27 +00:00
m_staticText1 = new wxStaticText ( this , wxID_ANY , _ ( " File name: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_staticText1 - > Wrap ( - 1 ) ;
bUpperSizer - > Add ( m_staticText1 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
m_filePicker = new wxFilePickerCtrl ( this , wxID_ANY , wxEmptyString , _ ( " Save VRML Board File " ) , _ ( " *.wrl " ) , wxDefaultPosition , wxDefaultSize , wxFLP_SAVE | wxFLP_USE_TEXTCTRL ) ;
m_filePicker - > SetMinSize ( wxSize ( 450 , - 1 ) ) ;
2013-05-26 04:36:44 +00:00
bUpperSizer - > Add ( m_filePicker , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2014-10-17 23:28:12 +00:00
m_staticText3 = new wxStaticText ( this , wxID_ANY , _ ( " Footprint 3D model path: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_staticText3 - > Wrap ( - 1 ) ;
bUpperSizer - > Add ( m_staticText3 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
m_SubdirNameCtrl = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
bUpperSizer - > Add ( m_SubdirNameCtrl , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2014-10-17 23:28:12 +00:00
bSizer1 - > Add ( bUpperSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
wxBoxSizer * bSizerOptions ;
bSizerOptions = new wxBoxSizer ( wxHORIZONTAL ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
wxString m_rbCoordOriginChoices [ ] = { _ ( " User defined origin " ) , _ ( " Board center origin " ) } ;
int m_rbCoordOriginNChoices = sizeof ( m_rbCoordOriginChoices ) / sizeof ( wxString ) ;
m_rbCoordOrigin = new wxRadioBox ( this , wxID_ANY , _ ( " Coordinate origin options: " ) , wxDefaultPosition , wxDefaultSize , m_rbCoordOriginNChoices , m_rbCoordOriginChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_rbCoordOrigin - > SetSelection ( 0 ) ;
bSizerOptions - > Add ( m_rbCoordOrigin , 1 , wxALL | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
wxBoxSizer * bSizerVrmlUnits ;
bSizerVrmlUnits = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
m_staticText6 = new wxStaticText ( this , wxID_ANY , _ ( " User defined origin: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-08-13 13:13:34 +00:00
m_staticText6 - > Wrap ( - 1 ) ;
2021-03-17 13:26:26 +00:00
bSizerVrmlUnits - > Add ( m_staticText6 , 0 , wxALL , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-08-13 13:13:34 +00:00
wxFlexGridSizer * fgSizerOptions ;
fgSizerOptions = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
fgSizerOptions - > AddGrowableCol ( 1 ) ;
fgSizerOptions - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerOptions - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
m_staticText61 = new wxStaticText ( this , wxID_ANY , _ ( " Units: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-08-13 13:13:34 +00:00
m_staticText61 - > Wrap ( - 1 ) ;
fgSizerOptions - > Add ( m_staticText61 , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-08-13 13:13:34 +00:00
wxString m_VRML_RefUnitChoiceChoices [ ] = { _ ( " mm " ) , _ ( " inch " ) } ;
int m_VRML_RefUnitChoiceNChoices = sizeof ( m_VRML_RefUnitChoiceChoices ) / sizeof ( wxString ) ;
2021-03-17 13:26:26 +00:00
m_VRML_RefUnitChoice = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_VRML_RefUnitChoiceNChoices , m_VRML_RefUnitChoiceChoices , 0 ) ;
2015-08-13 13:13:34 +00:00
m_VRML_RefUnitChoice - > SetSelection ( 0 ) ;
fgSizerOptions - > Add ( m_VRML_RefUnitChoice , 0 , wxALL | wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
m_staticText4 = new wxStaticText ( this , wxID_ANY , _ ( " X: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-08-13 13:13:34 +00:00
m_staticText4 - > Wrap ( - 1 ) ;
fgSizerOptions - > Add ( m_staticText4 , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
m_VRML_Xref = new wxTextCtrl ( this , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-07-26 09:11:23 +00:00
# ifdef __WXGTK__
if ( ! m_VRML_Xref - > HasFlag ( wxTE_MULTILINE ) )
{
m_VRML_Xref - > SetMaxLength ( 8 ) ;
}
# else
m_VRML_Xref - > SetMaxLength ( 8 ) ;
# endif
2015-08-13 13:13:34 +00:00
fgSizerOptions - > Add ( m_VRML_Xref , 0 , wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
m_staticText5 = new wxStaticText ( this , wxID_ANY , _ ( " Y: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-08-13 13:13:34 +00:00
m_staticText5 - > Wrap ( - 1 ) ;
fgSizerOptions - > Add ( m_staticText5 , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
m_VRML_Yref = new wxTextCtrl ( this , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-07-26 09:11:23 +00:00
# ifdef __WXGTK__
if ( ! m_VRML_Yref - > HasFlag ( wxTE_MULTILINE ) )
{
m_VRML_Yref - > SetMaxLength ( 8 ) ;
}
# else
m_VRML_Yref - > SetMaxLength ( 8 ) ;
# endif
2015-08-13 13:13:34 +00:00
fgSizerOptions - > Add ( m_VRML_Yref , 0 , wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
bSizerVrmlUnits - > Add ( fgSizerOptions , 1 , wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
bSizerOptions - > Add ( bSizerVrmlUnits , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-08-13 13:13:34 +00:00
wxString m_rbSelectUnitsChoices [ ] = { _ ( " mm " ) , _ ( " meter " ) , _ ( " 0.1 Inch " ) , _ ( " Inch " ) } ;
int m_rbSelectUnitsNChoices = sizeof ( m_rbSelectUnitsChoices ) / sizeof ( wxString ) ;
2021-03-20 02:05:50 +00:00
m_rbSelectUnits = new wxRadioBox ( this , wxID_ANY , _ ( " VRML Units for Output Files " ) , wxDefaultPosition , wxDefaultSize , m_rbSelectUnitsNChoices , m_rbSelectUnitsChoices , 1 , wxRA_SPECIFY_COLS ) ;
2015-08-13 13:13:34 +00:00
m_rbSelectUnits - > SetSelection ( 0 ) ;
2021-03-17 13:26:26 +00:00
bSizerOptions - > Add ( m_rbSelectUnits , 1 , wxALL | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
bSizer1 - > Add ( bSizerOptions , 0 , wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bLowerSizer ;
bLowerSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2020-11-11 15:58:12 +00:00
2014-10-17 23:28:12 +00:00
wxBoxSizer * bSizer4 ;
bSizer4 = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2014-10-17 23:28:12 +00:00
m_cbCopyFiles = new wxCheckBox ( this , wxID_ANY , _ ( " Copy 3D model files to 3D model path " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-03-20 02:05:50 +00:00
m_cbCopyFiles - > SetToolTip ( _ ( " If checked: copy 3D models to the destination folder \n If not checked: Embed 3D models in the VRML board file " ) ) ;
2021-03-17 13:26:26 +00:00
2014-10-17 23:28:12 +00:00
bSizer4 - > Add ( m_cbCopyFiles , 0 , wxALL , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
m_cbUseRelativePaths = new wxCheckBox ( this , wxID_ANY , _ ( " Use relative paths to model files in board VRML file " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-03-20 02:05:50 +00:00
m_cbUseRelativePaths - > SetToolTip ( _ ( " Use paths for model files in board VRML file relative to the VRML file " ) ) ;
2020-11-11 15:58:12 +00:00
2014-11-17 13:55:26 +00:00
bSizer4 - > Add ( m_cbUseRelativePaths , 0 , wxALL , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-08-13 13:13:34 +00:00
bLowerSizer - > Add ( bSizer4 , 2 , wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-08-13 13:13:34 +00:00
bSizer1 - > Add ( bLowerSizer , 0 , wxBOTTOM | wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-09-12 16:57:38 +00:00
bSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizer1 - > Add ( m_staticline1 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +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 ( ) ;
2020-11-11 15:58:12 +00:00
2021-03-17 13:26:26 +00:00
bSizer1 - > Add ( m_sdbSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bSizer1 ) ;
this - > Layout ( ) ;
2015-09-12 16:57:38 +00:00
bSizer1 - > Fit ( this ) ;
2021-03-17 13:26:26 +00:00
// Connect Events
m_cbUseRelativePaths - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_3DFILE_BASE : : OnUpdateUseRelativePath ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
DIALOG_EXPORT_3DFILE_BASE : : ~ DIALOG_EXPORT_3DFILE_BASE ( )
{
2021-03-17 13:26:26 +00:00
// Disconnect Events
m_cbUseRelativePaths - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_EXPORT_3DFILE_BASE : : OnUpdateUseRelativePath ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}