mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
1111 lines
24 KiB
Plaintext
1111 lines
24 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/symbology/qgssymbollayerwidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsSymbolLayerWidget : QWidget, protected QgsExpressionContextGenerator
|
|
{
|
|
%Docstring(signature="appended")
|
|
Abstract base class for widgets used to configure
|
|
:py:class:`QgsSymbolLayer` classes.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsSymbolLayerWidget( QWidget *parent /TransferThis/, QgsVectorLayer *vl = 0 );
|
|
%Docstring
|
|
Constructor for QgsSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer ) = 0;
|
|
virtual QgsSymbolLayer *symbolLayer() = 0;
|
|
|
|
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;
|
|
%Docstring
|
|
Returns the vector layer associated with the widget.
|
|
%End
|
|
|
|
protected:
|
|
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::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:`~QgsSymbolLayerWidget.symbolChanged` should be emitted
|
|
instead.
|
|
%End
|
|
|
|
void symbolChanged();
|
|
%Docstring
|
|
Should be emitted whenever the sub symbol changed on this symbol layer
|
|
configuration. Normally :py:func:`~QgsSymbolLayerWidget.changed` should
|
|
be preferred.
|
|
|
|
.. seealso:: :py:func:`changed`
|
|
%End
|
|
|
|
protected slots:
|
|
void updateDataDefinedProperty();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsSimpleLineSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsSimpleLineSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsSimpleLineSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsSimpleLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
~QgsSimpleLineSymbolLayerWidget();
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsSimpleLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
protected:
|
|
|
|
void updatePatternIcon();
|
|
|
|
virtual void resizeEvent( QResizeEvent *event );
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsSimpleMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsSimpleMarkerSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsSimpleMarkerSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsSimpleMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
~QgsSimpleMarkerSymbolLayerWidget();
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsSimpleMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
public slots:
|
|
|
|
void setColorStroke( const QColor &color );
|
|
void setColorFill( const QColor &color );
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsSimpleFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsSimpleFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsSimpleFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsSimpleFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsSimpleFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
public slots:
|
|
void setColor( const QColor &color );
|
|
void setStrokeColor( const QColor &color );
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsFilledMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for configuring :py:class:`QgsFilledMarkerSymbolLayer` symbol
|
|
layers.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsFilledMarkerSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsFilledMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
~QgsFilledMarkerSymbolLayerWidget();
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsFilledMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsGradientFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsGradientFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsGradientFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsGradientFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsGradientFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
public slots:
|
|
void setColor( const QColor &color );
|
|
void setColor2( const QColor &color );
|
|
|
|
void applyColorRamp();
|
|
%Docstring
|
|
Applies the color ramp passed on by the color ramp button
|
|
%End
|
|
void setGradientType( int index );
|
|
void setCoordinateMode( int index );
|
|
void setGradientSpread( int index );
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsShapeburstFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsShapeburstFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsShapeburstFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsShapeburstFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsShapeburstFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
public slots:
|
|
void setColor( const QColor &color );
|
|
void setColor2( const QColor &color );
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsMarkerLineSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsMarkerLineSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsMarkerLineSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsMarkerLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsMarkerLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
public slots:
|
|
|
|
void setInterval( double val );
|
|
void setOffsetAlongLine( double val );
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsHashedLineSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsHashedLineSymbolLayer`.
|
|
|
|
.. versionadded:: 3.8
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsHashedLineSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsHashedLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsHashedLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsSvgMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsSvgMarkerSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsSvgMarkerSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsSvgMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
~QgsSvgMarkerSymbolLayerWidget();
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsSvgMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
public slots:
|
|
void setSvgPath( const QString &name );
|
|
%Docstring
|
|
Sets the SVG path
|
|
%End
|
|
void setSvgParameters( const QMap<QString, QgsProperty> ¶meters );
|
|
%Docstring
|
|
Sets the dynamic SVG parameters
|
|
%End
|
|
|
|
|
|
protected:
|
|
|
|
void populateList() /Deprecated="Since 3.16. "/;
|
|
%Docstring
|
|
This method does nothing anymore, the loading is automatic
|
|
|
|
.. deprecated:: 3.16
|
|
%End
|
|
|
|
void setGuiForSvg( const QgsSvgMarkerSymbolLayer *layer, bool skipDefaultColors = false );
|
|
%Docstring
|
|
Updates the GUI to reflect the SVG marker symbol ``layer``.
|
|
|
|
:param layer: SVG marker symbol layer
|
|
:param skipDefaultColors: if ``True``, the default fill and outline
|
|
colors of the SVG file will not overwrite the
|
|
ones from the symbol layer
|
|
%End
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsRasterMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for configuring :py:class:`QgsRasterMarkerSymbolLayer` symbol
|
|
layers.
|
|
|
|
.. versionadded:: 3.6
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsRasterMarkerSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsRasterMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsRasterMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsAnimatedMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for configuring :py:class:`QgsAnimatedMarkerSymbolLayer` symbol
|
|
layers.
|
|
|
|
.. versionadded:: 3.26
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsAnimatedMarkerSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsAnimatedMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsAnimatedMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsRasterFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsRasterFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsRasterFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsRasterFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsRasterFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsRasterLineSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for configuring :py:class:`QgsRasterLineSymbolLayer` symbol
|
|
layers.
|
|
|
|
.. versionadded:: 3.24
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsRasterLineSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsRasterLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsRasterLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLineburstSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for configuring :py:class:`QgsLineburstSymbolLayer` symbol
|
|
layers.
|
|
|
|
.. versionadded:: 3.24
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsLineburstSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsLineburstSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsLineburstSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
protected:
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsFilledLineSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for configuring :py:class:`QgsFilledLineSymbolLayer`.
|
|
|
|
.. versionadded:: 3.36
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsFilledLineSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsFilledLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
~QgsFilledLineSymbolLayerWidget();
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsFilledLineSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsSVGFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsSVGFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsSVGFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsSVGFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsSVGFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
protected:
|
|
|
|
void updateParamGui( bool resetValues = true );
|
|
%Docstring
|
|
Enables or disables svg fill color, stroke color and stroke width based
|
|
on whether the svg file supports custom parameters.
|
|
|
|
:param resetValues: set to ``True`` to overwrite existing layer fill
|
|
color, stroke color and stroke width with default
|
|
values from svg file
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsLinePatternFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsLinePatternFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsLinePatternFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsLinePatternFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsLinePatternFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsPointPatternFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsPointPatternFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsPointPatternFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsPointPatternFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsPointPatternFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsRandomMarkerFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsRandomMarkerFillSymbolLayer`.
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsRandomMarkerFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsRandomMarkerFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsRandomMarkerFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsFontMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsFontMarkerSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsFontMarkerSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsFontMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
~QgsFontMarkerSymbolLayerWidget();
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsFontMarkerSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
public slots:
|
|
void setFontFamily( const QFont &font );
|
|
void setColor( const QColor &color );
|
|
|
|
void setColorStroke( const QColor &color );
|
|
%Docstring
|
|
Set stroke color.
|
|
%End
|
|
void setSize( double size );
|
|
void setAngle( double angle );
|
|
|
|
void setCharacter( QChar chr );
|
|
%Docstring
|
|
Set the font marker character from char.
|
|
|
|
:param chr: the char
|
|
%End
|
|
|
|
void setCharacterFromText( const QString &text );
|
|
%Docstring
|
|
Set the font marker character from a text string.
|
|
|
|
:param text: the text string
|
|
|
|
.. versionadded:: 3.8
|
|
%End
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsCentroidFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsCentroidFillSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsCentroidFillSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsCentroidFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsCentroidFillSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLinearReferencingSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsLinearReferencingSymbolLayer`.
|
|
|
|
.. versionadded:: 3.40
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsLinearReferencingSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsLinearReferencingSymbolLayerWidget.
|
|
%End
|
|
|
|
~QgsLinearReferencingSymbolLayerWidget();
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Creates a new QgsLinearReferencingSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class QgsGeometryGeneratorSymbolLayerWidget : QgsSymbolLayerWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for controlling the properties of a
|
|
:py:class:`QgsGeometryGeneratorSymbolLayer`.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssymbollayerwidget.h"
|
|
%End
|
|
public:
|
|
QgsGeometryGeneratorSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsGeometryGeneratorSymbolLayerWidget.
|
|
|
|
:param vl: associated vector layer
|
|
:param parent: parent widget
|
|
%End
|
|
|
|
static QgsSymbolLayerWidget *create( QgsVectorLayer *vl ) /Factory/;
|
|
%Docstring
|
|
Will be registered as factory
|
|
%End
|
|
|
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
|
|
|
virtual QgsSymbolLayer *symbolLayer();
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/symbology/qgssymbollayerwidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|