![]() |
VR-Forces 4.0.4 Class Documentation
|
A widget for configuring the environment. More...

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 | |
| DtDe & | myDe |
| DtEnvironmentLogic * | myLogic |
| QCheckBox * | myListenToVrfBox |
| QPushButton * | myRefreshVrfWeatherButton |
| QLabel * | myCloudLayerLabel |
| QTreeWidget * | myCloudLayersTree |
| QPushButton * | myAddCloudLayerButton |
| QPushButton * | myDeleteCloudLayerButton |
| QPushButton * | myEditCloudLayerButton |
| QLabel * | myTurbidityLabel |
| QComboBox * | myTurbidityBox |
| QDoubleSpinBox * | myTurbiditySpinBox |
| QLabel * | myVisibilityLabel |
| QDoubleSpinBox * | myVisibilityBox |
| QCheckBox * | myPrecipitionCheckbox |
| QLabel * | myPrecipitionTypeLabel |
| QComboBox * | myPrecipitationTypeBox |
| QLabel * | myPrecipitionIntensityLabel |
| QDoubleSpinBox * | myPrecipitionIntensityBox |
| std::vector< std::pair < QString, float > > | myPredefinedValues |
A widget for configuring the environment.
anonymous enum [protected] |
| makVrv::DtEnvironmentWidget::DtEnvironmentWidget | ( | DtDe & | de, |
| DtPersistenceControlsInterface & | persistenceControls, | ||
| QWidget * | parent = 0 |
||
| ) |
CTOR.
| virtual makVrv::DtEnvironmentWidget::~DtEnvironmentWidget | ( | ) | [virtual] |
DTOR.
| 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 | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myRefreshVrfWeatherButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myCloudLayersTree_itemSelectionChanged | ( | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myCloudLayersTree_itemChanged | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myAddCloudLayerButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myDeleteCloudLayerButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myEditCloudLayerButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myTurbidityBox_currentIndexChanged | ( | int | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myTurbiditySpinBox_valueChanged | ( | double | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myVisibilityBox_valueChanged | ( | double | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myPrecipitationGroup_toggled | ( | bool | state | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myPrecipitationTypeBox_indexChanged | ( | int | index | ) | [protected, slot] |
| void makVrv::DtEnvironmentWidget::on_myPrecipitationIntensityBox_valueChanged | ( | double | value | ) | [protected, slot] |
DtDe& makVrv::DtEnvironmentWidget::myDe [protected] |
DtEnvironmentLogic* makVrv::DtEnvironmentWidget::myLogic [protected] |
QCheckBox* makVrv::DtEnvironmentWidget::myListenToVrfBox [protected] |
QLabel* makVrv::DtEnvironmentWidget::myCloudLayerLabel [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] |
QDoubleSpinBox* makVrv::DtEnvironmentWidget::myPrecipitionIntensityBox [protected] |
std::vector<std::pair<QString,float> > makVrv::DtEnvironmentWidget::myPredefinedValues [protected] |