#include <qgsmaplayerconfigwidgetfactory.h>
- Note
- added in QGIS 2.16 Factory class for creating custom map layer property pages
Definition at line 28 of file qgsmaplayerconfigwidgetfactory.h.
◆ QgsMapLayerConfigWidgetFactory() [1/2]
QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory |
( |
| ) |
|
◆ QgsMapLayerConfigWidgetFactory() [2/2]
QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory |
( |
QString |
title, |
|
|
QIcon |
icon |
|
) |
| |
◆ ~QgsMapLayerConfigWidgetFactory()
QgsMapLayerConfigWidgetFactory::~QgsMapLayerConfigWidgetFactory |
( |
| ) |
|
|
virtual |
◆ createWidget()
Factory fucntion 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.
- 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.
◆ 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 66 of file qgsmaplayerconfigwidgetfactory.h.
◆ supportLayerPropertiesDialog()
virtual bool QgsMapLayerConfigWidgetFactory::supportLayerPropertiesDialog |
( |
| ) |
const |
|
inlinevirtual |
◆ supportsLayer()
bool QgsMapLayerConfigWidgetFactory::supportsLayer |
( |
QgsMapLayer * |
layer | ) |
const |
|
virtual |
◆ supportsStyleDock()
virtual bool QgsMapLayerConfigWidgetFactory::supportsStyleDock |
( |
| ) |
const |
|
inlinevirtual |
◆ title()
virtual QString QgsMapLayerConfigWidgetFactory::title |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files: