1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/sensor/qgssensorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsAbstractSensorWidget : QWidget
{
%Docstring(signature="appended")
Base class for widgets which allow control over the properties of
sensors.
.. versionadded:: 3.32
%End
%TypeHeaderCode
#include "qgssensorwidget.h"
%End
public:
QgsAbstractSensorWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsAbstractSensorWidget.
:param parent: parent widget
%End
virtual QgsAbstractSensor *createSensor() = 0 /Factory/;
%Docstring
Creates a new sensor matching the settings defined in the widget.
%End
virtual bool updateSensor( QgsAbstractSensor *sensor ) = 0;
%Docstring
Updates an existing ``sensor`` to match the settings defined in the
widget. If ``True`` is returned, the ``sensor`` was successfully
updated.
If ``False`` is returned, then the widget could not successfully update
the ``sensor``.
%End
virtual bool setSensor( QgsAbstractSensor *sensor ) = 0;
%Docstring
Sets the widget settings to match a given ``sensor``. If ``True`` is
returned, ``sensor`` was an acceptable type and the widget has been
updated to match the ``sensor``'s properties.
If ``False`` is returned, then the widget could not be successfully
updated to show the properties of ``sensor``.
%End
signals:
void changed();
%Docstring
Emitted whenever configuration changes happened on this sensor
configuration.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/sensor/qgssensorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|