17 #ifndef QGSATTRIBUTETABLEFILTERMODEL_H
18 #define QGSATTRIBUTETABLEFILTERMODEL_H
20 #include <QSortFilterProxyModel>
21 #include <QModelIndex>
29 class QItemSelectionModel;
63 void setSelectedOnTop(
bool selectedOnTop );
87 void setFilterMode( FilterMode filterMode );
124 virtual QModelIndex mapToMaster(
const QModelIndex &proxyIndex )
const;
126 virtual QModelIndex mapFromMaster(
const QModelIndex &sourceIndex )
const;
135 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const;
141 void generateListOfVisibleFeatures();
147 bool lessThan(
const QModelIndex &left,
const QModelIndex &right )
const;
156 virtual void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder );
164 void extentsChanged();
167 void selectionChanged();
QSet< QgsFeatureId > QgsFeatureIds
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
Map canvas is a class for displaying all GIS data types on a canvas.
virtual QModelIndex fidToIndex(QgsFeatureId fid)=0
QgsVectorLayer * layer() const
Returns the layer this filter acts on.
QgsVectorLayerCache * layerCache() const
Returns the layerCache this filter acts on.
QgsFeatureIds mFilteredFeatures
This class caches features of a given QgsVectorLayer.
QgsAttributeTableModel * masterModel() const
Returns the table model this filter is using.
QgsAttributeTableModel * mTableModel
Represents a vector layer which manages a vector based data sets.