![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Responsible for maintaining the assistant tray icon, its menu, and the notifications displayed by it. More...
Inheritance diagram for DtAssistantTrayIconMgr:
Collaboration diagram for DtAssistantTrayIconMgr:Public Slots | |
| void | addComponent (int id) |
| Processes the addition of a new component. | |
| void | renameComponent (int id) |
| Renames an existing component. | |
| void | removeComponent (int id) |
| Removes an existing component from the menu. | |
| void | processComponentUpdate (int id) |
| Handles a component update. | |
| void | sendComponentUpdateNotifyLevel (int id, MAKRti::DtNotifyLevelType level) |
| Processes an update to a component notify level from the menu. | |
| void | sendComponentEnableLogging (int id) |
| Processes a component logging enable command from the menu. | |
| void | sendComponentExit (int id) |
| Processes a component exit request. | |
| void | showNotifyConsole () |
| Displays the notification console with the full history of notifications which have been displayed. | |
| void | showComponentConsole (int id) |
| Displays the component's console. | |
| void | showVersionsWebpage () |
| Opens a browser to display the RTI versions web page. | |
| void | showAboutDialog () |
| Opens the RTI about dialog. | |
| void | showHelpDialog () |
| Opens the RTI help dialog. | |
| void | processHelpDialogClose () |
| Cleans up after the help dialog when it is closed. | |
| void | showComponentWebSpy (int id) |
| Opens a browser to display the web spy page for the component. | |
| void | showComponentWebSpy (const MAKRti::DtString &host, int port, int webSpyId) |
| Opens a browser to display the web spy page for the component with the given information. | |
| void | notification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1, bool logOnly=false, bool forward=true) |
| Displays a notification for the component with the given ID. | |
| void | notification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source, bool logOnly=false, bool forward=true) |
| Displays a notification with the given component name. | |
| void | showNotifyIcon () |
| Changes the tray icon to show that a notification message has been received but not acknowledged by the user, just in case they missed it. | |
| void | clearNotifyIcon () |
| Clears the notify icon if displayed. | |
| void | showWarningIcon () |
| Changes the tray icon to show that a popup dialog has been activated that needs attention by the user. | |
| void | clearWarningIcon () |
| Registers that a popup dialog has been dismissed and clears the warning icon if all popup warnings have been dismissed. | |
| void | processTrayIconActivation (QSystemTrayIcon::ActivationReason reason) |
| Processes an activation event by the tray icon. | |
| void | setLogUpdateInterval (unsigned int interval) |
| Updates all of the existing log consoles to update at the specified update interval (in msecs). | |
| void | setShowViewLogPrompt (bool viewPrompt) |
| Updates whether the view log prompt should be shown when logging is enabled. | |
| void | setAlwaysViewLog (bool alwaysView) |
| Updates whether the log should automatically be shown if show view log prompt is disabled. | |
| void | setEnableNotifications (bool enable) |
| Updates whether notifications should be enabled. | |
| void | disableComponentLog (int compId) |
| Disable the menu option to view the component log for the given component. | |
| void | setObservingNotifications (bool isObserving) |
| Updates whether this Assistant is observing notifications from other Assistants on the network. | |
| void | sendNotifyObserveMsg () |
| Sends the notification observe message. | |
| void | pruneStaleNotifyObservers () |
| Removes old observers who have not sent a message in a while. | |
Signals | |
| void | shutdown () |
| Emitted when the user chooses to shutdown the assistant. | |
| void | displayActiveWarningDialogs () |
| Emitted if active warning dialogs should be brought to the front. | |
| void | showLatencyTestDialog (int) |
| Emitted when a latency dialog should be shown for a given component. | |
| void | displayFederateInfoDialog (int) |
| Emitted when a display federate dialog should be shown for a given component. | |
| void | showConfigDialog () |
| Emitted when the configuration dialog should be shown. | |
| void | showFederationsDialog () |
| Emitted when the federations view dialog should be shown. | |
| void | showNetworkComponentsDialog () |
| Emitted when the rtiNetworkComponent view dialog should be shown. | |
| void | showConnectionsConfiguration (int pageNum) |
| Emitted when the connections configuration should be shown. | |
Public Member Functions | |
| DtAssistantTrayIconMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtBoost::shared_ptr< DtAssistantPreferencesInfoMgr > prefMgr, DtBoost::shared_ptr< DtAssistantComponentMgr > compMgr, DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > connInfoMgr) | |
| Constructor. | |
| virtual | ~DtAssistantTrayIconMgr () |
| Destructor. | |
| virtual void | startShutdown () |
| Hides the tray icon at the start of shutdown. | |
| void | setConnectionsPage (int pageNum) |
| Informs this manager what the page number in the preferences dialog of the connection configuration page. | |
| void | enableComponentLatencyTest (int id) |
| Enable the menu option to run a latency test. | |
| void | disableComponentLatencyTest (int id) |
| Disable the menu option to run a latency test. | |
Protected Types | |
| typedef std::map< int, DtAssistantComponentMenu * > | DtIdToMenuMap |
| typedef std::map< int, DtConsoleDialog * > | DtIdToFileConsoleMap |
| typedef std::map< int, QString > | DtIdToWebSpyUrlMap |
Protected Member Functions | |
| virtual void | loadBrowserPage (const QString &page) |
| Load the given URL into the default browser. | |
| virtual QString | createWebSpyUrl (const MAKRti::DtString &host, int port, int id=-1) |
| Constructs the URL for a web spy page. | |
| void | enableComponentWebSpy (DtAssistantComponentMenu *menu, const MAKRti::DtString &host, int port, int webSpyId=-1) |
| Enables the menu option to open the web spy page for the component. | |
| void | disableComponentWebSpy (DtAssistantComponentMenu *menu) |
| Disables the menu option to open the web spy page for the component. | |
| void | enableComponentLog (DtAssistantComponentMenu *menu, const MAKRti::DtString &logName, MAKRti::DtNotifyLevelType level) |
| Enable the menu option to view the component log. | |
| void | disableComponentLog (DtAssistantComponentMenu *menu) |
| Disable the menu option to view the component log. | |
Protected Attributes | |
| DtBoost::shared_ptr < DtAssistantPreferencesInfoMgr > | myPrefMgr |
| The manager that keeps track of Assistant preferences. | |
| DtBoost::shared_ptr < DtAssistantComponentMgr > | myCompMgr |
| The manager that keeps track of all local RTI components. | |
| DtBoost::shared_ptr < DtAssistantConnectionInfoMgr > | myConnInfoMgr |
| The manager that keeps track of all RTI connections. | |
| QSystemTrayIcon * | myTrayIcon |
| The tray icon. | |
| QMenu * | myMenu |
| The tray icon context menu. | |
| QAction * | myShowNotifyHistoryAction |
| Context menu action to show the notification console. | |
| QAction * | myVersionsWebSiteAction |
| Context menu action to show the RTI versions web site. | |
| QAction * | myShowPreferencesAction |
| Context menu action to show the Assistant configuration preferences dialog. | |
| QAction * | myShowFederationsAction |
| Context menu action to show the Assistant federations view dialog. | |
| QAction * | myShowAboutAction |
| Context menu action to show the RTI about dialog. | |
| QAction * | myShowRtiNetworkComponentAction |
| Context Menu action to show the Assistant rtiNetworkComponent view dialog. | |
| QAction * | myShowHelpAction |
| Context menu action to show the help dialog. | |
| DtIdToMenuMap | myCompMenus |
| Context menu sub-menus for the RTI components. | |
| QAction * | myLrcSeparator |
| Separator for the LRC section. | |
| QAction * | myShutdownAllAction |
| Action to exit all RTI applications on this machine. | |
| DtAssistantNotifyDialog * | myNotifyDialog |
| The dialog which displays brief notification messages. | |
| DtConsoleDialog * | myNotifyConsole |
| The dialog for the console widget which displays the full notification history. | |
| DtIdToFileConsoleMap | myComponentConsoles |
| Map from component IDs to console widgets. | |
| DtAssistantViewLogNowDialog * | myViewLogNowDialog |
| The dialog that asks users if they would like to view the log immediately upon enabling. | |
| DtAboutBox * | myAboutDialog |
| The dialog that displays information about this version of the RTI. | |
| QProcess * | myHelpAssistant |
| Help application. | |
| QString | myWebSpyUrl |
| The URL for the web spy network map. | |
| DtIdToWebSpyUrlMap | myCompWebSpyUrl |
| Map from component IDs to web spy URLs. | |
| std::set< int > | myViewLogCompIds |
| The set of component IDs whose logs should immediately be opened once log viewing is enabled. | |
| bool | myDisplayNotifyIcon |
| Indicates that the notification icon should be displayed in the tray. | |
| unsigned | myDisplayWarningCount |
| The count of the number of dialogs currently displayed which cause a warning icon to be displayed in the tray. | |
| unsigned int | myLogUpdateInterval |
| Interval at which log consoles will be updated. | |
| bool | myShowViewLogPrompt |
| Whether a prompt should be shown asking the user if they want to view the log immediately upon enabling it. | |
| bool | myAlwaysViewLog |
| Whether, if myShowViewLogPrompt is false, the log should automatically be shown. | |
| bool | myEnableNotifications |
| Whether or not notifications are disabled. | |
| int | myConnectionsPage |
| The preferences page for connection configuration. | |
| std::map< int, MAKRti::DtString > | myLastNotifyNames |
| Map of names previously displayed in a notification for a given component ID. | |
| bool | myObservingNotifications |
| Whether notifications from other assistants are being observed. | |
| std::map< DtAssistantInfo, bool > | myNotifyObservers |
| The list of remote Assistants that are observing notifications. | |
Private Member Functions | |
| DtAssistantTrayIconMgr (DtAssistantTrayIconMgr const &) | |
| Copy Constructor not implemented -- Copy Not Allowed! | |
| DtAssistantTrayIconMgr & | operator= (DtAssistantTrayIconMgr const &) |
| Assignment not implemented -- Assignment Not Allowed! | |
Message Callbacks | |
| static void | processNotifyMsg (const DtAssistantNotifyMsg &msg, void *usr) |
| Callback to process a notification message from a component. | |
| static void | processShowDialogMsg (const DtAssistantShowDialogMsg &msg, void *usr) |
| Callback to process a show dialog message from a client assistant. | |
| static void | processNotifyObserveMsg (const DtAssistantNotifyObserveMsg &msg, void *usr) |
| Callback to process a notification observation message. | |
| virtual void | processNotifyMsg (const DtAssistantNotifyMsg &msg) |
| Called by the callback function to process notification messages. | |
| virtual void | processShowDialogMsg (const DtAssistantShowDialogMsg &msg) |
| Called by the callback function to process show dialog messages. | |
| virtual void | processNotifyObserveMsg (const DtAssistantNotifyObserveMsg &msg) |
| Called by the callback function to process notification observation messages. | |
Responsible for maintaining the assistant tray icon, its menu, and the notifications displayed by it.
Begins processing commands received from the user's interaction with the menu.
typedef std::map< int, DtConsoleDialog*> DtAssistantTrayIconMgr::DtIdToFileConsoleMap [protected] |
typedef std::map< int, DtAssistantComponentMenu*> DtAssistantTrayIconMgr::DtIdToMenuMap [protected] |
typedef std::map< int, QString> DtAssistantTrayIconMgr::DtIdToWebSpyUrlMap [protected] |
| DtAssistantTrayIconMgr::DtAssistantTrayIconMgr | ( | DtBoost::shared_ptr< DtRtiAssistantServer > | server, |
| DtBoost::shared_ptr< DtRtiAssistantPeer > | peer, | ||
| DtBoost::shared_ptr< DtAssistantPreferencesInfoMgr > | prefMgr, | ||
| DtBoost::shared_ptr< DtAssistantComponentMgr > | compMgr, | ||
| DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > | connInfoMgr | ||
| ) |
Constructor.
References DtAssistantNotifyObserveMsg::addCallback(), DtAssistantShowDialogMsg::addCallback(), DtAssistantNotifyMsg::addCallback(), addComponent(), clearNotifyIcon(), connect(), disableComponentLog(), DtRtiLibPath(), myAboutDialog, myCompMgr, myConnInfoMgr, myLrcSeparator, myMenu, myNotifyConsole, myNotifyDialog, DtAssistantMgr::myPeer, myPrefMgr, DtAssistantMgr::myServer, myShowAboutAction, myShowFederationsAction, myShowHelpAction, myShowNotifyHistoryAction, myShowPreferencesAction, myShowRtiNetworkComponentAction, myShutdownAllAction, myTrayIcon, myVersionsWebSiteAction, myViewLogNowDialog, processComponentUpdate(), processNotifyMsg(), processNotifyObserveMsg(), processShowDialogMsg(), processTrayIconActivation(), pruneStaleNotifyObservers(), removeComponent(), renameComponent(), setAlwaysViewLog(), setEnableNotifications(), setLogUpdateInterval(), setObservingNotifications(), setShowViewLogPrompt(), showAboutDialog(), showConfigDialog(), showFederationsDialog(), showHelpDialog(), showNetworkComponentsDialog(), showNotifyConsole(), showNotifyIcon(), DtConsoleWidget::showNotifyLevelBox(), showVersionsWebpage(), shutdown(), DtAssistantMgr::startDialog(), DtAssistantMgr::theAboutIcon, DtAssistantMgr::theHelpIcon, DtAssistantMgr::theNotifyRtiIcon, DtAssistantMgr::thePreferencesIcon, DtAssistantMgr::theRtiIcon, DtAssistantMgr::theWebIcon, and DtConsoleDialog::widget().
| DtAssistantTrayIconMgr::~DtAssistantTrayIconMgr | ( | ) | [virtual] |
| DtAssistantTrayIconMgr::DtAssistantTrayIconMgr | ( | DtAssistantTrayIconMgr const & | ) | [private] |
Copy Constructor not implemented -- Copy Not Allowed!
| void DtAssistantTrayIconMgr::addComponent | ( | int | id | ) | [slot] |
Processes the addition of a new component.
References DtAssistantComponentInfo::compType(), connect(), displayFederateInfoDialog(), DtAssistantLrcComponent, myCompMenus, myCompMgr, myLrcSeparator, myMenu, DtAssistantComponentInfo::name(), sendComponentEnableLogging(), sendComponentExit(), showComponentConsole(), showComponentWebSpy(), and showLatencyTestDialog().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::clearNotifyIcon | ( | ) | [slot] |
Clears the notify icon if displayed.
References myDisplayNotifyIcon, myDisplayWarningCount, myTrayIcon, and DtAssistantMgr::theRtiIcon.
Referenced by DtAssistantTrayIconMgr(), and showNotifyConsole().
| void DtAssistantTrayIconMgr::clearWarningIcon | ( | ) | [slot] |
Registers that a popup dialog has been dismissed and clears the warning icon if all popup warnings have been dismissed.
References myDisplayNotifyIcon, myDisplayWarningCount, myTrayIcon, DtAssistantMgr::theNotifyRtiIcon, and DtAssistantMgr::theRtiIcon.
| QString DtAssistantTrayIconMgr::createWebSpyUrl | ( | const MAKRti::DtString & | host, |
| int | port, | ||
| int | id = -1 |
||
| ) | [protected, virtual] |
Constructs the URL for a web spy page.
Referenced by enableComponentWebSpy(), and showComponentWebSpy().
| void DtAssistantTrayIconMgr::disableComponentLatencyTest | ( | int | id | ) |
Disable the menu option to run a latency test.
References myCompMenus.
| void DtAssistantTrayIconMgr::disableComponentLog | ( | DtAssistantComponentMenu * | menu | ) | [protected] |
Disable the menu option to view the component log.
References DtAssistantComponentMenu::enableShowLog(), DtAssistantMgr::finishDialog(), DtAssistantComponentMenu::id(), and myComponentConsoles.
Referenced by disableComponentLog(), DtAssistantTrayIconMgr(), and processComponentUpdate().
| void DtAssistantTrayIconMgr::disableComponentLog | ( | int | compId | ) | [slot] |
Disable the menu option to view the component log for the given component.
References disableComponentLog(), and myCompMenus.
| void DtAssistantTrayIconMgr::disableComponentWebSpy | ( | DtAssistantComponentMenu * | menu | ) | [protected] |
Disables the menu option to open the web spy page for the component.
References DtAssistantComponentMenu::enableWebSpy(), DtAssistantComponentMenu::id(), and myCompWebSpyUrl.
Referenced by processComponentUpdate().
| void DtAssistantTrayIconMgr::displayActiveWarningDialogs | ( | ) | [signal] |
Emitted if active warning dialogs should be brought to the front.
| void DtAssistantTrayIconMgr::displayFederateInfoDialog | ( | int | ) | [signal] |
Emitted when a display federate dialog should be shown for a given component.
Referenced by addComponent().
| void DtAssistantTrayIconMgr::enableComponentLatencyTest | ( | int | id | ) |
Enable the menu option to run a latency test.
References myCompMenus.
| void DtAssistantTrayIconMgr::enableComponentLog | ( | DtAssistantComponentMenu * | menu, |
| const MAKRti::DtString & | logName, | ||
| MAKRti::DtNotifyLevelType | level | ||
| ) | [protected] |
Enable the menu option to view the component log.
References connect(), DtAssistantComponentMenu::enableShowLog(), DtAssistantMgr::finishDialog(), DtAssistantComponentMenu::id(), DtFileConsoleWidget::logFileName(), myComponentConsoles, myLogUpdateInterval, myViewLogCompIds, sendComponentUpdateNotifyLevel(), DtFileConsoleWidget::setId(), DtFileConsoleWidget::setLogFile(), DtFileConsoleWidget::setName(), DtConsoleWidget::setNotifyLevel(), showComponentConsole(), and DtAssistantMgr::startDialog().
Referenced by processComponentUpdate().
| void DtAssistantTrayIconMgr::enableComponentWebSpy | ( | DtAssistantComponentMenu * | menu, |
| const MAKRti::DtString & | host, | ||
| int | port, | ||
| int | webSpyId = -1 |
||
| ) | [protected] |
Enables the menu option to open the web spy page for the component.
References createWebSpyUrl(), DtAssistantComponentMenu::enableWebSpy(), DtAssistantComponentMenu::id(), and myCompWebSpyUrl.
Referenced by processComponentUpdate().
| void DtAssistantTrayIconMgr::loadBrowserPage | ( | const QString & | page | ) | [protected, virtual] |
Load the given URL into the default browser.
Referenced by showComponentWebSpy(), and showVersionsWebpage().
| void DtAssistantTrayIconMgr::notification | ( | const MAKRti::DtString & | message, |
| MAKRti::DtNotifyLevelType | notifyLevel, | ||
| int | sourceCompId = -1, |
||
| bool | logOnly = false, |
||
| bool | forward = true |
||
| ) | [slot] |
Displays a notification for the component with the given ID.
Referenced by processNotifyMsg().
| void DtAssistantTrayIconMgr::notification | ( | const MAKRti::DtString & | message, |
| MAKRti::DtNotifyLevelType | notifyLevel, | ||
| const MAKRti::DtString & | source, | ||
| bool | logOnly = false, |
||
| bool | forward = true |
||
| ) | [slot] |
Displays a notification with the given component name.
| DtAssistantTrayIconMgr& DtAssistantTrayIconMgr::operator= | ( | DtAssistantTrayIconMgr const & | ) | [private] |
Assignment not implemented -- Assignment Not Allowed!
| void DtAssistantTrayIconMgr::processComponentUpdate | ( | int | id | ) | [slot] |
Handles a component update.
References disableComponentLog(), disableComponentWebSpy(), enableComponentLog(), enableComponentWebSpy(), DtAssistantComponentInfo::logFileName(), myCompMenus, myCompMgr, DtAssistantComponentInfo::notifyLevel(), DtAssistantComponentMenu::showLogEnabled(), DtAssistantComponentInfo::webSpyAddr(), DtAssistantComponentMenu::webSpyEnabled(), DtAssistantComponentInfo::webSpyHttpPort(), and DtAssistantComponentInfo::webSpyId().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::processHelpDialogClose | ( | ) | [slot] |
Cleans up after the help dialog when it is closed.
References myHelpAssistant.
Referenced by showHelpDialog().
| void DtAssistantTrayIconMgr::processNotifyMsg | ( | const DtAssistantNotifyMsg & | msg, |
| void * | usr | ||
| ) | [static, protected] |
Callback to process a notification message from a component.
Referenced by DtAssistantTrayIconMgr(), and ~DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::processNotifyMsg | ( | const DtAssistantNotifyMsg & | msg | ) | [protected, virtual] |
Called by the callback function to process notification messages.
References DtAssistantMsg::isAssistantToAssistantMessage(), myObservingNotifications, DtAssistantMgr::myServer, notification(), DtAssistantNotifyMsg::notifyLevel(), DtAssistantMsg::sourceHost(), DtAssistantNotifyMsg::sourceName(), and DtAssistantNotifyMsg::text().
| void DtAssistantTrayIconMgr::processNotifyObserveMsg | ( | const DtAssistantNotifyObserveMsg & | msg, |
| void * | usr | ||
| ) | [static, protected] |
Callback to process a notification observation message.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::processNotifyObserveMsg | ( | const DtAssistantNotifyObserveMsg & | msg | ) | [protected, virtual] |
Called by the callback function to process notification observation messages.
References DtAssistantNotifyObserveMsg::isObserved(), myNotifyObservers, DtAssistantMgr::myPeer, DtAssistantMsg::sourceAddr(), DtAssistantMsg::sourceHost(), and DtAssistantMsg::sourceId().
| void DtAssistantTrayIconMgr::processShowDialogMsg | ( | const DtAssistantShowDialogMsg & | msg, |
| void * | usr | ||
| ) | [static, protected] |
Callback to process a show dialog message from a client assistant.
Referenced by DtAssistantTrayIconMgr(), and ~DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::processShowDialogMsg | ( | const DtAssistantShowDialogMsg & | msg | ) | [protected, virtual] |
Called by the callback function to process show dialog messages.
References myCompMgr, myConnectionsPage, DtAssistantMgr::myServer, DtAssistantShowDialogMsg::ShowConnections, showConnectionsConfiguration(), DtAssistantShowDialogMsg::showDialog(), DtAssistantShowDialogMsg::ShowFederations, showFederationsDialog(), DtAssistantShowDialogMsg::ShowMessageDump, DtAssistantShowDialogMsg::ShowNetworkComponents, showNetworkComponentsDialog(), DtAssistantShowDialogMsg::ShowNotificationHistory, and showNotifyConsole().
| void DtAssistantTrayIconMgr::processTrayIconActivation | ( | QSystemTrayIcon::ActivationReason | reason | ) | [slot] |
Processes an activation event by the tray icon.
References showFederationsDialog().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::pruneStaleNotifyObservers | ( | ) | [slot] |
Removes old observers who have not sent a message in a while.
References myNotifyObservers.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::removeComponent | ( | int | id | ) | [slot] |
Removes an existing component from the menu.
References myCompMenus, myCompWebSpyUrl, and myMenu.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::renameComponent | ( | int | id | ) | [slot] |
Renames an existing component.
References myCompMenus, myCompMgr, myComponentConsoles, DtAssistantComponentInfo::name(), DtAssistantComponentMenu::rename(), and DtFileConsoleWidget::setName().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::sendComponentEnableLogging | ( | int | id | ) | [slot] |
Processes a component logging enable command from the menu.
References DtAssistantViewLogNowDialog::dontPromptAgain(), myAlwaysViewLog, myCompMgr, myPrefMgr, DtAssistantMgr::myServer, myShowViewLogPrompt, myViewLogCompIds, and myViewLogNowDialog.
Referenced by addComponent().
| void DtAssistantTrayIconMgr::sendComponentExit | ( | int | id | ) | [slot] |
Processes a component exit request.
References myCompMgr, and DtAssistantMgr::myServer.
Referenced by addComponent().
| void DtAssistantTrayIconMgr::sendComponentUpdateNotifyLevel | ( | int | id, |
| MAKRti::DtNotifyLevelType | level | ||
| ) | [slot] |
Processes an update to a component notify level from the menu.
References myCompMgr, and DtAssistantMgr::myServer.
Referenced by enableComponentLog().
| void DtAssistantTrayIconMgr::sendNotifyObserveMsg | ( | ) | [slot] |
Sends the notification observe message.
References myObservingNotifications, and DtAssistantMgr::myPeer.
Referenced by setObservingNotifications().
| void DtAssistantTrayIconMgr::setAlwaysViewLog | ( | bool | alwaysView | ) | [slot] |
Updates whether the log should automatically be shown if show view log prompt is disabled.
References myAlwaysViewLog.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::setConnectionsPage | ( | int | pageNum | ) |
Informs this manager what the page number in the preferences dialog of the connection configuration page.
References myConnectionsPage.
| void DtAssistantTrayIconMgr::setEnableNotifications | ( | bool | enable | ) | [slot] |
Updates whether notifications should be enabled.
References myEnableNotifications.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::setLogUpdateInterval | ( | unsigned int | interval | ) | [slot] |
Updates all of the existing log consoles to update at the specified update interval (in msecs).
References myComponentConsoles, myLogUpdateInterval, and DtFileConsoleWidget::setUpdateInterval().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::setObservingNotifications | ( | bool | isObserving | ) | [slot] |
Updates whether this Assistant is observing notifications from other Assistants on the network.
References connect(), myConnInfoMgr, myObservingNotifications, and sendNotifyObserveMsg().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::setShowViewLogPrompt | ( | bool | viewPrompt | ) | [slot] |
Updates whether the view log prompt should be shown when logging is enabled.
References myShowViewLogPrompt.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::showAboutDialog | ( | ) | [slot] |
Opens the RTI about dialog.
References myAboutDialog, and DtAssistantMgr::showDialog().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::showComponentConsole | ( | int | id | ) | [slot] |
Displays the component's console.
References myComponentConsoles, and DtAssistantMgr::showDialog().
Referenced by addComponent(), and enableComponentLog().
| void DtAssistantTrayIconMgr::showComponentWebSpy | ( | int | id | ) | [slot] |
Opens a browser to display the web spy page for the component.
References loadBrowserPage(), and myCompWebSpyUrl.
Referenced by addComponent().
| void DtAssistantTrayIconMgr::showComponentWebSpy | ( | const MAKRti::DtString & | host, |
| int | port, | ||
| int | webSpyId | ||
| ) | [slot] |
Opens a browser to display the web spy page for the component with the given information.
References createWebSpyUrl(), and loadBrowserPage().
| void DtAssistantTrayIconMgr::showConfigDialog | ( | ) | [signal] |
Emitted when the configuration dialog should be shown.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::showConnectionsConfiguration | ( | int | pageNum | ) | [signal] |
Emitted when the connections configuration should be shown.
Referenced by processShowDialogMsg().
| void DtAssistantTrayIconMgr::showFederationsDialog | ( | ) | [signal] |
Emitted when the federations view dialog should be shown.
Referenced by DtAssistantTrayIconMgr(), processShowDialogMsg(), and processTrayIconActivation().
| void DtAssistantTrayIconMgr::showHelpDialog | ( | ) | [slot] |
Opens the RTI help dialog.
References connect(), DtRtiLibPath(), myHelpAssistant, and processHelpDialogClose().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::showLatencyTestDialog | ( | int | ) | [signal] |
Emitted when a latency dialog should be shown for a given component.
Referenced by addComponent().
| void DtAssistantTrayIconMgr::showNetworkComponentsDialog | ( | ) | [signal] |
Emitted when the rtiNetworkComponent view dialog should be shown.
Referenced by DtAssistantTrayIconMgr(), and processShowDialogMsg().
| void DtAssistantTrayIconMgr::showNotifyConsole | ( | ) | [slot] |
Displays the notification console with the full history of notifications which have been displayed.
References clearNotifyIcon(), myNotifyConsole, and DtAssistantMgr::showDialog().
Referenced by DtAssistantTrayIconMgr(), and processShowDialogMsg().
| void DtAssistantTrayIconMgr::showNotifyIcon | ( | ) | [slot] |
Changes the tray icon to show that a notification message has been received but not acknowledged by the user, just in case they missed it.
References myDisplayNotifyIcon, myDisplayWarningCount, myNotifyConsole, myTrayIcon, and DtAssistantMgr::theNotifyRtiIcon.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::showVersionsWebpage | ( | ) | [slot] |
Opens a browser to display the RTI versions web page.
References loadBrowserPage().
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::showWarningIcon | ( | ) | [slot] |
Changes the tray icon to show that a popup dialog has been activated that needs attention by the user.
References myDisplayWarningCount, myTrayIcon, and DtAssistantMgr::theWarningRtiIcon.
| void DtAssistantTrayIconMgr::shutdown | ( | ) | [signal] |
Emitted when the user chooses to shutdown the assistant.
Referenced by DtAssistantTrayIconMgr().
| void DtAssistantTrayIconMgr::startShutdown | ( | ) | [virtual] |
Hides the tray icon at the start of shutdown.
Reimplemented from DtAssistantMgr.
References myTrayIcon.
DtAboutBox* DtAssistantTrayIconMgr::myAboutDialog [protected] |
The dialog that displays information about this version of the RTI.
Referenced by DtAssistantTrayIconMgr(), and showAboutDialog().
bool DtAssistantTrayIconMgr::myAlwaysViewLog [protected] |
Whether, if myShowViewLogPrompt is false, the log should automatically be shown.
Referenced by sendComponentEnableLogging(), and setAlwaysViewLog().
DtIdToMenuMap DtAssistantTrayIconMgr::myCompMenus [protected] |
Context menu sub-menus for the RTI components.
Referenced by addComponent(), disableComponentLatencyTest(), disableComponentLog(), enableComponentLatencyTest(), processComponentUpdate(), removeComponent(), and renameComponent().
DtBoost::shared_ptr<DtAssistantComponentMgr> DtAssistantTrayIconMgr::myCompMgr [protected] |
The manager that keeps track of all local RTI components.
Referenced by addComponent(), DtAssistantTrayIconMgr(), processComponentUpdate(), processShowDialogMsg(), renameComponent(), sendComponentEnableLogging(), sendComponentExit(), and sendComponentUpdateNotifyLevel().
Map from component IDs to console widgets.
Referenced by disableComponentLog(), enableComponentLog(), renameComponent(), setLogUpdateInterval(), and showComponentConsole().
Map from component IDs to web spy URLs.
Referenced by disableComponentWebSpy(), enableComponentWebSpy(), removeComponent(), and showComponentWebSpy().
int DtAssistantTrayIconMgr::myConnectionsPage [protected] |
The preferences page for connection configuration.
Referenced by processShowDialogMsg(), and setConnectionsPage().
DtBoost::shared_ptr<DtAssistantConnectionInfoMgr> DtAssistantTrayIconMgr::myConnInfoMgr [protected] |
The manager that keeps track of all RTI connections.
Referenced by DtAssistantTrayIconMgr(), and setObservingNotifications().
bool DtAssistantTrayIconMgr::myDisplayNotifyIcon [protected] |
Indicates that the notification icon should be displayed in the tray.
Referenced by clearNotifyIcon(), clearWarningIcon(), and showNotifyIcon().
unsigned DtAssistantTrayIconMgr::myDisplayWarningCount [protected] |
The count of the number of dialogs currently displayed which cause a warning icon to be displayed in the tray.
Referenced by clearNotifyIcon(), clearWarningIcon(), showNotifyIcon(), and showWarningIcon().
bool DtAssistantTrayIconMgr::myEnableNotifications [protected] |
Whether or not notifications are disabled.
Referenced by setEnableNotifications().
QProcess* DtAssistantTrayIconMgr::myHelpAssistant [protected] |
Help application.
Referenced by processHelpDialogClose(), showHelpDialog(), and ~DtAssistantTrayIconMgr().
std::map<int, MAKRti::DtString> DtAssistantTrayIconMgr::myLastNotifyNames [protected] |
Map of names previously displayed in a notification for a given component ID.
unsigned int DtAssistantTrayIconMgr::myLogUpdateInterval [protected] |
Interval at which log consoles will be updated.
Referenced by enableComponentLog(), and setLogUpdateInterval().
QAction* DtAssistantTrayIconMgr::myLrcSeparator [protected] |
Separator for the LRC section.
Referenced by addComponent(), and DtAssistantTrayIconMgr().
QMenu* DtAssistantTrayIconMgr::myMenu [protected] |
The tray icon context menu.
Referenced by addComponent(), DtAssistantTrayIconMgr(), and removeComponent().
DtConsoleDialog* DtAssistantTrayIconMgr::myNotifyConsole [protected] |
The dialog for the console widget which displays the full notification history.
Referenced by DtAssistantTrayIconMgr(), showNotifyConsole(), and showNotifyIcon().
The dialog which displays brief notification messages.
Referenced by DtAssistantTrayIconMgr().
std::map< DtAssistantInfo, bool > DtAssistantTrayIconMgr::myNotifyObservers [protected] |
The list of remote Assistants that are observing notifications.
Referenced by processNotifyObserveMsg(), and pruneStaleNotifyObservers().
bool DtAssistantTrayIconMgr::myObservingNotifications [protected] |
Whether notifications from other assistants are being observed.
Referenced by processNotifyMsg(), sendNotifyObserveMsg(), and setObservingNotifications().
DtBoost::shared_ptr<DtAssistantPreferencesInfoMgr> DtAssistantTrayIconMgr::myPrefMgr [protected] |
The manager that keeps track of Assistant preferences.
Referenced by DtAssistantTrayIconMgr(), and sendComponentEnableLogging().
QAction* DtAssistantTrayIconMgr::myShowAboutAction [protected] |
Context menu action to show the RTI about dialog.
Referenced by DtAssistantTrayIconMgr().
QAction* DtAssistantTrayIconMgr::myShowFederationsAction [protected] |
Context menu action to show the Assistant federations view dialog.
Referenced by DtAssistantTrayIconMgr().
QAction* DtAssistantTrayIconMgr::myShowHelpAction [protected] |
Context menu action to show the help dialog.
Referenced by DtAssistantTrayIconMgr().
QAction* DtAssistantTrayIconMgr::myShowNotifyHistoryAction [protected] |
Context menu action to show the notification console.
Referenced by DtAssistantTrayIconMgr().
QAction* DtAssistantTrayIconMgr::myShowPreferencesAction [protected] |
Context menu action to show the Assistant configuration preferences dialog.
Referenced by DtAssistantTrayIconMgr().
QAction* DtAssistantTrayIconMgr::myShowRtiNetworkComponentAction [protected] |
Context Menu action to show the Assistant rtiNetworkComponent view dialog.
Referenced by DtAssistantTrayIconMgr().
bool DtAssistantTrayIconMgr::myShowViewLogPrompt [protected] |
Whether a prompt should be shown asking the user if they want to view the log immediately upon enabling it.
Referenced by sendComponentEnableLogging(), and setShowViewLogPrompt().
QAction* DtAssistantTrayIconMgr::myShutdownAllAction [protected] |
Action to exit all RTI applications on this machine.
Referenced by DtAssistantTrayIconMgr().
QSystemTrayIcon* DtAssistantTrayIconMgr::myTrayIcon [protected] |
The tray icon.
Referenced by clearNotifyIcon(), clearWarningIcon(), DtAssistantTrayIconMgr(), showNotifyIcon(), showWarningIcon(), and startShutdown().
QAction* DtAssistantTrayIconMgr::myVersionsWebSiteAction [protected] |
Context menu action to show the RTI versions web site.
Referenced by DtAssistantTrayIconMgr().
std::set< int > DtAssistantTrayIconMgr::myViewLogCompIds [protected] |
The set of component IDs whose logs should immediately be opened once log viewing is enabled.
Referenced by enableComponentLog(), and sendComponentEnableLogging().
The dialog that asks users if they would like to view the log immediately upon enabling.
Referenced by DtAssistantTrayIconMgr(), and sendComponentEnableLogging().
QString DtAssistantTrayIconMgr::myWebSpyUrl [protected] |
The URL for the web spy network map.