30 "<hr><table border=0>" 36 " <td><b>" +
_(
"Keywords" ) +
"</b></td>" 37 " <td>__KEYWORDS__</td>" 42 " <td><b>" +
_(
"Documentation" ) +
"</b></td>" 43 " <td><a href=\"__HREF__\">__TEXT__</a></td>" 67 wxCHECK_RET(
m_fp_lib_table,
"Footprint library table pointer is not valid" );
79 wxLogError(
wxString::Format(
_(
"Error loading footprint %s from library %s.\n\n%s" ),
94 int idx = desc.find( wxT(
"http:" ) );
98 doc = desc.substr( (
unsigned) idx );
100 desc = desc.substr( 0, (
unsigned) idx );
101 desc = desc.Trim(
true );
103 if( !desc.IsEmpty() && desc.Last() ==
',' )
104 desc.RemoveLast( 1 );
111 keywordsHtml.Replace(
"__KEYWORDS__",
EscapeHTML( keywords ) );
114 docHtml.Replace(
"__HREF__",
EscapeHTML( doc ) );
116 if( doc.Length() > 75 )
117 doc = doc.Left( 72 ) + wxT(
"..." );
119 docHtml.Replace(
"__TEXT__",
EscapeHTML( doc ) );
121 m_html.Replace(
"__FIELDS__", keywordsHtml + docHtml );
140 return gen.GetHtml();
const UTF8 & GetLibItemName() const
FOOTPRINT * FootprintLoad(const wxString &aNickname, const wxString &aFootprintName)
Load a footprint having aFootprintName from the library given by aNickname.
A logical library item identifier and consists of various portions much like a URI.
bool IsValid() const
Check if this LID_ID is valid.
#define gen(mvar, chg_bit, get, set, add, sub, changed)
virtual const wxString What() const
A composite of Problem() and Where()
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
wxString EscapeHTML(const wxString &aString)
Return a new wxString escaped for embedding in HTML.
Hold an error message and may be used when throwing exceptions containing meaningful error messages.