QGIS API Documentation
3.6.0-Noosa (5873452)
|
Provider interface to be implemented in order to introduce new kinds of embedded widgets for use in layer tree. More...
#include <qgslayertreeembeddedwidgetregistry.h>
Public Member Functions | |
virtual | ~QgsLayerTreeEmbeddedWidgetProvider ()=default |
virtual QWidget * | createWidget (QgsMapLayer *layer, int widgetIndex)=0 |
Factory to create widgets. More... | |
virtual QString | id () const =0 |
Unique name of the provider (among other providers) More... | |
virtual QString | name () const =0 |
Human readable name - may be translatable with tr() More... | |
virtual bool | supportsLayer (QgsMapLayer *layer)=0 |
Whether it makes sense to use this widget for a particular layer. More... | |
Provider interface to be implemented in order to introduce new kinds of embedded widgets for use in layer tree.
Embedded widgets are assigned per individual map layers and they are shown before any legend entries.
Definition at line 35 of file qgslayertreeembeddedwidgetregistry.h.
|
virtualdefault |
|
pure virtual |
Factory to create widgets.
The returned widget is owned by the caller. The widgetIndex argument may be used to identify which widget is being created (useful when using multiple widgets from the same provider for one layer).
|
pure virtual |
Unique name of the provider (among other providers)
|
pure virtual |
Human readable name - may be translatable with tr()
|
pure virtual |
Whether it makes sense to use this widget for a particular layer.