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 )
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 wxBoxSizer* bMainSizer;
20 bMainSizer =
new wxBoxSizer( wxVERTICAL );
22 bSizerTop =
new wxBoxSizer( wxHORIZONTAL );
24 m_lblBrdFile =
new wxStaticText(
this, wxID_ANY,
_(
"File:"), wxDefaultPosition, wxDefaultSize, 0 );
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") );
38 bMainSizer->Add(
bSizerTop, 0, wxEXPAND|wxALL, 10 );
40 wxBoxSizer* bSizerMiddle;
41 bSizerMiddle =
new wxBoxSizer( wxHORIZONTAL );
43 wxBoxSizer* bSizerLeftCol;
44 bSizerLeftCol =
new wxBoxSizer( wxVERTICAL );
46 m_fileFormatLabel =
new wxStaticText(
this, wxID_ANY,
_(
"File Format"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
53 wxGridBagSizer* gbSizer1;
54 gbSizer1 =
new wxGridBagSizer( 5, 5 );
55 gbSizer1->SetFlexibleDirection( wxBOTH );
56 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
58 m_lblUnits =
new wxStaticText(
this, wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
60 gbSizer1->Add(
m_lblUnits, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
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 );
66 gbSizer1->Add(
m_choiceUnits, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
68 m_lblPrecision =
new wxStaticText(
this, wxID_ANY,
_(
"Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_lblPrecision->SetToolTip(
_(
"The number of values following the decimal separator") );
72 gbSizer1->Add(
m_lblPrecision, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
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") );
77 gbSizer1->Add(
m_precision, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
79 m_lblVersion =
new wxStaticText(
this, wxID_ANY,
_(
"Version:"), wxDefaultPosition, wxDefaultSize, 0 );
81 gbSizer1->Add(
m_lblVersion, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
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 );
87 gbSizer1->Add(
m_versionChoice, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
89 m_cbCompress =
new wxCheckBox(
this, wxID_ANY,
_(
"Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_cbCompress->SetToolTip(
_(
"Compress output into 'zip' file") );
92 gbSizer1->Add(
m_cbCompress, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxTOP, 5 );
95 gbSizer1->AddGrowableCol( 1 );
97 bSizerLeftCol->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT, 5 );
100 bSizerMiddle->Add( bSizerLeftCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
103 bSizerMiddle->Add( 10, 0, 0, wxEXPAND, 5 );
105 wxBoxSizer* bSizerRightCol;
106 bSizerRightCol =
new wxBoxSizer( wxVERTICAL );
108 m_columnsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"BOM Columns"), wxDefaultPosition, wxDefaultSize, 0 );
110 bSizerRightCol->Add(
m_columnsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
112 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
113 bSizerRightCol->Add(
m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
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 );
121 m_lblOEM =
new wxStaticText(
this, wxID_ANY,
_(
"Internal ID:"), wxDefaultPosition, wxDefaultSize, 0 );
123 m_lblOEM->SetToolTip(
_(
"Part ID number used internally during design.\nThis number must be unique to each part.") );
125 fgSizer4->Add(
m_lblOEM, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
127 wxString m_oemRefChoices[] = {
_(
"Generate Unique") };
128 int m_oemRefNChoices =
sizeof( m_oemRefChoices ) /
sizeof( wxString );
129 m_oemRef =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_oemRefNChoices, m_oemRefChoices, 0 );
131 m_oemRef->SetToolTip(
_(
"Part ID number used internally during design.\nThis number must be unique to each part.") );
133 fgSizer4->Add(
m_oemRef, 0, wxEXPAND|wxRIGHT, 5 );
135 m_staticText6 =
new wxStaticText(
this, wxID_ANY,
_(
"Manufacturer P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
137 m_staticText6->SetToolTip(
_(
"Column containing the manufacturer part number") );
139 fgSizer4->Add(
m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
141 wxString m_choiceMPNChoices[] = {
_(
"Omit") };
142 int m_choiceMPNNChoices =
sizeof( m_choiceMPNChoices ) /
sizeof( wxString );
143 m_choiceMPN =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMPNNChoices, m_choiceMPNChoices, 0 );
145 m_choiceMPN->SetToolTip(
_(
"Column containing the manufacturer part number") );
147 fgSizer4->Add(
m_choiceMPN, 0, wxEXPAND|wxRIGHT, 5 );
149 m_staticText7 =
new wxStaticText(
this, wxID_ANY,
_(
"Manufacturer:"), wxDefaultPosition, wxDefaultSize, 0 );
151 fgSizer4->Add(
m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
153 wxString m_choiceMfgChoices[] = {
_(
"N/A") };
154 int m_choiceMfgNChoices =
sizeof( m_choiceMfgChoices ) /
sizeof( wxString );
155 m_choiceMfg =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMfgNChoices, m_choiceMfgChoices, 0 );
159 fgSizer4->Add(
m_choiceMfg, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
161 m_staticText8 =
new wxStaticText(
this, wxID_ANY,
_(
"Distributor P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
163 fgSizer4->Add(
m_staticText8, 0, wxALIGN_CENTER_VERTICAL, 5 );
165 wxString m_choiceDistPNChoices[] = {
_(
"Omit") };
166 int m_choiceDistPNNChoices =
sizeof( m_choiceDistPNChoices ) /
sizeof( wxString );
167 m_choiceDistPN =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDistPNNChoices, m_choiceDistPNChoices, 0 );
169 m_choiceDistPN->SetToolTip(
_(
"Column containing the distributor part number") );
171 fgSizer4->Add(
m_choiceDistPN, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
173 m_staticText9 =
new wxStaticText(
this, wxID_ANY,
_(
"Distributor:"), wxDefaultPosition, wxDefaultSize, 0 );
175 fgSizer4->Add(
m_staticText9, 0, wxALIGN_CENTER_VERTICAL, 5 );
177 m_textDistributor =
new wxTextCtrl(
this, wxID_ANY,
_(
"N/A"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
178 fgSizer4->Add(
m_textDistributor, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
181 bSizerRightCol->Add( fgSizer4, 1, wxALL|wxEXPAND, 5 );
184 bSizerMiddle->Add( bSizerRightCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
187 bMainSizer->Add( bSizerMiddle, 0, wxEXPAND|wxBOTTOM, 5 );
204 this->SetSizer( bMainSizer );
206 bMainSizer->Fit(
this );
208 this->Centre( wxBOTH );