QGIS/python/gui/qgsexpressionselectiondialog.sip

99 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
{
2017-05-23 14:44:34 +02:00
%Docstring
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.
%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
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();
2017-05-23 14:44:34 +02:00
%Docstring
The builder widget that is used by the dialog
:return: The builder widget that is used by the dialog
:rtype: QgsExpressionBuilderWidget
%End
void setExpressionText( const QString &text );
2017-05-23 14:44:34 +02:00
%Docstring
Sets the current expression text
\param text the expression text to set
%End
QString expressionText();
2017-05-23 14:44:34 +02:00
%Docstring
Returns the current expression text
:return: The expression text
:rtype: str
%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
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
.. versionadded:: 3.0
%End
void setMapCanvas( QgsMapCanvas *canvas );
2017-05-23 14:44:34 +02:00
%Docstring
Sets a map canvas associated with the dialog.
.. 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
Implementation for closeEvent
Saves the window geometry
\param closeEvent Event object. Unused.
%End
virtual void done( int r );
2017-05-23 14:44:34 +02:00
%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
};
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 *
************************************************************************/