QGIS/python/gui/auto_generated/symbology/qgssymbolwidgetcontext.sip.in

113 lines
3.6 KiB
Plaintext
Raw Normal View History

2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
2017-08-06 13:39:03 +02:00
* src/gui/symbology/qgssymbolwidgetcontext.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-06-08 15:30:38 +02:00
class QgsSymbolWidgetContext
{
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Contains settings which reflect the context in which a symbol (or renderer) widget is shown, e.g., the
map canvas and relevant expression contexts.
2017-06-08 15:30:38 +02:00
.. versionadded:: 3.0
%End
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgssymbolwidgetcontext.h"
%End
public:
QgsSymbolWidgetContext();
2017-09-11 21:43:15 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsSymbolWidgetContext.
2017-09-11 21:43:15 +10:00
%End
QgsSymbolWidgetContext( const QgsSymbolWidgetContext &other );
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Copy constructor.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param other: source QgsSymbolWidgetContext
2017-06-08 15:30:38 +02:00
%End
void setMapCanvas( QgsMapCanvas *canvas );
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the map canvas associated with the widget. This allows the widget to retrieve the current
map scale and other properties from the canvas.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param canvas: map canvas
.. seealso:: :py:func:`mapCanvas`
2017-06-08 15:30:38 +02:00
%End
QgsMapCanvas *mapCanvas() const;
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the map canvas associated with the widget.
.. seealso:: :py:func:`setMapCanvas`
2017-06-08 15:30:38 +02:00
%End
void setExpressionContext( QgsExpressionContext *context );
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the optional expression context used for the widget. This expression context is used for
evaluating data defined symbol properties and for populating based expression widgets in
the layer widget.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param context: expression context pointer. Ownership is not transferred.
.. seealso:: :py:func:`expressionContext`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setAdditionalExpressionContextScopes`
2017-06-08 15:30:38 +02:00
%End
QgsExpressionContext *expressionContext() const;
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the expression context used for the widget, if set. This expression context is used for
evaluating data defined symbol properties and for populating based expression widgets in
the layer widget.
.. seealso:: :py:func:`setExpressionContext`
2017-06-08 15:30:38 +02:00
%End
void setAdditionalExpressionContextScopes( const QList< QgsExpressionContextScope > &scopes );
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets a list of additional expression context scopes to show as available within the layer.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param scopes: list of additional scopes which will be added in order to the end of the default expression context
.. seealso:: :py:func:`setExpressionContext`
2017-06-08 15:30:38 +02:00
%End
QList< QgsExpressionContextScope > additionalExpressionContextScopes() const;
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the list of additional expression context scopes to show as available within the layer.
.. seealso:: :py:func:`setAdditionalExpressionContextScopes`
2017-06-08 15:30:38 +02:00
%End
QList<QgsExpressionContextScope *> globalProjectAtlasMapLayerScopes( const QgsMapLayer *layer ) const /Factory/;
%Docstring
2017-12-15 10:36:55 -04:00
Returns list of scopes: global, project, atlas, map, layer.
Ownership is transferred to the caller.
2017-06-08 15:30:38 +02:00
.. versionadded:: 3.0
%End
};
2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
2017-08-06 13:39:03 +02:00
* src/gui/symbology/qgssymbolwidgetcontext.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/