This class offers a dialog to change feature selections.
More...
#include <qgsexpressionselectiondialog.h>
Protected Member Functions |
virtual void | closeEvent (QCloseEvent *closeEvent) |
| Implementation for closeEvent Saves the window geometry.
|
virtual void | done (int r) |
| Implementation for done (default behavior when pressing esc) Calls close, so the window geometry gets saved and the object deleted.
|
Detailed Description
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.
Constructor & Destructor Documentation
QgsExpressionSelectionDialog::QgsExpressionSelectionDialog |
( |
QgsVectorLayer * |
layer, |
|
|
QString |
startText = QString() , |
|
|
QWidget * |
parent = 0 |
|
) |
| |
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) |
Member Function Documentation
void QgsExpressionSelectionDialog::closeEvent |
( |
QCloseEvent * |
closeEvent | ) |
|
|
protectedvirtual |
Implementation for closeEvent Saves the window geometry.
- Parameters
-
closeEvent | Event object. Unused. |
void QgsExpressionSelectionDialog::done |
( |
int |
r | ) |
|
|
protectedvirtual |
Implementation for done (default behavior when pressing esc) Calls close, so the window geometry gets saved and the object deleted.
- Parameters
-
The builder widget that is used by the dialog.
- Returns
- The builder widget that is used by the dialog
QString QgsExpressionSelectionDialog::expressionText |
( |
| ) |
|
Returns the current expression text.
- Returns
- The expression text
void QgsExpressionSelectionDialog::on_mActionAddToSelection_triggered |
( |
| ) |
|
|
slot |
void QgsExpressionSelectionDialog::on_mActionRemoveFromSelection_triggered |
( |
| ) |
|
|
slot |
void QgsExpressionSelectionDialog::on_mActionSelect_triggered |
( |
| ) |
|
|
slot |
void QgsExpressionSelectionDialog::on_mActionSelectInstersect_triggered |
( |
| ) |
|
|
slot |
void QgsExpressionSelectionDialog::on_mPbnClose_clicked |
( |
| ) |
|
|
slot |
void QgsExpressionSelectionDialog::setExpressionText |
( |
const QString & |
text | ) |
|
Sets the current expression text.
- Parameters
-
text | the expression text to set |
void QgsExpressionSelectionDialog::setGeomCalculator |
( |
const QgsDistanceArea & |
da | ) |
|
*Sets geometry calculator used in distance/area calculations.
The documentation for this class was generated from the following files: