![]() |
VR-Forces 4.1.1 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 |
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 |
A widget for configuring the environment.
|
protected |
| makVrv::DtEnvironmentWidget::DtEnvironmentWidget | ( | DtDe & | de, |
| DtPersistenceControlsInterface & | persistenceControls, | ||
| QWidget * | parent = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Sets whether or not to list to simulated weather messages.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Enables/disables the VRF refresh weather button.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Add a cloud layer to the gui.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Sets whether or not to list to simulated weather messages.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Remove a cloud layer from the gui.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set whether a cloud layer is enabled or not.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the precipitation enabled checkbox.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the precipitation type combobox.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the precipitation intensity box.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the air turbidity box.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the visibile distance box.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the visible distance decimal places.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the visible distance units.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Set the X and Y axis labels.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Shows the user the new cloud layer dialog.
Implements makVrv::DtEnvironmentInterface.
|
virtual |
Shows the user the new cloud layer dialog, populated with the settings of the selected layer.
Implements makVrv::DtEnvironmentInterface.
|
protected |
Sets up the widget's fields.
Non-virtual (Called from CTOR).
|
protected |
Connects widget signals to slots.
Non-virtual (Called from CTOR).
|
protected |
Returns the untranslated type for the given (translated) precipitation type.
|
protected |
Returns the translated precipitation type.
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |