QGIS/python/gui/qgsmaplayerconfigwidgetfactory.sip

125 lines
3.6 KiB
Plaintext
Raw Normal View History

2017-05-23 14:49:24 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaplayerconfigwidgetfactory.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMapLayerConfigWidgetFactory
{
2017-05-23 14:49:24 +02:00
%Docstring
.. versionadded:: 2.16
Factory class for creating custom map layer property pages
%End
2017-05-23 14:49:24 +02:00
%TypeHeaderCode
#include "qgsmaplayerconfigwidgetfactory.h"
%End
public:
2017-05-23 14:49:24 +02:00
QgsMapLayerConfigWidgetFactory();
2017-05-23 14:49:24 +02:00
%Docstring
Constructor
%End
QgsMapLayerConfigWidgetFactory( const QString &title, const QIcon &icon );
2017-05-23 14:49:24 +02:00
%Docstring
Constructor
%End
virtual ~QgsMapLayerConfigWidgetFactory();
virtual QIcon icon() const;
2017-05-23 14:49:24 +02:00
%Docstring
The icon that will be shown in the UI for the panel.
:return: A QIcon for the panel icon.
:rtype: QIcon
%End
void setIcon( const QIcon &icon );
2017-05-23 14:49:24 +02:00
%Docstring
Set the icon for the factory object.
\param icon The icon to show in the interface.
%End
virtual QString title() const;
2017-05-23 14:49:24 +02:00
%Docstring
The title of the panel.
.. note::
This may or may not be shown to the user.
:return: Title of the panel
:rtype: str
%End
void setTitle( const QString &title );
2017-05-23 14:49:24 +02:00
%Docstring
Set the title for the interface
.. note::
Not all users may show this as a label
e.g style dock uses this as a tooltip.
\param title The title to set.
%End
2016-07-07 09:22:30 +10:00
virtual bool supportsStyleDock() const;
2017-05-23 14:49:24 +02:00
%Docstring
Flag if widget is supported for use in style dock.
:return: True if supported
:rtype: bool
%End
2016-07-07 09:22:30 +10:00
2016-07-11 12:46:17 +02:00
void setSupportsStyleDock( bool supports );
2017-05-23 14:49:24 +02:00
%Docstring
Set support flag for style dock
\param supports True if this widget is supported in the style dock.
%End
2016-07-07 09:22:30 +10:00
virtual bool supportLayerPropertiesDialog() const;
2017-05-23 14:49:24 +02:00
%Docstring
Flag if widget is supported for use in layer properties dialog.
:return: True if supported
:rtype: bool
%End
2016-07-07 09:22:30 +10:00
2016-07-11 12:46:17 +02:00
void setSupportLayerPropertiesDialog( bool supports );
2017-05-23 14:49:24 +02:00
%Docstring
Set support flag for style dock
\param supports True if this widget is supported in the style dock.
%End
virtual bool supportsLayer( QgsMapLayer *layer ) const;
2017-05-23 14:49:24 +02:00
%Docstring
Check if the layer is supported for this widget.
:return: True if this layer is supported for this widget
:rtype: bool
%End
virtual QgsMapLayerConfigWidget *createWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, bool dockWidget = true, QWidget *parent /TransferThis/ = 0 ) const = 0 /Factory/;
2017-05-23 14:49:24 +02:00
%Docstring
Factory function to create the widget on demand as needed by the dock.
.. note::
This function is called each time the panel is selected. Keep it light for better UX.
\param layer The active layer in the dock.
\param canvas The map canvas.
\param dockWidget True of the widget will be shown a dock style widget.
\param parent The parent of the widget.
:return: A new QgsMapStylePanel which is shown in the map style dock.
:rtype: QgsMapLayerConfigWidget
%End
};
2017-05-23 14:49:24 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaplayerconfigwidgetfactory.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/