16 #ifndef QGSFEATURELISTVIEW_H 17 #define QGSFEATURELISTVIEW_H 86 bool setDisplayExpression(
const QString &displayExpression );
95 const QString displayExpression()
const;
102 QString parserErrorString();
116 void setCurrentFeatureEdited(
bool state );
125 void mouseMoveEvent( QMouseEvent *event )
override;
126 void mousePressEvent( QMouseEvent *event )
override;
127 void mouseReleaseEvent( QMouseEvent *event )
override;
128 void keyPressEvent( QKeyEvent *event )
override;
129 void contextMenuEvent( QContextMenuEvent *event )
override;
137 void currentEditSelectionChanged(
QgsFeature &feat );
145 void currentEditSelectionProgressChanged(
int progress,
int count );
151 void displayExpressionChanged(
const QString &expression );
154 void aboutToChangeEditSelection(
bool &ok )
SIP_SKIP;
161 void willShowContextMenu(
QgsActionMenu *menu,
const QModelIndex &atIndex );
178 void setEditSelection(
const QModelIndex &index, QItemSelectionModel::SelectionFlags command );
183 void selectAll()
override;
185 void repaintRequested(
const QModelIndexList &indexes );
186 void repaintRequested();
215 void editSelectionChanged(
const QItemSelection &deselected,
const QItemSelection &selected );
223 void ensureEditSelection(
bool inSelection =
false );
226 void selectRow(
const QModelIndex &index,
bool anchor );
236 void editOtherFeature( PositionInList positionInList );
240 QItemSelectionModel *mCurrentEditSelectionModel =
nullptr;
244 bool mEditSelectionDrag =
false;
246 QItemSelectionModel::SelectionFlags mCtrlDragSelectionFlag;
248 QTimer mUpdateEditSelectionTimer;
QSet< QgsFeatureId > QgsFeatureIds
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.
void editFirstFeature()
editFirstFeature will try to edit the first feature of the list
QgsFeatureListModel * featureListModel()
Gets the featureListModel used by this view.
void editNextFeature()
editNextFeature will try to edit next feature of the list
void editPreviousFeature()
editPreviousFeature will try to edit previous feature of the list
This class caches features of a given QgsVectorLayer.
void editLastFeature()
editLastFeature will try to edit the last feature of the list
Is an interface class to abstract feature selection handling.
Represents a vector layer which manages a vector based data sets.
This widget is used to show the attributes of a set of features of a QgsVectorLayer.