43 const wxString& aFootprintName )
45 if( aFootprintName.IsEmpty() )
48 for( std::unique_ptr<FOOTPRINT_INFO>& fp :
m_list )
50 if( aLibNickname == fp->GetLibNickname() && aFootprintName == fp->GetFootprintName() )
60 if( aFootprintName.IsEmpty() )
65 wxCHECK_MSG( fpid.
Parse( aFootprintName ) < 0,
nullptr,
101 dlg.
MessageSet(
_(
"Errors were encountered loading footprints:" ) );
105 while( std::unique_ptr<IO_ERROR> error =
PopError() )
107 wxString tmp = error->Problem();
110 tmp.Replace( wxS(
"\n" ), wxS(
"<BR>" ) );
111 msg += wxT(
"<p>" ) + tmp + wxT(
"</p>" );
131 ptr =
kiface->IfaceOrAddress( aId );
153 return footprintInfo;
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
void MessageSet(const wxString &message)
Add a message (in bold) to message list.
void AddHTML_Text(const wxString &message)
Add HTML text (without any change) to message list.
virtual void * IfaceOrAddress(int aDataId) override=0
Return pointer to the requested object.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
virtual KIFACE * KiFACE(FACE_T aFaceId, bool doLoad=true)
Return the KIFACE* given a FACE_T.
virtual PROJECT & Prj() const
Return the PROJECT associated with this KIWAY.
A logical library item identifier and consists of various portions much like a URI.
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.
const UTF8 & GetLibItemName() const
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
virtual const wxString GetProjectPath() const
Return the full path of the project.
@ KIFACE_FOOTPRINT_LIST
Return a pointer to the global instance of FOOTPRINT_LIST from pcbnew.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.
Implement a participant in the KIWAY alchemy.