|
QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
Convenience metadata class that uses static functions to handle sensor GUI behavior. More...
#include <qgssensorguiregistry.h>

Public Member Functions | |
| QgsSensorGuiMetadata (const QString &type, const QString &visibleName, const QIcon &creationIcon, const QgsSensorWidgetFunc &pfWidget=nullptr, const QgsSensorCreateFunc &pfCreateFunc=nullptr) | |
| Constructor for QgsSensorGuiMetadata with the specified class type and creationIcon, and function pointers for the configuration widget creation function. More... | |
| QgsAbstractSensor * | createSensor (QObject *parent) override |
| Creates an instance of the corresponding sensor type. More... | |
| QgsAbstractSensorWidget * | createSensorWidget (QgsAbstractSensor *sensor) override |
| Creates a configuration widget for an sensor of this type. More... | |
| QIcon | creationIcon () const override |
| Returns an icon representing creation of the sensor type. More... | |
| QgsSensorCreateFunc | sensorCreationFunction () const |
| Returns the classes' sensor creation function. More... | |
| void | setSensorCreationFunction (const QgsSensorCreateFunc &function) |
| Sets the classes' sensor creation function. More... | |
| void | setWidgetFunction (const QgsSensorWidgetFunc &function) |
| Sets the classes' sensor configuration widget creation function. More... | |
| QgsSensorWidgetFunc | widgetFunction () const |
| Returns the classes' configuration widget creation function. More... | |
Public Member Functions inherited from QgsSensorAbstractGuiMetadata | |
| QgsSensorAbstractGuiMetadata (const QString &type, const QString &visibleName) | |
| Constructor for QgsSensorAbstractGuiMetadata with the specified class type. More... | |
| virtual | ~QgsSensorAbstractGuiMetadata ()=default |
| virtual QgsAbstractSensor * | createSensor (QObject *parent) |
| Creates an instance of the corresponding sensor type. More... | |
| virtual QgsAbstractSensorWidget * | createSensorWidget (QgsAbstractSensor *sensor) |
| Creates a configuration widget for an sensor of this type. More... | |
| virtual QIcon | creationIcon () const |
| Returns an icon representing creation of the sensor type. More... | |
| QString | type () const |
| Returns the unique type code for the sensor class. More... | |
| QString | visibleName () const |
| Returns a translated, user visible name identifying the corresponding sensor. More... | |
Protected Attributes | |
| QgsSensorCreateFunc | mCreateFunc = nullptr |
| QIcon | mIcon |
| QgsSensorWidgetFunc | mWidgetFunc = nullptr |
Convenience metadata class that uses static functions to handle sensor GUI behavior.
Definition at line 111 of file qgssensorguiregistry.h.
|
inline |
Constructor for QgsSensorGuiMetadata with the specified class type and creationIcon, and function pointers for the configuration widget creation function.
visibleName should be set to a translated, user visible name identifying the corresponding sensor.
Definition at line 121 of file qgssensorguiregistry.h.
|
inlineoverridevirtual |
Creates an instance of the corresponding sensor type.
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 156 of file qgssensorguiregistry.h.
|
inlineoverridevirtual |
Creates a configuration widget for an sensor of this type.
Can return nullptr if no configuration GUI is required.
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 155 of file qgssensorguiregistry.h.
|
inlineoverridevirtual |
Returns an icon representing creation of the sensor type.
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 154 of file qgssensorguiregistry.h.
|
inline |
Returns the classes' sensor creation function.
Definition at line 146 of file qgssensorguiregistry.h.
|
inline |
Sets the classes' sensor creation function.
Definition at line 152 of file qgssensorguiregistry.h.
|
inline |
Sets the classes' sensor configuration widget creation function.
Definition at line 140 of file qgssensorguiregistry.h.
|
inline |
Returns the classes' configuration widget creation function.
Definition at line 134 of file qgssensorguiregistry.h.
|
protected |
Definition at line 162 of file qgssensorguiregistry.h.
|
protected |
Definition at line 160 of file qgssensorguiregistry.h.
|
protected |
Definition at line 161 of file qgssensorguiregistry.h.