12DIALOG_EXPORT_2581_BOM_BASE::DIALOG_EXPORT_2581_BOM_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* fgSizer4;
20 fgSizer4 =
new wxFlexGridSizer( 0, 2, 5, 5 );
21 fgSizer4->AddGrowableCol( 1 );
22 fgSizer4->SetFlexibleDirection( wxBOTH );
23 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25 m_lblBomRev =
new wxStaticText(
this, wxID_ANY,
_(
"BOM revision:"), wxDefaultPosition, wxDefaultSize, 0 );
27 m_lblBomRev->SetToolTip(
_(
"Revision string for the BOM section. Auto-populated from schematic title block revision") );
29 fgSizer4->Add(
m_lblBomRev, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
31 m_textBomRev =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32 m_textBomRev->SetToolTip(
_(
"Revision string for the BOM section. Auto-populated from schematic title block revision") );
34 fgSizer4->Add(
m_textBomRev, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
36 m_lblOEM =
new wxStaticText(
this, wxID_ANY,
_(
"Internal ID:"), wxDefaultPosition, wxDefaultSize, 0 );
38 m_lblOEM->SetToolTip(
_(
"Part ID number used internally during design.\nThis number must be unique to each part.") );
40 fgSizer4->Add(
m_lblOEM, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
42 wxString m_oemRefChoices[] = {
_(
"Generate unique") };
43 int m_oemRefNChoices =
sizeof( m_oemRefChoices ) /
sizeof( wxString );
44 m_oemRef =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_oemRefNChoices, m_oemRefChoices, 0 );
46 m_oemRef->SetToolTip(
_(
"Part ID number used internally during design.\nThis number must be unique to each part.") );
48 fgSizer4->Add(
m_oemRef, 0, wxEXPAND|wxRIGHT, 5 );
50 m_staticText6 =
new wxStaticText(
this, wxID_ANY,
_(
"Manufacturer P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_staticText6->SetToolTip(
_(
"Column containing the manufacturer part number") );
54 fgSizer4->Add(
m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
56 wxString m_choiceMPNChoices[] = {
_(
"Omit") };
57 int m_choiceMPNNChoices =
sizeof( m_choiceMPNChoices ) /
sizeof( wxString );
58 m_choiceMPN =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMPNNChoices, m_choiceMPNChoices, 0 );
60 m_choiceMPN->SetToolTip(
_(
"Column containing the manufacturer part number") );
62 fgSizer4->Add(
m_choiceMPN, 0, wxEXPAND|wxRIGHT, 5 );
64 m_staticText7 =
new wxStaticText(
this, wxID_ANY,
_(
"Manufacturer:"), wxDefaultPosition, wxDefaultSize, 0 );
66 fgSizer4->Add(
m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
68 wxString m_choiceMfgChoices[] = {
_(
"N/A") };
69 int m_choiceMfgNChoices =
sizeof( m_choiceMfgChoices ) /
sizeof( wxString );
70 m_choiceMfg =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMfgNChoices, m_choiceMfgChoices, 0 );
74 fgSizer4->Add(
m_choiceMfg, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
76 m_staticText8 =
new wxStaticText(
this, wxID_ANY,
_(
"Distributor P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
78 fgSizer4->Add(
m_staticText8, 0, wxALIGN_CENTER_VERTICAL, 5 );
80 wxString m_choiceDistPNChoices[] = {
_(
"Omit") };
81 int m_choiceDistPNNChoices =
sizeof( m_choiceDistPNChoices ) /
sizeof( wxString );
82 m_choiceDistPN =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDistPNNChoices, m_choiceDistPNChoices, 0 );
84 m_choiceDistPN->SetToolTip(
_(
"Column containing the distributor part number") );
86 fgSizer4->Add(
m_choiceDistPN, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
88 m_staticText9 =
new wxStaticText(
this, wxID_ANY,
_(
"Distributor:"), wxDefaultPosition, wxDefaultSize, 0 );
90 fgSizer4->Add(
m_staticText9, 0, wxALIGN_CENTER_VERTICAL, 5 );
92 m_textDistributor =
new wxTextCtrl(
this, wxID_ANY,
_(
"N/A"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
93 fgSizer4->Add(
m_textDistributor, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
96 bMainSizer->Add( fgSizer4, 1, wxEXPAND|wxALL, 10 );
108 this->SetSizer( bMainSizer );
110 bMainSizer->Fit(
this );
112 this->Centre( wxBOTH );