KiCad PCB EDA Suite
|
A mix-in to provide polymorphism between items stored in libraries (symbols, aliases and footprints). More...
#include <lib_tree_item.h>
Public Member Functions | |
virtual | ~LIB_TREE_ITEM () |
virtual LIB_ID | GetLIB_ID () const =0 |
virtual wxString | GetName () const =0 |
virtual wxString | GetLibNickname () const =0 |
virtual wxString | GetDesc ()=0 |
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 std::vector< SEARCH_TERM > | GetSearchTerms () |
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. | |
A mix-in to provide polymorphism between items stored in libraries (symbols, aliases and footprints).
It is used primarily to drive the component tree for library browsing and editing.
Definition at line 40 of file lib_tree_item.h.
|
inlinevirtual |
Definition at line 43 of file lib_tree_item.h.
|
inlinevirtual |
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().
|
pure virtual |
Implemented in DESIGN_BLOCK_INFO, LIB_SYMBOL, and FOOTPRINT_INFO.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlinevirtual |
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().
|
pure virtual |
Implemented in DESIGN_BLOCK_INFO, LIB_SYMBOL, and FOOTPRINT_INFO.
Referenced by LIB_TREE_NODE_ITEM::Update().
|
pure virtual |
Implemented in DESIGN_BLOCK_INFO, LIB_SYMBOL, and FOOTPRINT_INFO.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM().
|
pure virtual |
Implemented in DESIGN_BLOCK_INFO, LIB_SYMBOL, and FOOTPRINT_INFO.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlinevirtual |
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().
|
inlinevirtual |
Reimplemented in DESIGN_BLOCK_INFO, LIB_SYMBOL, and FOOTPRINT_INFO.
Definition at line 59 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlinevirtual |
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().
|
inlinevirtual |
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().
|
inlinevirtual |
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().
|
inlinevirtual |
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().
|
inlinevirtual |
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().