KiCad PCB EDA Suite
dialog_export_vrml_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 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 )
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* bSizer12;
42  bSizer12 = new wxBoxSizer( wxHORIZONTAL );
43 
44  wxBoxSizer* bSizer5;
45  bSizer5 = new wxBoxSizer( wxVERTICAL );
46 
47  m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
48  wxBoxSizer* bSizer9;
49  bSizer9 = new wxBoxSizer( wxVERTICAL );
50 
51  m_staticText6 = new wxStaticText( m_panel1, wxID_ANY, _("Grid reference point:"), wxDefaultPosition, wxDefaultSize, 0 );
52  m_staticText6->Wrap( -1 );
53  bSizer9->Add( m_staticText6, 0, wxALL, 5 );
54 
55  wxFlexGridSizer* fgSizerOptions;
56  fgSizerOptions = new wxFlexGridSizer( 0, 2, 0, 0 );
57  fgSizerOptions->AddGrowableCol( 1 );
58  fgSizerOptions->SetFlexibleDirection( wxBOTH );
59  fgSizerOptions->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
60 
61  m_staticText61 = new wxStaticText( m_panel1, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
62  m_staticText61->Wrap( -1 );
63  fgSizerOptions->Add( m_staticText61, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
64 
65  wxString m_VRML_RefUnitChoiceChoices[] = { _("mm"), _("inch") };
66  int m_VRML_RefUnitChoiceNChoices = sizeof( m_VRML_RefUnitChoiceChoices ) / sizeof( wxString );
67  m_VRML_RefUnitChoice = new wxChoice( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_VRML_RefUnitChoiceNChoices, m_VRML_RefUnitChoiceChoices, 0 );
68  m_VRML_RefUnitChoice->SetSelection( 0 );
69  fgSizerOptions->Add( m_VRML_RefUnitChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
70 
71  m_staticText4 = new wxStaticText( m_panel1, wxID_ANY, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
72  m_staticText4->Wrap( -1 );
73  fgSizerOptions->Add( m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
74 
75  m_VRML_Xref = new wxTextCtrl( m_panel1, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
76  #ifdef __WXGTK__
77  if ( !m_VRML_Xref->HasFlag( wxTE_MULTILINE ) )
78  {
79  m_VRML_Xref->SetMaxLength( 8 );
80  }
81  #else
82  m_VRML_Xref->SetMaxLength( 8 );
83  #endif
84  fgSizerOptions->Add( m_VRML_Xref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
85 
86  m_staticText5 = new wxStaticText( m_panel1, wxID_ANY, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
87  m_staticText5->Wrap( -1 );
88  fgSizerOptions->Add( m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
89 
90  m_VRML_Yref = new wxTextCtrl( m_panel1, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
91  #ifdef __WXGTK__
92  if ( !m_VRML_Yref->HasFlag( wxTE_MULTILINE ) )
93  {
94  m_VRML_Yref->SetMaxLength( 8 );
95  }
96  #else
97  m_VRML_Yref->SetMaxLength( 8 );
98  #endif
99  fgSizerOptions->Add( m_VRML_Yref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
100 
101 
102  bSizer9->Add( fgSizerOptions, 1, wxEXPAND, 5 );
103 
104 
105  m_panel1->SetSizer( bSizer9 );
106  m_panel1->Layout();
107  bSizer9->Fit( m_panel1 );
108  bSizer5->Add( m_panel1, 1, wxEXPAND | wxALL, 5 );
109 
110 
111  bSizer12->Add( bSizer5, 1, wxEXPAND, 5 );
112 
113  wxString m_rbSelectUnitsChoices[] = { _("mm"), _("meter"), _("0.1 Inch"), _("Inch") };
114  int m_rbSelectUnitsNChoices = sizeof( m_rbSelectUnitsChoices ) / sizeof( wxString );
115  m_rbSelectUnits = new wxRadioBox( this, wxID_ANY, _("Output Units"), wxDefaultPosition, wxDefaultSize, m_rbSelectUnitsNChoices, m_rbSelectUnitsChoices, 1, wxRA_SPECIFY_COLS );
116  m_rbSelectUnits->SetSelection( 0 );
117  bSizer12->Add( m_rbSelectUnits, 1, wxALL|wxEXPAND, 5 );
118 
119 
120  bSizer1->Add( bSizer12, 0, wxEXPAND, 5 );
121 
122  wxBoxSizer* bLowerSizer;
123  bLowerSizer = new wxBoxSizer( wxHORIZONTAL );
124 
125  wxBoxSizer* bSizer4;
126  bSizer4 = new wxBoxSizer( wxVERTICAL );
127 
128  m_cbCopyFiles = new wxCheckBox( this, wxID_ANY, _("Copy 3D model files to 3D model path"), wxDefaultPosition, wxDefaultSize, 0 );
129  m_cbCopyFiles->SetValue(true);
130  bSizer4->Add( m_cbCopyFiles, 0, wxALL, 5 );
131 
132  m_cbUseRelativePaths = new wxCheckBox( this, ID_USE_ABS_PATH, _("Use relative paths to model files in board VRML file"), wxDefaultPosition, wxDefaultSize, 0 );
133  m_cbUseRelativePaths->SetToolTip( _("Use paths for model files in board VRML file relative to the vrml file") );
134 
135  bSizer4->Add( m_cbUseRelativePaths, 0, wxALL, 5 );
136 
137  m_cbPlainPCB = new wxCheckBox( this, wxID_ANY, _("Plain PCB (no copper or silk)"), wxDefaultPosition, wxDefaultSize, 0 );
138  bSizer4->Add( m_cbPlainPCB, 0, wxALL, 5 );
139 
140 
141  bLowerSizer->Add( bSizer4, 2, wxEXPAND, 5 );
142 
143 
144  bSizer1->Add( bLowerSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
145 
146 
147  bSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
148 
149  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
150  bSizer1->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
151 
152  m_sdbSizer1 = new wxStdDialogButtonSizer();
153  m_sdbSizer1OK = new wxButton( this, wxID_OK );
154  m_sdbSizer1->AddButton( m_sdbSizer1OK );
155  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
156  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
157  m_sdbSizer1->Realize();
158 
159  bSizer1->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
160 
161 
162  this->SetSizer( bSizer1 );
163  this->Layout();
164  bSizer1->Fit( this );
165 }
166 
168 {
169 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
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)
#define _(s)
Definition: 3d_actions.cpp:33
wxStdDialogButtonSizer * m_sdbSizer1