2019-12-04 08:29:02 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2019-12-11 06:43:20 +10:00
|
|
|
* src/gui/labeling/qgslabelsettingswidgetbase.h *
|
2019-12-04 08:29:02 +10:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-04 09:37:13 +10:00
|
|
|
|
2019-12-04 08:29:02 +10:00
|
|
|
class QgsLabelSettingsWidgetBase : QgsPanelWidget, protected QgsExpressionContextGenerator
|
|
|
|
{
|
|
|
|
%Docstring
|
2019-12-04 11:17:41 +10:00
|
|
|
Base class for widgets which allow customization of label engine properties, such as label placement settings.
|
2019-12-04 08:29:02 +10:00
|
|
|
|
|
|
|
.. versionadded:: 3.12
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslabelsettingswidgetbase.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsLabelSettingsWidgetBase( QWidget *parent /TransferThis/ = 0, QgsVectorLayer *vl = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsLabelSettingsWidgetBase.
|
|
|
|
|
|
|
|
:param parent: parent widget
|
|
|
|
:param vl: associated vector layer
|
|
|
|
%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.
|
|
|
|
|
|
|
|
.. 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
|
|
|
|
|
|
|
|
virtual void setGeometryType( QgsWkbTypes::GeometryType type );
|
|
|
|
%Docstring
|
|
|
|
Sets the geometry ``type`` of the features to customize the widget accordingly.
|
2019-12-04 08:34:46 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QgsPropertyCollection dataDefinedProperties() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the current data defined properties state as specified in the widget.
|
|
|
|
|
2019-12-04 12:06:11 +10:00
|
|
|
.. seealso:: :py:func:`updateDataDefinedProperties`
|
|
|
|
|
2019-12-04 08:34:46 +10:00
|
|
|
.. seealso:: :py:func:`setDataDefinedProperties`
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setDataDefinedProperties( const QgsPropertyCollection &dataDefinedProperties );
|
|
|
|
%Docstring
|
|
|
|
Sets the current data defined properties to show in the widget.
|
|
|
|
|
2019-12-04 12:06:11 +10:00
|
|
|
.. seealso:: :py:func:`dataDefinedProperties`
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void updateDataDefinedProperties( QgsPropertyCollection &properties );
|
|
|
|
%Docstring
|
|
|
|
Updates a data defined ``properties`` collection, correctly setting the values
|
|
|
|
for any properties related to this widget.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setDataDefinedProperties`
|
|
|
|
|
2019-12-04 08:34:46 +10:00
|
|
|
.. seealso:: :py:func:`dataDefinedProperties`
|
2019-12-04 08:29:02 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void changed();
|
|
|
|
%Docstring
|
|
|
|
Emitted when any of the settings described by the widget are changed.
|
2019-12-04 12:06:11 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void auxiliaryFieldCreated();
|
|
|
|
%Docstring
|
|
|
|
Emitted when an auxiliary field is created in the widget.
|
2019-12-04 08:29:02 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual QgsExpressionContext createExpressionContext() const;
|
|
|
|
|
|
|
|
|
|
|
|
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsPalLayerSettings::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
|
|
|
|
|
2019-12-04 12:06:11 +10:00
|
|
|
|
2019-12-04 08:29:02 +10:00
|
|
|
};
|
|
|
|
|
2019-12-04 09:37:13 +10:00
|
|
|
class QgsLabelSettingsWidgetDialog : QDialog
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
A blocking dialog containing a QgsLabelSettingsWidgetBase.
|
|
|
|
|
|
|
|
.. versionadded:: 3.12
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslabelsettingswidgetbase.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
QgsLabelSettingsWidgetDialog( QgsLabelSettingsWidgetBase *widget /Transfer/, QWidget *parent = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsLabelSettingsWidgetDialog.
|
|
|
|
|
|
|
|
:param widget: label settings widget to embed in the dialog. Ownership is transferred to the dialog.
|
|
|
|
:param parent: parent widget
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2019-12-04 08:29:02 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2019-12-11 06:43:20 +10:00
|
|
|
* src/gui/labeling/qgslabelsettingswidgetbase.h *
|
2019-12-04 08:29:02 +10:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|