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.0.0-0-g0efcecf02)
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|wxLEFT, 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|wxRIGHT, 5 );
35
36
37 bMainSizer->Add( bSizerTop, 0, wxBOTTOM|wxEXPAND|wxTOP, 15 );
38
39 wxBoxSizer* bSizer3;
40 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
41
42 wxStaticBoxSizer* sbSizer1;
43 sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("File Format") ), wxVERTICAL );
44
45 wxFlexGridSizer* fgSizer;
46 fgSizer = new wxFlexGridSizer( 0, 2, 0, 0 );
47 fgSizer->AddGrowableCol( 1 );
48 fgSizer->SetFlexibleDirection( wxBOTH );
49 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
50
51 m_lblUnits = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_lblUnits->Wrap( -1 );
53 fgSizer->Add( m_lblUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
54
55 wxString m_choiceUnitsChoices[] = { _("Millimeters"), _("Inches") };
56 int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
57 m_choiceUnits = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
58 m_choiceUnits->SetSelection( 0 );
59 fgSizer->Add( m_choiceUnits, 0, wxALL|wxEXPAND, 5 );
60
61 m_lblPrecision = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_lblPrecision->Wrap( -1 );
63 m_lblPrecision->SetToolTip( _("The number of values following the decimal separator") );
64
65 fgSizer->Add( m_lblPrecision, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
66
67 m_precision = new wxSpinCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 2, 16, 3 );
68 m_precision->SetToolTip( _("The number of values following the decimal separator") );
69
70 fgSizer->Add( m_precision, 0, wxALL|wxEXPAND, 5 );
71
72 m_lblVersion = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Version:"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_lblVersion->Wrap( -1 );
74 fgSizer->Add( m_lblVersion, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
75
76 wxString m_versionChoiceChoices[] = { _("B"), _("C") };
77 int m_versionChoiceNChoices = sizeof( m_versionChoiceChoices ) / sizeof( wxString );
78 m_versionChoice = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_versionChoiceNChoices, m_versionChoiceChoices, 0 );
79 m_versionChoice->SetSelection( 1 );
80 fgSizer->Add( m_versionChoice, 0, wxALL|wxEXPAND, 5 );
81
82 m_cbCompress = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
83 m_cbCompress->SetToolTip( _("Compress output into 'zip' file") );
84
85 fgSizer->Add( m_cbCompress, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
86
87
88 sbSizer1->Add( fgSizer, 3, wxEXPAND|wxALL, 5 );
89
90
91 bSizer3->Add( sbSizer1, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
92
93 wxStaticBoxSizer* sbSizer2;
94 sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("BOM Columns") ), wxVERTICAL );
95
96 wxFlexGridSizer* fgSizer4;
97 fgSizer4 = new wxFlexGridSizer( 0, 2, 5, 0 );
98 fgSizer4->AddGrowableCol( 1 );
99 fgSizer4->SetFlexibleDirection( wxBOTH );
100 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
101
102 m_lblOEM = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Internal ID:"), wxDefaultPosition, wxDefaultSize, 0 );
103 m_lblOEM->Wrap( -1 );
104 m_lblOEM->SetToolTip( _("Part ID number used internally during design.\nThis number must be unique to each part.") );
105
106 fgSizer4->Add( m_lblOEM, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
107
108 wxString m_oemRefChoices[] = { _("Generate Unique") };
109 int m_oemRefNChoices = sizeof( m_oemRefChoices ) / sizeof( wxString );
110 m_oemRef = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_oemRefNChoices, m_oemRefChoices, 0 );
111 m_oemRef->SetSelection( 0 );
112 m_oemRef->SetToolTip( _("Part ID number used internally during design.\nThis number must be unique to each part.") );
113
114 fgSizer4->Add( m_oemRef, 0, wxEXPAND, 5 );
115
116 m_staticText6 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Manufacturer P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_staticText6->Wrap( -1 );
118 m_staticText6->SetToolTip( _("Column containing the manufacturer part number") );
119
120 fgSizer4->Add( m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
121
122 wxString m_choiceMPNChoices[] = { _("Omit") };
123 int m_choiceMPNNChoices = sizeof( m_choiceMPNChoices ) / sizeof( wxString );
124 m_choiceMPN = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMPNNChoices, m_choiceMPNChoices, 0 );
125 m_choiceMPN->SetSelection( 0 );
126 m_choiceMPN->SetToolTip( _("Column containing the manufacturer part number") );
127
128 fgSizer4->Add( m_choiceMPN, 0, wxEXPAND, 5 );
129
130 m_staticText7 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Manufacturer:"), wxDefaultPosition, wxDefaultSize, 0 );
131 m_staticText7->Wrap( -1 );
132 fgSizer4->Add( m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
133
134 wxString m_choiceMfgChoices[] = { _("N/A") };
135 int m_choiceMfgNChoices = sizeof( m_choiceMfgChoices ) / sizeof( wxString );
136 m_choiceMfg = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMfgNChoices, m_choiceMfgChoices, 0 );
137 m_choiceMfg->SetSelection( 0 );
138 m_choiceMfg->Enable( false );
139
140 fgSizer4->Add( m_choiceMfg, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
141
142 m_staticText8 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Distributor P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
143 m_staticText8->Wrap( -1 );
144 fgSizer4->Add( m_staticText8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
145
146 wxString m_choiceDistPNChoices[] = { _("Omit") };
147 int m_choiceDistPNNChoices = sizeof( m_choiceDistPNChoices ) / sizeof( wxString );
148 m_choiceDistPN = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDistPNNChoices, m_choiceDistPNChoices, 0 );
149 m_choiceDistPN->SetSelection( 0 );
150 m_choiceDistPN->SetToolTip( _("Column containing the distributor part number") );
151
152 fgSizer4->Add( m_choiceDistPN, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
153
154 m_staticText9 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Distributor:"), wxDefaultPosition, wxDefaultSize, 0 );
155 m_staticText9->Wrap( -1 );
156 fgSizer4->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
157
158 m_textDistributor = new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY, _("N/A"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
159 fgSizer4->Add( m_textDistributor, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
160
161
162 sbSizer2->Add( fgSizer4, 1, wxBOTTOM|wxEXPAND|wxRIGHT, 5 );
163
164
165 bSizer3->Add( sbSizer2, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
166
167
168 bMainSizer->Add( bSizer3, 0, wxEXPAND, 5 );
169
170
171 bMainSizer->Add( 0, 0, 1, wxEXPAND, 5 );
172
173 m_stdButtons = new wxStdDialogButtonSizer();
174 m_stdButtonsOK = new wxButton( this, wxID_OK );
175 m_stdButtons->AddButton( m_stdButtonsOK );
176 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
177 m_stdButtons->AddButton( m_stdButtonsCancel );
178 m_stdButtons->Realize();
179
180 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
181
182
183 this->SetSizer( bMainSizer );
184 this->Layout();
185
186 this->Centre( wxBOTH );
187
188 // Connect Events
189 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
190 m_cbCompress->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
191 m_choiceMPN->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onMfgPNChange ), NULL, this );
192 m_choiceDistPN->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onDistPNChange ), NULL, this );
193 m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
194}
195
197{
198 // Disconnect Events
199 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
200 m_cbCompress->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
201 m_choiceMPN->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onMfgPNChange ), NULL, this );
202 m_choiceDistPN->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onDistPNChange ), NULL, this );
203 m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
204
205}
virtual void onMfgPNChange(wxCommandEvent &event)
wxStdDialogButtonSizer * m_stdButtons
virtual void onOKClick(wxCommandEvent &event)
virtual void onDistPNChange(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_browseButton
virtual void onBrowseClicked(wxCommandEvent &event)
DIALOG_EXPORT_2581_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export IPC-2581"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(531, 358), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
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)