This class offers a dialog to change feature selections.
More...
#include <qgsexpressionselectiondialog.h>
|
void | closeEvent (QCloseEvent *closeEvent) override |
| Implementation for closeEvent Saves the window geometry. More...
|
|
void | done (int r) override |
| Implementation for done (default behavior when pressing esc) Calls close, so the window geometry gets saved and the object deleted. More...
|
|
This class offers a dialog to change feature selections.
To do so, a QgsExpressionBuilderWidget is shown in a dialog. It offers the possibilities to create a new selection, add to the current selection remove from the current selection or select within the current selection.
Definition at line 36 of file qgsexpressionselectiondialog.h.
◆ QgsExpressionSelectionDialog()
QgsExpressionSelectionDialog::QgsExpressionSelectionDialog |
( |
QgsVectorLayer * |
layer, |
|
|
const QString & |
startText = QString() , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Creates a new selection dialog.
- Parameters
-
layer | The layer on which the selection is to be performed. |
startText | A default expression text to be applied (Defaults to empty) |
parent | parent object (owner) |
Definition at line 29 of file qgsexpressionselectiondialog.cpp.
◆ closeEvent()
void QgsExpressionSelectionDialog::closeEvent |
( |
QCloseEvent * |
closeEvent | ) |
|
|
overrideprotected |
◆ done()
void QgsExpressionSelectionDialog::done |
( |
int |
r | ) |
|
|
overrideprotected |
Implementation for done (default behavior when pressing esc) Calls close, so the window geometry gets saved and the object deleted.
- Parameters
-
Definition at line 211 of file qgsexpressionselectiondialog.cpp.
◆ expressionBuilder()
◆ expressionText()
QString QgsExpressionSelectionDialog::expressionText |
( |
| ) |
|
◆ setExpressionText()
void QgsExpressionSelectionDialog::setExpressionText |
( |
const QString & |
text | ) |
|
◆ setGeomCalculator()
void QgsExpressionSelectionDialog::setGeomCalculator |
( |
const QgsDistanceArea & |
da | ) |
|
◆ setMapCanvas()
void QgsExpressionSelectionDialog::setMapCanvas |
( |
QgsMapCanvas * |
canvas | ) |
|
◆ setMessageBar()
void QgsExpressionSelectionDialog::setMessageBar |
( |
QgsMessageBar * |
messageBar | ) |
|
Sets the message bar to display feedback from the dialog.
This is used when zooming to features to display the count of selected features.
- Parameters
-
messageBar | target message bar |
- Since
- QGIS 3.0
Definition at line 90 of file qgsexpressionselectiondialog.cpp.
The documentation for this class was generated from the following files: