KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_2581_bom_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
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 );
24
25 m_lblBomRev = new wxStaticText( this, wxID_ANY, _("BOM revision:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_lblBomRev->Wrap( -1 );
27 m_lblBomRev->SetToolTip( _("Revision string for the BOM section. Auto-populated from schematic title block revision") );
28
29 fgSizer4->Add( m_lblBomRev, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
30
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") );
33
34 fgSizer4->Add( m_textBomRev, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
35
36 m_lblOEM = new wxStaticText( this, wxID_ANY, _("Internal ID:"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_lblOEM->Wrap( -1 );
38 m_lblOEM->SetToolTip( _("Part ID number used internally during design.\nThis number must be unique to each part.") );
39
40 fgSizer4->Add( m_lblOEM, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
41
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 );
45 m_oemRef->SetSelection( 0 );
46 m_oemRef->SetToolTip( _("Part ID number used internally during design.\nThis number must be unique to each part.") );
47
48 fgSizer4->Add( m_oemRef, 0, wxEXPAND|wxRIGHT, 5 );
49
50 m_staticText6 = new wxStaticText( this, wxID_ANY, _("Manufacturer P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_staticText6->Wrap( -1 );
52 m_staticText6->SetToolTip( _("Column containing the manufacturer part number") );
53
54 fgSizer4->Add( m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
55
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 );
59 m_choiceMPN->SetSelection( 0 );
60 m_choiceMPN->SetToolTip( _("Column containing the manufacturer part number") );
61
62 fgSizer4->Add( m_choiceMPN, 0, wxEXPAND|wxRIGHT, 5 );
63
64 m_staticText7 = new wxStaticText( this, wxID_ANY, _("Manufacturer:"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_staticText7->Wrap( -1 );
66 fgSizer4->Add( m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
67
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 );
71 m_choiceMfg->SetSelection( 0 );
72 m_choiceMfg->Enable( false );
73
74 fgSizer4->Add( m_choiceMfg, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
75
76 m_staticText8 = new wxStaticText( this, wxID_ANY, _("Distributor P/N:"), wxDefaultPosition, wxDefaultSize, 0 );
77 m_staticText8->Wrap( -1 );
78 fgSizer4->Add( m_staticText8, 0, wxALIGN_CENTER_VERTICAL, 5 );
79
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 );
83 m_choiceDistPN->SetSelection( 0 );
84 m_choiceDistPN->SetToolTip( _("Column containing the distributor part number") );
85
86 fgSizer4->Add( m_choiceDistPN, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
87
88 m_staticText9 = new wxStaticText( this, wxID_ANY, _("Distributor:"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_staticText9->Wrap( -1 );
90 fgSizer4->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL, 5 );
91
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 );
94
95
96 bMainSizer->Add( fgSizer4, 1, wxEXPAND|wxALL, 10 );
97
98 m_stdButtons = new wxStdDialogButtonSizer();
99 m_stdButtonsOK = new wxButton( this, wxID_OK );
100 m_stdButtons->AddButton( m_stdButtonsOK );
101 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
102 m_stdButtons->AddButton( m_stdButtonsCancel );
103 m_stdButtons->Realize();
104
105 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
106
107
108 this->SetSizer( bMainSizer );
109 this->Layout();
110 bMainSizer->Fit( this );
111
112 this->Centre( wxBOTH );
113
114 // Connect Events
115 m_choiceMPN->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BOM_BASE::onMfgPNChange ), NULL, this );
116 m_choiceDistPN->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BOM_BASE::onDistPNChange ), NULL, this );
117 m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BOM_BASE::onOKClick ), NULL, this );
118}
119
121{
122 // Disconnect Events
123 m_choiceMPN->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BOM_BASE::onMfgPNChange ), NULL, this );
124 m_choiceDistPN->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_2581_BOM_BASE::onDistPNChange ), NULL, this );
125 m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BOM_BASE::onOKClick ), NULL, this );
126
127}
virtual void onDistPNChange(wxCommandEvent &event)
DIALOG_EXPORT_2581_BOM_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("BOM Fields"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onMfgPNChange(wxCommandEvent &event)
virtual void onOKClick(wxCommandEvent &event)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)