MAK RTIspy API Documentation for HLA 1.3
 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
bool myKeepAlive
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:193
bool myDisplayRemoteNotifications
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:209
This file contains the declaration of DtAssistantInfo.
bool myShowRtiexecStartupPrompt
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:204
unsigned int myLatencyTestNumInteractions
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:196
bool myDisplayPopupsAsNotifications
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:198
DtPreferencesPage
Definition: assistantEnums.h:17
unsigned int myLatencyTestPayloadBytes
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:197
bool mySendForeignQuery
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:194
Dialog to hold a DtConsoleWidget.
Definition: consoleWidget.h:176
At startup all of the assistant manager classes will register their signals and slots with the signal...
Definition: assistantSignalRouter.h:29
This file contains the declaration of DtRtiConnectionInfo.
std::vector< DtAssistantMgr * > myConfigWidgetMgrs
Managers that own other configuration widgets which are also displayed in the configuration dialog...
Definition: preferencesViewMgr.h:176
Widget which allows a user to change the Assistant preferences.
Definition: assistantPrefsWidget.h:18
Widget which allows the user to change the configuration of the latency test.
Definition: latencyTestConfigWidget.h:23
Definition: assistantEnums.h:27
DtAssistantConfigDialog * myConfigDialog
The Assistant configuration dialog.
Definition: preferencesViewMgr.h:159
Stores the Assistant configuration information and handles saving and loading this information from a...
Definition: assistantConfig.h:38
DtAssistantPreferencesWidget * myAssistantConfigWidget
The widget which configures the Assistant parameters.
Definition: preferencesViewMgr.h:165
Widget which allows a user to change the Assistant preferences for logging and display of notificatio...
Definition: notificationAndLoggingConfigWidget.h:20
bool myDefaultToUnlicensed
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:207
bool myDisplayFederationColors
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:210
MAKRti::DtString myAssistantLogStringName
Assistant log string name.
Definition: preferencesViewMgr.h:188
Provides the GUI for a console which displays the contents of a log file.
Definition: fileConsoleWidget.h:27
virtual void initialize()
Initializes this manager just prior to beginning assistant processing.
Definition: assistantMgr.h:56
Base class for all classes which perform management activities for the Assistant. ...
Definition: assistantMgr.h:31
This file contains the declaration of DtAssistantMgr.
unsigned int myLightweightMemorySec
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:200
unsigned int myLatencyTestInteractionPeriodMs
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:195
unsigned int myLrcNetStatsUpdateIntervalSec
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:203
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
Manages the server connections of the RTI Assistant.
Definition: rtiAssistantServer.h:45
Widget which allows a user to change the Federations View preferences.
Definition: federationsViewPrefsWidget.h:20
unsigned int myAssistantUpdateIntervalSec
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:202
DtAssistantMgr & operator=(DtAssistantMgr const &)
Assignment not implemented – Assignment Not Allowed!
DtLatencyTestConfigWidget * myLatencyTestConfigWidget
The widget which configures latency test parameters.
Definition: preferencesViewMgr.h:162
float myWarningTickInterval
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:208
virtual void tick()
Performs tasks that need to be completed periodically.
Definition: assistantMgr.h:59
Qt dialog which allows a user to change the Assistant configuration.
Definition: assistantConfigDialog.h:27
DtFederationsViewPreferencesWidget * myFederationsViewConfigWidget
The widget which configures the Federations View parameters.
Definition: preferencesViewMgr.h:168
DtConsoleDialog * myAssistantConsoleDialog
The Assistant Log dialog.
Definition: preferencesViewMgr.h:185
bool myAcceptRemoteCommands
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:205
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:122
unsigned int myLogUpdateInterval
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:192
DtFileConsoleWidget * myAssistantConsoleWidget
The Assistant log widget.
Definition: preferencesViewMgr.h:182
DtNotificationAndLoggingConfigWidget * myNotificationAndLoggingConfigWidget
The widget which configures the Assistant&#39;s notification and logging parameters.
Definition: preferencesViewMgr.h:172
DtAssistantMsgStatsDialog * myMsgStatsDialog
The dialog that displays assistant message statistics.
Definition: preferencesViewMgr.h:179
float myDefunctFederateRemovalTimeSec
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:201
bool myEnableNotifications
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:199
bool myAssistantPersistent
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:206
unsigned int myFederateIdentifier
The current settings to display in the preferences dialog.
Definition: preferencesViewMgr.h:211
Dialog to display the current assistant message statistics.
Definition: assistantMsgStatsDialog.h:18
Manages the current assistant preferences and displays the preferences dialog when required...
Definition: preferencesViewMgr.h:43

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)