1#ifndef TREESELECTIONMODEL_H
2#define TREESELECTIONMODEL_H
11#include <QSortFilterProxyModel>
20 public QSortFilterProxyModel,
45 void fetchMore ( type_index
const & index );
47 bool hasChildren ( type_index
const & index )
const;
61 bool filterAcceptsRow (
int source_row,
const QModelIndex & source_parent )
const;
63 bool lessThan (
const QModelIndex & left,
const QModelIndex & right )
const;
71 bool RegexpFilter (
int sourceRow,
const QModelIndex & sourceParent )
const;
73 bool ObjectFilter (
int sourceRow,
const QModelIndex & sourceParent )
const;
75 int AtDepth (
const QModelIndex & SourceParent )
const;
void slot_update_object(QString const &src, dref const &obj)
void slot_remove_object(QString const &src, dref const &obj)
int AtDepth(const QModelIndex &SourceParent) const
void SetFilterType(FilterType Filter)
bool canFetchMore(type_index const &index) const
treeselection(QObject *parent=0)
Including DBE.
std::vector< tref > QueryObjects
bool hasChildren(type_index const &index) const
bool RegexpFilter(int sourceRow, const QModelIndex &sourceParent) const
std::vector< dbe::tref > GetQueryObjects()
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
type_datum * getnode(type_index const &index) const override
bool ObjectFilter(int sourceRow, const QModelIndex &sourceParent) const
void ToggleEmptyClasses(bool HideLocal)
void SetQueryObjects(std::vector< tref > Objects)
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
void slot_create_object(QString const &src, dref const &obj)
void SetFilterRestrictionLevel(int Levels)
bool AcceptItem(const QModelIndex &SourceIndex, int LevelRestriction) const
void fetchMore(type_index const &index)
void slot_rename_object(QString const &src, dref const &obj)
#define MODEL_COMMON_IMPL_REQ_DEF(classname)