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 openLog();
95 
97  void showAssistantLog();
98 
100  void deleteAssistantLogs();
101 
103 
104  void setLogUpdateInterval( unsigned int );
105  void setKeepAlive( bool );
106  void setSendForeignQuery( bool );
107  void setLatencyTestInteractionPeriodMs( unsigned int );
108  void setLatencyTestNumInteractions( unsigned int );
109  void setLatencyTestPayloadBytes( unsigned int );
110  void setDisplayPopupsAsNotifications( bool );
111  void setEnableNotifications( bool );
112  void setLightweightMemorySec( unsigned int );
113  void setDefunctFederateRemovalTimeSec( float );
114  void setAssistantUpdateIntervalSec( unsigned int );
115  void setLrcNetStatsUpdateIntervalSec( unsigned int );
116  void setShowRtiexecStartupPrompt( bool );
117  void setAcceptRemoteCommands( bool );
118  void setAssistantPersistent( bool );
119  void setDefaultToUnlicensed( bool );
120  void setWarningTickInterval( float );
121  void setDisplayRemoteNotifications( bool );
122  void setDisplayFederationColors( bool );
123  void setFederateIdentifier( unsigned int );
125 
126 signals:
127 
129 
130  void updateLogUpdateInterval( unsigned int );
131  void updateKeepAlive( bool );
132  void updateSendForeignQuery( bool );
133  void updateLatencyTestInteractionPeriodMs( unsigned int );
134  void updateLatencyTestNumInteractions( unsigned int );
135  void updateLatencyTestPayloadBytes( unsigned int );
136  void updateDisplayPopupsAsNotifications( bool );
137  void updateEnableNotifications( bool );
138  void updateLightweightMemorySec( unsigned int );
139  void updateDefunctFederateRemovalTimeSec( float );
140  void updateAssistantUpdateIntervalSec( unsigned int );
141  void updateLrcNetStatsUpdateIntervalSec( unsigned int );
142  void updateShowRtiexecStartupPrompt( bool );
143  void updateAcceptRemoteCommands( bool );
144  void updateAssistantPersistent( bool );
145  void updateDefaultToUnlicensed( bool );
146  void updateWarningTickInterval( float );
147  void updateDisplayRemoteNotifications( bool );
148  void updateDisplayFederationColors( bool );
149  void updateFederateIdentifier( unsigned int );
151 
154  void savePreferences();
155 
156 protected:
157 
160 
163 
166 
169 
173 
176  std::vector<DtAssistantMgr*> myConfigWidgetMgrs;
177 
180 
183 
186 
188  MAKRti::DtString myAssistantLogStringName;
189 
191 
192  unsigned int myLogUpdateInterval;
211  unsigned int myFederateIdentifier;
213 };
214 #endif

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)