KiCad PCB EDA Suite
dialog_export_vrml_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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 )
13{
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizer1;
17 bSizer1 = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bUpperSizer;
20 bUpperSizer = new wxBoxSizer( wxVERTICAL );
21
22 m_staticText1 = new wxStaticText( this, wxID_ANY, _("File name:"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_staticText1->Wrap( -1 );
24 bUpperSizer->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
25
26 m_filePicker = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Save VRML Board File"), _("*.wrl"), wxDefaultPosition, wxDefaultSize, wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
27 m_filePicker->SetMinSize( wxSize( 450,-1 ) );
28
29 bUpperSizer->Add( m_filePicker, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
30
31 m_staticText3 = new wxStaticText( this, wxID_ANY, _("Footprint 3D model path:"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_staticText3->Wrap( -1 );
33 bUpperSizer->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
34
35 m_SubdirNameCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
36 bUpperSizer->Add( m_SubdirNameCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
37
38
39 bSizer1->Add( bUpperSizer, 0, wxALL|wxEXPAND, 5 );
40
41 wxBoxSizer* bSizerOptions;
42 bSizerOptions = new wxBoxSizer( wxHORIZONTAL );
43
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 );
47 m_rbCoordOrigin->SetSelection( 0 );
48 bSizerOptions->Add( m_rbCoordOrigin, 1, wxALL|wxEXPAND, 5 );
49
50 wxBoxSizer* bSizerVrmlUnits;
51 bSizerVrmlUnits = new wxBoxSizer( wxVERTICAL );
52
53 m_staticText6 = new wxStaticText( this, wxID_ANY, _("User defined origin:"), wxDefaultPosition, wxDefaultSize, 0 );
54 m_staticText6->Wrap( -1 );
55 bSizerVrmlUnits->Add( m_staticText6, 0, wxALL, 5 );
56
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 );
62
63 m_staticText61 = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_staticText61->Wrap( -1 );
65 fgSizerOptions->Add( m_staticText61, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
66
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 );
70 m_VRML_RefUnitChoice->SetSelection( 0 );
71 fgSizerOptions->Add( m_VRML_RefUnitChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
72
73 m_staticText4 = new wxStaticText( this, wxID_ANY, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_staticText4->Wrap( -1 );
75 fgSizerOptions->Add( m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
76
77 m_VRML_Xref = new wxTextCtrl( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
78 #ifdef __WXGTK__
79 if ( !m_VRML_Xref->HasFlag( wxTE_MULTILINE ) )
80 {
81 m_VRML_Xref->SetMaxLength( 8 );
82 }
83 #else
84 m_VRML_Xref->SetMaxLength( 8 );
85 #endif
86 fgSizerOptions->Add( m_VRML_Xref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
87
88 m_staticText5 = new wxStaticText( this, wxID_ANY, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_staticText5->Wrap( -1 );
90 fgSizerOptions->Add( m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
91
92 m_VRML_Yref = new wxTextCtrl( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
93 #ifdef __WXGTK__
94 if ( !m_VRML_Yref->HasFlag( wxTE_MULTILINE ) )
95 {
96 m_VRML_Yref->SetMaxLength( 8 );
97 }
98 #else
99 m_VRML_Yref->SetMaxLength( 8 );
100 #endif
101 fgSizerOptions->Add( m_VRML_Yref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
102
103
104 bSizerVrmlUnits->Add( fgSizerOptions, 1, wxEXPAND, 5 );
105
106
107 bSizerOptions->Add( bSizerVrmlUnits, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
108
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, _("VRML Units for Output Files"), wxDefaultPosition, wxDefaultSize, m_rbSelectUnitsNChoices, m_rbSelectUnitsChoices, 1, wxRA_SPECIFY_COLS );
112 m_rbSelectUnits->SetSelection( 0 );
113 bSizerOptions->Add( m_rbSelectUnits, 1, wxALL|wxEXPAND, 5 );
114
115
116 bSizer1->Add( bSizerOptions, 0, wxEXPAND, 5 );
117
118 wxBoxSizer* bLowerSizer;
119 bLowerSizer = new wxBoxSizer( wxHORIZONTAL );
120
121 wxBoxSizer* bSizer4;
122 bSizer4 = new wxBoxSizer( wxVERTICAL );
123
124 m_cbCopyFiles = new wxCheckBox( this, wxID_ANY, _("Copy 3D model files to 3D model path"), wxDefaultPosition, wxDefaultSize, 0 );
125 m_cbCopyFiles->SetToolTip( _("If checked: copy 3D models to the destination folder\nIf not checked: Embed 3D models in the VRML board file") );
126
127 bSizer4->Add( m_cbCopyFiles, 0, wxALL, 5 );
128
129 m_cbUseRelativePaths = new wxCheckBox( this, wxID_ANY, _("Use relative paths to model files in board VRML file"), wxDefaultPosition, wxDefaultSize, 0 );
130 m_cbUseRelativePaths->SetToolTip( _("Use paths for model files in board VRML file relative to the VRML file") );
131
132 bSizer4->Add( m_cbUseRelativePaths, 0, wxALL, 5 );
133
134
135 bLowerSizer->Add( bSizer4, 2, wxEXPAND, 5 );
136
137
138 bSizer1->Add( bLowerSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
139
140
141 bSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
142
143 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
144 bSizer1->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
145
146 m_sdbSizer = new wxStdDialogButtonSizer();
147 m_sdbSizerOK = new wxButton( this, wxID_OK );
148 m_sdbSizer->AddButton( m_sdbSizerOK );
149 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
150 m_sdbSizer->AddButton( m_sdbSizerCancel );
151 m_sdbSizer->Realize();
152
153 bSizer1->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
154
155
156 this->SetSizer( bSizer1 );
157 this->Layout();
158 bSizer1->Fit( this );
159
160 // Connect Events
161 m_cbUseRelativePaths->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_EXPORT_3DFILE_BASE::OnUpdateUseRelativePath ), NULL, this );
162}
163
165{
166 // Disconnect Events
167 m_cbUseRelativePaths->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_EXPORT_3DFILE_BASE::OnUpdateUseRelativePath ), NULL, this );
168
169}
DIALOG_EXPORT_3DFILE_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)
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnUpdateUseRelativePath(wxUpdateUIEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define _(s)