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

Widget for HLA 1516 connection. More...

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

List of all members.

Public Member Functions

 DtHla1516ConnectionWidget (DtDe &de, QWidget *parent)
 CTOR.
virtual ~DtHla1516ConnectionWidget ()
 Virtual DTOR.
virtual void setExerciseName (const std::string &exerciseName)
 Set the exercise name.
virtual void setFederateType (const std::string &federateType)
 Set the federate type.
virtual void setFedFileName (const std::string &fedFileName)
 Set the fed file name.
virtual void setRPRFomVersion (double rprFomVersion, int rprFomRevision=1)
 Set the RPR FOM version.
virtual void setFomMapperFileName (const std::string &fomMapperFileName)
 Set the fom mapper file name.
virtual void setFomMapperInitString (const std::string &fomMapperInitString)
 Set the fom mapper init string.
virtual void setDdmEnabled (bool enabled)
 Set the ddm enabled state.
virtual void setUseAdvisories (bool enabled)
 Set the use advisories state.
virtual void setPublishObserver (bool isPublished)
 Set the observer to be published.
virtual void setViewControl (bool isEnabled)
 Set the view control state.
virtual void setConnectionStatus (DtHla1516ConnectionInterface::ConnectionStatus status)
 Set the connection status.
virtual void setAutoConnectEnabled (bool enabled)
 Set whether the auto connect button can be enabled.
virtual void setAppNumber (int appNumber)
 Set the application number in the GUI.
virtual void setSiteId (int siteId)
 Set the site id in the GUI.

Protected Slots

void onFederationNameString_textChanged (QString)
void onFedFileNameString_textChanged (QString)
void onFedFileBrowseButton_released ()
void onFederateTypeString_textChanged (QString)
void onIgnoreAdvisoriesCheckBox_stateChanged (int)
void onImplicitGeographicDdmCheckBox_stateChanged (int)
void onRprFomRadioButton_toggled (bool)
void onRprFomVersionComboBox_activated (QString)
void onCustomFomRadioButton_toggled (bool)
void onFomMapperLibraryName_textChanged (QString)
void onFomMapperInitString_textChanged (QString)
void onPublishObserversCheckBox_stateChanged (int)
void onListenForViewControlsCheckBox_stateChanged (int)
void onAdvancedButton_checkChanged (bool checked)
void onSiteId_changed (int val)
void onAppNumber_changed (int val)
void onConnectButton_clicked ()
void onMakeAutoButton_clicked ()

Protected Member Functions

void setupGui ()
 Initializes the widget's widgets and layout.
QVBoxLayout * createButtonLayout ()
 Creates the button layout for the right side of the widget.
void connectToWidgetSignals ()
 Connects slots to widgets' modification signals.
virtual bool parseFomVerRev (const QString &verRevStr, double &version, int &revision)
 Determines the version and revision given a combined string.

Protected Attributes

Ui::HlaConnectionConfigurationLayout myHlaConfigurationLayout
DtHla1516ConnectionInterface::ConnectionStatus myStatus
DtHla1516ConnectionLogicmyLogic
DtDemyDe
QVBoxLayout * myDataLayout
QPushButtonmyConnectButton
QPushButtonmyMakeAutoButton

Detailed Description

Widget for HLA 1516 connection.


Constructor & Destructor Documentation

CTOR.

Virtual DTOR.


Member Function Documentation

virtual void makVrv::DtHla1516ConnectionWidget::setExerciseName ( const std::string &  exerciseName) [virtual]

Set the exercise name.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFederateType ( const std::string &  federateType) [virtual]

Set the federate type.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFedFileName ( const std::string &  fedFileName) [virtual]

Set the fed file name.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setRPRFomVersion ( double  rprFomVersion,
int  rprFomRevision = 1 
) [virtual]

Set the RPR FOM version.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFomMapperFileName ( const std::string &  fomMapperFileName) [virtual]

Set the fom mapper file name.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFomMapperInitString ( const std::string &  fomMapperInitString) [virtual]

Set the fom mapper init string.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setDdmEnabled ( bool  enabled) [virtual]

Set the ddm enabled state.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setUseAdvisories ( bool  enabled) [virtual]

Set the use advisories state.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setPublishObserver ( bool  isPublished) [virtual]

Set the observer to be published.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setViewControl ( bool  isEnabled) [virtual]

Set the view control state.

Implements makVrv::DtHla1516ConnectionInterface.

Set the connection status.

Implements makVrv::DtHla1516ConnectionInterface.

Set whether the auto connect button can be enabled.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setAppNumber ( int  appNumber) [virtual]

Set the application number in the GUI.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setSiteId ( int  siteId) [virtual]

Set the site id in the GUI.

Implements makVrv::DtHla1516ConnectionInterface.

Initializes the widget's widgets and layout.

Non-virtual because this method is called from the constructor.

Creates the button layout for the right side of the widget.

Non-virtual because this method is called from the constructor.

Connects slots to widgets' modification signals.

Non-virtual because this method is called from the constructor.

virtual bool makVrv::DtHla1516ConnectionWidget::parseFomVerRev ( const QString &  verRevStr,
double &  version,
int &  revision 
) [protected, virtual]

Determines the version and revision given a combined string.

Given a version-revision string ( eg. 2.0017-2 ), stores the version and revision in the argument references for use independently. If the version and/or revision could not be converted to a float / int, the return value is false, and no values are written to the storage reference parameters.

Parameters:
verRevStrthe hyphenated version-revision string
versionreference to storage for the version part
revisionreference to storage for the revision part
Returns:
true if the ver/rev were successfully converted to numeric values
void makVrv::DtHla1516ConnectionWidget::onSiteId_changed ( int  val) [protected, slot]
void makVrv::DtHla1516ConnectionWidget::onAppNumber_changed ( int  val) [protected, slot]

Member Data Documentation

Ui::HlaConnectionConfigurationLayout makVrv::DtHla1516ConnectionWidget::myHlaConfigurationLayout [protected]

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)