KiCad PCB EDA Suite
|
#include <design_block_info.h>
Public Member Functions | |
virtual | ~DESIGN_BLOCK_INFO () |
const wxString & | GetDesignBlockName () const |
wxString | GetLibNickname () const override |
wxString | GetName () const override |
LIB_ID | GetLIB_ID () const override |
wxString | GetDesc () override |
void | SetDesc (const wxString &aDesc) |
wxString | GetKeywords () |
std::vector< SEARCH_TERM > | GetSearchTerms () override |
int | GetOrderNum () |
bool | InLibrary (const wxString &aLibrary) const |
Test if the DESIGN_BLOCK_INFO object was loaded from aLibrary. | |
virtual void | GetChooserFields (std::map< wxString, wxString > &aColumnMap) |
Retrieves a key/value map of the fields on this item that should be exposed to the library browser/chooser for displaying in columns, searching, etc. | |
virtual bool | IsRoot () const |
For items having aliases, IsRoot() indicates the principal item. | |
virtual wxString | GetFootprint () |
For items with footprint fields. | |
virtual int | GetPinCount () |
The pin count for symbols or the unique pad count for footprints. | |
virtual int | GetSubUnitCount () const |
For items with units, return the number of units. | |
virtual wxString | GetUnitReference (int aUnit) |
For items with units, return an identifier for unit x. | |
virtual wxString | GetUnitDisplayName (int aUnit) |
For items with units, return a display name for unit x. | |
virtual bool | HasUnitDisplayName (int aUnit) |
For items with units, return true if a display name is set for x. | |
Protected Member Functions | |
void | ensure_loaded () |
virtual void | load () |
lazily load stuff not filled in by constructor. This may throw IO_ERRORS. | |
Protected Attributes | |
DESIGN_BLOCK_LIST * | m_owner |
provides access to DESIGN_BLOCK_LIB_TABLE | |
bool | m_loaded |
wxString | m_nickname |
library as known in DESIGN_BLOCK_LIB_TABLE | |
wxString | m_dbname |
Module name. | |
int | m_num |
Order number in the display list. | |
wxString | m_doc |
Design block description. | |
wxString | m_keywords |
Design block keywords. | |
Friends | |
bool | operator< (const DESIGN_BLOCK_INFO &lhs, const DESIGN_BLOCK_INFO &rhs) |
Less than comparison operator, intended for sorting DESIGN_BLOCK_INFO objects. | |
Definition at line 59 of file design_block_info.h.
|
inlinevirtual |
Definition at line 62 of file design_block_info.h.
|
inlineprotected |
Definition at line 113 of file design_block_info.h.
|
inlinevirtualinherited |
Retrieves a key/value map of the fields on this item that should be exposed to the library browser/chooser for displaying in columns, searching, etc.
Reimplemented in LIB_SYMBOL.
Definition at line 57 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 75 of file design_block_info.h.
Referenced by GetSearchTerms().
|
inline |
Definition at line 67 of file design_block_info.h.
|
inlinevirtualinherited |
For items with footprint fields.
Reimplemented in LIB_SYMBOL.
Definition at line 69 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM().
|
inline |
Definition at line 83 of file design_block_info.h.
Referenced by GetSearchTerms().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 73 of file design_block_info.h.
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 69 of file design_block_info.h.
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 71 of file design_block_info.h.
Referenced by GetSearchTerms().
|
inline |
Definition at line 91 of file design_block_info.h.
|
inlinevirtualinherited |
The pin count for symbols or the unique pad count for footprints.
Reimplemented in LIB_SYMBOL, and FOOTPRINT_INFO.
Definition at line 74 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM().
|
overridevirtual |
Reimplemented from LIB_TREE_ITEM.
Definition at line 71 of file design_block_info.cpp.
References GetDesc(), GetKeywords(), and GetName().
|
inlinevirtualinherited |
For items with units, return the number of units.
Reimplemented in LIB_SYMBOL.
Definition at line 79 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlinevirtualinherited |
For items with units, return a display name for unit x.
Reimplemented in LIB_SYMBOL.
Definition at line 89 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_UNIT::LIB_TREE_NODE_UNIT().
|
inlinevirtualinherited |
For items with units, return an identifier for unit x.
Reimplemented in LIB_SYMBOL.
Definition at line 84 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_UNIT::LIB_TREE_NODE_UNIT().
|
inlinevirtualinherited |
For items with units, return true if a display name is set for x.
Reimplemented in LIB_SYMBOL.
Definition at line 94 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_UNIT::LIB_TREE_NODE_UNIT().
bool DESIGN_BLOCK_INFO::InLibrary | ( | const wxString & | aLibrary | ) | const |
Test if the DESIGN_BLOCK_INFO object was loaded from aLibrary.
aLibrary | is the nickname of the library to test. |
Definition at line 90 of file design_block_info.cpp.
References m_nickname.
|
inlinevirtualinherited |
For items having aliases, IsRoot() indicates the principal item.
Reimplemented in LIB_SYMBOL.
Definition at line 64 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlineprotectedvirtual |
lazily load stuff not filled in by constructor. This may throw IO_ERRORS.
Reimplemented in DESIGN_BLOCK_INFO_IMPL.
Definition at line 120 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::DESIGN_BLOCK_INFO_IMPL().
|
inline |
Definition at line 81 of file design_block_info.h.
|
friend |
Less than comparison operator, intended for sorting DESIGN_BLOCK_INFO objects.
Definition at line 96 of file design_block_info.cpp.
|
protected |
Module name.
Definition at line 127 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::load().
|
protected |
Design block description.
Definition at line 129 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::load().
|
protected |
Design block keywords.
Definition at line 130 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::load().
|
protected |
Definition at line 124 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::load().
|
protected |
library as known in DESIGN_BLOCK_LIB_TABLE
Definition at line 126 of file design_block_info.h.
Referenced by InLibrary(), and DESIGN_BLOCK_INFO_IMPL::load().
|
protected |
Order number in the display list.
Definition at line 128 of file design_block_info.h.
|
protected |
provides access to DESIGN_BLOCK_LIB_TABLE
Definition at line 122 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::load().