mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
The typedef is only present in the .sip file, but without this annotation SIP assumes it also exists in QGIS headers. This didn't completely break the build, since we concatenate multiple SIP headers into larger files, so the typedefs from one part "fixed" another. Run sip-build without --concatenate to see the issue clearly. This fix is currently sadly not fully effective due to a SIP bug: https://github.com/Python-SIP/sip/issues/66
78 lines
2.4 KiB
Plaintext
78 lines
2.4 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsoptionalexpression.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef QgsOptional<QgsExpression> QgsOptionalQgsExpressionBase /NoTypeName/;
|
|
|
|
class QgsOptionalExpression : QgsOptionalQgsExpressionBase
|
|
{
|
|
%Docstring(signature="appended")
|
|
|
|
An expression with an additional enabled flag.
|
|
|
|
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.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsoptionalexpression.h"
|
|
#include "qgsoptional.h"
|
|
typedef QgsOptional<QgsExpression> QgsOptionalQgsExpressionBase;
|
|
%End
|
|
public:
|
|
|
|
QgsOptionalExpression();
|
|
%Docstring
|
|
Construct a default optional expression.
|
|
It will be disabled and with an empty expression.
|
|
%End
|
|
|
|
QgsOptionalExpression( const QgsExpression &expression );
|
|
%Docstring
|
|
Construct an optional expression with the provided expression.
|
|
It will be enabled.
|
|
%End
|
|
|
|
QgsOptionalExpression( const QgsExpression &expression, bool enabled );
|
|
%Docstring
|
|
Construct an optional expression with the provided expression and enabled state.
|
|
%End
|
|
|
|
|
|
void writeXml( QDomElement &element ) const;
|
|
%Docstring
|
|
Save the optional expression to the provided QDomElement.
|
|
|
|
The caller is responsible to pass an empty QDomElement and to append it to
|
|
a parent element.
|
|
%End
|
|
|
|
void readXml( const QDomElement &element );
|
|
%Docstring
|
|
Read the optional expression from the provided QDomElement.
|
|
%End
|
|
};
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsoptionalexpression.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|