QGIS/python/gui/qgsexpressionbuilderdialog.sip

86 lines
2.9 KiB
Plaintext
Raw Normal View History

2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionbuilderdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-06-26 09:57:09 +02:00
class QgsExpressionBuilderDialog : QDialog
{
2017-05-23 14:44:34 +02:00
%Docstring
A generic dialog for building expression strings
@remarks This class also shows an example on how to use QgsExpressionBuilderWidget
%End
2017-05-23 14:44:34 +02:00
%TypeHeaderCode
#include "qgsexpressionbuilderdialog.h"
%End
public:
2017-05-23 14:44:34 +02:00
QgsExpressionBuilderDialog( QgsVectorLayer *layer,
const QString &startText = QString(),
QWidget *parent /TransferThis/ = 0,
const QString &key = "generic",
const QgsExpressionContext &context = QgsExpressionContext() );
QgsExpressionBuilderWidget *expressionBuilder();
2017-05-23 14:44:34 +02:00
%Docstring
The builder widget that is used by the dialog
:rtype: QgsExpressionBuilderWidget
%End
void setExpressionText( const QString &text );
QString expressionText();
2017-05-23 14:44:34 +02:00
%Docstring
:rtype: str
%End
QgsExpressionContext expressionContext() const;
2017-05-23 14:44:34 +02:00
%Docstring
Returns the expression context for the dialog. The context is used for the expression
preview result and for populating the list of available functions and variables.
.. seealso:: setExpressionContext
.. versionadded:: 2.12
:rtype: QgsExpressionContext
%End
void setExpressionContext( const QgsExpressionContext &context );
2017-05-23 14:44:34 +02:00
%Docstring
Sets the expression context for the dialog. The context is used for the expression
preview result and for populating the list of available functions and variables.
\param context expression context
.. seealso:: expressionContext
.. versionadded:: 2.12
%End
void setGeomCalculator( const QgsDistanceArea &da );
2017-05-23 14:44:34 +02:00
%Docstring
Sets geometry calculator used in distance/area calculations.
%End
protected:
2017-05-23 14:44:34 +02:00
2013-06-23 16:00:16 +02:00
virtual void done( int r );
2017-05-23 14:44:34 +02:00
%Docstring
Is called when the dialog get accepted or rejected
Used to save geometry
\param r result value (unused)
%End
2014-01-26 18:35:21 +01:00
virtual void accept();
2017-05-23 14:44:34 +02:00
};
2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionbuilderdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/