16 #ifndef QGSATTRIBUTELISTVIEW_H
17 #define QGSATTRIBUTELISTVIEW_H
85 bool setDisplayExpression(
const QString displayExpression );
94 const QString displayExpression()
const;
101 QString parserErrorString();
115 void setCurrentFeatureEdited(
bool state );
118 virtual void mouseMoveEvent( QMouseEvent *event );
119 virtual void mousePressEvent( QMouseEvent *event );
120 virtual void mouseReleaseEvent( QMouseEvent *event );
121 virtual void keyPressEvent( QKeyEvent *event );
129 void currentEditSelectionChanged(
QgsFeature &feat );
135 void displayExpressionChanged(
const QString expression );
137 void aboutToChangeEditSelection(
bool& ok );
153 void setEditSelection(
const QModelIndex&
index, QItemSelectionModel::SelectionFlags command );
158 virtual void selectAll();
160 void repaintRequested( QModelIndexList indexes );
161 void repaintRequested();
164 void editSelectionChanged( QItemSelection deselected, QItemSelection selected );
167 void selectRow(
const QModelIndex &
index,
bool anchor );
QgsFeatureListViewDelegate * mItemDelegate
QSet< QgsFeatureId > QgsFeatureIds
QgsFeatureListModel * mModel
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
Shows a list of features and renders a edit button next to each feature.
QgsFeatureListModel * featureListModel()
Get the featureListModel used by this view.
QItemSelectionModel * mCurrentEditSelectionModel
virtual ~QgsFeatureListView()
Destructor.
QItemSelectionModel::SelectionFlags mCtrlDragSelectionFlag
This class caches features of a given QgsVectorLayer.
QgsFeatureSelectionModel * mFeatureSelectionModel
Represents a vector layer which manages a vector based data sets.