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

101 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsexpressionfieldbuffer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2015-06-11 19:16:55 +02:00
class QgsExpressionFieldBuffer
{
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Buffers information about expression fields for a vector layer.
2017-05-14 09:48:41 +02:00
.. versionadded:: 2.6
%End
2015-06-11 19:16:55 +02:00
%TypeHeaderCode
2017-05-14 09:48:41 +02:00
#include "qgsexpressionfieldbuffer.h"
2015-06-11 19:16:55 +02:00
%End
public:
2017-05-14 09:48:41 +02:00
struct ExpressionField
2015-06-11 19:16:55 +02:00
{
ExpressionField( const QString &exp, const QgsField &fld );
2017-05-14 09:48:41 +02:00
QgsExpression cachedExpression;
QgsField field;
2015-06-11 19:16:55 +02:00
};
QgsExpressionFieldBuffer();
2017-09-11 21:43:15 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsExpressionFieldBuffer.
2017-09-11 21:43:15 +10:00
%End
2015-06-11 19:16:55 +02:00
void addExpression( const QString &exp, const QgsField &fld );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Add an expression to the buffer
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
:param exp: expression to add
:param fld: field to add
2017-05-14 09:48:41 +02:00
%End
2015-06-11 19:16:55 +02:00
void removeExpression( int index );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Remove an expression from the buffer
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
:param index: index of expression to remove
2017-05-14 09:48:41 +02:00
%End
2015-06-11 19:16:55 +02:00
void renameExpression( int index, const QString &name );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Renames an expression field at a given index
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
:param index: The index of the expression to change
:param name: New name for field
2017-05-14 09:48:41 +02:00
.. versionadded:: 3.0
%End
void updateExpression( int index, const QString &exp );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Changes the expression at a given index
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
:param index: The index of the expression to change
:param exp: The new expression to set
2017-05-14 09:48:41 +02:00
.. versionadded:: 2.9
%End
2015-06-11 19:16:55 +02:00
void writeXml( QDomNode &layer_node, QDomDocument &document ) const;
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Saves expressions to xml under the layer node
2017-05-14 09:48:41 +02:00
%End
2015-06-11 19:16:55 +02:00
void readXml( const QDomNode &layer_node );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Reads expressions from project file
2017-05-14 09:48:41 +02:00
%End
2015-06-11 19:16:55 +02:00
void updateFields( QgsFields &flds );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Adds fields with the expressions buffered in this object to a QgsFields object
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
:param flds: The fields to be updated
2017-05-14 09:48:41 +02:00
%End
2017-05-14 10:50:30 +02:00
QList<QgsExpressionFieldBuffer::ExpressionField> expressions() const;
2015-06-11 19:16:55 +02:00
};
2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsexpressionfieldbuffer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/