12#include <wx/dataview.h>
44 const wxString& filterType = {},
45 const wxString& filterExpr = {});
48 bool GetRowForItem(
const wxDataViewItem& item, uint32_t& row)
const;
51 bool IsEnabled(
const wxDataViewItem&,
unsigned)
const override;
63 int Compare(
const wxDataViewItem& item1,
const wxDataViewItem& item2,
unsigned column,
bool ascending)
const override;
65 void ApplyChanges(
const std::function<
bool(
int,
int,
const wxString&)>& progressUpdateFn,
70 void GetValue(wxVariant& variant,
const wxDataViewItem& item,
unsigned col)
const override;
71 bool SetValue(
const wxVariant& variant,
const wxDataViewItem& item,
unsigned col)
override;
72 wxDataViewItem
GetParent(
const wxDataViewItem& item)
const override;
73 bool IsContainer(
const wxDataViewItem& item)
const override;
74 unsigned GetChildren(
const wxDataViewItem& item, wxDataViewItemArray& children)
const override;
!brief A plugins list model that can be attached to wxDataViewCtrl
void SetFilterState(int state)
wxString GetColumnType(unsigned col) const override
std::vector< void * > mIndexFilterMap
int GetFilterCategory() const
wxDataViewItem GetParent(const wxDataViewItem &item) const override
wxDataViewItem GetItemForRow(uint32_t row) const
void SetFilterType(const wxString &type)
static const void * RowIdRoot
bool IsEnabled(const wxDataViewItem &, unsigned) const override
wxString GetFilterExpr() const
bool IsListModel() const override
PluginDataModel(int filterEffectCategory=-1, int filterState=-1, const wxString &filterType={}, const wxString &filterExpr={})
bool GetRowForItem(const wxDataViewItem &item, uint32_t &row) const
int GetFilterState() const
PluginDescriptor * GetPlugin(wxDataViewItem item)
bool SetValue(const wxVariant &variant, const wxDataViewItem &item, unsigned col) override
wxString GetFilterType() const
bool HasContainerColumns(const wxDataViewItem &item) const override
unsigned GetChildren(const wxDataViewItem &item, wxDataViewItemArray &children) const override
void SetFilterExpr(const wxString &expr)
void ApplyChanges(const std::function< bool(int, int, const wxString &)> &progressUpdateFn, const std::function< void(const TranslatableString &)> &errorFn)
unsigned GetColumnCount() const override
uint32_t GetRowCount() const
bool IsFilterEmpty() const
void GetValue(wxVariant &variant, const wxDataViewItem &item, unsigned col) const override
void SetFilterCategory(int category)
bool IsContainer(const wxDataViewItem &item) const override
std::vector< std::pair< PluginDescriptor *, bool > > mPluginStateModel
int Compare(const wxDataViewItem &item1, const wxDataViewItem &item2, unsigned column, bool ascending) const override
Holds a msgid for the translation catalog; may also bind format arguments.