QGIS/python/gui/qgsmaplayerconfigwidgetfactory.sip

136 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
2017-12-15 10:36:55 -04:00
2017-05-23 14:49:24 +02:00
.. versionadded:: 2.16
2017-12-15 10:36:55 -04:00
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.
2017-12-15 10:36:55 -04:00
:return: A QIcon for the panel icon.
2017-05-23 14:49:24 +02:00
%End
void setIcon( const QIcon &icon );
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set the icon for the factory object.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param icon: The icon to show in the interface.
2017-05-23 14:49:24 +02:00
%End
virtual QString title() const;
2017-05-23 14:49:24 +02:00
%Docstring
The title of the panel.
2017-12-15 10:36:55 -04:00
2017-12-16 10:38:54 -04:00
:return: Title of the panel
2017-05-23 14:49:24 +02:00
.. note::
This may or may not be shown to the user.
%End
void setTitle( const QString &title );
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set the title for the interface
2017-05-23 14:49:24 +02:00
.. note::
Not all users may show this as a label
2017-12-15 10:36:55 -04:00
e.g style dock uses this as a tooltip.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param title: The title to set.
2017-05-23 14:49:24 +02:00
%End
2016-07-07 09:22:30 +10:00
virtual bool supportsStyleDock() const;
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Flag if widget is supported for use in style dock.
The default implementation returns false.
:return: True if supported
2017-05-23 14:49:24 +02:00
%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
2017-12-15 10:36:55 -04:00
Set support flag for style dock
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param supports: True if this widget is supported in the style dock.
2017-05-23 14:49:24 +02:00
%End
2016-07-07 09:22:30 +10:00
virtual bool supportLayerPropertiesDialog() const;
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Flag if widget is supported for use in layer properties dialog.
The default implementation returns false.
:return: True if supported
2017-05-23 14:49:24 +02:00
%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
2017-12-15 10:36:55 -04:00
Set support flag for style dock
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param supports: True if this widget is supported in the style dock.
2017-05-23 14:49:24 +02:00
%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.
2017-12-15 10:36:55 -04:00
:return: True if this layer is supported for this widget
2017-05-23 14:49:24 +02:00
%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.
2017-12-15 10:36:55 -04:00
: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.
2017-12-16 10:38:54 -04:00
.. note::
This function is called each time the panel is selected. Keep it light for better UX.
2017-05-23 14:49:24 +02:00
%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 *
************************************************************************/