VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtEnvironmentWidget Class Reference

A widget for configuring the environment. More...

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

Public Member Functions

 DtEnvironmentWidget (DtDe &de, DtPersistenceControlsInterface &persistenceControls, QWidget *parent=0)
 CTOR.
virtual ~DtEnvironmentWidget ()
 DTOR.
Field value setters.

Sets the values of the widget's corresponding fields.

virtual void setListenToRemoteWeather (bool listen)
 Sets whether or not to list to simulated weather messages.
virtual void setRefreshButtonEnabled (bool enabled)
 Enables/disables the VRF refresh weather button.
virtual void addCloudLayer (QString type, QString xLocation, QString yLocation, QString altitude, bool enabled)
 Add a cloud layer to the gui.
virtual void removeAllCloudLayers ()
 Sets whether or not to list to simulated weather messages.
virtual void removeCloudLayer (int index)
 Remove a cloud layer from the gui.
virtual void setCloudLayerEnabled (unsigned int index, bool enabled)
 Set whether a cloud layer is enabled or not.
virtual void setPrecipitationEnabled (bool enabledFlag)
 Set the precipitation enabled checkbox.
virtual void setPrecipitationType (const std::string &type)
 Set the precipitation type combobox.
virtual void setPrecipitationIntensity (float intensity)
 Set the precipitation intensity box.
virtual void setTurbidity (float value)
 Set the air turbidity box.
virtual void setVisibleDistance (float distance)
 Set the visibile distance box.
virtual void setVisibleDistanceDecimals (int decimals)
 Set the visible distance decimal places.
virtual void setVisibleDistanceUnits (const DtUnicode &units)
 Set the visible distance units.
virtual void setAxisLabels (const DtUnicode &x, const DtUnicode &y, const DtUnicode &z)
 Set the X and Y axis labels.
Display requests for user input dialogs.
virtual void queryUserForNewCloudLayer ()
 Shows the user the new cloud layer dialog.
virtual void queryUserToEditCloudLayer (int index)
 Shows the user the new cloud layer dialog, populated with the settings of the selected layer.

Protected Types

enum  {
  CloudTreeColumnType = 0, CloudTreeColumnX, CloudTreeColumnY, CloudTreeColumnAltitude,
  CloudTreeColumnEnabled
}

Protected Slots

User input slots.

Receives notification that the user has changed a widget's value.

void on_myListenToVrfBox_stateChanged (int)
void on_myRefreshVrfWeatherButton_clicked ()
void on_myCloudLayersTree_itemSelectionChanged ()
void on_myCloudLayersTree_itemChanged (QTreeWidgetItem *item, int column)
void on_myAddCloudLayerButton_clicked ()
void on_myDeleteCloudLayerButton_clicked ()
void on_myEditCloudLayerButton_clicked ()
void on_myTurbidityBox_currentIndexChanged (int)
void on_myTurbiditySpinBox_valueChanged (double)
void on_myVisibilityBox_valueChanged (double)
void on_myPrecipitationGroup_toggled (bool state)
void on_myPrecipitationTypeBox_indexChanged (int index)
void on_myPrecipitationIntensityBox_valueChanged (double value)

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.
void connectToSignals ()
 Connects widget signals to slots.
std::string untranslatePrecipitationType (QString type) const
 Returns the untranslated type for the given (translated) precipitation type.
QString translatePrecipitationType (const std::string &type) const
 Returns the translated precipitation type.

Protected Attributes

DtDemyDe
DtEnvironmentLogicmyLogic
QCheckBoxmyListenToVrfBox
QPushButtonmyRefreshVrfWeatherButton
QLabelmyCloudLayerLabel
QTreeWidgetmyCloudLayersTree
QPushButtonmyAddCloudLayerButton
QPushButtonmyDeleteCloudLayerButton
QPushButtonmyEditCloudLayerButton
QLabelmyTurbidityLabel
QComboBoxmyTurbidityBox
QDoubleSpinBox * myTurbiditySpinBox
QLabelmyVisibilityLabel
QDoubleSpinBox * myVisibilityBox
QCheckBoxmyPrecipitionCheckbox
QLabelmyPrecipitionTypeLabel
QComboBoxmyPrecipitationTypeBox
QLabelmyPrecipitionIntensityLabel
QDoubleSpinBox * myPrecipitionIntensityBox
std::vector< std::pair
< QString, float > > 
myPredefinedValues

Additional Inherited Members

- Public Attributes inherited from makVrv::DtEnvironmentInterface
boost::signal< void(bool)> signal_remoteSettingsChanged
boost::signal< void()> signal_refreshRemoteSettings
boost::signal< void()> signal_newCloudLayer
boost::signal< void(int index)> signal_deleteCloudLayer
boost::signal< void(int index)> signal_editCloudLayer
boost::signal< void(const
makArchives::DtCloudLayerRecord
&type)> 
signal_createCloudLayer
boost::signal< void(unsigned
int index, bool enabled)> 
signal_cloudLayerEnableChanged
boost::signal< void(int index,
const
makArchives::DtCloudLayerRecord
&cloudRec)> 
signal_cloudLayerEdited
boost::signal< void(float)> signal_turbidityChanged
boost::signal< void(float)> signal_visibilityChanged
boost::signal< void(bool enabled)> signal_precipitationEnableChanged
boost::signal< void(const
std::string &type)> 
signal_precipitationTypeChanged
boost::signal< void(float
intensitys)> 
signal_precipitationIntensityChanged

Detailed Description

A widget for configuring the environment.

Member Enumeration Documentation

anonymous enum
protected
Enumerator:
CloudTreeColumnType 
CloudTreeColumnX 
CloudTreeColumnY 
CloudTreeColumnAltitude 
CloudTreeColumnEnabled 

Constructor & Destructor Documentation

makVrv::DtEnvironmentWidget::DtEnvironmentWidget ( DtDe de,
DtPersistenceControlsInterface persistenceControls,
QWidget parent = 0 
)

CTOR.

virtual makVrv::DtEnvironmentWidget::~DtEnvironmentWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtEnvironmentWidget::setListenToRemoteWeather ( bool  listen)
virtual

Sets whether or not to list to simulated weather messages.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setRefreshButtonEnabled ( bool  enabled)
virtual

Enables/disables the VRF refresh weather button.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::addCloudLayer ( QString  type,
QString  xLocation,
QString  yLocation,
QString  altitude,
bool  enabled 
)
virtual

Add a cloud layer to the gui.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::removeAllCloudLayers ( )
virtual

Sets whether or not to list to simulated weather messages.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::removeCloudLayer ( int  index)
virtual

Remove a cloud layer from the gui.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setCloudLayerEnabled ( unsigned int  index,
bool  enabled 
)
virtual

Set whether a cloud layer is enabled or not.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setPrecipitationEnabled ( bool  enabledFlag)
virtual

Set the precipitation enabled checkbox.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setPrecipitationType ( const std::string &  type)
virtual

Set the precipitation type combobox.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setPrecipitationIntensity ( float  intensity)
virtual

Set the precipitation intensity box.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setTurbidity ( float  value)
virtual

Set the air turbidity box.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setVisibleDistance ( float  distance)
virtual

Set the visibile distance box.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setVisibleDistanceDecimals ( int  decimals)
virtual

Set the visible distance decimal places.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setVisibleDistanceUnits ( const DtUnicode units)
virtual

Set the visible distance units.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setAxisLabels ( const DtUnicode x,
const DtUnicode y,
const DtUnicode z 
)
virtual

Set the X and Y axis labels.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::queryUserForNewCloudLayer ( )
virtual

Shows the user the new cloud layer dialog.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::queryUserToEditCloudLayer ( int  index)
virtual

Shows the user the new cloud layer dialog, populated with the settings of the selected layer.

Implements makVrv::DtEnvironmentInterface.

void makVrv::DtEnvironmentWidget::setupGui ( )
protected

Sets up the widget's fields.

Non-virtual (Called from CTOR).

void makVrv::DtEnvironmentWidget::connectToSignals ( )
protected

Connects widget signals to slots.

Non-virtual (Called from CTOR).

std::string makVrv::DtEnvironmentWidget::untranslatePrecipitationType ( QString  type) const
protected

Returns the untranslated type for the given (translated) precipitation type.

QString makVrv::DtEnvironmentWidget::translatePrecipitationType ( const std::string &  type) const
protected

Returns the translated precipitation type.

void makVrv::DtEnvironmentWidget::on_myListenToVrfBox_stateChanged ( int  )
protectedslot
void makVrv::DtEnvironmentWidget::on_myRefreshVrfWeatherButton_clicked ( )
protectedslot
void makVrv::DtEnvironmentWidget::on_myCloudLayersTree_itemSelectionChanged ( )
protectedslot
void makVrv::DtEnvironmentWidget::on_myCloudLayersTree_itemChanged ( QTreeWidgetItem item,
int  column 
)
protectedslot
void makVrv::DtEnvironmentWidget::on_myAddCloudLayerButton_clicked ( )
protectedslot
void makVrv::DtEnvironmentWidget::on_myDeleteCloudLayerButton_clicked ( )
protectedslot
void makVrv::DtEnvironmentWidget::on_myEditCloudLayerButton_clicked ( )
protectedslot
void makVrv::DtEnvironmentWidget::on_myTurbidityBox_currentIndexChanged ( int  )
protectedslot
void makVrv::DtEnvironmentWidget::on_myTurbiditySpinBox_valueChanged ( double  )
protectedslot
void makVrv::DtEnvironmentWidget::on_myVisibilityBox_valueChanged ( double  )
protectedslot
void makVrv::DtEnvironmentWidget::on_myPrecipitationGroup_toggled ( bool  state)
protectedslot
void makVrv::DtEnvironmentWidget::on_myPrecipitationTypeBox_indexChanged ( int  index)
protectedslot
void makVrv::DtEnvironmentWidget::on_myPrecipitationIntensityBox_valueChanged ( double  value)
protectedslot

Member Data Documentation

DtDe& makVrv::DtEnvironmentWidget::myDe
protected
DtEnvironmentLogic* makVrv::DtEnvironmentWidget::myLogic
protected
QCheckBox* makVrv::DtEnvironmentWidget::myListenToVrfBox
protected
QPushButton* makVrv::DtEnvironmentWidget::myRefreshVrfWeatherButton
protected
QLabel* makVrv::DtEnvironmentWidget::myCloudLayerLabel
protected
QTreeWidget* makVrv::DtEnvironmentWidget::myCloudLayersTree
protected
QPushButton* makVrv::DtEnvironmentWidget::myAddCloudLayerButton
protected
QPushButton* makVrv::DtEnvironmentWidget::myDeleteCloudLayerButton
protected
QPushButton* makVrv::DtEnvironmentWidget::myEditCloudLayerButton
protected
QLabel* makVrv::DtEnvironmentWidget::myTurbidityLabel
protected
QComboBox* makVrv::DtEnvironmentWidget::myTurbidityBox
protected
QDoubleSpinBox* makVrv::DtEnvironmentWidget::myTurbiditySpinBox
protected
QLabel* makVrv::DtEnvironmentWidget::myVisibilityLabel
protected
QDoubleSpinBox* makVrv::DtEnvironmentWidget::myVisibilityBox
protected
QCheckBox* makVrv::DtEnvironmentWidget::myPrecipitionCheckbox
protected
QLabel* makVrv::DtEnvironmentWidget::myPrecipitionTypeLabel
protected
QComboBox* makVrv::DtEnvironmentWidget::myPrecipitationTypeBox
protected
QLabel* makVrv::DtEnvironmentWidget::myPrecipitionIntensityLabel
protected
QDoubleSpinBox* makVrv::DtEnvironmentWidget::myPrecipitionIntensityBox
protected
std::vector<std::pair<QString,float> > makVrv::DtEnvironmentWidget::myPredefinedValues
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)