![]() |
VR-Forces Developer's Guide
|
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.

Public Member Functions | |
| DtCockpitSettingsWidget (QWidget *parent, Qt::WindowFlags f=Qt::Widget) | |
| virtual | ~DtCockpitSettingsWidget () |
Field value setters. | |
Sets the values of the widget's corresponding fields. | |
| virtual void | setCockpitsEnabled (bool enabled) |
| virtual void | setSmoothingEnabled (bool enabled) |
| virtual void | setSmoothingPeriod (float period) |
Public Member Functions inherited from makVrv::DtCockpitSettingsInterface | |
| virtual | ~DtCockpitSettingsInterface () |
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 () |
| void | connectToSignals () |
| virtual void | updateEnabledStates () |
Protected Attributes | |
| QCheckBox * | myCockpitsEnabledCheckbox |
| QCheckBox * | mySmoothingCheckbox |
| QLabel * | mySmoothingPeriodLabel |
| QSlider * | mySmoothingPeriodSlider |
| QDoubleSpinBox * | mySmoothingPeriodSpinBox |
| QVBoxLayout * | myMainLayout |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtCockpitSettingsInterface | |
| boost::signalslib::signal < void(bool)> | signal_cockpitsEnabled |
| boost::signalslib::signal < void(bool)> | signal_smoothingSet |
| boost::signalslib::signal < void(float)> | signal_smoothingPeriodSet |
| 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 |