The ScaleControl class packs together a QLabel, a DoubleSpinbox and a Slider with the necessary facilities for the interaction between them.
More...
#include <scalecontrol.h>
The ScaleControl class packs together a QLabel, a DoubleSpinbox and a Slider with the necessary facilities for the interaction between them.
DECLARE CLASS ScaleControl
Definition at line 75 of file scalecontrol.h.
◆ ScaleControl() [1/3]
ScaleControl::ScaleControl |
( |
const char * |
label | ) |
|
|
explicit |
Constructs a ScaleControl object who's Qlabel element will be set.
- Parameters
-
[in] | label | Text for the Qlabel. |
Definition at line 54 of file scalecontrol.cpp.
◆ ScaleControl() [2/3]
ScaleControl::ScaleControl |
( |
const char * |
label, |
|
|
QWidget * |
parent |
|
) |
| |
|
explicit |
Constructs a ScaleControl object who's Qlabel element will be set, and sets the parent of the underlying QWidget.
- Parameters
-
[in] | label | Text for the Qlabel. |
[in] | parent | Parent of widget. |
Definition at line 60 of file scalecontrol.cpp.
◆ ScaleControl() [3/3]
ScaleControl::ScaleControl |
( |
const char * |
label, |
|
|
QWidget * |
parent, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
explicit |
Constructs a ScaleControl object who's Qlabel element will be set, and sets the parent of the underlying QWidget. The min and max values for the control will also be initialized.
- Parameters
-
[in] | label | Text for the Qlabel. |
[in] | parent | Parent of widget. |
[in] | min | Min value of the control. |
[in] | max | Max value of the control. |
Definition at line 67 of file scalecontrol.cpp.
◆ getUI()
Ui::ScaleControlWidget * ScaleControl::getUI |
( |
| ) |
|
◆ invertSlider()
void ScaleControl::invertSlider |
( |
bool |
inverted | ) |
|
Invert the effect of sliding the control slider to the right. Slider right decreases the control value.
- Parameters
-
[in] | inverted | (True = Invert the slider effect). |
Definition at line 172 of file scalecontrol.cpp.
◆ setDecimals()
void ScaleControl::setDecimals |
( |
int |
d | ) |
|
Set the number of decimals to show in the spinbox of the control.
- Parameters
-
[in] | d | Number of decimals to show in the spinbox. |
Definition at line 191 of file scalecontrol.cpp.
◆ setMaxSensitivityPoint()
void ScaleControl::setMaxSensitivityPoint |
( |
double |
s | ) |
|
Set the value of the maximum sensitivity point for the non-linear sensitivity curve of the sensor.
- Parameters
-
[in] | s | Maximum sensitivity value. |
Definition at line 137 of file scalecontrol.cpp.
◆ setRange()
void ScaleControl::setRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
Set the range of the Scalecontrol object. Tha it the maximum and minimum values allowed.
- Parameters
-
[in] | min | Minimum value to be allowed for the Scalecontrol. |
[in] | max | Maximum value to be allowed for the Scalecontrol. |
Definition at line 159 of file scalecontrol.cpp.
◆ setSensitivity()
void ScaleControl::setSensitivity |
( |
double |
s | ) |
|
Set the sensitivity value of the non-linear mapping between the control slider and the control value.
- Parameters
-
[in] | s | Sensitivity, between [0, 1]. |
Definition at line 148 of file scalecontrol.cpp.
◆ setValue
void ScaleControl::setValue |
( |
double |
dScale | ) |
|
|
slot |
Set the value of the control.
- Parameters
-
[in] | dScale | Value to set the control to. |
Definition at line 130 of file scalecontrol.cpp.
◆ value()
double ScaleControl::value |
( |
| ) |
const |
Return the value of the control
- Returns
- value of the control.
Definition at line 262 of file scalecontrol.cpp.
◆ valueChanged
void DISPLIB::ScaleControl::valueChanged |
( |
double |
dScale | ) |
|
|
signal |
Signal emitted when the value of the control changes.
- Parameters
-
[in] | dScale | The new value of the control. |
The documentation for this class was generated from the following files: