![]() |
VR-Forces 4.1 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. | |
Public Member Functions inherited from makVrv::DtCockpitSettingsInterface | |
| virtual | ~DtCockpitSettingsInterface () |
| DTOR. | |
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 |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtCockpitSettingsInterface | |
| boost::signal< void(bool)> | signal_cockpitsEnabled |
| boost::signal< void(bool)> | signal_smoothingSet |
| boost::signal< void(float)> | signal_smoothingPeriodSet |
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 |
DTOR.
|
virtual |
Set the value of the cockpits enabled widget.
Implements makVrv::DtCockpitSettingsInterface.
|
virtual |
Set the value of the smoothing enabled widget.
Implements makVrv::DtCockpitSettingsInterface.
|
virtual |
Set the value of the smoothing period widget.
Implements makVrv::DtCockpitSettingsInterface.
|
protected |
Sets up the widget's fields.
Non-virtual (Called from CTOR).
|
protected |
Connects widget signals to slots.
Non-virtual (Called from CTOR).
|
protectedvirtual |
Updates the enabled states of the widget's fields.
Checks what settings are enabled and greys out fields as appropriate.
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |