QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
Stores GUI metadata about one sensor class. More...
#include <qgssensorguiregistry.h>
Public Member Functions | |
QgsSensorAbstractGuiMetadata (const QString &type, const QString &visibleName) | |
Constructor for QgsSensorAbstractGuiMetadata with the specified class type. | |
virtual | ~QgsSensorAbstractGuiMetadata ()=default |
virtual QgsAbstractSensor * | createSensor (QObject *parent) |
Creates an instance of the corresponding sensor type. | |
virtual QgsAbstractSensorWidget * | createSensorWidget (QgsAbstractSensor *sensor) |
Creates a configuration widget for an sensor of this type. | |
virtual QIcon | creationIcon () const |
Returns an icon representing creation of the sensor type. | |
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. | |
Stores GUI metadata about one sensor class.
This is a companion to QgsSensorAbstractMetadata, storing only the components related to the GUI behavior of sensor.
Definition at line 37 of file qgssensorguiregistry.h.
|
inline |
Constructor for QgsSensorAbstractGuiMetadata with the specified class type.
visibleName should be set to a translated, user visible name identifying the corresponding sensor type.
Definition at line 46 of file qgssensorguiregistry.h.
|
virtualdefault |
|
inlinevirtual |
Creates an instance of the corresponding sensor type.
Reimplemented in QgsSensorGuiMetadata.
Definition at line 91 of file qgssensorguiregistry.h.
|
inlinevirtual |
Creates a configuration widget for an sensor of this type.
Can return nullptr
if no configuration GUI is required.
Reimplemented in QgsSensorGuiMetadata.
Definition at line 86 of file qgssensorguiregistry.h.
|
inlinevirtual |
Returns an icon representing creation of the sensor type.
Reimplemented in QgsSensorGuiMetadata.
Definition at line 66 of file qgssensorguiregistry.h.
|
inline |
Returns the unique type code for the sensor class.
Definition at line 56 of file qgssensorguiregistry.h.
|
inline |
Returns a translated, user visible name identifying the corresponding sensor.
Definition at line 61 of file qgssensorguiregistry.h.