1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/callouts/qgscalloutwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsCalloutWidget : QWidget, protected QgsExpressionContextGenerator
{
%Docstring(signature="appended")
Base class for widgets which allow control over the properties of
callouts.
.. versionadded:: 3.10
%End
%TypeHeaderCode
#include "qgscalloutwidget.h"
%End
public:
QgsCalloutWidget( QWidget *parent /TransferThis/, QgsMapLayer *vl = 0 );
%Docstring
Constructor for QgsCalloutWidget.
:param vl: associated map layer
:param parent: parent widget
%End
virtual void setCallout( const QgsCallout *callout ) = 0;
%Docstring
Sets the ``callout`` to show in the widget. Ownership is not
transferred.
.. seealso:: :py:func:`callout`
%End
virtual QgsCallout *callout() = 0;
%Docstring
Returns the callout defined by the current settings in the widget.
Ownership is not transferred, and the caller should clone the returned
value.
.. seealso:: :py:func:`setCallout`
%End
virtual void setContext( const QgsSymbolWidgetContext &context );
%Docstring
Sets the context in which the symbol widget is shown, e.g., the
associated map canvas and expression contexts.
:param context: symbol widget context
.. seealso:: :py:func:`context`
%End
QgsSymbolWidgetContext context() const;
%Docstring
Returns the context in which the symbol widget is shown, e.g., the
associated map canvas and expression contexts.
.. seealso:: :py:func:`setContext`
%End
const QgsVectorLayer *vectorLayer() const /Deprecated/;
%Docstring
Returns the vector layer associated with the widget.
.. deprecated:: 3.40
Use :py:func:`~QgsCalloutWidget.layer` instead.
%End
const QgsMapLayer *layer() const;
%Docstring
Returns the vector layer associated with the widget.
.. versionadded:: 3.40
%End
virtual void setGeometryType( Qgis::GeometryType type ) = 0;
%Docstring
Sets the geometry ``type`` of the features to customize the widget
accordingly.
%End
protected:
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsCallout::Property key );
%Docstring
Registers a data defined override button. Handles setting up connections
for the button and initializing the button to show the correct
descriptions and help text for the associated property.
%End
virtual QgsExpressionContext createExpressionContext() const;
signals:
void changed();
%Docstring
Should be emitted whenever configuration changes happened on this symbol
layer configuration. If the subsymbol is changed,
:py:func:`~QgsCalloutWidget.symbolChanged` should be emitted instead.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/callouts/qgscalloutwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|