|
KiCad PCB EDA Suite
|
#include <generate_footprint_info.h>#include <ki_exception.h>#include <string_utils.h>#include <footprint.h>#include <footprint_library_adapter.h>#include <wx/log.h>Go to the source code of this file.
Classes | |
| class | FOOTPRINT_INFO_GENERATOR |
Functions | |
| std::optional< wxString > | GetFootprintDocumentationURL (const FOOTPRINT &aFootprint) |
| Get a URL to the documentation for a LIB_ID in a #FP_LIB_TABLE. | |
| wxString | GenerateFootprintInfo (FOOTPRINT_LIBRARY_ADAPTER *aAdapter, LIB_ID const &aLibId) |
| Return an HTML page describing a LIB_ID in a footprint library. | |
Variables | |
| static const wxString | DescriptionFormat |
| static const wxString | KeywordsFormat |
| static const wxString | DocFormat |
| wxString GenerateFootprintInfo | ( | FOOTPRINT_LIBRARY_ADAPTER * | aAdapter, |
| LIB_ID const & | aLibId ) |
Return an HTML page describing a LIB_ID in a footprint library.
This is suitable for inclusion in a wxHtmlWindow.
Definition at line 189 of file generate_footprint_info.cpp.
References FOOTPRINT_INFO_GENERATOR::GenerateHtml(), and FOOTPRINT_INFO_GENERATOR::GetHtml().
Referenced by FP_TREE_MODEL_ADAPTER::GenerateInfo().
| std::optional< wxString > GetFootprintDocumentationURL | ( | const FOOTPRINT & | aFootprint | ) |
Get a URL to the documentation for a LIB_ID in a #FP_LIB_TABLE.
This is suitable for opening in a web browser. Currently, for want of a proper home in the format, this is usually found in the "description" field of the footprint.
Definition at line 49 of file generate_footprint_info.cpp.
References DATASHEET, FOOTPRINT::GetField(), FOOTPRINT::GetLibDescription(), and EDA_TEXT::GetText().
Referenced by FOOTPRINT_INFO_GENERATOR::GenerateHtml(), and FOOTPRINT_EDITOR_CONTROL::ShowDatasheet().
|
static |
Definition at line 29 of file generate_footprint_info.cpp.
Referenced by FOOTPRINT_INFO_GENERATOR::FOOTPRINT_INFO_GENERATOR(), and FOOTPRINT_INFO_GENERATOR::FOOTPRINT_INFO_GENERATOR().
|
static |
Definition at line 42 of file generate_footprint_info.cpp.
Referenced by FOOTPRINT_INFO_GENERATOR::GenerateHtml().
|
static |
Definition at line 36 of file generate_footprint_info.cpp.
Referenced by FOOTPRINT_INFO_GENERATOR::GenerateHtml(), and FOOTPRINT_INFO_GENERATOR::SetHtmlKeywords().