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 )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 bSizerTop =
new wxBoxSizer( wxHORIZONTAL );
23 m_lblBrdFile =
new wxStaticText(
this, wxID_ANY,
_(
"File:"), wxDefaultPosition, wxDefaultSize, 0 );
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") );
37 bMainSizer->Add(
bSizerTop, 0, wxBOTTOM|wxEXPAND|wxTOP, 15 );
40 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
42 wxStaticBoxSizer* sbSizer1;
43 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"File Format") ), wxVERTICAL );
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 );
51 m_lblUnits =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
53 fgSizer->Add(
m_lblUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
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 );
61 m_lblPrecision =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_lblPrecision->SetToolTip(
_(
"The number of values following the decimal separator") );
65 fgSizer->Add(
m_lblPrecision, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
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") );
72 m_lblVersion =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Version:"), wxDefaultPosition, wxDefaultSize, 0 );
74 fgSizer->Add(
m_lblVersion, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
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 );
82 m_cbCompress =
new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
83 m_cbCompress->SetToolTip(
_(
"Compress output into 'zip' file") );
85 fgSizer->Add(
m_cbCompress, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
88 sbSizer1->Add( fgSizer, 3, wxEXPAND|wxALL, 5 );
91 bSizer3->Add( sbSizer1, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
93 wxStaticBoxSizer* sbSizer2;
94 sbSizer2 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"BOM Columns") ), wxVERTICAL );
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 );
102 m_lblOEM =
new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Internal ID:"), wxDefaultPosition, wxDefaultSize, 0 );
104 m_lblOEM->SetToolTip(
_(
"Part ID number used internally during design.\nThis number must be unique to each part.") );
106 fgSizer4->Add(
m_lblOEM, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
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 );
112 m_oemRef->SetToolTip(
_(
"Part ID number used internally during design.\nThis number must be unique to each part.") );
114 fgSizer4->Add(
m_oemRef, 0, wxEXPAND, 5 );
116 m_staticText6 =
new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Manufacturer P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
118 m_staticText6->SetToolTip(
_(
"Column containing the manufacturer part number") );
120 fgSizer4->Add(
m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
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 );
126 m_choiceMPN->SetToolTip(
_(
"Column containing the manufacturer part number") );
130 m_staticText7 =
new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Manufacturer:"), wxDefaultPosition, wxDefaultSize, 0 );
132 fgSizer4->Add(
m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
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 );
140 fgSizer4->Add(
m_choiceMfg, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
142 m_staticText8 =
new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Distributor P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
144 fgSizer4->Add(
m_staticText8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
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 );
150 m_choiceDistPN->SetToolTip(
_(
"Column containing the distributor part number") );
152 fgSizer4->Add(
m_choiceDistPN, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
154 m_staticText9 =
new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Distributor:"), wxDefaultPosition, wxDefaultSize, 0 );
156 fgSizer4->Add(
m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
158 m_textDistributor =
new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"N/A"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
162 sbSizer2->Add( fgSizer4, 1, wxBOTTOM|wxEXPAND|wxRIGHT, 5 );
165 bSizer3->Add( sbSizer2, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
168 bMainSizer->Add( bSizer3, 0, wxEXPAND, 5 );
171 bMainSizer->Add( 0, 0, 1, wxEXPAND, 5 );
183 this->SetSizer( bMainSizer );
186 this->Centre( wxBOTH );
virtual void onMfgPNChange(wxCommandEvent &event)
wxStaticText * m_staticText9
wxStaticText * m_lblBrdFile
wxStdDialogButtonSizer * m_stdButtons
wxStaticText * m_staticText8
wxTextCtrl * m_outputFileName
wxStaticText * m_lblPrecision
wxStaticText * m_staticText7
wxButton * m_stdButtonsCancel
wxChoice * m_versionChoice
~DIALOG_EXPORT_2581_BASE()
wxStaticText * m_lblUnits
wxStaticText * m_staticText6
virtual void onOKClick(wxCommandEvent &event)
virtual void onDistPNChange(wxCommandEvent &event)
wxTextCtrl * m_textDistributor
wxStaticText * m_lblVersion
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)
wxChoice * m_choiceDistPN
wxButton * m_stdButtonsOK
virtual void onCompressCheck(wxCommandEvent &event)
wxCheckBox * m_cbCompress
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...