MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
preferencesViewMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: preferencesViewMgr.h,v $ $Revision: 1.19 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef preferencesViewMgr_H_
10 #define preferencesViewMgr_H_
11 
14 
15 #include "rtiMsConfig.h"
16 #include "assistantMgr.h"
18 #include "assistantInfo.h"
19 
21 class DtRtiAssistantPeer;
22 class DtAssistantConfig;
30 class DtFilename;
32 class DtConsoleDialog;
34 
35 namespace MAKRti
36 {
37  class DtString;
38 }
39 
44 {
45  Q_OBJECT
46 
47 public:
48 
50  DtAssistantPreferencesViewMgr( DtBoost::shared_ptr<DtRtiAssistantServer> server,
51  DtBoost::shared_ptr<DtRtiAssistantPeer> peer,
52  DtAssistantSignalRouter& signalRouter );
53 
56 
57 private:
58 
61 
64 
65 public:
66 
68  virtual void initialize();
69 
73  virtual void addConfigWidgetMgr( DtAssistantMgr* mgr );
74 
76  virtual void tick();
77 
79  virtual void setAssistantLogFileName( const MAKRti::DtString& );
80 
81 
82 public slots:
83 
85  void showConfigDialog( DtPreferencesPage pageNum = DtInvalidPreferencesPage );
86 
88  void processConfigAccept();
89 
91  void showMsgStats();
92 
94  void showAssistantLog();
95 
97  void deleteAssistantLogs();
98 
100 
101  void setLogUpdateInterval( unsigned int );
102  void setKeepAlive( bool );
103  void setLatencyTestInteractionPeriodMs( unsigned int );
104  void setLatencyTestNumInteractions( unsigned int );
105  void setLatencyTestPayloadBytes( unsigned int );
106  void setDisplayPopupsAsNotifications( bool );
107  void setEnableNotifications( bool );
108  void setLightweightMemorySec( unsigned int );
109  void setDefunctFederateRemovalTimeSec( float );
110  void setAssistantUpdateIntervalSec( unsigned int );
111  void setLrcNetStatsUpdateIntervalSec( unsigned int );
112  void setShowRtiexecStartupPrompt( bool );
113  void setAcceptRemoteCommands( bool );
114  void setAssistantPersistent( bool );
115  void setDefaultToUnlicensed( bool );
116  void setWarningTickInterval( float );
117  void setDisplayRemoteNotifications( bool );
118  void setDisplayFederationColors( bool );
119  void setFederateIdentifier( unsigned int );
121 
122 signals:
123 
125 
126  void updateLogUpdateInterval( unsigned int );
127  void updateKeepAlive( bool );
128  void updateLatencyTestInteractionPeriodMs( unsigned int );
129  void updateLatencyTestNumInteractions( unsigned int );
130  void updateLatencyTestPayloadBytes( unsigned int );
131  void updateDisplayPopupsAsNotifications( bool );
132  void updateEnableNotifications( bool );
133  void updateLightweightMemorySec( unsigned int );
134  void updateDefunctFederateRemovalTimeSec( float );
135  void updateAssistantUpdateIntervalSec( unsigned int );
136  void updateLrcNetStatsUpdateIntervalSec( unsigned int );
137  void updateShowRtiexecStartupPrompt( bool );
138  void updateAcceptRemoteCommands( bool );
139  void updateAssistantPersistent( bool );
140  void updateDefaultToUnlicensed( bool );
141  void updateWarningTickInterval( float );
142  void updateDisplayRemoteNotifications( bool );
143  void updateDisplayFederationColors( bool );
144  void updateFederateIdentifier( unsigned int );
146 
149  void savePreferences();
150 
151 protected:
152 
155 
158 
161 
164 
168 
171  std::vector<DtAssistantMgr*> myConfigWidgetMgrs;
172 
175 
178 
181 
183  MAKRti::DtString myAssistantLogStringName;
184 
186 
187  unsigned int myLogUpdateInterval;
205  unsigned int myFederateIdentifier;
207 };
208 #endif

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)