1 #ifndef QGSFEATURESELECTIONMODEL_H
2 #define QGSFEATURESELECTIONMODEL_H
4 #include <QItemSelectionModel>
27 void enableSync(
bool enable );
45 virtual bool isSelected(
const QModelIndex&
index );
54 void requestRepaint( QModelIndexList indexes );
60 void requestRepaint();
68 virtual void select(
const QModelIndex &index, SelectionFlags command ) { Q_UNUSED( index ); Q_UNUSED( command ); }
75 virtual void select(
const QItemSelection &selection, SelectionFlags command ) { Q_UNUSED( selection ); Q_UNUSED( command ); }
83 virtual void selectFeatures(
const QItemSelection &selection, SelectionFlags command );
91 QModelIndexList expandIndexToRow(
const QModelIndex& index )
const;
111 #endif // QGSFEATURESELECTIONMODEL_H
QgsFeatureIds mDeselectedBuffer
If sync is disabled Holds a list of newly deselected features which will be synced when re-enabled...
QSet< QgsFeatureId > QgsFeatureIds
virtual void select(const QItemSelection &selection, SelectionFlags command)
Overwritten to do NOTHING (we handle selection ourselves)
QgsIFeatureSelectionManager * mFeatureSelectionManager
virtual void select(const QModelIndex &index, SelectionFlags command)
Overwritten to do NOTHING (we handle selection ourselves)
Is an interface class to abstract feature selection handling.
Represents a vector layer which manages a vector based data sets.
QgsFeatureIds mSelectedBuffer
If sync is disabled Holds a list of newly selected features which will be synced when re-enabled...
bool mClearAndSelectBuffer
If sync is disabled Is set to true, if a clear and select operation should be performed before syncin...
QgsFeatureModel * mFeatureModel