![]() |
VR-Forces 4.8 Class Documentation
|
A double spin box and a combo box that displays a current unit and it's value. More...

Public Member Functions | |
| DtUnitsWidget (QWidget *parentWidget) | |
| Default CTOR. More... | |
| void | addUnits (const std::string &unit) |
| Add a unit into the combo box. More... | |
| void | setUnits (const std::string &unit) |
| Sets the current unit. More... | |
| void | setValue (double value) |
| Sets the current value. More... | |
| double | value () const |
| Gets the current value. More... | |
| std::string | units () const |
| Gets the current unit. More... | |
Protected Attributes | |
| QDoubleSpinBox * | myDoubleSpinBox |
| QComboBox * | myComboBox |
| QHBoxLayout * | myMainLayout |
A double spin box and a combo box that displays a current unit and it's value.
| makVrv::DtUnitsWidget::DtUnitsWidget | ( | QWidget * | parentWidget | ) |
Default CTOR.
| parentWidget | The parent widget. |
| void makVrv::DtUnitsWidget::addUnits | ( | const std::string & | unit | ) |
Add a unit into the combo box.
| unit | The unit string to add. |
| void makVrv::DtUnitsWidget::setUnits | ( | const std::string & | unit | ) |
Sets the current unit.
| unit | The unit must be added using addUnits before. |
| void makVrv::DtUnitsWidget::setValue | ( | double | value | ) |
Sets the current value.
| value | The value of the comboBox. |
| double makVrv::DtUnitsWidget::value | ( | ) | const |
Gets the current value.
| std::string makVrv::DtUnitsWidget::units | ( | ) | const |
Gets the current unit.
|
protected |
|
protected |
|
protected |