MAK RTIspy API Documentation for HLA 1516
List of all members | Public Types | Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtFederationsViewDialog Class Reference
+ Inheritance diagram for DtFederationsViewDialog:
+ Collaboration diagram for DtFederationsViewDialog:

Public Types

enum  DtFederationsViewHeaderEnum {
  DtFederationsViewProcess = 0, DtFederationsViewIP, DtFederationsViewHandle, DtFederationsViewHostName,
  DtFederationsViewQueueStatus, DtFederationsViewName, DtFederationsViewType, DtFederationsViewPID,
  DtFederationsViewCommandLine
}

Public Slots

void processConnectionSelection (int index, bool ignoreVisibility=false)
 Processes the selection of a new connection.
void showHelpDialog ()
 Shows the help dialog.
void processHelpDialogClose ()
 Handles cleanup of the help dialog after it is closed.
void showEvent (QShowEvent *event)
 Override QWidget's show function so we can display the correct forwarder.
virtual void hideEvent (QHideEvent *event)
 Override hideEvent to store the size of the dialog when it is hidden.
void closeEvent (QCloseEvent *event)
 Override QWidget's close function so we can stop observers.
void keyPressEvent (QKeyEvent *event)
 Handles key press events.
void shutdownCurrentRtiexec ()
 Processes a command to shutdown the current rtiexec.
void shutdownCurrentRtiForwarder ()
 Processes a command to shutdown the current RTI Forwarder.
void updateNetworkMap ()
 Update the Network Map widget.
void changeFederationColor (const QString &federationName, const QColor &newColor)
 Changes the color of the specified federation.
void enableFederationColors (bool enable)
 Enable/disable display of federation colors.
void setFederateIdentifierType (unsigned int fedIdType)
 Change the text type used to identify federates.
void showSyncPointDialog ()
 Shows the sync point dialog for the selected federation.
void showFederateStatsDialog ()
 Shows the federate statistics dialog for the selected federate.
void showFomDialog ()
 Shows the Fom dialog for the selected federate.
void enableOrDisableMenuActions (const DtRtiConnectionInfo &conn)
 Enables or disables menu actions based on selected connection.
void updateFederateRemovalTime (float period)
 Processes an update to the defunct federate removal period.
void clearSelection ()
 Processes unselection.
void updateFederateIcon ()
 Updates the icon for the selected federate to the user chosen image.
void showSelectedFederateRidParams ()
 Handles a request to show the RID parameters for the selected federate.
void showSelectedFederateLog ()
 Handles a request to show the log file for the selected federate.

Signals

void viewedConnectionChanged (const DtRtiConnectionInfo &conn)
 Emitted when the user chooses a different connection to be viewed.
void shutdownRtiexec ()
 Emitted when the currently viewed rtiexec should be shutdown.
void shutdownForwarder ()
 Emitted when the currently viewed RTI Forwarder should be shutdown.
void aboutDialogRequested ()
 Emitted when the RTI about dialog is requested.
void showPopup (const MAKRti::DtString &, const MAKRti::DtString &, const MAKRti::DtString &)
 Emitted when a popup dialog from a remote rtiexec should be displayed.
void forceFederateResign (int, const QString &)
 Emitted when user has requested to resign a federate.
void forceFederationDestroy (const QString &)
 Emitted when user has requested to destroy a federation.
void showRtiexecWebSpy ()
 Emitted to request display of the current rtiexec's web spy page.
void showFederateWebSpy (const QString &fedexName, int fedHandle)
 Emitted to request display a web spy page for the given federate.
void showRtiexecRidParams ()
 Emitted when RID parameters for the current rtiexec are requested.
void showForwarderRidParams ()
 Emitted when RID parameters for the current RTI Forwarder are requested.
void showFederateRidParams (const MAKRti::DtString &federation, int federateHandle)
 Emitted when RID parameters for the specified federate are requested.
void showRtiexecLog ()
 Emitted to display a local rtiexec's log.
void showForwarderLog ()
 Emitted to display a local forwarder's log.
void showFederateLog (const MAKRti::DtString &federation, int federateHandle)
 Emitted when log file for the specified federate are requested.
void showLatencyTestDialog (const QString &fedexName, int fedHandle)
 Emitted when a latency test is requested.
void enableNetworkTesting (const QString &fedexName)
 Emitted to enable network testing for the given federation.
void disableNetworkTesting (const QString &fedexName)
 Emitted to disable network testing for the given federation.
void saveToLog ()
 Emitted when a user requests to save the currently displayed federation information to a log file.
void showFederationsViewPreferences ()
 Emitted to show the federations view preferences.
void federateSelected (const MAKRti::DtString &federation, int federateHandle)
 Emitted on the selection of a federate.
void rtiexecSelected ()
 Emitted on the selection of an rtiexec.
void forwarderSelected (const MAKRti::DtString &name)
 Emitted on the selection of a central forwarder.
void peerForwarderSelected (const MAKRti::DtString &name)
 Emitted on the selection of a peer forwarder.
void federationSelected (const MAKRti::DtString &name)
 Emitted on the selection of a federation.
void lightweightSelected ()
 Emitted on the selection of the central lightweight node.
void showSyncPointDialog (const MAKRti::DtString &name)
 Emitted to show a sync point dialog for the given federation.
void showFederateStatsDialog (const MAKRti::DtString &federation, int federateHandle)
 Emitted to show the federate statistics dialog for the given federate.
void defunctFederateRemoved (const MAKRti::DtString &federation, int federateHandle)
 Emitted when a defunct federate was removed from the federate tree.
void showFomDialog (const MAKRti::DtString &federation, int federateHandle)
 Emitted to show the fom dialog for the given federate.

Public Member Functions

 DtFederationsViewDialog (const MAKRti::DtFilename &configDir, QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor.
virtual ~DtFederationsViewDialog ()
 Destructor.
virtual QSize sizeHint () const
 Returns the recommended size for the widget.
virtual void tick ()
 Performs periodic functions.
virtual void setConnectionIsLocal (const MAKRti::DtString &name, bool isLocal)
 Changes the state of whether the given forwarder connection is being used by a local component.
virtual void checkAndAddMainForwarder (const MAKRti::DtString &hostname)
 Makes sure the currently displayed forwarder is up to date.
virtual void checkAndAddLightweight (const MAKRti::DtString &hostname)
 Makes sure the currently displayed lightweight connection is up to date.
virtual void addNetworkMapForwarderNode (const MAKRti::DtString &forwarderName)
 Adds a forwarder node to the network map.
virtual void removeNetworkMapForwarderNode (const MAKRti::DtString &forwarderName)
 Removes a forwarder node from the network map.
virtual void addNetworkMapRtiexecNode ()
 Adds an rtiexec node to the network map.
virtual void removeNetworkMapRtiexecNode ()
 Removes an rtiexec node from the network map.
virtual void addNetworkMapFederateNode (int fedHandle, const MAKRti::DtString &federationName, const MAKRti::DtString &processName, const MAKRti::DtString &fedType, const MAKRti::DtString &fedName, bool notJoined=false, bool isDropped=false)
 Adds a federate node to the network map.
virtual void removeNetworkMapFederateNode (int fedHandle, const MAKRti::DtString &federationName)
 Removes a federate node from the network map.
void updateNetworkMapFederateNode (int fedHandle, const MAKRti::DtString &federationName, int queueStatus, bool disconnected, bool reconnecting, bool inErrorState=false)
 Updates a federate node in the network map.
void refreshNetworkMap ()
 Refreshes the network map. Should be called after any series of updates.
virtual void clearData ()
 clears old data.
virtual void setViewedConnectionDescription (const DtRtiConnectionInfo &conn)
 Set forwarder connection info.
virtual void clearNetworkMap ()
 Clears all data from the connection tree.
virtual void enableCommands (bool enable)
 Enables or disables the rtiexec & forwarder shutdown option.
virtual void enableRtiExecShutdownCommand (bool enable)
 Enables or disables the rtiexec shutdown option.
virtual void enableRtiForwarderShutdownCommand (bool enable)
 Enables or disables the forwarder shutdown option.
virtual void displayLoadingIndication ()
 Displays a message that the current federation information is loading.
virtual void removeLoadingIndication ()
 Removes the loading indication messages.
void saveGuiConfiguration ()
 Saves the current GUI configuration to file.
Ui::FederationsViewDialog getUiImpl () const
virtual int addConnection (const MAKRti::DtString &name, const DtRtiConnectionInfo &conn, bool isLocal)
 Adds a connection to the list of viewable connections.
virtual void removeConnection (const MAKRti::DtString &name)
 Removes an rtiexec from the list of viewable rtiexecs.
virtual void updateFederations (const DtFederationStateByNameMap *federations, const DtAssistantForwarderInfo *forwarderInfo)
 Updates the displayed federation information for the currently displayed connection.
virtual void updateFederation (const DtAssistantFederationInfo *federation, const DtAssistantForwarderInfo *forwarderInfo)
 Updates a federation of the currently displayed connection.
virtual void removeFederation (const MAKRti::DtString &federationName)
 Removes a federation from the currently displayed connection.
virtual void removeAllFederations ()
 Removes all federations from the display.
virtual void updateFederate (const DtAssistantFederateInfo &federate, const DtAssistantForwarderInfo *forwarderInfo, const MAKRti::DtString &federationName)
 Updates a federate in the given federation of the currently displayed connection.
virtual void removeFederate (int federateHandle, const MAKRti::DtString &federationName)
 Removes a federate from the given federation of the currently displayed connection.
void setupFederateTree ()
 Sets up the federate tree, including the initial column display and the View/Column menu actions.
virtual void setFederateIdentifierType (DtFederateIdentifierType fedIdType)
 Change the text type used to identify federates.
void selectFederate (const MAKRti::DtString &federation, int federateHandle, const DtAssistantFederateInfo *fedInfo, const DtAssistantNetworkCompInfo *netCompInfo)
 Processes selection of a federate.
void selectDeadFederate (const MAKRti::DtString &federation, const MAKRti::DtString &federateName, const DtAssistantNetworkCompInfo &newInfo)
 Processes selection of a Dead (Disconnected or Dropped) federate.
void selectRtiexec (const DtAssistantNetworkCompInfo *netCompInfo)
 Processes selection of an rtiexec.
void selectForwarder (const MAKRti::DtString &name)
 Processes selection of a central forwarder.
void selectPeerForwarder (const DtAssistantNetworkCompInfo *netCompInfo)
 Processes selection of a peer forwarder.
void selectFederation (const DtAssistantFederationInfo *)
 Processes selection of a federation.
void selectLightweight ()
 Processes selection of the lightweight connection node.

Protected Types

enum  DtSelectedNodeType {
  DtForwarderNode, DtRtiexecNode, DtFederateNode, DtFederationNode,
  DtLightweightNode, DtNoSelectedNode
}

Protected Member Functions

void showFederateInfo (const MAKRti::DtString &federation, int federateHandle, const DtAssistantFederateInfo *fedInfo, const DtAssistantNetworkCompInfo *netCompInfo)
 Displays info on the specified federate in the selected node panel.
void showDeadFederateInfo (const MAKRti::DtString &federation, const MAKRti::DtString &federateName, bool isDropped, const DtAssistantNetworkCompInfo &newInfo)
 Displays info on the specified dead federate in the selcted node panel.
void showRtiexecInfo (const DtAssistantNetworkCompInfo *info)
 Displays info on the specified rtiexec in the selected node panel.
void showForwarderInfo (const DtRtiConnectionInfo &info)
 Displays info on the specified forwarder in the selected node panel.
void showPeerForwarderInfo (const DtAssistantNetworkCompInfo *netCompInfo)
 Displays info on the specified peer forwarder.
void showFederationInfo (const DtAssistantFederationInfo *info, bool update)
 Displays info on the specified rtiexec in the selected node panel.
void showLightweightInfo (const DtRtiConnectionInfo &info)
 Displays info on the specified lightweight connection in the selected node panel.
MAKRti::DtString selectedFederateId () const
 Returns the federate identifier to use for the selected federate.
void loadGuiConfiguration ()
 Loads the GUI configuration from a file.
Setup methods
void setupUI ()
 Sets up the Federations View UI.
void setupMenus ()
 Populates the menus with the sub-menus and actions.
void connectSignals ()
 Connects Qt signals and slots.

Protected Attributes

Ui::FederationsViewDialog myUiImpl
bool myRtiExecInCurrentViewedConn
QProcess * myHelpAssistant
 Help application.
QComboBox * myConnectionComboBox
 Combo box for selecting an RTI connection.
QLabelmyRtiForwarderLabel
 Current Connection layout widgets.
QGridLayout * myPropertiesAreaLayout
QWidgetmyPropertiesAreaLayoutWidget
QToolBar * myToolBar
QWidgetmyCentralWidget
QTreeWidgetItemmyExecItem
QTreeWidgetItemmyCurrentViewedItem
QTreeWidgetItemmyLoadingIndicationItem
 Item that indicates information is being loaded.
DtNetworkMapWidgetmyNetworkMapWidget
 The network map widget.
QTimer * myNetworkMapTimer
QTime * myNetworkMapTimeDelta
DtRtiSelectedNodeWidgetmySelectedItemWidget
 The selected item widget.
QDockWidget * myNetworkMapDock
 Docking Widgets.
QDockWidget * mySelectedItemDock
DtRtiConnectionInfo myCurrentConnectionInfo
 Details of the selected connection.
DtFederateIconChooserDlgmyFedIconChooser
 The dialog to choose a federate icon.
bool myDisplayingLw
 Indicates whether we are currently displaying a lightweight connection.
MAKRti::DtFilename myConfigDir
 The RTI Assistant configuration directory.
bool myFirstTimeShown
 Indicates that the dialog has not yet been shown.
std::map< QString,
DtRtiConnectionInfo
myConnsByName
 Name to connection info map.
QString myLastViewedConnection
 Name of connection shown last time dialog was displayed.
DtFederateTreemyFederateTree
 Federate tree.
QDockWidget * myFederationsViewDock
 Dock widget for the federations view tree.
DtFederateIdentifierType myFederateIdentifier
 What identifying text should be displayed for federates.
DtSelectedNodeType mySelectedNodeType
 The type of node currently selected.
MAKRti::DtString mySelectedFederation
 Name of the selected federation.
int mySelectedFederate
 Handle of the selected federate.
MAKRti::DtString mySelectedFederateType
 Federate type of selected federate.
MAKRti::DtString mySelectedFederateName
 Federate name of selected federate.
MAKRti::DtFilename mySelectedFederateProcess
 Process name of selected federate.
QSize myLastVisibleSize
 The size of the dialog the last time it was visible.
Menus and actions
QMenu * myFileMenu
 File menu.
QAction * myCloseAction
 File menu.
QAction * mySaveAction
 File menu.
QMenu * myViewMenu
 View menu.
QAction * myNetworkMapAction
 File menu.
QAction * myNetworkTreeAction
 File menu.
QAction * mySelectedNodeAction
 File menu.
QMenu * myRtiexecMenu
 rtiexec menu
QAction * myRtiexecRidAction
 File menu.
QAction * myRtiexecLogAction
 File menu.
QAction * myShutdownRtiexecAction
 File menu.
QMenu * myForwarderMenu
 Forwarder menu.
QAction * myForwarderRidAction
 File menu.
QAction * myForwarderLogAction
 File menu.
QAction * myShutdownForwarderAction
 File menu.
QMenu * myFederateMenu
 Federate menu.
QAction * myStatisticsAction
 File menu.
QAction * myRunLatencyTestAction
 File menu.
QAction * myFederateRidAction
 File menu.
QAction * myFederateFomAction
 File menu.
QAction * myFederateLogAction
 File menu.
QAction * myChangeFederateIconAction
 File menu.
QAction * myResignFederateAction
 File menu.
QMenu * myFederationMenu
 Federation menu.
QAction * myFederationFomAction
 File menu.
QAction * myDisplaySyncPointsAction
 File menu.
QAction * myDestroyFederationAction
 File menu.
QMenu * myToolsMenu
 Tools menu.
QAction * myOptionsAction
 File menu.
QMenu * myHelpMenu
 Help menu.
QAction * myHelpAction
 File menu.
QAction * myAboutAction
 File menu.
QMenu * myCompColumnMenu
 Component tree column view menu.

Static Protected Attributes

static QString theNoConnectionsAvailableText = tr("No known connections available")
 Text displayed in the combo box if there are no known rtiForwarders.
static const QString theLoadingText
 Text displayed when loading information.
static const MAKRti::DtFilename theConfigFilename = "federationsView.conf"
 The name of the file where the GUI configuration is stored.
static const QString theRtiexecLogEnabledText = tr("rtiexec Log File")
 Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.
static const QString theRtiexecLogDisabledText = tr("rtiexec Log File - Only available for local rtiexecs")
 Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.
static const QString theForwarderLogEnabledText = tr("Forwarder Log File")
 Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.
static const QString theForwarderLogDisabledText = tr("Forwarder Log File - Only available for local RTI Forwarders")
 Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.

Member Enumeration Documentation

Enumerator:
DtFederationsViewProcess 
DtFederationsViewIP 
DtFederationsViewHandle 
DtFederationsViewHostName 
DtFederationsViewQueueStatus 
DtFederationsViewName 
DtFederationsViewType 
DtFederationsViewPID 
DtFederationsViewCommandLine 
Enumerator:
DtForwarderNode 
DtRtiexecNode 
DtFederateNode 
DtFederationNode 
DtLightweightNode 
DtNoSelectedNode 

Constructor & Destructor Documentation

DtFederationsViewDialog::DtFederationsViewDialog ( const MAKRti::DtFilename &  configDir,
QWidget parent = 0,
Qt::WindowFlags  flags = 0 
)

Constructor.

References connectSignals(), myUiImpl, setupMenus(), and setupUI().

DtFederationsViewDialog::~DtFederationsViewDialog ( )
virtual

Destructor.

References myConnsByName, and myHelpAssistant.

Member Function Documentation

void DtFederationsViewDialog::aboutDialogRequested ( )
signal

Emitted when the RTI about dialog is requested.

Referenced by connectSignals().

int DtFederationsViewDialog::addConnection ( const MAKRti::DtString &  name,
const DtRtiConnectionInfo conn,
bool  isLocal 
)
virtual

Adds a connection to the list of viewable connections.

Returns the index of the new connection (index is only useful internally to this class). If isLocal is true this connection will be identified as a potential default connection to be shown.

References myConnectionComboBox, myConnsByName, processConnectionSelection(), and theNoConnectionsAvailableText.

Referenced by DtAssistantFederationsViewMgr::processConnectionsUpdate(), and DtAssistantFederationsViewMgr::processForwarderAdded().

void DtFederationsViewDialog::addNetworkMapFederateNode ( int  fedHandle,
const MAKRti::DtString &  federationName,
const MAKRti::DtString &  processName,
const MAKRti::DtString &  fedType,
const MAKRti::DtString &  fedName,
bool  notJoined = false,
bool  isDropped = false 
)
virtual
void DtFederationsViewDialog::addNetworkMapForwarderNode ( const MAKRti::DtString &  forwarderName)
virtual

Adds a forwarder node to the network map.

References DtNetworkMapWidget::addPeerForwarderNode(), and myNetworkMapWidget.

Referenced by DtAssistantFederationsViewMgr::updatePeerForwarders().

void DtFederationsViewDialog::addNetworkMapRtiexecNode ( )
virtual
void DtFederationsViewDialog::changeFederationColor ( const QString &  federationName,
const QColor &  newColor 
)
slot
void DtFederationsViewDialog::checkAndAddLightweight ( const MAKRti::DtString &  hostname)
virtual

Makes sure the currently displayed lightweight connection is up to date.

References DtNetworkMapWidget::checkAndAddLightweight(), and myNetworkMapWidget.

Referenced by DtAssistantFederationsViewMgr::changeViewedConnection().

void DtFederationsViewDialog::checkAndAddMainForwarder ( const MAKRti::DtString &  hostname)
virtual

Makes sure the currently displayed forwarder is up to date.

References DtNetworkMapWidget::checkAndAddMainForwarder(), and myNetworkMapWidget.

Referenced by DtAssistantFederationsViewMgr::processForwarderUpdated().

void DtFederationsViewDialog::clearData ( )
virtual
void DtFederationsViewDialog::clearNetworkMap ( )
virtual

Clears all data from the connection tree.

References DtNetworkMapWidget::clearList(), and myNetworkMapWidget.

Referenced by clearData().

void DtFederationsViewDialog::clearSelection ( )
slot
void DtFederationsViewDialog::closeEvent ( QCloseEvent *  event)
slot

Override QWidget's close function so we can stop observers.

References processConnectionSelection().

void DtFederationsViewDialog::connectSignals ( )
protected
void DtFederationsViewDialog::defunctFederateRemoved ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted when a defunct federate was removed from the federate tree.

Referenced by connectSignals().

void DtFederationsViewDialog::disableNetworkTesting ( const QString &  fedexName)
signal

Emitted to disable network testing for the given federation.

Referenced by connectSignals().

void DtFederationsViewDialog::displayLoadingIndication ( )
virtual

Displays a message that the current federation information is loading.

References DtFederateTree::displayLoadingIndication(), and myFederateTree.

Referenced by DtAssistantFederationsViewMgr::changeViewedConnection().

void DtFederationsViewDialog::enableCommands ( bool  enable)
virtual

Enables or disables the rtiexec & forwarder shutdown option.

Referenced by DtAssistantFederationsViewMgr::changeViewedConnection(), and DtAssistantFederationsViewMgr::tick().

void DtFederationsViewDialog::enableFederationColors ( bool  enable)
slot

Enable/disable display of federation colors.

References DtNetworkMapWidget::enableFederationColors(), and myNetworkMapWidget.

void DtFederationsViewDialog::enableNetworkTesting ( const QString &  fedexName)
signal

Emitted to enable network testing for the given federation.

Referenced by connectSignals().

void DtFederationsViewDialog::enableOrDisableMenuActions ( const DtRtiConnectionInfo conn)
slot
void DtFederationsViewDialog::enableRtiExecShutdownCommand ( bool  enable)
virtual

Enables or disables the rtiexec shutdown option.

Referenced by DtAssistantFederationsViewMgr::tick().

void DtFederationsViewDialog::enableRtiForwarderShutdownCommand ( bool  enable)
virtual

Enables or disables the forwarder shutdown option.

Referenced by DtAssistantFederationsViewMgr::tick().

void DtFederationsViewDialog::federateSelected ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted on the selection of a federate.

Referenced by connectSignals(), removeFederate(), and updateFederate().

void DtFederationsViewDialog::federationSelected ( const MAKRti::DtString &  name)
signal

Emitted on the selection of a federation.

Referenced by connectSignals(), removeFederate(), and updateFederate().

void DtFederationsViewDialog::forceFederateResign ( int  ,
const QString &   
)
signal

Emitted when user has requested to resign a federate.

Referenced by connectSignals().

void DtFederationsViewDialog::forceFederationDestroy ( const QString &  )
signal

Emitted when user has requested to destroy a federation.

Referenced by connectSignals().

void DtFederationsViewDialog::forwarderSelected ( const MAKRti::DtString &  name)
signal

Emitted on the selection of a central forwarder.

Referenced by connectSignals().

Ui::FederationsViewDialog DtFederationsViewDialog::getUiImpl ( ) const

References myUiImpl.

void DtFederationsViewDialog::hideEvent ( QHideEvent *  event)
virtualslot

Override hideEvent to store the size of the dialog when it is hidden.

References myLastVisibleSize.

void DtFederationsViewDialog::keyPressEvent ( QKeyEvent *  event)
slot

Handles key press events.

References showHelpDialog().

void DtFederationsViewDialog::lightweightSelected ( )
signal

Emitted on the selection of the central lightweight node.

Referenced by connectSignals().

void DtFederationsViewDialog::loadGuiConfiguration ( )
protected

Loads the GUI configuration from a file.

References DtFederateTree::loadGuiConfiguration(), myConfigDir, myFederateTree, and theConfigFilename.

Referenced by showEvent().

void DtFederationsViewDialog::peerForwarderSelected ( const MAKRti::DtString &  name)
signal

Emitted on the selection of a peer forwarder.

Referenced by connectSignals().

void DtFederationsViewDialog::processConnectionSelection ( int  index,
bool  ignoreVisibility = false 
)
slot

Processes the selection of a new connection.

If ignoreVisibility is set, the selection change will be processed even if the dialog is not visible.

References DtRtiConnectionInfo::invalidConn(), myConnectionComboBox, myConnsByName, myLastViewedConnection, and viewedConnectionChanged().

Referenced by addConnection(), closeEvent(), connectSignals(), and showEvent().

void DtFederationsViewDialog::processHelpDialogClose ( )
slot

Handles cleanup of the help dialog after it is closed.

References myHelpAssistant.

Referenced by showHelpDialog().

void DtFederationsViewDialog::refreshNetworkMap ( )
void DtFederationsViewDialog::removeAllFederations ( )
virtual

Removes all federations from the display.

References myFederateTree, and DtFederateTree::removeAllFederations().

Referenced by clearData().

void DtFederationsViewDialog::removeConnection ( const MAKRti::DtString &  name)
virtual
void DtFederationsViewDialog::removeFederate ( int  federateHandle,
const MAKRti::DtString &  federationName 
)
virtual
void DtFederationsViewDialog::removeFederation ( const MAKRti::DtString &  federationName)
virtual
void DtFederationsViewDialog::removeLoadingIndication ( )
virtual

Removes the loading indication messages.

References myFederateTree, and DtFederateTree::removeLoadingIndication().

Referenced by DtAssistantFederationsViewMgr::removeLoadingIndication().

void DtFederationsViewDialog::removeNetworkMapFederateNode ( int  fedHandle,
const MAKRti::DtString &  federationName 
)
virtual
void DtFederationsViewDialog::removeNetworkMapForwarderNode ( const MAKRti::DtString &  forwarderName)
virtual

Removes a forwarder node from the network map.

References myNetworkMapWidget, and DtNetworkMapWidget::removeForwarderNode().

Referenced by DtAssistantFederationsViewMgr::updatePeerForwarders().

void DtFederationsViewDialog::removeNetworkMapRtiexecNode ( )
virtual
void DtFederationsViewDialog::rtiexecSelected ( )
signal

Emitted on the selection of an rtiexec.

Referenced by connectSignals().

void DtFederationsViewDialog::saveGuiConfiguration ( )
void DtFederationsViewDialog::saveToLog ( )
signal

Emitted when a user requests to save the currently displayed federation information to a log file.

Referenced by connectSignals().

void DtFederationsViewDialog::selectDeadFederate ( const MAKRti::DtString &  federation,
const MAKRti::DtString &  federateName,
const DtAssistantNetworkCompInfo newInfo 
)
MAKRti::DtString DtFederationsViewDialog::selectedFederateId ( ) const
protected
void DtFederationsViewDialog::selectFederate ( const MAKRti::DtString &  federation,
int  federateHandle,
const DtAssistantFederateInfo fedInfo,
const DtAssistantNetworkCompInfo netCompInfo 
)
void DtFederationsViewDialog::selectFederation ( const DtAssistantFederationInfo info)
void DtFederationsViewDialog::selectForwarder ( const MAKRti::DtString &  name)
void DtFederationsViewDialog::selectLightweight ( )
void DtFederationsViewDialog::selectPeerForwarder ( const DtAssistantNetworkCompInfo netCompInfo)
void DtFederationsViewDialog::selectRtiexec ( const DtAssistantNetworkCompInfo netCompInfo)
void DtFederationsViewDialog::setConnectionIsLocal ( const MAKRti::DtString &  name,
bool  isLocal 
)
virtual

Changes the state of whether the given forwarder connection is being used by a local component.

References myConnectionComboBox.

Referenced by DtAssistantFederationsViewMgr::processForwarderConnUpdated().

void DtFederationsViewDialog::setFederateIdentifierType ( DtFederateIdentifierType  fedIdType)
virtual
void DtFederationsViewDialog::setFederateIdentifierType ( unsigned int  fedIdType)
slot

Change the text type used to identify federates.

References setFederateIdentifierType().

void DtFederationsViewDialog::setupFederateTree ( )

Sets up the federate tree, including the initial column display and the View/Column menu actions.

References myFederateTree.

Referenced by setupUI().

void DtFederationsViewDialog::setupMenus ( )
protected
void DtFederationsViewDialog::setupUI ( )
protected
void DtFederationsViewDialog::setViewedConnectionDescription ( const DtRtiConnectionInfo conn)
virtual
void DtFederationsViewDialog::showDeadFederateInfo ( const MAKRti::DtString &  federation,
const MAKRti::DtString &  federateName,
bool  isDropped,
const DtAssistantNetworkCompInfo newInfo 
)
protected
void DtFederationsViewDialog::showEvent ( QShowEvent *  event)
slot

Override QWidget's show function so we can display the correct forwarder.

References clearData(), loadGuiConfiguration(), myConnectionComboBox, myFirstTimeShown, myLastViewedConnection, and processConnectionSelection().

void DtFederationsViewDialog::showFederateInfo ( const MAKRti::DtString &  federation,
int  federateHandle,
const DtAssistantFederateInfo fedInfo,
const DtAssistantNetworkCompInfo netCompInfo 
)
protected
void DtFederationsViewDialog::showFederateLog ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted when log file for the specified federate are requested.

Referenced by showSelectedFederateLog().

void DtFederationsViewDialog::showFederateRidParams ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted when RID parameters for the specified federate are requested.

Referenced by showSelectedFederateRidParams().

void DtFederationsViewDialog::showFederateStatsDialog ( )
slot

Shows the federate statistics dialog for the selected federate.

References mySelectedFederate, and mySelectedFederation.

Referenced by connectSignals().

void DtFederationsViewDialog::showFederateStatsDialog ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted to show the federate statistics dialog for the given federate.

void DtFederationsViewDialog::showFederateWebSpy ( const QString &  fedexName,
int  fedHandle 
)
signal

Emitted to request display a web spy page for the given federate.

void DtFederationsViewDialog::showFederationInfo ( const DtAssistantFederationInfo info,
bool  update 
)
protected
void DtFederationsViewDialog::showFederationsViewPreferences ( )
signal

Emitted to show the federations view preferences.

Referenced by connectSignals().

void DtFederationsViewDialog::showFomDialog ( )
slot

Shows the Fom dialog for the selected federate.

References mySelectedFederate, and mySelectedFederation.

Referenced by connectSignals().

void DtFederationsViewDialog::showFomDialog ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted to show the fom dialog for the given federate.

void DtFederationsViewDialog::showForwarderInfo ( const DtRtiConnectionInfo info)
protected
void DtFederationsViewDialog::showForwarderLog ( )
signal

Emitted to display a local forwarder's log.

Referenced by connectSignals().

void DtFederationsViewDialog::showForwarderRidParams ( )
signal

Emitted when RID parameters for the current RTI Forwarder are requested.

Referenced by connectSignals().

void DtFederationsViewDialog::showHelpDialog ( )
slot

Shows the help dialog.

References connect(), DtRtiLibPath(), myHelpAssistant, and processHelpDialogClose().

Referenced by connectSignals(), and keyPressEvent().

void DtFederationsViewDialog::showLatencyTestDialog ( const QString &  fedexName,
int  fedHandle 
)
signal

Emitted when a latency test is requested.

Referenced by connectSignals().

void DtFederationsViewDialog::showLightweightInfo ( const DtRtiConnectionInfo info)
protected
void DtFederationsViewDialog::showPeerForwarderInfo ( const DtAssistantNetworkCompInfo netCompInfo)
protected
void DtFederationsViewDialog::showPopup ( const MAKRti::DtString &  ,
const MAKRti::DtString &  ,
const MAKRti::DtString &   
)
signal

Emitted when a popup dialog from a remote rtiexec should be displayed.

void DtFederationsViewDialog::showRtiexecInfo ( const DtAssistantNetworkCompInfo info)
protected
void DtFederationsViewDialog::showRtiexecLog ( )
signal

Emitted to display a local rtiexec's log.

Referenced by connectSignals().

void DtFederationsViewDialog::showRtiexecRidParams ( )
signal

Emitted when RID parameters for the current rtiexec are requested.

Referenced by connectSignals().

void DtFederationsViewDialog::showRtiexecWebSpy ( )
signal

Emitted to request display of the current rtiexec's web spy page.

void DtFederationsViewDialog::showSelectedFederateLog ( )
slot

Handles a request to show the log file for the selected federate.

References DtFederateNode, mySelectedFederate, mySelectedFederation, mySelectedNodeType, and showFederateLog().

Referenced by connectSignals().

void DtFederationsViewDialog::showSelectedFederateRidParams ( )
slot

Handles a request to show the RID parameters for the selected federate.

References DtFederateNode, mySelectedFederate, mySelectedFederation, mySelectedNodeType, and showFederateRidParams().

Referenced by connectSignals().

void DtFederationsViewDialog::showSyncPointDialog ( )
slot

Shows the sync point dialog for the selected federation.

References mySelectedFederation.

Referenced by connectSignals().

void DtFederationsViewDialog::showSyncPointDialog ( const MAKRti::DtString &  name)
signal

Emitted to show a sync point dialog for the given federation.

void DtFederationsViewDialog::shutdownCurrentRtiexec ( )
slot

Processes a command to shutdown the current rtiexec.

References shutdownRtiexec().

Referenced by connectSignals().

void DtFederationsViewDialog::shutdownCurrentRtiForwarder ( )
slot

Processes a command to shutdown the current RTI Forwarder.

References shutdownForwarder().

Referenced by connectSignals().

void DtFederationsViewDialog::shutdownForwarder ( )
signal

Emitted when the currently viewed RTI Forwarder should be shutdown.

Referenced by shutdownCurrentRtiForwarder().

void DtFederationsViewDialog::shutdownRtiexec ( )
signal

Emitted when the currently viewed rtiexec should be shutdown.

Referenced by shutdownCurrentRtiexec().

QSize DtFederationsViewDialog::sizeHint ( ) const
virtual

Returns the recommended size for the widget.

References myLastVisibleSize.

void DtFederationsViewDialog::tick ( )
virtual
void DtFederationsViewDialog::updateFederate ( const DtAssistantFederateInfo federate,
const DtAssistantForwarderInfo forwarderInfo,
const MAKRti::DtString &  federationName 
)
virtual

Updates a federate in the given federation of the currently displayed connection.

Adds the federate if it does not already exist.

References DtFederateNode, DtFederationNode, DtAssistantFederateInfo::federateHandle(), federateSelected(), federationSelected(), myFederateTree, mySelectedFederate, mySelectedFederation, mySelectedNodeType, and DtFederateTree::updateFederate().

Referenced by DtAssistantFederationsViewMgr::processFederateUpdated().

void DtFederationsViewDialog::updateFederateIcon ( )
slot
void DtFederationsViewDialog::updateFederateRemovalTime ( float  period)
slot

Processes an update to the defunct federate removal period.

References myFederateTree, and DtFederateTree::setFederateRemovalTime().

void DtFederationsViewDialog::updateFederation ( const DtAssistantFederationInfo federation,
const DtAssistantForwarderInfo forwarderInfo 
)
virtual
void DtFederationsViewDialog::updateFederations ( const DtFederationStateByNameMap federations,
const DtAssistantForwarderInfo forwarderInfo 
)
virtual

Updates the displayed federation information for the currently displayed connection.

References updateFederation().

void DtFederationsViewDialog::updateNetworkMap ( )
slot

Update the Network Map widget.

References myNetworkMapWidget.

Referenced by setupUI().

void DtFederationsViewDialog::updateNetworkMapFederateNode ( int  fedHandle,
const MAKRti::DtString &  federationName,
int  queueStatus,
bool  disconnected,
bool  reconnecting,
bool  inErrorState = false 
)

Updates a federate node in the network map.

References myNetworkMapWidget, and DtNetworkMapWidget::updateFederateInfo().

Referenced by DtAssistantFederationsViewMgr::updateFederateCompInfo().

void DtFederationsViewDialog::viewedConnectionChanged ( const DtRtiConnectionInfo conn)
signal

Emitted when the user chooses a different connection to be viewed.

Referenced by connectSignals(), and processConnectionSelection().

Member Data Documentation

QAction* DtFederationsViewDialog::myAboutAction
protected

File menu.

Referenced by connectSignals(), and setupMenus().

QWidget* DtFederationsViewDialog::myCentralWidget
protected
QAction* DtFederationsViewDialog::myChangeFederateIconAction
protected

File menu.

Referenced by connectSignals(), and setupMenus().

QAction* DtFederationsViewDialog::myCloseAction
protected

File menu.

Referenced by connectSignals(), and setupMenus().

QMenu* DtFederationsViewDialog::myCompColumnMenu
protected

Component tree column view menu.

Referenced by setupMenus().

MAKRti::DtFilename DtFederationsViewDialog::myConfigDir
protected

The RTI Assistant configuration directory.

Referenced by loadGuiConfiguration(), and saveGuiConfiguration().

QComboBox* DtFederationsViewDialog::myConnectionComboBox
protected
std::map< QString, DtRtiConnectionInfo > DtFederationsViewDialog::myConnsByName
protected
DtRtiConnectionInfo DtFederationsViewDialog::myCurrentConnectionInfo
protected
QTreeWidgetItem* DtFederationsViewDialog::myCurrentViewedItem
protected
QAction* DtFederationsViewDialog::myDestroyFederationAction
protected

File menu.

Referenced by setupMenus(), and showFederationInfo().

bool DtFederationsViewDialog::myDisplayingLw
protected

Indicates whether we are currently displaying a lightweight connection.

Referenced by setViewedConnectionDescription(), and showFederateInfo().

QAction* DtFederationsViewDialog::myDisplaySyncPointsAction
protected

File menu.

Referenced by connectSignals(), setupMenus(), and showFederationInfo().

QTreeWidgetItem* DtFederationsViewDialog::myExecItem
protected
QAction* DtFederationsViewDialog::myFederateFomAction
protected

File menu.

Referenced by connectSignals(), setupMenus(), and showFederateInfo().

DtFederateIdentifierType DtFederationsViewDialog::myFederateIdentifier
protected

What identifying text should be displayed for federates.

Referenced by selectedFederateId(), and setFederateIdentifierType().

QAction* DtFederationsViewDialog::myFederateLogAction
protected

File menu.

Referenced by connectSignals(), setupMenus(), and showFederateInfo().

QMenu* DtFederationsViewDialog::myFederateMenu
protected

Federate menu.

Referenced by selectDeadFederate(), selectFederate(), and setupMenus().

QAction* DtFederationsViewDialog::myFederateRidAction
protected

File menu.

Referenced by connectSignals(), setupMenus(), and showFederateInfo().

DtFederateTree* DtFederationsViewDialog::myFederateTree
protected
QAction* DtFederationsViewDialog::myFederationFomAction
protected

File menu.

Referenced by setupMenus().

QMenu* DtFederationsViewDialog::myFederationMenu
protected

Federation menu.

Referenced by selectFederation(), and setupMenus().

QDockWidget* DtFederationsViewDialog::myFederationsViewDock
protected

Dock widget for the federations view tree.

Referenced by setupMenus(), and setupUI().

DtFederateIconChooserDlg* DtFederationsViewDialog::myFedIconChooser
protected
QMenu* DtFederationsViewDialog::myFileMenu
protected

File menu.

Referenced by setupMenus().

bool DtFederationsViewDialog::myFirstTimeShown
protected

Indicates that the dialog has not yet been shown.

Referenced by saveGuiConfiguration(), and showEvent().

QAction* DtFederationsViewDialog::myForwarderLogAction
protected

File menu.

Referenced by connectSignals(), setupMenus(), and showForwarderInfo().

QMenu* DtFederationsViewDialog::myForwarderMenu
protected

Forwarder menu.

Referenced by selectForwarder(), and setupMenus().

QAction* DtFederationsViewDialog::myForwarderRidAction
protected
QAction* DtFederationsViewDialog::myHelpAction
protected

File menu.

Referenced by connectSignals(), and setupMenus().

QProcess* DtFederationsViewDialog::myHelpAssistant
protected
QMenu* DtFederationsViewDialog::myHelpMenu
protected

Help menu.

Referenced by setupMenus().

QString DtFederationsViewDialog::myLastViewedConnection
protected

Name of connection shown last time dialog was displayed.

Referenced by processConnectionSelection(), removeConnection(), and showEvent().

QSize DtFederationsViewDialog::myLastVisibleSize
protected

The size of the dialog the last time it was visible.

Referenced by hideEvent(), and sizeHint().

QTreeWidgetItem* DtFederationsViewDialog::myLoadingIndicationItem
protected

Item that indicates information is being loaded.

QAction* DtFederationsViewDialog::myNetworkMapAction
protected

File menu.

Referenced by setupMenus().

QDockWidget* DtFederationsViewDialog::myNetworkMapDock
protected

Docking Widgets.

Referenced by setupMenus(), and setupUI().

QTime* DtFederationsViewDialog::myNetworkMapTimeDelta
protected

Referenced by setupUI(), and tick().

QTimer* DtFederationsViewDialog::myNetworkMapTimer
protected

Referenced by setupUI().

DtNetworkMapWidget* DtFederationsViewDialog::myNetworkMapWidget
protected
QAction* DtFederationsViewDialog::myNetworkTreeAction
protected

File menu.

Referenced by setupMenus().

QAction* DtFederationsViewDialog::myOptionsAction
protected

File menu.

Referenced by connectSignals(), and setupMenus().

QGridLayout* DtFederationsViewDialog::myPropertiesAreaLayout
protected
QWidget* DtFederationsViewDialog::myPropertiesAreaLayoutWidget
protected
QAction* DtFederationsViewDialog::myResignFederateAction
protected

File menu.

Referenced by setupMenus(), and showFederateInfo().

bool DtFederationsViewDialog::myRtiExecInCurrentViewedConn
protected
QAction* DtFederationsViewDialog::myRtiexecLogAction
protected

File menu.

Referenced by connectSignals(), setupMenus(), and showRtiexecInfo().

QMenu* DtFederationsViewDialog::myRtiexecMenu
protected

rtiexec menu

Referenced by selectRtiexec(), and setupMenus().

QAction* DtFederationsViewDialog::myRtiexecRidAction
protected
QLabel* DtFederationsViewDialog::myRtiForwarderLabel
protected

Current Connection layout widgets.

Referenced by setupUI().

QAction* DtFederationsViewDialog::myRunLatencyTestAction
protected

File menu.

Referenced by setupMenus(), and showFederateInfo().

QAction* DtFederationsViewDialog::mySaveAction
protected

File menu.

Referenced by connectSignals(), and setupMenus().

int DtFederationsViewDialog::mySelectedFederate
protected
MAKRti::DtString DtFederationsViewDialog::mySelectedFederateName
protected
MAKRti::DtFilename DtFederationsViewDialog::mySelectedFederateProcess
protected
MAKRti::DtString DtFederationsViewDialog::mySelectedFederateType
protected
MAKRti::DtString DtFederationsViewDialog::mySelectedFederation
protected
QDockWidget* DtFederationsViewDialog::mySelectedItemDock
protected

Referenced by setupMenus(), and setupUI().

DtRtiSelectedNodeWidget* DtFederationsViewDialog::mySelectedItemWidget
protected
QAction* DtFederationsViewDialog::mySelectedNodeAction
protected

File menu.

Referenced by setupMenus().

DtSelectedNodeType DtFederationsViewDialog::mySelectedNodeType
protected
QAction* DtFederationsViewDialog::myShutdownForwarderAction
protected
QAction* DtFederationsViewDialog::myShutdownRtiexecAction
protected
QAction* DtFederationsViewDialog::myStatisticsAction
protected

File menu.

Referenced by connectSignals(), setupMenus(), and showFederateInfo().

QToolBar* DtFederationsViewDialog::myToolBar
protected

Referenced by setupUI().

QMenu* DtFederationsViewDialog::myToolsMenu
protected

Tools menu.

Referenced by setupMenus().

Ui::FederationsViewDialog DtFederationsViewDialog::myUiImpl
protected
QMenu* DtFederationsViewDialog::myViewMenu
protected

View menu.

Referenced by setupMenus().

const MAKRti::DtFilename DtFederationsViewDialog::theConfigFilename = "federationsView.conf"
staticprotected

The name of the file where the GUI configuration is stored.

Referenced by loadGuiConfiguration(), and saveGuiConfiguration().

const QString DtFederationsViewDialog::theForwarderLogDisabledText = tr("Forwarder Log File - Only available for local RTI Forwarders")
staticprotected

Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.

Referenced by showForwarderInfo().

const QString DtFederationsViewDialog::theForwarderLogEnabledText = tr("Forwarder Log File")
staticprotected

Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.

Referenced by showForwarderInfo().

const QString DtFederationsViewDialog::theLoadingText
staticprotected

Text displayed when loading information.

QString DtFederationsViewDialog::theNoConnectionsAvailableText = tr("No known connections available")
staticprotected

Text displayed in the combo box if there are no known rtiForwarders.

Referenced by addConnection(), removeConnection(), and setupUI().

const QString DtFederationsViewDialog::theRtiexecLogDisabledText = tr("rtiexec Log File - Only available for local rtiexecs")
staticprotected

Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.

Referenced by showRtiexecInfo().

const QString DtFederationsViewDialog::theRtiexecLogEnabledText = tr("rtiexec Log File")
staticprotected

Text to be displayed for log file viewing actions depending on whether viewing is enabled or disabled.

Referenced by showRtiexecInfo().


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

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)