12DIALOG_EXPORT_VRML_BASE::DIALOG_EXPORT_VRML_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17 bSizer1 =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bUpperSizer;
20 bUpperSizer =
new wxBoxSizer( wxVERTICAL );
22 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"File name:"), wxDefaultPosition, wxDefaultSize, 0 );
24 bUpperSizer->Add(
m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
26 m_filePicker =
new wxFilePickerCtrl(
this, wxID_ANY, wxEmptyString,
_(
"Save VRML Board File"),
_(
"*.wrl"), wxDefaultPosition, wxDefaultSize, wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
29 bUpperSizer->Add(
m_filePicker, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
31 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"Footprint 3D model path:"), wxDefaultPosition, wxDefaultSize, 0 );
33 bUpperSizer->Add(
m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
35 m_SubdirNameCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
36 bUpperSizer->Add(
m_SubdirNameCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
39 bSizer1->Add( bUpperSizer, 0, wxALL|wxEXPAND, 5 );
41 wxBoxSizer* bSizerOptions;
42 bSizerOptions =
new wxBoxSizer( wxHORIZONTAL );
44 wxString m_rbCoordOriginChoices[] = {
_(
"User defined origin"),
_(
"Board center origin") };
45 int m_rbCoordOriginNChoices =
sizeof( m_rbCoordOriginChoices ) /
sizeof( wxString );
46 m_rbCoordOrigin =
new wxRadioBox(
this, wxID_ANY,
_(
"Coordinate Origin Options"), wxDefaultPosition, wxDefaultSize, m_rbCoordOriginNChoices, m_rbCoordOriginChoices, 1, wxRA_SPECIFY_COLS );
50 wxBoxSizer* bSizerVrmlUnits;
51 bSizerVrmlUnits =
new wxBoxSizer( wxVERTICAL );
53 m_staticText6 =
new wxStaticText(
this, wxID_ANY,
_(
"User defined origin:"), wxDefaultPosition, wxDefaultSize, 0 );
57 wxFlexGridSizer* fgSizerOptions;
58 fgSizerOptions =
new wxFlexGridSizer( 0, 2, 0, 0 );
59 fgSizerOptions->AddGrowableCol( 1 );
60 fgSizerOptions->SetFlexibleDirection( wxBOTH );
61 fgSizerOptions->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
63 m_staticText61 =
new wxStaticText(
this, wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
65 fgSizerOptions->Add(
m_staticText61, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
67 wxString m_VRML_RefUnitChoiceChoices[] = {
_(
"mm"),
_(
"inch") };
68 int m_VRML_RefUnitChoiceNChoices =
sizeof( m_VRML_RefUnitChoiceChoices ) /
sizeof( wxString );
69 m_VRML_RefUnitChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_VRML_RefUnitChoiceNChoices, m_VRML_RefUnitChoiceChoices, 0 );
73 m_staticText4 =
new wxStaticText(
this, wxID_ANY,
_(
"X:"), wxDefaultPosition, wxDefaultSize, 0 );
75 fgSizerOptions->Add(
m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
77 m_VRML_Xref =
new wxTextCtrl(
this, wxID_ANY,
_(
"0"), wxDefaultPosition, wxDefaultSize, 0 );
86 fgSizerOptions->Add(
m_VRML_Xref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
88 m_staticText5 =
new wxStaticText(
this, wxID_ANY,
_(
"Y:"), wxDefaultPosition, wxDefaultSize, 0 );
90 fgSizerOptions->Add(
m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
92 m_VRML_Yref =
new wxTextCtrl(
this, wxID_ANY,
_(
"0"), wxDefaultPosition, wxDefaultSize, 0 );
101 fgSizerOptions->Add(
m_VRML_Yref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
104 bSizerVrmlUnits->Add( fgSizerOptions, 1, wxEXPAND, 5 );
107 bSizerOptions->Add( bSizerVrmlUnits, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
109 wxString m_rbSelectUnitsChoices[] = {
_(
"mm"),
_(
"meter"),
_(
"0.1 Inch"),
_(
"Inch") };
110 int m_rbSelectUnitsNChoices =
sizeof( m_rbSelectUnitsChoices ) /
sizeof( wxString );
111 m_rbSelectUnits =
new wxRadioBox(
this, wxID_ANY,
_(
"Units"), wxDefaultPosition, wxDefaultSize, m_rbSelectUnitsNChoices, m_rbSelectUnitsChoices, 1, wxRA_SPECIFY_COLS );
116 bSizer1->Add( bSizerOptions, 0, wxEXPAND, 5 );
118 wxBoxSizer* bLowerSizer;
119 bLowerSizer =
new wxBoxSizer( wxHORIZONTAL );
122 bSizer4 =
new wxBoxSizer( wxVERTICAL );
124 m_cbRemoveDNP =
new wxCheckBox(
this, wxID_ANY,
_(
"Ignore 'Do not populate' components"), wxDefaultPosition, wxDefaultSize, 0 );
127 m_cbRemoveUnspecified =
new wxCheckBox(
this, wxID_ANY,
_(
"Ignore 'Unspecified' components"), wxDefaultPosition, wxDefaultSize, 0 );
130 m_cbCopyFiles =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy 3D model files to 3D model path"), wxDefaultPosition, wxDefaultSize, 0 );
131 m_cbCopyFiles->SetToolTip(
_(
"If checked: copy 3D models to the destination folder\nIf not checked: Embed 3D models in the VRML board file") );
135 m_cbUseRelativePaths =
new wxCheckBox(
this, wxID_ANY,
_(
"Use relative paths to model files in board VRML file"), wxDefaultPosition, wxDefaultSize, 0 );
136 m_cbUseRelativePaths->SetToolTip(
_(
"Use paths for model files in board VRML file relative to the VRML file") );
141 bLowerSizer->Add( bSizer4, 2, wxEXPAND, 5 );
144 bSizer1->Add( bLowerSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
147 bSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
156 bSizer1->Add(
m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
159 this->SetSizer( bSizer1 );
161 bSizer1->Fit(
this );
wxStaticText * m_staticText4
~DIALOG_EXPORT_VRML_BASE()
wxRadioBox * m_rbSelectUnits
wxCheckBox * m_cbRemoveUnspecified
wxStdDialogButtonSizer * m_sdbSizer
wxStaticText * m_staticText5
wxStaticText * m_staticText6
DIALOG_EXPORT_VRML_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("VRML Export Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnUpdateUseRelativePath(wxUpdateUIEvent &event)
wxChoice * m_VRML_RefUnitChoice
wxStaticText * m_staticText3
wxCheckBox * m_cbCopyFiles
wxStaticText * m_staticText61
wxStaticText * m_staticText1
wxRadioBox * m_rbCoordOrigin
wxTextCtrl * m_SubdirNameCtrl
wxButton * m_sdbSizerCancel
wxCheckBox * m_cbUseRelativePaths
wxFilePickerCtrl * m_filePicker
wxCheckBox * m_cbRemoveDNP
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...