QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Stores metadata about one callout renderer class. More...
#include <qgscalloutsregistry.h>
Public Member Functions | |
QgsCalloutAbstractMetadata (const QString &name, const QString &visibleName, const QIcon &icon=QIcon()) | |
Constructor for QgsCalloutAbstractMetadata, with the specified name. More... | |
virtual | ~QgsCalloutAbstractMetadata ()=default |
virtual QgsCallout * | createCallout (const QVariantMap &properties, const QgsReadWriteContext &context)=0 |
Create a callout of this type given the map of properties. More... | |
virtual QgsCalloutWidget * | createCalloutWidget (QgsVectorLayer *) |
Creates a widget for configuring callouts of this type. More... | |
QIcon | icon () const |
Returns an icon representing the callout. More... | |
QString | name () const |
Returns the unique name of the callout type. More... | |
void | setIcon (const QIcon &icon) |
Sets an icon representing the callout. More... | |
QString | visibleName () const |
Returns a friendly display name of the callout type. More... | |
Protected Attributes | |
QIcon | mIcon |
QString | mName |
QString | mVisibleName |
Stores metadata about one callout renderer class.
Definition at line 39 of file qgscalloutsregistry.h.
|
inline |
Constructor for QgsCalloutAbstractMetadata, with the specified name.
The visibleName argument gives a translated, user friendly string identifying the callout type.
The icon argument can be used to specify an icon representing the callout.
Definition at line 50 of file qgscalloutsregistry.h.
|
virtualdefault |
|
pure virtual |
Create a callout of this type given the map of properties.
Ownership of the callout is transferred to the caller.
Implemented in QgsCalloutMetadata.
|
virtual |
Creates a widget for configuring callouts of this type.
Can return nullptr
if there's no GUI required.
Ownership of the widget is transferred to the caller.
Reimplemented in QgsCalloutMetadata.
Definition at line 25 of file qgscalloutsregistry.cpp.
|
inline |
Returns an icon representing the callout.
Definition at line 74 of file qgscalloutsregistry.h.
|
inline |
Returns the unique name of the callout type.
This value is not translated.
Definition at line 62 of file qgscalloutsregistry.h.
|
inline |
Sets an icon representing the callout.
Definition at line 80 of file qgscalloutsregistry.h.
|
inline |
Returns a friendly display name of the callout type.
This value is translated.
Definition at line 68 of file qgscalloutsregistry.h.
|
protected |
Definition at line 99 of file qgscalloutsregistry.h.
|
protected |
Definition at line 97 of file qgscalloutsregistry.h.
|
protected |
Definition at line 98 of file qgscalloutsregistry.h.