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 virtual bool HasPreview(
const wxDataViewItem& aItem )
override;
54 virtual void ShowPreview( wxWindow* aParent,
const wxDataViewItem& aItem )
override;
59 LIB_TREE_NODE::PTR_VECTOR::iterator
deleteLibrary( LIB_TREE_NODE::PTR_VECTOR::iterator& aLibNodeIt );
61 void GetValue( wxVariant& aVariant, wxDataViewItem
const& aItem,
62 unsigned int aCol )
const override;
63 bool GetAttr( wxDataViewItem
const& aItem,
unsigned int aCol,
64 wxDataViewItemAttr& aAttr )
const override;
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
Hashes to decide whether a library needs an update.
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 updateLibrary(LIB_TREE_NODE_LIBRARY &aLibNode)
wxDataViewItem GetCurrentDataViewItem() override
static wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > Create(SYMBOL_EDIT_FRAME *aParent, SYMBOL_LIBRARY_MANAGER *aLibs)
virtual void ShowPreview(wxWindow *aParent, const wxDataViewItem &aItem) override
int GetLibrariesCount() const override
Return the number of libraries loaded in the tree.
void Sync(const wxString &aForceRefresh, std::function< void(int, int, const wxString &)> aProgressCallback)
TOOL_INTERACTIVE * GetContextMenuTool() override
bool IsContainer(const wxDataViewItem &aItem) const override
virtual bool HasPreview(const wxDataViewItem &aItem) override
std::map< wxString, int > m_libHashes
SYMBOL_LIBRARY_MANAGER hash value returned in the last synchronization.