QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
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. | |
QgsAbstractSensor * | createSensor (QObject *parent) override |
Creates an instance of the corresponding sensor type. | |
QgsAbstractSensorWidget * | createSensorWidget (QgsAbstractSensor *sensor) override |
Creates a configuration widget for an sensor of this type. | |
QIcon | creationIcon () const override |
Returns an icon representing creation of the sensor type. | |
QgsSensorCreateFunc | sensorCreationFunction () const |
Returns the classes' sensor creation function. | |
void | setSensorCreationFunction (const QgsSensorCreateFunc &function) |
Sets the classes' sensor creation function. | |
void | setWidgetFunction (const QgsSensorWidgetFunc &function) |
Sets the classes' sensor configuration widget creation function. | |
QgsSensorWidgetFunc | widgetFunction () const |
Returns the classes' configuration widget creation function. | |
Public Member Functions inherited from QgsSensorAbstractGuiMetadata | |
QgsSensorAbstractGuiMetadata (const QString &type, const QString &visibleName) | |
Constructor for QgsSensorAbstractGuiMetadata with the specified class type. | |
virtual | ~QgsSensorAbstractGuiMetadata ()=default |
QString | type () const |
Returns the unique type code for the sensor class. | |
QString | visibleName () const |
Returns a translated, user visible name identifying the corresponding sensor. | |
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 110 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 120 of file qgssensorguiregistry.h.
|
inlineoverridevirtual |
Creates an instance of the corresponding sensor type.
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 155 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 154 of file qgssensorguiregistry.h.
|
inlineoverridevirtual |
Returns an icon representing creation of the sensor type.
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 153 of file qgssensorguiregistry.h.
|
inline |
Returns the classes' sensor creation function.
Definition at line 145 of file qgssensorguiregistry.h.
|
inline |
Sets the classes' sensor creation function.
Definition at line 151 of file qgssensorguiregistry.h.
|
inline |
Sets the classes' sensor configuration widget creation function.
Definition at line 139 of file qgssensorguiregistry.h.
|
inline |
Returns the classes' configuration widget creation function.
Definition at line 133 of file qgssensorguiregistry.h.
|
protected |
Definition at line 161 of file qgssensorguiregistry.h.
|
protected |
Definition at line 159 of file qgssensorguiregistry.h.
|
protected |
Definition at line 160 of file qgssensorguiregistry.h.