![]() |
MAK RTIspy API Documentation for HLA Evolved
|
This class defines the menu of options available to all RTI components from the RTI Assistant GUI. More...
Inheritance diagram for DtAssistantComponentMenu:
Collaboration diagram for DtAssistantComponentMenu:Public Slots | |
| virtual void | openWebSpy () |
| Slots to handle the selection of each of the menu actions. | |
| virtual void | showLog () |
| Slots to handle the selection of each of the menu actions. | |
| virtual void | enableLogging () |
| Slots to handle the selection of each of the menu actions. | |
| virtual void | exitComponent () |
| Slots to handle the selection of each of the menu actions. | |
| virtual void | showLatencyTestDialog () |
| Slots to handle the selection of each of the menu actions. | |
| virtual void | displayFederateInfo () |
| Slots to handle the selection of each of the menu actions. | |
Signals | |
| void | openWebSpySelected (int id) |
| Signals that indicate a menu action has been selected, passing the component's ID. | |
| void | showLogSelected (int id) |
| void | enableLoggingSelected (int id) |
| void | exitSelected (int id) |
| void | showLatencyTestDialogSelected (int id) |
| void | displayFederateInfo (int id) |
Public Member Functions | |
| DtAssistantComponentMenu (const QString &name, int id, DtAssistantComponentType type, QWidget *parent=0) | |
| Constructor. | |
| virtual | ~DtAssistantComponentMenu () |
| Destructor. | |
| virtual bool | webSpyEnabled () const |
| Whether or not the web spy menu option is enabled. | |
| virtual void | enableWebSpy (bool enable) |
| Enables or disables the open web spy menu option. | |
| virtual bool | showLogEnabled () const |
| Whether or not the show log menu option is enabled. | |
| virtual void | enableShowLog (bool enable) |
| Enables or disables the show log menu option. | |
| virtual bool | latencyTestEnabled () const |
| Whether or not the latency test menu option is enabled. | |
| virtual void | enableLatencyTest (bool enable) |
| Set whether latency testing is enabled. | |
| virtual DtAssistantComponentType | type () |
| Returns the type of this component. | |
| virtual int | id () |
| Returns the ID of this component. | |
| virtual QString | name () |
| Returns the ID of this component. | |
| virtual void | rename (const QString &newName) |
| Changes the name for this component. | |
Protected Attributes | |
| DtAssistantComponentType | myType |
| The component type of this menu. | |
| int | myId |
| The ID of the component. | |
| QString | myName |
| The name of the component. | |
| QAction * | myWebSpyAction |
| Action to load the web spy page for this component. | |
| QAction * | myLogAction |
| Action to show the log of this component. | |
| QAction * | myEnableLoggingAction |
| Action to enable logging for this component. | |
| QAction * | myExitAction |
| Action to force this component to exit. | |
| QAction * | myFederateInfoAction |
| Action to show the federate information. | |
| QAction * | myLatencyTestAction |
| Action to open the latency test dialog for this component. | |
Static Protected Attributes | |
| static const unsigned | theMaxNameSize = 25 |
| The maximum length name that can be displayed. | |
| DtAssistantComponentMenu::DtAssistantComponentMenu | ( | const QString & | name, |
| int | id, | ||
| DtAssistantComponentType | type, | ||
| QWidget * | parent = 0 |
||
| ) |
Constructor.
References connect(), displayFederateInfo(), DtAssistantLrcComponent, DtRtiLibPath(), enableLogging(), exitComponent(), myEnableLoggingAction, myExitAction, myFederateInfoAction, myLatencyTestAction, myLogAction, myName, myType, myWebSpyAction, openWebSpy(), rename(), showLatencyTestDialog(), and showLog().
| DtAssistantComponentMenu::~DtAssistantComponentMenu | ( | ) | [virtual] |
Destructor.
| void DtAssistantComponentMenu::displayFederateInfo | ( | ) | [virtual, slot] |
Slots to handle the selection of each of the menu actions.
References myId.
Referenced by DtAssistantComponentMenu().
| void DtAssistantComponentMenu::displayFederateInfo | ( | int | id | ) | [signal] |
| void DtAssistantComponentMenu::enableLatencyTest | ( | bool | enable | ) | [virtual] |
Set whether latency testing is enabled.
References myLatencyTestAction.
| void DtAssistantComponentMenu::enableLogging | ( | ) | [virtual, slot] |
Slots to handle the selection of each of the menu actions.
References enableLoggingSelected(), and myId.
Referenced by DtAssistantComponentMenu().
| void DtAssistantComponentMenu::enableLoggingSelected | ( | int | id | ) | [signal] |
Referenced by enableLogging().
| void DtAssistantComponentMenu::enableShowLog | ( | bool | enable | ) | [virtual] |
Enables or disables the show log menu option.
Disables the logging enable menu option.
References myEnableLoggingAction, and myLogAction.
Referenced by DtAssistantTrayIconMgr::disableComponentLog(), and DtAssistantTrayIconMgr::enableComponentLog().
| void DtAssistantComponentMenu::enableWebSpy | ( | bool | enable | ) | [virtual] |
Enables or disables the open web spy menu option.
References myWebSpyAction.
Referenced by DtAssistantTrayIconMgr::disableComponentWebSpy(), and DtAssistantTrayIconMgr::enableComponentWebSpy().
| void DtAssistantComponentMenu::exitComponent | ( | ) | [virtual, slot] |
Slots to handle the selection of each of the menu actions.
References exitSelected(), and myId.
Referenced by DtAssistantComponentMenu().
| void DtAssistantComponentMenu::exitSelected | ( | int | id | ) | [signal] |
Referenced by exitComponent().
| int DtAssistantComponentMenu::id | ( | ) | [virtual] |
Returns the ID of this component.
References myId.
Referenced by DtAssistantTrayIconMgr::disableComponentLog(), DtAssistantTrayIconMgr::disableComponentWebSpy(), DtAssistantTrayIconMgr::enableComponentLog(), and DtAssistantTrayIconMgr::enableComponentWebSpy().
| bool DtAssistantComponentMenu::latencyTestEnabled | ( | ) | const [virtual] |
Whether or not the latency test menu option is enabled.
References myLatencyTestAction.
| QString DtAssistantComponentMenu::name | ( | ) | [virtual] |
Returns the ID of this component.
References myName.
| void DtAssistantComponentMenu::openWebSpy | ( | ) | [virtual, slot] |
Slots to handle the selection of each of the menu actions.
References myId, and openWebSpySelected().
Referenced by DtAssistantComponentMenu().
| void DtAssistantComponentMenu::openWebSpySelected | ( | int | id | ) | [signal] |
Signals that indicate a menu action has been selected, passing the component's ID.
Referenced by openWebSpy().
| void DtAssistantComponentMenu::rename | ( | const QString & | newName | ) | [virtual] |
Changes the name for this component.
References myName, and theMaxNameSize.
Referenced by DtAssistantComponentMenu(), and DtAssistantTrayIconMgr::renameComponent().
| void DtAssistantComponentMenu::showLatencyTestDialog | ( | ) | [virtual, slot] |
Slots to handle the selection of each of the menu actions.
References myId, and showLatencyTestDialogSelected().
Referenced by DtAssistantComponentMenu().
| void DtAssistantComponentMenu::showLatencyTestDialogSelected | ( | int | id | ) | [signal] |
Referenced by showLatencyTestDialog().
| void DtAssistantComponentMenu::showLog | ( | ) | [virtual, slot] |
Slots to handle the selection of each of the menu actions.
References myId, and showLogSelected().
Referenced by DtAssistantComponentMenu().
| bool DtAssistantComponentMenu::showLogEnabled | ( | ) | const [virtual] |
Whether or not the show log menu option is enabled.
References myLogAction.
Referenced by DtAssistantTrayIconMgr::processComponentUpdate().
| void DtAssistantComponentMenu::showLogSelected | ( | int | id | ) | [signal] |
Referenced by showLog().
| DtAssistantComponentType DtAssistantComponentMenu::type | ( | ) | [virtual] |
Returns the type of this component.
References myType.
| bool DtAssistantComponentMenu::webSpyEnabled | ( | ) | const [virtual] |
Whether or not the web spy menu option is enabled.
References myWebSpyAction.
Referenced by DtAssistantTrayIconMgr::processComponentUpdate().
QAction* DtAssistantComponentMenu::myEnableLoggingAction [protected] |
Action to enable logging for this component.
Referenced by DtAssistantComponentMenu(), and enableShowLog().
QAction* DtAssistantComponentMenu::myExitAction [protected] |
Action to force this component to exit.
Referenced by DtAssistantComponentMenu().
QAction* DtAssistantComponentMenu::myFederateInfoAction [protected] |
Action to show the federate information.
Referenced by DtAssistantComponentMenu().
int DtAssistantComponentMenu::myId [protected] |
The ID of the component.
Referenced by displayFederateInfo(), enableLogging(), exitComponent(), id(), openWebSpy(), showLatencyTestDialog(), and showLog().
QAction* DtAssistantComponentMenu::myLatencyTestAction [protected] |
Action to open the latency test dialog for this component.
Referenced by DtAssistantComponentMenu(), enableLatencyTest(), and latencyTestEnabled().
QAction* DtAssistantComponentMenu::myLogAction [protected] |
Action to show the log of this component.
Referenced by DtAssistantComponentMenu(), enableShowLog(), and showLogEnabled().
QString DtAssistantComponentMenu::myName [protected] |
The name of the component.
Referenced by DtAssistantComponentMenu(), name(), and rename().
The component type of this menu.
Referenced by DtAssistantComponentMenu(), and type().
QAction* DtAssistantComponentMenu::myWebSpyAction [protected] |
Action to load the web spy page for this component.
Referenced by DtAssistantComponentMenu(), enableWebSpy(), and webSpyEnabled().
const unsigned DtAssistantComponentMenu::theMaxNameSize = 25 [static, protected] |
The maximum length name that can be displayed.
Referenced by rename().