25#ifndef FP_TREE_SYNCHRONIZING_ADAPTER_H
26#define FP_TREE_SYNCHRONIZING_ADAPTER_H
39 bool IsContainer(
const wxDataViewItem& aItem )
const override;
49 virtual bool HasPreview(
const wxDataViewItem& aItem )
override;
50 virtual void ShowPreview( wxWindow* aParent,
const wxDataViewItem& aItem )
override;
57 LIB_TREE_NODE::PTR_VECTOR::iterator
deleteLibrary( LIB_TREE_NODE::PTR_VECTOR::iterator& aLibNodeIt );
59 void GetValue( wxVariant& aVariant, wxDataViewItem
const& aItem,
60 unsigned int aCol )
const override;
61 bool GetAttr( wxDataViewItem
const& aItem,
unsigned int aCol,
62 wxDataViewItemAttr& aAttr )
const override;
virtual bool HasPreview(const wxDataViewItem &aItem) override
bool GetAttr(wxDataViewItem const &aItem, unsigned int aCol, wxDataViewItemAttr &aAttr) const override
FOOTPRINT_EDIT_FRAME * m_frame
void updateLibrary(LIB_TREE_NODE_LIBRARY &aLibNode)
wxDataViewItem GetCurrentDataViewItem() override
int GetLibrariesCount() const override
Return the number of libraries loaded in the tree.
bool IsContainer(const wxDataViewItem &aItem) const override
static wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > Create(FOOTPRINT_EDIT_FRAME *aFrame, FP_LIB_TABLE *aLibs)
LIB_TREE_NODE::PTR_VECTOR::iterator deleteLibrary(LIB_TREE_NODE::PTR_VECTOR::iterator &aLibNodeIt)
std::set< wxString > m_libMap
TOOL_INTERACTIVE * GetContextMenuTool() override
void Sync(FP_LIB_TABLE *aLibs)
virtual void ShowPreview(wxWindow *aParent, const wxDataViewItem &aItem) override
void GetValue(wxVariant &aVariant, wxDataViewItem const &aItem, unsigned int aCol) const override