22#ifndef SYMBOL_TREE_MODEL_ADAPTER_H
23#define SYMBOL_TREE_MODEL_ADAPTER_H
58 void AddLibrary( wxString
const& aLibNickname,
bool pinned );
66 bool GetAttr(
const wxDataViewItem& aItem,
unsigned int aCol,
67 wxDataViewItemAttr& aAttr )
const override;
A logical library item identifier and consists of various portions much like a URI.
LIB_TREE_MODEL_ADAPTER(EDA_BASE_FRAME *aParent, const wxString &aPinnedKey, APP_SETTINGS_BASE::LIB_TREE &aSettingsStruct)
Create the adapter.
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
An interface to the global shared library manager that is schematic-specific and linked to one projec...
wxString GenerateInfo(LIB_ID const &aLibId, int aUnit) override
void AddLibraries(SCH_BASE_FRAME *aFrame)
Add all the libraries in a SYMBOL_LIB_TABLE to the model.
static wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > Create(SCH_BASE_FRAME *aParent, SYMBOL_LIBRARY_ADAPTER *aLibs)
Factory function: create a model adapter in a reference-counting container.
std::unique_ptr< wxTimer > m_check_pending_libraries_timer
std::map< LIB_ID, bool > m_compatCache
void AddLibrary(wxString const &aLibNickname, bool pinned)
SYMBOL_COMPAT_FUNC m_compatCallback
PROJECT::LIB_TYPE_T getLibType() override
SYMBOL_LIBRARY_ADAPTER * m_adapter
std::set< wxString > m_pending_load_libraries
~SYMBOL_TREE_MODEL_ADAPTER()
Destructor.
bool GetAttr(const wxDataViewItem &aItem, unsigned int aCol, wxDataViewItemAttr &aAttr) const override
void SetCompatibilityCallback(SYMBOL_COMPAT_FUNC aFunc)
void loadColumnConfig() override
SYMBOL_TREE_MODEL_ADAPTER(SCH_BASE_FRAME *aParent, SYMBOL_LIBRARY_ADAPTER *aManager)
Constructor; takes a set of libraries to be included in the search.
std::function< std::vector< VARIANT_COMPAT_RESULT >(const LIB_ID &)> SYMBOL_COMPAT_FUNC
Callback that evaluates variant symbol compatibility for a given candidate LIB_ID.