VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtCockpitSettingsWidget Class Reference

DtCockpitSettingsWidget implements the DtCockpitSettingsInterface for Qt. More...

Inheritance diagram for makVrv::DtCockpitSettingsWidget:
Inheritance graph
[legend]

List of all members.

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

QCheckBoxmyCockpitsEnabledCheckbox
QCheckBoxmySmoothingCheckbox
QLabelmySmoothingPeriodLabel
QSlider * mySmoothingPeriodSlider
QDoubleSpinBox * mySmoothingPeriodSpinBox
QVBoxLayout * myMainLayout

Detailed Description

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.


Constructor & Destructor Documentation

makVrv::DtCockpitSettingsWidget::DtCockpitSettingsWidget ( QWidget parent,
Qt::WindowFlags  f = Qt::Widget 
)

CTOR.

DTOR.


Member Function Documentation

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.

Sets up the widget's fields.

Non-virtual (Called from CTOR).

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_smoothingCheckChanged ( int  state) [protected, slot]

Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)