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-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14DIALOG_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 )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bMainSizer;
19 bMainSizer = new wxBoxSizer( wxVERTICAL );
20
21 bSizerTop = new wxBoxSizer( wxHORIZONTAL );
22
23 m_lblBrdFile = new wxStaticText( this, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_lblBrdFile->Wrap( -1 );
25 bSizerTop->Add( m_lblBrdFile, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
26
27 m_outputFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
28 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") );
29 m_outputFileName->SetMinSize( wxSize( 350,-1 ) );
30
31 bSizerTop->Add( m_outputFileName, 1, wxALIGN_CENTER_VERTICAL, 5 );
32
33 m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
34 bSizerTop->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL, 10 );
35
36
37 bMainSizer->Add( bSizerTop, 0, wxEXPAND|wxALL, 10 );
38
39 wxBoxSizer* bSizerMiddle;
40 bSizerMiddle = new wxBoxSizer( wxHORIZONTAL );
41
42 wxBoxSizer* bSizerLeftCol;
43 bSizerLeftCol = new wxBoxSizer( wxVERTICAL );
44
45 m_fileFormatLabel = new wxStaticText( this, wxID_ANY, _("File Format"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_fileFormatLabel->Wrap( -1 );
47 bSizerLeftCol->Add( m_fileFormatLabel, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
48
49 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
50 bSizerLeftCol->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
51
52 wxGridBagSizer* gbSizer1;
53 gbSizer1 = new wxGridBagSizer( 5, 5 );
54 gbSizer1->SetFlexibleDirection( wxBOTH );
55 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
56
57 m_lblUnits = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_lblUnits->Wrap( -1 );
59 gbSizer1->Add( m_lblUnits, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
60
61 wxString m_choiceUnitsChoices[] = { _("Millimeters"), _("Inches") };
62 int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
63 m_choiceUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
64 m_choiceUnits->SetSelection( 0 );
65 gbSizer1->Add( m_choiceUnits, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
66
67 m_lblPrecision = new wxStaticText( this, wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_lblPrecision->Wrap( -1 );
69 m_lblPrecision->SetToolTip( _("The number of values following the decimal separator") );
70
71 gbSizer1->Add( m_lblPrecision, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
72
73 m_precision = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 4, 10, 6 );
74 m_precision->SetToolTip( _("The number of values following the decimal separator") );
75
76 gbSizer1->Add( m_precision, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
77
78 m_lblVersion = new wxStaticText( this, wxID_ANY, _("Version:"), wxDefaultPosition, wxDefaultSize, 0 );
79 m_lblVersion->Wrap( -1 );
80 gbSizer1->Add( m_lblVersion, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
81
82 wxString m_versionChoiceChoices[] = { _("B"), _("C") };
83 int m_versionChoiceNChoices = sizeof( m_versionChoiceChoices ) / sizeof( wxString );
84 m_versionChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_versionChoiceNChoices, m_versionChoiceChoices, 0 );
85 m_versionChoice->SetSelection( 1 );
86 gbSizer1->Add( m_versionChoice, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
87
88 m_cbCompress = new wxCheckBox( this, wxID_ANY, _("Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_cbCompress->SetToolTip( _("Compress output into 'zip' file") );
90
91 gbSizer1->Add( m_cbCompress, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxTOP, 5 );
92
93
94 gbSizer1->AddGrowableCol( 1 );
95
96 bSizerLeftCol->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT, 5 );
97
98
99 bSizerMiddle->Add( bSizerLeftCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
100
101
102 bSizerMiddle->Add( 10, 0, 0, wxEXPAND, 5 );
103
104 wxBoxSizer* bSizerRightCol;
105 bSizerRightCol = new wxBoxSizer( wxVERTICAL );
106
107 m_columnsLabel = new wxStaticText( this, wxID_ANY, _("BOM Columns"), wxDefaultPosition, wxDefaultSize, 0 );
108 m_columnsLabel->Wrap( -1 );
109 bSizerRightCol->Add( m_columnsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
110
111 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
112 bSizerRightCol->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
113
114 wxFlexGridSizer* fgSizer4;
115 fgSizer4 = new wxFlexGridSizer( 0, 2, 5, 5 );
116 fgSizer4->AddGrowableCol( 1 );
117 fgSizer4->SetFlexibleDirection( wxBOTH );
118 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
119
120 m_lblOEM = new wxStaticText( this, wxID_ANY, _("Internal ID:"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_lblOEM->Wrap( -1 );
122 m_lblOEM->SetToolTip( _("Part ID number used internally during design.\nThis number must be unique to each part.") );
123
124 fgSizer4->Add( m_lblOEM, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
125
126 wxString m_oemRefChoices[] = { _("Generate Unique") };
127 int m_oemRefNChoices = sizeof( m_oemRefChoices ) / sizeof( wxString );
128 m_oemRef = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_oemRefNChoices, m_oemRefChoices, 0 );
129 m_oemRef->SetSelection( 0 );
130 m_oemRef->SetToolTip( _("Part ID number used internally during design.\nThis number must be unique to each part.") );
131
132 fgSizer4->Add( m_oemRef, 0, wxEXPAND|wxRIGHT, 5 );
133
134 m_staticText6 = new wxStaticText( this, wxID_ANY, _("Manufacturer P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
135 m_staticText6->Wrap( -1 );
136 m_staticText6->SetToolTip( _("Column containing the manufacturer part number") );
137
138 fgSizer4->Add( m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
139
140 wxString m_choiceMPNChoices[] = { _("Omit") };
141 int m_choiceMPNNChoices = sizeof( m_choiceMPNChoices ) / sizeof( wxString );
142 m_choiceMPN = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMPNNChoices, m_choiceMPNChoices, 0 );
143 m_choiceMPN->SetSelection( 0 );
144 m_choiceMPN->SetToolTip( _("Column containing the manufacturer part number") );
145
146 fgSizer4->Add( m_choiceMPN, 0, wxEXPAND|wxRIGHT, 5 );
147
148 m_staticText7 = new wxStaticText( this, wxID_ANY, _("Manufacturer:"), wxDefaultPosition, wxDefaultSize, 0 );
149 m_staticText7->Wrap( -1 );
150 fgSizer4->Add( m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
151
152 wxString m_choiceMfgChoices[] = { _("N/A") };
153 int m_choiceMfgNChoices = sizeof( m_choiceMfgChoices ) / sizeof( wxString );
154 m_choiceMfg = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMfgNChoices, m_choiceMfgChoices, 0 );
155 m_choiceMfg->SetSelection( 0 );
156 m_choiceMfg->Enable( false );
157
158 fgSizer4->Add( m_choiceMfg, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
159
160 m_staticText8 = new wxStaticText( this, wxID_ANY, _("Distributor P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
161 m_staticText8->Wrap( -1 );
162 fgSizer4->Add( m_staticText8, 0, wxALIGN_CENTER_VERTICAL, 5 );
163
164 wxString m_choiceDistPNChoices[] = { _("Omit") };
165 int m_choiceDistPNNChoices = sizeof( m_choiceDistPNChoices ) / sizeof( wxString );
166 m_choiceDistPN = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDistPNNChoices, m_choiceDistPNChoices, 0 );
167 m_choiceDistPN->SetSelection( 0 );
168 m_choiceDistPN->SetToolTip( _("Column containing the distributor part number") );
169
170 fgSizer4->Add( m_choiceDistPN, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
171
172 m_staticText9 = new wxStaticText( this, wxID_ANY, _("Distributor:"), wxDefaultPosition, wxDefaultSize, 0 );
173 m_staticText9->Wrap( -1 );
174 fgSizer4->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL, 5 );
175
176 m_textDistributor = new wxTextCtrl( this, wxID_ANY, _("N/A"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
177 fgSizer4->Add( m_textDistributor, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
178
179
180 bSizerRightCol->Add( fgSizer4, 1, wxALL|wxEXPAND, 5 );
181
182
183 bSizerMiddle->Add( bSizerRightCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
184
185
186 bMainSizer->Add( bSizerMiddle, 0, wxEXPAND|wxBOTTOM, 5 );
187
188 m_stdButtons = new wxStdDialogButtonSizer();
189 m_stdButtonsOK = new wxButton( this, wxID_OK );
190 m_stdButtons->AddButton( m_stdButtonsOK );
191 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
192 m_stdButtons->AddButton( m_stdButtonsCancel );
193 m_stdButtons->Realize();
194
195 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
196
197
198 this->SetSizer( bMainSizer );
199 this->Layout();
200 bMainSizer->Fit( this );
201
202 this->Centre( wxBOTH );
203
204 // Connect Events
205 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
206 m_cbCompress->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
207 m_choiceMPN->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onMfgPNChange ), NULL, this );
208 m_choiceDistPN->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onDistPNChange ), NULL, this );
209 m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
210}
211
213{
214 // Disconnect Events
215 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
216 m_cbCompress->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
217 m_choiceMPN->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onMfgPNChange ), NULL, this );
218 m_choiceDistPN->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onDistPNChange ), NULL, this );
219 m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
220
221}
virtual void onMfgPNChange(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)
virtual void onDistPNChange(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_browseButton
virtual void onBrowseClicked(wxCommandEvent &event)
virtual void onCompressCheck(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
A bitmap button widget that behaves like a standard dialog button except with an icon.
#define _(s)