KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_2581_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15DIALOG_EXPORT_2581_BASE::DIALOG_EXPORT_2581_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
16{
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18
19 wxBoxSizer* bMainSizer;
20 bMainSizer = new wxBoxSizer( wxVERTICAL );
21
22 bSizerTop = new wxBoxSizer( wxHORIZONTAL );
23
24 m_lblBrdFile = new wxStaticText( this, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
25 m_lblBrdFile->Wrap( -1 );
26 bSizerTop->Add( m_lblBrdFile, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
27
28 m_outputFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
29 m_outputFileName->SetToolTip( _("Enter a filename if you do not want to use default file names\nCan be used only when printing the current sheet") );
30 m_outputFileName->SetMinSize( wxSize( 350,-1 ) );
31
32 bSizerTop->Add( m_outputFileName, 1, wxALIGN_CENTER_VERTICAL, 5 );
33
34 m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
35 bSizerTop->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL, 10 );
36
37
38 bMainSizer->Add( bSizerTop, 0, wxEXPAND|wxALL, 10 );
39
40 wxBoxSizer* bSizerMiddle;
41 bSizerMiddle = new wxBoxSizer( wxHORIZONTAL );
42
43 wxBoxSizer* bSizerLeftCol;
44 bSizerLeftCol = new wxBoxSizer( wxVERTICAL );
45
46 m_fileFormatLabel = new wxStaticText( this, wxID_ANY, _("File Format"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_fileFormatLabel->Wrap( -1 );
48 bSizerLeftCol->Add( m_fileFormatLabel, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
49
50 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
51 bSizerLeftCol->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
52
53 wxGridBagSizer* gbSizer1;
54 gbSizer1 = new wxGridBagSizer( 5, 5 );
55 gbSizer1->SetFlexibleDirection( wxBOTH );
56 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
57
58 m_lblUnits = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_lblUnits->Wrap( -1 );
60 gbSizer1->Add( m_lblUnits, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
61
62 wxString m_choiceUnitsChoices[] = { _("Millimeters"), _("Inches") };
63 int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
64 m_choiceUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
65 m_choiceUnits->SetSelection( 0 );
66 gbSizer1->Add( m_choiceUnits, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
67
68 m_lblPrecision = new wxStaticText( this, wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
69 m_lblPrecision->Wrap( -1 );
70 m_lblPrecision->SetToolTip( _("The number of values following the decimal separator") );
71
72 gbSizer1->Add( m_lblPrecision, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
73
74 m_precision = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 4, 10, 6 );
75 m_precision->SetToolTip( _("The number of values following the decimal separator") );
76
77 gbSizer1->Add( m_precision, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
78
79 m_lblVersion = new wxStaticText( this, wxID_ANY, _("Version:"), wxDefaultPosition, wxDefaultSize, 0 );
80 m_lblVersion->Wrap( -1 );
81 gbSizer1->Add( m_lblVersion, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
82
83 wxString m_versionChoiceChoices[] = { _("B"), _("C") };
84 int m_versionChoiceNChoices = sizeof( m_versionChoiceChoices ) / sizeof( wxString );
85 m_versionChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_versionChoiceNChoices, m_versionChoiceChoices, 0 );
86 m_versionChoice->SetSelection( 1 );
87 gbSizer1->Add( m_versionChoice, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
88
89 m_cbCompress = new wxCheckBox( this, wxID_ANY, _("Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_cbCompress->SetToolTip( _("Compress output into 'zip' file") );
91
92 gbSizer1->Add( m_cbCompress, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxTOP, 5 );
93
94
95 gbSizer1->AddGrowableCol( 1 );
96
97 bSizerLeftCol->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT, 5 );
98
99
100 bSizerMiddle->Add( bSizerLeftCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
101
102
103 bSizerMiddle->Add( 10, 0, 0, wxEXPAND, 5 );
104
105 wxBoxSizer* bSizerRightCol;
106 bSizerRightCol = new wxBoxSizer( wxVERTICAL );
107
108 m_columnsLabel = new wxStaticText( this, wxID_ANY, _("Content"), wxDefaultPosition, wxDefaultSize, 0 );
109 m_columnsLabel->Wrap( -1 );
110 bSizerRightCol->Add( m_columnsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
111
112 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
113 bSizerRightCol->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
114
115 wxFlexGridSizer* fgSizer4;
116 fgSizer4 = new wxFlexGridSizer( 0, 2, 5, 5 );
117 fgSizer4->AddGrowableCol( 1 );
118 fgSizer4->SetFlexibleDirection( wxBOTH );
119 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
120
121 m_lblDataSet = new wxStaticText( this, wxID_ANY, _("Data set:"), wxDefaultPosition, wxDefaultSize, 0 );
122 m_lblDataSet->Wrap( -1 );
123 fgSizer4->Add( m_lblDataSet, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
124
125 wxString m_choiceDataSetChoices[] = { _("All data (user-defined)"), _("Bill of materials"), _("Stackup"), _("Fabrication"), _("Assembly"), _("Test"), _("Stencil") };
126 int m_choiceDataSetNChoices = sizeof( m_choiceDataSetChoices ) / sizeof( wxString );
127 m_choiceDataSet = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDataSetNChoices, m_choiceDataSetChoices, 0 );
128 m_choiceDataSet->SetSelection( 0 );
129 m_choiceDataSet->SetToolTip( _("Which sections of the design the file carries, per the IPC-2581 function mode table") );
130
131 fgSizer4->Add( m_choiceDataSet, 0, wxEXPAND|wxRIGHT, 5 );
132
133 m_lblNetNames = new wxStaticText( this, wxID_ANY, _("Net names:"), wxDefaultPosition, wxDefaultSize, 0 );
134 m_lblNetNames->Wrap( -1 );
135 fgSizer4->Add( m_lblNetNames, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
136
137 wxString m_choiceNetNamesChoices[] = { _("Include"), _("Anonymize") };
138 int m_choiceNetNamesNChoices = sizeof( m_choiceNetNamesChoices ) / sizeof( wxString );
139 m_choiceNetNames = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceNetNamesNChoices, m_choiceNetNamesChoices, 0 );
140 m_choiceNetNames->SetSelection( 0 );
141 m_choiceNetNames->SetToolTip( _("Anonymized names keep connectivity for netlist compare without carrying the design intent") );
142
143 fgSizer4->Add( m_choiceNetNames, 0, wxEXPAND|wxRIGHT, 5 );
144
145 m_lblRefDes = new wxStaticText( this, wxID_ANY, _("Reference designators:"), wxDefaultPosition, wxDefaultSize, 0 );
146 m_lblRefDes->Wrap( -1 );
147 fgSizer4->Add( m_lblRefDes, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
148
149 wxString m_choiceRefDesChoices[] = { _("Include"), _("Omit") };
150 int m_choiceRefDesNChoices = sizeof( m_choiceRefDesChoices ) / sizeof( wxString );
151 m_choiceRefDes = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceRefDesNChoices, m_choiceRefDesChoices, 0 );
152 m_choiceRefDes->SetSelection( 0 );
153 m_choiceRefDes->SetToolTip( _("Omits the designator from the component, BOM and artwork metadata. Reference text drawn on silkscreen is artwork the fabricator must reproduce and is always kept.") );
154
155 fgSizer4->Add( m_choiceRefDes, 0, wxEXPAND|wxRIGHT, 5 );
156
157
158 bSizerRightCol->Add( fgSizer4, 1, wxALL|wxEXPAND, 5 );
159
160 m_lblIncludes = new wxStaticText( this, wxID_ANY, _("Includes:"), wxDefaultPosition, wxDefaultSize, 0 );
161 m_lblIncludes->Wrap( 280 );
162 bSizerRightCol->Add( m_lblIncludes, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
163
164 bSizerContentButtons = new wxBoxSizer( wxHORIZONTAL );
165
166 m_btnCustomize = new wxButton( this, wxID_ANY, _("Customize..."), wxDefaultPosition, wxDefaultSize, 0 );
167 bSizerContentButtons->Add( m_btnCustomize, 0, wxRIGHT, 5 );
168
169
170 bSizerContentButtons->Add( 0, 0, 1, wxEXPAND, 5 );
171
172 m_btnBomFields = new wxButton( this, wxID_ANY, _("BOM Fields..."), wxDefaultPosition, wxDefaultSize, 0 );
173 bSizerContentButtons->Add( m_btnBomFields, 0, wxLEFT, 5 );
174
175
176 bSizerRightCol->Add( bSizerContentButtons, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
177
178
179 bSizerMiddle->Add( bSizerRightCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
180
181
182 bMainSizer->Add( bSizerMiddle, 0, wxEXPAND|wxBOTTOM, 5 );
183
184 m_messagesPanel = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
185 m_messagesPanel->SetMinSize( wxSize( -300,150 ) );
186
187 bMainSizer->Add( m_messagesPanel, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
188
189 m_stdButtons = new wxStdDialogButtonSizer();
190 m_stdButtonsOK = new wxButton( this, wxID_OK );
191 m_stdButtons->AddButton( m_stdButtonsOK );
192 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
193 m_stdButtons->AddButton( m_stdButtonsCancel );
194 m_stdButtons->Realize();
195
196 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
197
198
199 this->SetSizer( bMainSizer );
200 this->Layout();
201 bMainSizer->Fit( this );
202
203 this->Centre( wxBOTH );
204
205 // Connect Events
206 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
207 m_cbCompress->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
208 m_choiceDataSet->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onDataSetChange ), NULL, this );
209 m_btnCustomize->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCustomizeClick ), NULL, this );
210 m_btnBomFields->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBomFieldsClick ), NULL, this );
211 m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
212}
213
215{
216 // Disconnect Events
217 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
218 m_cbCompress->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
219 m_choiceDataSet->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onDataSetChange ), NULL, this );
220 m_btnCustomize->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCustomizeClick ), NULL, this );
221 m_btnBomFields->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBomFieldsClick ), NULL, this );
222 m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
223
224}
virtual void onCustomizeClick(wxCommandEvent &event)
virtual void onBomFieldsClick(wxCommandEvent &event)
virtual void onDataSetChange(wxCommandEvent &event)
wxStdDialogButtonSizer * m_stdButtons
DIALOG_EXPORT_2581_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export IPC-2581"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onOKClick(wxCommandEvent &event)
WX_HTML_REPORT_PANEL * m_messagesPanel
STD_BITMAP_BUTTON * m_browseButton
virtual void onBrowseClicked(wxCommandEvent &event)
virtual void onCompressCheck(wxCommandEvent &event)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
A bitmap button widget that behaves like a standard dialog button except with an icon.
A widget for browsing a rich text error/status report.
#define _(s)