27#ifndef SYMBOL_TREE_SYNCHRONIZING_ADAPTER_H 
   28#define SYMBOL_TREE_SYNCHRONIZING_ADAPTER_H 
   42    bool IsContainer( 
const wxDataViewItem& aItem ) 
const override;
 
   44    void Sync( 
const wxString& aForceRefresh,
 
   45               std::function<
void( 
int, 
int, 
const wxString&)> aProgressCallback );
 
   53    bool HasPreview( 
const wxDataViewItem& aItem ) 
override;
 
   54    void ShowPreview( wxWindow* aParent, 
const wxDataViewItem& aItem ) 
override;
 
   60    LIB_TREE_NODE::PTR_VECTOR::iterator 
deleteLibrary( LIB_TREE_NODE::PTR_VECTOR::iterator& aLibNodeIt );
 
   62    void GetValue( wxVariant& aVariant, wxDataViewItem 
const& aItem,
 
   63                   unsigned int aCol ) 
const override;
 
   64    bool GetAttr( wxDataViewItem 
const& aItem, 
unsigned int aCol,
 
   65                  wxDataViewItemAttr& aAttr ) 
const override;
 
 
LIB_TREE_MODEL_ADAPTER(EDA_BASE_FRAME *aParent, const wxString &aPinnedKey, APP_SETTINGS_BASE::LIB_TREE &aSettingsStruct)
Create the adapter.
 
The symbol library editor main window.
 
Class to handle modifications to the symbol libraries.
 
LIB_TREE_NODE::PTR_VECTOR::iterator deleteLibrary(LIB_TREE_NODE::PTR_VECTOR::iterator &aLibNodeIt)
 
PROJECT::LIB_TYPE_T getLibType() override
 
SYMBOL_LIBRARY_MANAGER * m_libMgr
 
void GetValue(wxVariant &aVariant, wxDataViewItem const &aItem, unsigned int aCol) const override
 
SYMBOL_EDIT_FRAME * m_frame
 
bool GetAttr(wxDataViewItem const &aItem, unsigned int aCol, wxDataViewItemAttr &aAttr) const override
 
void ShutdownPreview(wxWindow *aParent) override
 
void updateLibrary(LIB_TREE_NODE_LIBRARY &aLibNode)
 
wxDataViewItem GetCurrentDataViewItem() override
 
static wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > Create(SYMBOL_EDIT_FRAME *aParent, SYMBOL_LIBRARY_MANAGER *aLibs)
 
void ShowPreview(wxWindow *aParent, const wxDataViewItem &aItem) override
 
int GetLibrariesCount() const override
Return the number of libraries loaded in the tree.
 
int m_lastSyncHash
SYMBOL_LIBRARY_MANAGER hash value returned in the last synchronization.
 
void Sync(const wxString &aForceRefresh, std::function< void(int, int, const wxString &)> aProgressCallback)
 
TOOL_INTERACTIVE * GetContextMenuTool() override
 
bool IsContainer(const wxDataViewItem &aItem) const override
 
bool HasPreview(const wxDataViewItem &aItem) override
 
std::map< wxString, int > m_libHashes
Hashes to decide whether a library needs an update.
 
SYMBOL_TREE_SYNCHRONIZING_ADAPTER(SYMBOL_EDIT_FRAME *aParent, SYMBOL_LIBRARY_MANAGER *aLibMgr)