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
|
|
|
|
2012-09-24 02:28:15 +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
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:44:34 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsexpressionbuilderdialog.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2017-05-23 14:44:34 +02:00
|
|
|
QgsExpressionBuilderDialog( QgsVectorLayer *layer,
|
|
|
|
const QString &startText = QString(),
|
|
|
|
QWidget *parent /TransferThis/ = 0,
|
|
|
|
const QString &key = "generic",
|
2017-05-01 16:42:33 +02:00
|
|
|
const QgsExpressionContext &context = QgsExpressionContext() );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsExpressionBuilderWidget *expressionBuilder();
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
The builder widget that is used by the dialog
|
|
|
|
:rtype: QgsExpressionBuilderWidget
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setExpressionText( const QString &text );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
QString expressionText();
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2015-08-19 16:14:32 +10:00
|
|
|
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
|
2015-08-19 16:14:32 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
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
|
2015-08-19 16:14:32 +10: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
|
2012-11-25 11:33:38 +01:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
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
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-05-23 14:44:34 +02:00
|
|
|
|
2017-09-25 14:20:39 +10: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 *
|
|
|
|
************************************************************************/
|