KiCad PCB EDA Suite
dialog_export_step_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Sep 8 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 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 )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerSTEPFile;
17  bSizerSTEPFile = new wxBoxSizer( wxVERTICAL );
18 
19  m_txtBrdFile = new wxStaticText( this, wxID_ANY, _("STEP File name:"), wxDefaultPosition, wxDefaultSize, 0 );
20  m_txtBrdFile->Wrap( -1 );
21  bSizerSTEPFile->Add( m_txtBrdFile, 0, wxALL, 5 );
22 
23  m_filePickerSTEP = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select a STEP export filename"), wxT("*.stp,*.step"), wxDefaultPosition, wxSize( 450,-1 ), wxFLP_OVERWRITE_PROMPT|wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
24  bSizerSTEPFile->Add( m_filePickerSTEP, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
25 
26  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
27  bSizerSTEPFile->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
28 
29  wxBoxSizer* bSizer2;
30  bSizer2 = new wxBoxSizer( wxHORIZONTAL );
31 
32  wxBoxSizer* bSizer7;
33  bSizer7 = new wxBoxSizer( wxVERTICAL );
34 
35  m_staticText6 = new wxStaticText( this, wxID_ANY, _("STEP coordinates origin options:"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_staticText6->Wrap( -1 );
37  m_staticText6->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
38 
39  bSizer7->Add( m_staticText6, 0, wxALL, 5 );
40 
41  wxFlexGridSizer* fgSizer2;
42  fgSizer2 = new wxFlexGridSizer( 0, 2, 0, 0 );
43  fgSizer2->SetFlexibleDirection( wxBOTH );
44  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
45 
46 
47  fgSizer2->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
48 
49  m_cbDrillOrigin = new wxCheckBox( this, wxID_ANY, _("Drill and plot axis origin"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_cbDrillOrigin->SetToolTip( _("Use the auxiliary axis origin (used in plot and drill geneation) as STEP coordinates origin.") );
51 
52  fgSizer2->Add( m_cbDrillOrigin, 0, wxALL, 5 );
53 
54 
55  fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
56 
57  m_cbAuxOrigin = new wxCheckBox( this, wxID_ANY, _("Grid origin"), wxDefaultPosition, wxDefaultSize, 0 );
58  m_cbAuxOrigin->SetToolTip( _("Use the grid origin as STEP coordinates origin.") );
59 
60  fgSizer2->Add( m_cbAuxOrigin, 0, wxALL, 5 );
61 
62 
63  fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
64 
65  m_cbUserOrigin = new wxCheckBox( this, wxID_ANY, _("User defined origin"), wxDefaultPosition, wxDefaultSize, 0 );
66  m_cbUserOrigin->SetToolTip( _("Use this option if you want to define a specific coordinate origin value.") );
67 
68  fgSizer2->Add( m_cbUserOrigin, 0, wxALL, 5 );
69 
70 
71  bSizer7->Add( fgSizer2, 1, wxEXPAND, 5 );
72 
73 
74  bSizer2->Add( bSizer7, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
75 
76  wxBoxSizer* bSizer3;
77  bSizer3 = new wxBoxSizer( wxVERTICAL );
78 
79  m_staticText2 = new wxStaticText( this, wxID_ANY, _("User defined origin:"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_staticText2->Wrap( -1 );
81  m_staticText2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
82 
83  bSizer3->Add( m_staticText2, 0, wxALL, 5 );
84 
85  wxFlexGridSizer* fgSizer1;
86  fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
87  fgSizer1->SetFlexibleDirection( wxBOTH );
88  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
89 
90 
91  fgSizer1->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
92 
93  m_staticText5 = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
94  m_staticText5->Wrap( -1 );
95  fgSizer1->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
96 
97  wxString m_STEP_OrgUnitChoiceChoices[] = { _("mm"), _("inch") };
98  int m_STEP_OrgUnitChoiceNChoices = sizeof( m_STEP_OrgUnitChoiceChoices ) / sizeof( wxString );
99  m_STEP_OrgUnitChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_STEP_OrgUnitChoiceNChoices, m_STEP_OrgUnitChoiceChoices, 0 );
100  m_STEP_OrgUnitChoice->SetSelection( 0 );
101  fgSizer1->Add( m_STEP_OrgUnitChoice, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
102 
103 
104  fgSizer1->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
105 
106  m_staticText3 = new wxStaticText( this, wxID_ANY, _("X Position:"), wxDefaultPosition, wxDefaultSize, 0 );
107  m_staticText3->Wrap( -1 );
108  fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
109 
110  m_STEP_Xorg = new wxTextCtrl( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
111  #ifdef __WXGTK__
112  if ( !m_STEP_Xorg->HasFlag( wxTE_MULTILINE ) )
113  {
114  m_STEP_Xorg->SetMaxLength( 8 );
115  }
116  #else
117  m_STEP_Xorg->SetMaxLength( 8 );
118  #endif
119  fgSizer1->Add( m_STEP_Xorg, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
120 
121 
122  fgSizer1->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
123 
124  m_staticText4 = new wxStaticText( this, wxID_ANY, _("Y Position:"), wxDefaultPosition, wxDefaultSize, 0 );
125  m_staticText4->Wrap( -1 );
126  fgSizer1->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
127 
128  m_STEP_Yorg = new wxTextCtrl( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
129  #ifdef __WXGTK__
130  if ( !m_STEP_Yorg->HasFlag( wxTE_MULTILINE ) )
131  {
132  m_STEP_Yorg->SetMaxLength( 8 );
133  }
134  #else
135  m_STEP_Yorg->SetMaxLength( 8 );
136  #endif
137  fgSizer1->Add( m_STEP_Yorg, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
138 
139 
140  bSizer3->Add( fgSizer1, 1, wxEXPAND, 5 );
141 
142 
143  bSizer2->Add( bSizer3, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
144 
145  wxBoxSizer* bSizer8;
146  bSizer8 = new wxBoxSizer( wxVERTICAL );
147 
148  m_staticText7 = new wxStaticText( this, wxID_ANY, _("Other options:"), wxDefaultPosition, wxDefaultSize, 0 );
149  m_staticText7->Wrap( -1 );
150  m_staticText7->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
151 
152  bSizer8->Add( m_staticText7, 0, wxALL, 5 );
153 
154  wxFlexGridSizer* fgSizer3;
155  fgSizer3 = new wxFlexGridSizer( 0, 2, 0, 0 );
156  fgSizer3->SetFlexibleDirection( wxBOTH );
157  fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
158 
159 
160  fgSizer3->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
161 
162  m_cbRemoveVirtual = new wxCheckBox( this, wxID_ANY, _("Ignore Virtual Components"), wxDefaultPosition, wxDefaultSize, 0 );
163  fgSizer3->Add( m_cbRemoveVirtual, 0, wxALL, 5 );
164 
165 
166  bSizer8->Add( fgSizer3, 1, wxEXPAND, 5 );
167 
168 
169  bSizer2->Add( bSizer8, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
170 
171 
172  bSizerSTEPFile->Add( bSizer2, 1, wxEXPAND, 5 );
173 
174  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
175  bSizerSTEPFile->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
176 
177  m_sdbSizer = new wxStdDialogButtonSizer();
178  m_sdbSizerOK = new wxButton( this, wxID_OK );
179  m_sdbSizer->AddButton( m_sdbSizerOK );
180  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
181  m_sdbSizer->AddButton( m_sdbSizerCancel );
182  m_sdbSizer->Realize();
183 
184  bSizerSTEPFile->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
185 
186 
187  this->SetSizer( bSizerSTEPFile );
188  this->Layout();
189  bSizerSTEPFile->Fit( this );
190 
191  this->Centre( wxBOTH );
192 }
193 
195 {
196 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
wxFilePickerCtrl * m_filePickerSTEP
wxStdDialogButtonSizer * m_sdbSizer
DIALOG_EXPORT_STEP_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export STEP"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)