|
QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsfeaturelistview.h>

Public Slots | |
| void | editFirstFeature () |
| editFirstFeature will try to edit the first feature of the list More... | |
| void | editLastFeature () |
| editLastFeature will try to edit the last feature of the list More... | |
| void | editNextFeature () |
| editNextFeature will try to edit next feature of the list More... | |
| void | editPreviousFeature () |
| editPreviousFeature will try to edit previous feature of the list More... | |
| void | repaintRequested () |
| void | repaintRequested (const QModelIndexList &indexes) |
| void | selectAll () override |
| Select all currently visible features. More... | |
| void | setEditSelection (const QgsFeatureIds &fids) |
| Set the feature(s) to be edited. More... | |
| void | setEditSelection (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) |
| Set the feature(s) to be edited. More... | |
Signals | |
| void | aboutToChangeEditSelection (bool &ok) |
| void | currentEditSelectionChanged (QgsFeature &feat) |
| Emitted whenever the current edit selection has been changed. More... | |
| void | currentEditSelectionProgressChanged (int progress, int count) |
| Emitted whenever the current edit selection has been changed. More... | |
| void | displayExpressionChanged (const QString &expression) |
| Emitted whenever the display expression is successfully changed. More... | |
| void | willShowContextMenu (QgsActionMenu *menu, const QModelIndex &atIndex) |
| Emitted when the context menu is created to add the specific actions to it. More... | |
Public Member Functions | |
| QgsFeatureListView (QWidget *parent=nullptr) | |
| Creates a feature list view. More... | |
| QgsFeatureIds | currentEditSelection () |
| Gets the currentEditSelection. More... | |
| const QString | displayExpression () const |
| Returns the expression which is currently used to render the features. More... | |
| QgsFeatureListModel * | featureListModel () |
| Gets the featureListModel used by this view. More... | |
| QgsVectorLayerCache * | layerCache () |
| Returns the layer cache. More... | |
| QString | parserErrorString () |
| Returns a detailed message about errors while parsing a QgsExpression. More... | |
| void | setCurrentFeatureEdited (bool state) |
| Sets if the currently shown form has received any edit events so far. More... | |
| bool | setDisplayExpression (const QString &displayExpression) |
| The display expression is an expression used to render the fields into a single string which is displaied. More... | |
| void | setFeatureSelectionManager (QgsIFeatureSelectionManager *featureSelectionManager) |
| setFeatureSelectionManager More... | |
| virtual void | setModel (QgsFeatureListModel *featureListModel) |
| Set the QgsFeatureListModel which is used to retrieve information. More... | |
Protected Member Functions | |
| void | contextMenuEvent (QContextMenuEvent *event) override |
| void | keyPressEvent (QKeyEvent *event) override |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
Friends | |
| class | QgsDualView |
Shows a list of features and renders a edit button next to each feature.
Accepts a display expression to define the way, features are rendered. Uses a QgsFeatureListModel as source model.
Definition at line 45 of file qgsfeaturelistview.h.
|
explicit |
Creates a feature list view.
| parent | owner |
Definition at line 35 of file qgsfeaturelistview.cpp.
|
signal |
|
overrideprotected |
Definition at line 324 of file qgsfeaturelistview.cpp.
| QgsFeatureIds QgsFeatureListView::currentEditSelection | ( | ) |
Gets the currentEditSelection.
Definition at line 112 of file qgsfeaturelistview.cpp.
|
signal |
Emitted whenever the current edit selection has been changed.
| feat | the feature, which will be edited. |
|
signal |
Emitted whenever the current edit selection has been changed.
| progress | the position of the feature in the list |
| count | the number of features in the list |
| const QString QgsFeatureListView::displayExpression | ( | ) | const |
Returns the expression which is currently used to render the features.
Definition at line 102 of file qgsfeaturelistview.cpp.
|
signal |
Emitted whenever the display expression is successfully changed.
| expression | The expression that was applied |
|
inlineslot |
editFirstFeature will try to edit the first feature of the list
Definition at line 192 of file qgsfeaturelistview.h.
|
inlineslot |
editLastFeature will try to edit the last feature of the list
Definition at line 210 of file qgsfeaturelistview.h.
|
inlineslot |
editNextFeature will try to edit next feature of the list
Definition at line 198 of file qgsfeaturelistview.h.
|
inlineslot |
editPreviousFeature will try to edit previous feature of the list
Definition at line 204 of file qgsfeaturelistview.h.
|
inline |
Gets the featureListModel used by this view.
Definition at line 76 of file qgsfeaturelistview.h.
|
overrideprotected |
Definition at line 268 of file qgsfeaturelistview.cpp.
| QgsVectorLayerCache * QgsFeatureListView::layerCache | ( | ) |
Returns the layer cache.
Definition at line 41 of file qgsfeaturelistview.cpp.
|
overrideprotected |
Definition at line 236 of file qgsfeaturelistview.cpp.
|
overrideprotected |
Definition at line 129 of file qgsfeaturelistview.cpp.
|
overrideprotected |
Definition at line 253 of file qgsfeaturelistview.cpp.
| QString QgsFeatureListView::parserErrorString | ( | ) |
Returns a detailed message about errors while parsing a QgsExpression.
Definition at line 107 of file qgsfeaturelistview.cpp.
|
slot |
Definition at line 231 of file qgsfeaturelistview.cpp.
|
slot |
Definition at line 222 of file qgsfeaturelistview.cpp.
|
overrideslot |
Select all currently visible features.
Definition at line 185 of file qgsfeaturelistview.cpp.
| void QgsFeatureListView::setCurrentFeatureEdited | ( | bool | state | ) |
Sets if the currently shown form has received any edit events so far.
| state | The state |
Definition at line 123 of file qgsfeaturelistview.cpp.
| bool QgsFeatureListView::setDisplayExpression | ( | const QString & | displayExpression | ) |
The display expression is an expression used to render the fields into a single string which is displaied.
| displayExpression | The expression used to render the feature |
Definition at line 89 of file qgsfeaturelistview.cpp.
|
slot |
Set the feature(s) to be edited.
| fids | A list of features to be edited |
Definition at line 193 of file qgsfeaturelistview.cpp.
|
slot |
Set the feature(s) to be edited.
| index | The selection to set |
| command | selection update mode |
Definition at line 210 of file qgsfeaturelistview.cpp.
| void QgsFeatureListView::setFeatureSelectionManager | ( | QgsIFeatureSelectionManager * | featureSelectionManager | ) |
setFeatureSelectionManager
| featureSelectionManager |
Definition at line 474 of file qgsfeaturelistview.cpp.
|
virtual |
Set the QgsFeatureListModel which is used to retrieve information.
| featureListModel | The model to use |
Definition at line 46 of file qgsfeaturelistview.cpp.
|
signal |
Emitted when the context menu is created to add the specific actions to it.
| menu | is the already created context menu |
| atIndex | is the position of the current feature in the model |
|
friend |
Definition at line 256 of file qgsfeaturelistview.h.
1.8.17