![]() |
VR-Forces 4.0.4 Class Documentation
|
DtCockpitSettingsWidget implements the DtCockpitSettingsInterface for Qt. More...

Public Member Functions | |
| DtCockpitSettingsWidget (QWidget *parent, Qt::WindowFlags f=Qt::Widget) | |
| CTOR. | |
| virtual | ~DtCockpitSettingsWidget () |
| DTOR. | |
Field value setters. | |
Sets the values of the widget's corresponding fields. | |
| virtual void | setCockpitsEnabled (bool enabled) |
| Set the value of the cockpits enabled widget. | |
| virtual void | setSmoothingEnabled (bool enabled) |
| Set the value of the smoothing enabled widget. | |
| virtual void | setSmoothingPeriod (float period) |
| Set the value of the smoothing period widget. | |
Protected Slots | |
User input slots. | |
Receives notification that the user has changed a widget's value. | |
| void | on_enableCockpitsCheckChanged (int state) |
| void | on_smoothingCheckChanged (int state) |
| void | on_smoothingPeriodSliderChanged (int scale) |
| void | on_smoothingPeriodSpinboxChanged (double scale) |
Protected Member Functions | |
| void | setupGui () |
| Sets up the widget's fields. | |
| void | connectToSignals () |
| Connects widget signals to slots. | |
| virtual void | updateEnabledStates () |
| Updates the enabled states of the widget's fields. | |
Protected Attributes | |
| QCheckBox * | myCockpitsEnabledCheckbox |
| QCheckBox * | mySmoothingCheckbox |
| QLabel * | mySmoothingPeriodLabel |
| QSlider * | mySmoothingPeriodSlider |
| QDoubleSpinBox * | mySmoothingPeriodSpinBox |
| QVBoxLayout * | myMainLayout |
DtCockpitSettingsWidget implements the DtCockpitSettingsInterface for Qt.
It provides the Qt widgets used to change cockpit settings such as whether they're enabled or not, and the amount of smoothing to use.
| makVrv::DtCockpitSettingsWidget::DtCockpitSettingsWidget | ( | QWidget * | parent, |
| Qt::WindowFlags | f = Qt::Widget |
||
| ) |
CTOR.
| virtual makVrv::DtCockpitSettingsWidget::~DtCockpitSettingsWidget | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtCockpitSettingsWidget::setCockpitsEnabled | ( | bool | enabled | ) | [virtual] |
Set the value of the cockpits enabled widget.
Implements makVrv::DtCockpitSettingsInterface.
| virtual void makVrv::DtCockpitSettingsWidget::setSmoothingEnabled | ( | bool | enabled | ) | [virtual] |
Set the value of the smoothing enabled widget.
Implements makVrv::DtCockpitSettingsInterface.
| virtual void makVrv::DtCockpitSettingsWidget::setSmoothingPeriod | ( | float | period | ) | [virtual] |
Set the value of the smoothing period widget.
Implements makVrv::DtCockpitSettingsInterface.
| void makVrv::DtCockpitSettingsWidget::setupGui | ( | ) | [protected] |
Sets up the widget's fields.
Non-virtual (Called from CTOR).
| void makVrv::DtCockpitSettingsWidget::connectToSignals | ( | ) | [protected] |
Connects widget signals to slots.
Non-virtual (Called from CTOR).
| virtual void makVrv::DtCockpitSettingsWidget::updateEnabledStates | ( | ) | [protected, virtual] |
Updates the enabled states of the widget's fields.
Checks what settings are enabled and greys out fields as appropriate.
| void makVrv::DtCockpitSettingsWidget::on_enableCockpitsCheckChanged | ( | int | state | ) | [protected, slot] |
| void makVrv::DtCockpitSettingsWidget::on_smoothingCheckChanged | ( | int | state | ) | [protected, slot] |
| void makVrv::DtCockpitSettingsWidget::on_smoothingPeriodSliderChanged | ( | int | scale | ) | [protected, slot] |
| void makVrv::DtCockpitSettingsWidget::on_smoothingPeriodSpinboxChanged | ( | double | scale | ) | [protected, slot] |
QSlider* makVrv::DtCockpitSettingsWidget::mySmoothingPeriodSlider [protected] |
QDoubleSpinBox* makVrv::DtCockpitSettingsWidget::mySmoothingPeriodSpinBox [protected] |
QVBoxLayout* makVrv::DtCockpitSettingsWidget::myMainLayout [protected] |