VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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

QCheckBoxmyCockpitsEnabledCheckbox
QCheckBoxmySmoothingCheckbox
QLabelmySmoothingPeriodLabel
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

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.

virtual makVrv::DtCockpitSettingsWidget::~DtCockpitSettingsWidget ( )
virtual

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.

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 ( )
protectedvirtual

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)
protectedslot
void makVrv::DtCockpitSettingsWidget::on_smoothingCheckChanged ( int  state)
protectedslot
void makVrv::DtCockpitSettingsWidget::on_smoothingPeriodSliderChanged ( int  scale)
protectedslot
void makVrv::DtCockpitSettingsWidget::on_smoothingPeriodSpinboxChanged ( double  scale)
protectedslot

Member Data Documentation

QCheckBox* makVrv::DtCockpitSettingsWidget::myCockpitsEnabledCheckbox
protected
QCheckBox* makVrv::DtCockpitSettingsWidget::mySmoothingCheckbox
protected
QLabel* makVrv::DtCockpitSettingsWidget::mySmoothingPeriodLabel
protected
QSlider* makVrv::DtCockpitSettingsWidget::mySmoothingPeriodSlider
protected
QDoubleSpinBox* makVrv::DtCockpitSettingsWidget::mySmoothingPeriodSpinBox
protected
QVBoxLayout* makVrv::DtCockpitSettingsWidget::myMainLayout
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)