MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef assistantMgr_H_
7 #define assistantMgr_H_
8 
11 
12 #include "rtiMsConfig.h"
13 #include "assistantConfigWidget.h"
14 #include "assistantEnums.h"
15 #include <vlutil/vlSmartPointers.h>
16 #include <vlutil/vlPrint.h>
17 #include <vlutil/vlString.h>
18 #include <set>
19 
20 
21 
23 class DtRtiAssistantPeer;
25 class QMainWindow;
26 
32 {
33  Q_OBJECT
34 
35 public:
36 
38  DtAssistantMgr( DtBoost::shared_ptr<DtRtiAssistantServer> server,
39  DtBoost::shared_ptr<DtRtiAssistantPeer> peer,
40  DtAssistantSignalRouter& signalRouter);
41 
43  virtual ~DtAssistantMgr();
44 
45 private:
46 
49 
51  DtAssistantMgr& operator= (DtAssistantMgr const& );
52 
53 public:
54 
56  virtual void initialize() {};
57 
59  virtual void tick() {};
60 
62  virtual void startShutdown() {};
63 
68  virtual bool dialogsVisible() const;
69 
72  virtual void configWidget( DtAssistantConfigWidget** widget, QIcon& icon,
73  QString& name, DtPreferencesPage& pageId ) {};
74 
76  virtual void updateConfigWidget() {};
77 
79  virtual void processConfigWidgetAccept() {};
80 
81 protected:
82 
88  void startDialog( QDialog* dlg, bool inTaskbar, bool warningDialog );
89 
91  void finishDialog( QDialog* dlg );
92 
95  void showDialog( QDialog* dlg );
96 
101  void startMainWindow( QMainWindow* dlg );
102 
104  void finishMainWindow( QMainWindow* dlg );
105 
108  void showMainWindow( QMainWindow* dlg );
109 
112  void showPopup(const MAKRti::DtString& text, int sourceCompId = -1,
113  const MAKRti::DtString& advancedText = MAKRti::DtString::nullString() );
114 
117  void showPopup(const MAKRti::DtString& text, const MAKRti::DtString& source,
118  const MAKRti::DtString& advancedText = MAKRti::DtString::nullString() );
119 
122  void displayNotification( const MAKRti::DtString& message,
123  MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId = -1 );
124 
126  void displayNotification( const MAKRti::DtString& message,
127  MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString& source );
128 
131  void logNotification( const MAKRti::DtString& message,
132  MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId = -1 );
133 
135  void logNotification( const MAKRti::DtString& message,
136  MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString& source );
137 
138 signals:
139 
141  void warningDialogDisplayed();
142 
144  void warningDialogDismissed();
145 
147  void popupRequested(const MAKRti::DtString& text, int sourceCompId,
148  const MAKRti::DtString& advancedText);
149 
151  void popupRequested(const MAKRti::DtString& text,
152  const MAKRti::DtString& source, const MAKRti::DtString& advancedText);
153 
155  void notificationRequested(const MAKRti::DtString& message,
156  MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId, bool logOnly);
157 
159  void notificationRequested(const MAKRti::DtString& message,
160  MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString& source,
161  bool logOnly);
162 
163 public slots:
164 
166  void displayWarningDialogs();
167 
168 protected:
169 
172  DtBoost::shared_ptr<DtRtiAssistantServer> myServer;
173 
175  DtBoost::shared_ptr<DtRtiAssistantPeer> myPeer;
176 
179  std::set<QDialog *> myUnparentedDialogs;
180 
183  std::set<QMainWindow *> myMainWindows;
184 
187  std::set<QDialog*> myWarningDialogs;
188 
189  //@(
191  static QIcon theRtiIcon;
192  static QIcon theSmallRtiIcon;
193  static QIcon theWebIcon;
194  static QIcon theNotifyRtiIcon;
195  static QIcon theWarningRtiIcon;
196  static QIcon thePreferencesIcon;
197  static QIcon theAboutIcon;
198  static QIcon theHelpIcon;
200 
202  static bool theIconsAreLoaded;
203 
204 };
205 
206 #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)