![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2008 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: assistantComponentMenu.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef assistantComponentMenu_H_ 00010 #define assistantComponentMenu_H_ 00011 00014 00015 #include "rtiMsConfig.h" 00016 #include "assistantConnMsg.h" 00017 #include <qmenu.h> 00018 00022 class DT_DLL_ASSISTANTAPP DtAssistantComponentMenu: public QMenu 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 00029 DtAssistantComponentMenu( const QString & name, int id, 00030 DtAssistantComponentType type, QWidget* parent = 0 ); 00031 00033 virtual ~DtAssistantComponentMenu(); 00034 00036 virtual bool webSpyEnabled() const; 00037 00039 virtual void enableWebSpy( bool enable ); 00040 00042 virtual bool showLogEnabled() const; 00043 00046 virtual void enableShowLog( bool enable ); 00047 00049 virtual bool latencyTestEnabled() const; 00050 00052 virtual void enableLatencyTest( bool enable ); 00053 00055 virtual DtAssistantComponentType type(); 00056 00058 virtual int id(); 00059 00061 virtual QString name(); 00062 00064 virtual void rename( const QString& newName ); 00065 00066 public slots: 00067 00069 00070 virtual void openWebSpy(); 00071 virtual void showLog(); 00072 virtual void enableLogging(); 00073 virtual void exitComponent(); 00074 virtual void showLatencyTestDialog(); 00075 00076 virtual void displayFederateInfo(); 00077 00079 00080 signals: 00081 00082 //@( 00085 void openWebSpySelected( int id ); 00086 void showLogSelected( int id ); 00087 void enableLoggingSelected( int id ); 00088 void exitSelected( int id ); 00089 void showLatencyTestDialogSelected( int id ); 00090 void displayFederateInfo( int id ); 00092 00093 protected: 00094 00096 DtAssistantComponentType myType; 00097 00099 int myId; 00100 00102 QString myName; 00103 00105 QAction* myWebSpyAction; 00106 00108 QAction* myLogAction; 00109 00111 QAction* myEnableLoggingAction; 00112 00114 QAction* myExitAction; 00115 00117 QAction* myFederateInfoAction; 00118 00120 QAction* myLatencyTestAction; 00121 00123 static const unsigned theMaxNameSize; 00124 }; 00125 00126 #endif 00127