QGIS/python/core/auto_generated/qgsoptionalexpression.sip.in

84 lines
2.5 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsoptionalexpression.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
typedef QgsOptional<QgsExpression> QgsOptionalQgsExpressionBase;
class QgsOptionalExpression : QgsOptionalQgsExpressionBase
{
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
An expression with an additional enabled flag.
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
This can be used for configuration options where an expression can be enabled
or disabled but when disabled it shouldn't lose it's information for the case
it gets re-enabled later on and a user shouldn't be force to redo the configuration.
2017-05-14 09:48:41 +02:00
.. versionadded:: 2.18
%End
%TypeHeaderCode
2017-05-14 09:48:41 +02:00
#include "qgsoptionalexpression.h"
#include "qgsoptional.h"
typedef QgsOptional<QgsExpression> QgsOptionalQgsExpressionBase;
%End
public:
2017-05-14 09:48:41 +02:00
QgsOptionalExpression();
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Construct a default optional expression.
It will be disabled and with an empty expression.
2017-05-14 09:48:41 +02:00
%End
QgsOptionalExpression( const QgsExpression &expression );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Construct an optional expression with the provided expression.
It will be enabled.
%End
2017-05-14 09:48:41 +02:00
QgsOptionalExpression( const QgsExpression &expression, bool enabled );
%Docstring
2017-12-15 10:36:55 -04:00
Construct an optional expression with the provided expression and enabled state.
%End
2017-05-14 19:57:58 +02:00
void writeXml( QDomElement &element );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Save the optional expression to the provided QDomElement.
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
The caller is responsible to pass an empty QDomElement and to append it to
a parent element.
2017-05-14 09:48:41 +02:00
.. versionadded:: 2.18
%End
void readXml( const QDomElement &element );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Read the optional expression from the provided QDomElement.
2017-05-14 09:48:41 +02:00
.. versionadded:: 2.18
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsoptionalexpression.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/