1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsExpressionSelectionDialog : QDialog
{
%Docstring(signature="appended")
This class offers a dialog to change feature selections. To do so, a
:py:class:`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.
%End
%TypeHeaderCode
#include "qgsexpressionselectiondialog.h"
%End
public:
QgsExpressionSelectionDialog( QgsVectorLayer *layer, const QString &startText = QString(), QWidget *parent /TransferThis/ = 0 );
%Docstring
Creates a new selection dialog.
:param layer: The layer on which the selection is to be performed.
:param startText: A default expression text to be applied (Defaults to
empty)
:param parent: parent object (owner)
%End
QgsExpressionBuilderWidget *expressionBuilder();
%Docstring
The builder widget that is used by the dialog
:return: The builder widget that is used by the dialog
%End
void setExpressionText( const QString &text );
%Docstring
Sets the current expression text
:param text: the expression text to set
%End
QString expressionText();
%Docstring
Returns the current expression text
:return: The expression text
%End
void setGeomCalculator( const QgsDistanceArea &da );
%Docstring
Sets geometry calculator used in distance/area calculations.
%End
void setMessageBar( QgsMessageBar *messageBar );
%Docstring
Sets the message bar to display feedback from the dialog. This is used
when zooming to features to display the count of selected features.
:param messageBar: target message bar
%End
void setMapCanvas( QgsMapCanvas *canvas );
%Docstring
Sets a map canvas associated with the dialog.
%End
protected:
virtual void closeEvent( QCloseEvent *closeEvent );
%Docstring
Implementation for closeEvent Saves the window geometry
:param closeEvent: Event object. Unused.
%End
virtual void done( int r );
%Docstring
Implementation for done (default behavior when pressing esc) Calls
close, so the window geometry gets saved and the object deleted.
:param r: Result value. Unused.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|