QGIS/python/gui/auto_generated/qgsexpressionselectiondialog.sip.in

108 lines
3.2 KiB
Plaintext
Raw Normal View History

2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2013-06-24 08:43:47 +02:00
class QgsExpressionSelectionDialog : QDialog
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
2017-12-15 10:36:55 -04:00
This class offers a dialog to change feature selections.
To do so, a :py:class:`QgsExpressionBuilderWidget` is shown in a dialog.
2017-12-15 10:36:55 -04:00
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.
2017-05-23 14:44:34 +02:00
%End
%TypeHeaderCode
2017-05-23 14:44:34 +02:00
#include "qgsexpressionselectiondialog.h"
%End
public:
2017-05-23 14:44:34 +02:00
QgsExpressionSelectionDialog( QgsVectorLayer *layer, const QString &startText = QString(), QWidget *parent /TransferThis/ = 0 );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Creates a new selection dialog.
2017-12-15 21:36:08 -04:00
:param layer: The layer on which the selection is to be performed.
2017-12-15 10:36:55 -04:00
:param startText: A default expression text to be applied (Defaults to empty)
:param parent: parent object (owner)
2017-05-23 14:44:34 +02:00
%End
QgsExpressionBuilderWidget *expressionBuilder();
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The builder widget that is used by the dialog
:return: The builder widget that is used by the dialog
2017-05-23 14:44:34 +02:00
%End
void setExpressionText( const QString &text );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the current expression text
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param text: the expression text to set
2017-05-23 14:44:34 +02:00
%End
QString expressionText();
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the current expression text
:return: The expression text
2017-05-23 14:44:34 +02:00
%End
void setGeomCalculator( const QgsDistanceArea &da );
2017-05-23 14:44:34 +02:00
%Docstring
Sets geometry calculator used in distance/area calculations.
%End
void setMessageBar( QgsMessageBar *messageBar );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the message bar to display feedback from the dialog. This is used when zooming to
features to display the count of selected features.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param messageBar: target message bar
2017-05-23 14:44:34 +02:00
.. versionadded:: 3.0
%End
void setMapCanvas( QgsMapCanvas *canvas );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets a map canvas associated with the dialog.
2017-05-23 14:44:34 +02:00
.. versionadded:: 3.0
%End
protected:
2017-05-23 14:44:34 +02:00
virtual void closeEvent( QCloseEvent *closeEvent );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Implementation for closeEvent
Saves the window geometry
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param closeEvent: Event object. Unused.
2017-05-23 14:44:34 +02:00
%End
virtual void done( int r );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Implementation for done (default behavior when pressing esc)
Calls close, so the window geometry gets saved and the object deleted.
2017-12-15 21:36:08 -04:00
:param r: Result value. Unused.
2017-05-23 14:44:34 +02:00
%End
};
2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/