KiCad PCB EDA Suite
generate_alias_info.cpp File Reference

Go to the source code of this file.

Classes

class  ALIAS_INFO_GENERATOR
 

Functions

wxString GenerateAliasInfo (LIB_ALIAS const *aAlias, int aUnit)
 Return an HTML page describing a LIB_ALIAS. More...
 

Variables

static const wxString DescriptionFormat
 
static const wxString AliasOfFormat = "<br><i>" + _( "Alias of " ) + "%s (%s)</i>"
 
static const wxString DescFormat = "<br>%s"
 
static const wxString KeywordsFormat = "<br>" + _( "Keywords:" ) + " %s"
 
static const wxString FieldFormat
 
static const wxString DatasheetLinkFormat = "<a href=\"__VALUE__\">__VALUE__</a>"
 

Function Documentation

wxString GenerateAliasInfo ( LIB_ALIAS const *  aAlias,
int  aUnit 
)

Return an HTML page describing a LIB_ALIAS.

This is suitable for inclusion in a wxHtmlWindow.

Definition at line 174 of file generate_alias_info.cpp.

References ALIAS_INFO_GENERATOR::GenerateHtml(), and ALIAS_INFO_GENERATOR::GetHtml().

Referenced by COMPONENT_TREE::onTreeSelect().

175 {
176  ALIAS_INFO_GENERATOR gen( aAlias, aUnit );
177  gen.GenerateHtml();
178  return gen.GetHtml();
179 }

Variable Documentation

const wxString AliasOfFormat = "<br><i>" + _( "Alias of " ) + "%s (%s)</i>"
static

Definition at line 34 of file generate_alias_info.cpp.

Referenced by ALIAS_INFO_GENERATOR::SetHtmlAliasOf().

const wxString DatasheetLinkFormat = "<a href=\"__VALUE__\">__VALUE__</a>"
static

Definition at line 42 of file generate_alias_info.cpp.

Referenced by ALIAS_INFO_GENERATOR::GetHtmlFieldRow().

const wxString DescFormat = "<br>%s"
static

Definition at line 35 of file generate_alias_info.cpp.

Referenced by ALIAS_INFO_GENERATOR::SetHtmlDesc().

const wxString DescriptionFormat
static
Initial value:
=
"<b>__NAME__</b>"
"__ALIASOF__"
"__DESC__"
"__KEY__"
"<hr><table border=0>"
"__FIELDS__"
"</table>"

Definition at line 25 of file generate_alias_info.cpp.

const wxString FieldFormat
static
Initial value:
=
"<tr>"
" <td><b>__NAME__</b></td>"
" <td>__VALUE__</td>"
"</tr>"

Definition at line 37 of file generate_alias_info.cpp.

Referenced by ALIAS_INFO_GENERATOR::GetHtmlFieldRow().

const wxString KeywordsFormat = "<br>" + _( "Keywords:" ) + " %s"
static

Definition at line 36 of file generate_alias_info.cpp.

Referenced by ALIAS_INFO_GENERATOR::SetHtmlKeywords().