36 std::set<wxString> options;
40 for( PCB_FIELD* field : fp->GetFields() )
42 wxCHECK2( field, continue );
44 options.insert( field->GetName() );
48 std::vector<wxString> items( options.begin(), options.end() );
49 m_oemRef->Append( items );
50 m_choiceMPN->Append( items );
51 m_choiceMfg->Append( items );
52 m_choiceDistPN->Append( items );
54 SetupStandardButtons();
55 finishDialogSettings();
61 if( !aChoice->IsEnabled() || aChoice->GetSelection() <= 0 )
64 return aChoice->GetStringSelection();
124 if( event.GetSelection() == 0 )
138 if( it =
m_choiceMfg->FindString( wxT(
"manufacturer" ) ); it != wxNOT_FOUND )
140 else if( it =
m_choiceMfg->FindString(
_(
"manufacturer" ) ); it != wxNOT_FOUND )
142 else if( it =
m_choiceMfg->FindString( wxT(
"mfg" ) ); it != wxNOT_FOUND )
144 else if( it =
m_choiceMfg->FindString(
_(
"mfg" ) ); it != wxNOT_FOUND )
152 if( event.GetSelection() == 0 )
170 if( dist.Contains( wxT(
"DIGIKEY" ) ) )
174 else if( dist.Contains( wxT(
"DIGI-KEY" ) ) )
178 else if( dist.Contains( wxT(
"MOUSER" ) ) )
182 else if( dist.Contains( wxT(
"NEWARK" ) ) )
186 else if( dist.Contains( wxT(
"RS COMPONENTS" ) ) )
190 else if( dist.Contains( wxT(
"FARNELL" ) ) )
194 else if( dist.Contains( wxT(
"ARROW" ) ) )
198 else if( dist.Contains( wxT(
"AVNET" ) ) )
202 else if( dist.Contains( wxT(
"TME" ) ) )
206 else if( dist.Contains( wxT(
"LCSC" ) ) )
Information pertinent to a Pcbnew printed circuit board.
const FOOTPRINTS & Footprints() const
wxTextCtrl * m_textDistributor
wxChoice * m_choiceDistPN
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)
wxTextCtrl * m_textBomRev
IPC2581_BOM_FIELDS m_fields
void onDistPNChange(wxCommandEvent &event) override
void onMfgPNChange(wxCommandEvent &event) override
bool TransferDataFromWindow() override
DIALOG_EXPORT_2581_BOM(wxWindow *aParent, BOARD *aBoard, const IPC2581_BOM_FIELDS &aFields)
bool TransferDataToWindow() override
wxString choiceValue(const wxChoice *aChoice) const
Fields that supply the IPC-2581 BOM section.