16 #ifndef QGSFEATURELISTVIEW_H
17 #define QGSFEATURELISTVIEW_H
87 bool setDisplayExpression(
const QString &displayExpression );
96 const QString displayExpression()
const;
103 QString parserErrorString();
117 void setCurrentFeatureEdited(
bool state );
126 void mouseMoveEvent( QMouseEvent *event )
override;
127 void mousePressEvent( QMouseEvent *event )
override;
128 void mouseReleaseEvent( QMouseEvent *event )
override;
129 void keyPressEvent( QKeyEvent *event )
override;
130 void contextMenuEvent( QContextMenuEvent *event )
override;
179 void setEditSelection(
const QModelIndex &index, QItemSelectionModel::SelectionFlags command );
184 void selectAll()
override;
186 void repaintRequested(
const QModelIndexList &indexes );
187 void repaintRequested();
216 void editSelectionChanged(
const QItemSelection &deselected,
const QItemSelection &selected );
224 void ensureEditSelection(
bool inSelection =
false );
227 void selectRow(
const QModelIndex &index,
bool anchor );
237 void editOtherFeature( PositionInList positionInList );
241 QItemSelectionModel *mCurrentEditSelectionModel =
nullptr;
246 bool mEditSelectionDrag =
false;
248 QItemSelectionModel::SelectionFlags mCtrlDragSelectionFlag;
250 QTimer mUpdateEditSelectionTimer;
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
This widget is used to show the attributes of a set of features of a QgsVectorLayer.
Shows a list of features and renders a edit button next to each feature.
QgsFeatureListModel * featureListModel()
Gets the featureListModel used by this view.
void currentEditSelectionProgressChanged(int progress, int count)
Emitted whenever the current edit selection has been changed.
void editNextFeature()
editNextFeature will try to edit next feature of the list
void editLastFeature()
editLastFeature will try to edit the last feature of the list
void editFirstFeature()
editFirstFeature will try to edit the first feature of the list
void displayExpressionChanged(const QString &expression)
Emitted whenever the display expression is successfully changed.
void editPreviousFeature()
editPreviousFeature will try to edit previous feature of the list
void willShowContextMenu(QgsActionMenu *menu, const QModelIndex &atIndex)
Emitted when the context menu is created to add the specific actions to it.
void currentEditSelectionChanged(QgsFeature &feat)
Emitted whenever the current edit selection has been changed.
void aboutToChangeEditSelection(bool &ok)
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Is an interface class to abstract feature selection handling.
This class caches features of a given QgsVectorLayer.
Represents a vector layer which manages a vector based data sets.
QSet< QgsFeatureId > QgsFeatureIds