Factory class for creating custom map layer property pages.
More...
#include <qgsmaplayerconfigwidgetfactory.h>
Factory class for creating custom map layer property pages.
- Since
- QGIS 2.16
Definition at line 33 of file qgsmaplayerconfigwidgetfactory.h.
◆ QgsMapLayerConfigWidgetFactory() [1/2]
QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory |
( |
| ) |
|
|
default |
◆ QgsMapLayerConfigWidgetFactory() [2/2]
QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory |
( |
const QString & |
title, |
|
|
const QIcon & |
icon |
|
) |
| |
◆ ~QgsMapLayerConfigWidgetFactory()
virtual QgsMapLayerConfigWidgetFactory::~QgsMapLayerConfigWidgetFactory |
( |
| ) |
|
|
virtualdefault |
◆ createWidget()
Factory function to create the widget on demand as needed by the dock.
- Parameters
-
layer | The active layer in the dock. |
canvas | The map canvas. |
dockWidget | True of the widget will be shown a dock style widget. |
parent | The parent of the widget. |
- Returns
- A new QgsMapStylePanel which is shown in the map style dock.
- Note
- This function is called each time the panel is selected. Keep it light for better UX.
◆ icon()
virtual QIcon QgsMapLayerConfigWidgetFactory::icon |
( |
| ) |
const |
|
inlinevirtual |
◆ setIcon()
void QgsMapLayerConfigWidgetFactory::setIcon |
( |
const QIcon & |
icon | ) |
|
|
inline |
◆ setSupportLayerPropertiesDialog()
void QgsMapLayerConfigWidgetFactory::setSupportLayerPropertiesDialog |
( |
bool |
supports | ) |
|
|
inline |
◆ setSupportsStyleDock()
void QgsMapLayerConfigWidgetFactory::setSupportsStyleDock |
( |
bool |
supports | ) |
|
|
inline |
◆ setTitle()
void QgsMapLayerConfigWidgetFactory::setTitle |
( |
const QString & |
title | ) |
|
|
inline |
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.
- Parameters
-
Definition at line 70 of file qgsmaplayerconfigwidgetfactory.h.
◆ supportLayerPropertiesDialog()
virtual bool QgsMapLayerConfigWidgetFactory::supportLayerPropertiesDialog |
( |
| ) |
const |
|
inlinevirtual |
Flag if widget is supported for use in layer properties dialog.
The default implementation returns false.
- Returns
- True if supported
Definition at line 90 of file qgsmaplayerconfigwidgetfactory.h.
◆ supportsLayer()
bool QgsMapLayerConfigWidgetFactory::supportsLayer |
( |
QgsMapLayer * |
layer | ) |
const |
|
virtual |
◆ supportsStyleDock()
virtual bool QgsMapLayerConfigWidgetFactory::supportsStyleDock |
( |
| ) |
const |
|
inlinevirtual |
Flag if widget is supported for use in style dock.
The default implementation returns false.
- Returns
- True if supported
Definition at line 77 of file qgsmaplayerconfigwidgetfactory.h.
◆ title()
virtual QString QgsMapLayerConfigWidgetFactory::title |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files: