|
KiCad PCB EDA Suite
|
Stands in for LIB_SYMBOL, reproducing LIB_SYMBOL::cacheSearchTerms() term-for-term so the test exercises the same search-term shape (name, LIB_ID, individual keyword tokens, keyword blob, description) that a real symbol library produces. More...
Public Member Functions | |
| TEST_LIB_TREE_ITEM (const wxString &aLibNickname, const wxString &aName, const wxString &aKeywords, const wxString &aDesc) | |
| LIB_ID | GetLIB_ID () const override |
| wxString | GetName () const override |
| wxString | GetLibNickname () const override |
| wxString | GetDesc () override |
| std::vector< SEARCH_TERM > & | GetSearchTerms () override |
| 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 bool | IsPowerSymbol () const |
| For symbols that could be a power symbol. | |
| 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 | GetUnitName (int aUnit) const |
| For items with units, return an identifier for unit x. | |
Private Attributes | |
| wxString | m_libNickname |
| wxString | m_name |
| wxString | m_keywords |
| wxString | m_desc |
| std::vector< SEARCH_TERM > | m_searchTerms |
Stands in for LIB_SYMBOL, reproducing LIB_SYMBOL::cacheSearchTerms() term-for-term so the test exercises the same search-term shape (name, LIB_ID, individual keyword tokens, keyword blob, description) that a real symbol library produces.
Definition at line 60 of file test_lib_tree_model_adapter.cpp.
|
inline |
Definition at line 63 of file test_lib_tree_model_adapter.cpp.
References m_desc, m_keywords, m_libNickname, and m_name.
|
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 53 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 74 of file test_lib_tree_model_adapter.cpp.
References m_desc.
|
inlinevirtualinherited |
For items with footprint fields.
Reimplemented in LIB_SYMBOL.
Definition at line 68 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 71 of file test_lib_tree_model_adapter.cpp.
References m_libNickname, and m_name.
Referenced by GetSearchTerms().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 73 of file test_lib_tree_model_adapter.cpp.
References m_libNickname.
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 72 of file test_lib_tree_model_adapter.cpp.
References m_name.
|
inlinevirtualinherited |
The pin count for symbols or the unique pad count for footprints.
Reimplemented in FOOTPRINT, FOOTPRINT_INFO, and LIB_SYMBOL.
Definition at line 73 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 76 of file test_lib_tree_model_adapter.cpp.
References Format(), GetLIB_ID(), m_desc, m_keywords, m_libNickname, m_name, and m_searchTerms.
|
inlinevirtualinherited |
For items with units, return the number of units.
Reimplemented in LIB_SYMBOL.
Definition at line 78 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 an identifier for unit x.
Reimplemented in LIB_SYMBOL.
Definition at line 83 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_UNIT::LIB_TREE_NODE_UNIT().
|
inlinevirtualinherited |
For symbols that could be a power symbol.
Reimplemented in LIB_SYMBOL.
Definition at line 63 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 having aliases, IsRoot() indicates the principal item.
Reimplemented in LIB_SYMBOL.
Definition at line 60 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
private |
Definition at line 98 of file test_lib_tree_model_adapter.cpp.
Referenced by GetDesc(), GetSearchTerms(), and TEST_LIB_TREE_ITEM().
|
private |
Definition at line 97 of file test_lib_tree_model_adapter.cpp.
Referenced by GetSearchTerms(), and TEST_LIB_TREE_ITEM().
|
private |
Definition at line 95 of file test_lib_tree_model_adapter.cpp.
Referenced by GetLIB_ID(), GetLibNickname(), GetSearchTerms(), and TEST_LIB_TREE_ITEM().
|
private |
Definition at line 96 of file test_lib_tree_model_adapter.cpp.
Referenced by GetLIB_ID(), GetName(), GetSearchTerms(), and TEST_LIB_TREE_ITEM().
|
private |
Definition at line 99 of file test_lib_tree_model_adapter.cpp.
Referenced by GetSearchTerms().