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
|
2013-06-22 19:37:41 +02:00
|
|
|
{
|
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.
|
2021-01-30 09:16:35 +10:00
|
|
|
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
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
%TypeHeaderCode
|
2017-05-23 14:44:34 +02:00
|
|
|
#include "qgsexpressionselectiondialog.h"
|
2013-06-22 19:37:41 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-23 14:44:34 +02:00
|
|
|
|
2017-05-01 16:42:33 +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
|
|
|
|
2018-05-27 16:42:41 +10: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
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
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
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
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
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
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
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
void setGeomCalculator( const QgsDistanceArea &da );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Sets geometry calculator used in distance/area calculations.
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
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
|
2016-12-28 11:16:55 +07:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
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
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2021-10-19 23:30:56 +02:00
|
|
|
protected:
|
2017-05-23 14:44:34 +02:00
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
virtual void closeEvent( QCloseEvent *closeEvent );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
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
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
virtual void done( int r );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
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
|
|
|
|
2018-05-27 16:42:41 +10:00
|
|
|
:param r: Result value. Unused.
|
2017-05-23 14:44:34 +02:00
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|