MAK RTIspy API Documentation for HLA 1516
assistantMgr.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2009 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: assistantMgr.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef assistantMgr_H_
00010 #define assistantMgr_H_
00011 
00014 
00015 #include "rtiMsConfig.h"
00016 #include "assistantConfigWidget.h"
00017 #include <vlutil/vlSmartPointers.h>
00018 #include <vlutil/vlPrint.h>
00019 #include <vlutil/vlString.h>
00020 #include <set>
00021 
00022 
00023 
00024 class DtRtiAssistantServer;
00025 class DtRtiAssistantPeer;
00026 
00031 class DT_DLL_ASSISTANTAPP DtAssistantMgr : public QWidget
00032 {
00033    Q_OBJECT
00034 
00035 public:
00036 
00038    DtAssistantMgr( DtBoost::shared_ptr<DtRtiAssistantServer> server,
00039       DtBoost::shared_ptr<DtRtiAssistantPeer> peer );
00040 
00042    virtual ~DtAssistantMgr();
00043 
00044 private:
00045 
00047    DtAssistantMgr(DtAssistantMgr const& );
00048 
00050    DtAssistantMgr& operator= (DtAssistantMgr const& );
00051 
00052 public:
00053 
00055    virtual void initialize() {};
00056 
00058    virtual void tick() {};
00059 
00061    virtual void startShutdown() {};
00062 
00067    virtual bool dialogsVisible() const;
00068 
00071    virtual void configWidget( DtAssistantConfigWidget** widget, QIcon& icon, QString& name ) {};
00072 
00074    virtual void updateConfigWidget() {};
00075 
00077    virtual void processConfigWidgetAccept() {};
00078 
00079 protected:
00080 
00086    void startDialog( QDialog* dlg, bool inTaskbar, bool warningDialog );
00087 
00089    void finishDialog( QDialog* dlg );
00090 
00093    void showDialog( QDialog* dlg );
00094 
00097    void showPopup(const MAKRti::DtString& text, int sourceCompId = -1,
00098       const MAKRti::DtString& advancedText = MAKRti::DtString::nullString() );
00099 
00102    void showPopup(const MAKRti::DtString& text, const MAKRti::DtString& source,
00103       const MAKRti::DtString& advancedText = MAKRti::DtString::nullString() );
00104 
00107    void displayNotification( const MAKRti::DtString& message,
00108       MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId = -1 );
00109 
00111    void displayNotification( const MAKRti::DtString& message,
00112       MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString& source );
00113 
00116    void logNotification( const MAKRti::DtString& message,
00117       MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId = -1 );
00118 
00120    void logNotification( const MAKRti::DtString& message,
00121       MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString& source );
00122 
00123 signals:
00124 
00126    void warningDialogDisplayed();
00127 
00129    void warningDialogDismissed();
00130 
00132    void popupRequested(const MAKRti::DtString& text, int sourceCompId,
00133       const MAKRti::DtString& advancedText);
00134 
00136    void popupRequested(const MAKRti::DtString& text,
00137       const MAKRti::DtString& source, const MAKRti::DtString& advancedText);
00138 
00140    void notificationRequested(const MAKRti::DtString& message,
00141       MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId, bool logOnly);
00142 
00144    void notificationRequested(const MAKRti::DtString& message,
00145       MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString& source,
00146       bool logOnly);
00147 
00148 public slots:
00149 
00151    void displayWarningDialogs();
00152 
00153 protected:
00154 
00157    DtBoost::shared_ptr<DtRtiAssistantServer> myServer;
00158 
00160    DtBoost::shared_ptr<DtRtiAssistantPeer> myPeer;
00161 
00164    std::set<QDialog *> myUnparentedDialogs;
00165 
00168    std::set<QDialog*> myWarningDialogs;
00169 
00170    //@(
00172    static QIcon theRtiIcon;
00173    static QIcon theWebIcon;
00174    static QIcon theNotifyRtiIcon;
00175    static QIcon theWarningRtiIcon;
00176    static QIcon thePreferencesIcon;
00177    static QIcon theAboutIcon;
00178    static QIcon theHelpIcon;
00180 
00182    static bool theIconsAreLoaded;
00183 
00184 };
00185 
00186 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)