MAK RTIspy API Documentation for HLA 1516
popupMsgMgr.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2009 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: popupMsgMgr.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef popupMsgMgr_H_
00010 #define popupMsgMgr_H_
00011 
00014 
00015 #include "rtiMsConfig.h"
00016 #include "assistantMgr.h"
00017 #include "assistantMsgQueue.h"
00018 #include <vlutil/vlPrint.h>
00019 
00020 class DtRtiAssistantServer;
00021 class DtRtiAssistantPeer;
00022 class DtAssistantPopupMsg;
00023 class DtAssistantPopupDialog;
00024 class DtAssistantComponentMgr;
00025 class DtAssistantPreferencesInfoMgr;
00026 
00029 class DT_DLL_ASSISTANTAPP DtAssistantPopupMsgMgr : public DtAssistantMgr
00030 {
00031    Q_OBJECT
00032 
00033 public:
00034 
00036    DtAssistantPopupMsgMgr( DtBoost::shared_ptr<DtRtiAssistantServer> server,
00037       DtBoost::shared_ptr<DtRtiAssistantPeer> peer,
00038       DtBoost::shared_ptr<DtAssistantPreferencesInfoMgr> prefMgr,
00039       DtBoost::shared_ptr<DtAssistantComponentMgr> compMgr );
00040 
00042    virtual ~DtAssistantPopupMsgMgr();
00043 
00044 private:
00045 
00047    DtAssistantPopupMsgMgr(DtAssistantPopupMsgMgr const& );
00048 
00050    DtAssistantPopupMsgMgr& operator= (DtAssistantPopupMsgMgr const& );
00051 
00052 public:
00053 
00055    virtual void tick();
00056 
00057 protected:
00058 
00061 
00062 
00066    static void addPopupMsgToQueue( const DtAssistantPopupMsg& msg, void* usr);
00067 
00069    virtual void addPopupMsgToQueue( const DtAssistantPopupMsg& msg );
00070 
00072    static void processPopupMsg( const DtAssistantPopupMsg& msg, void* usr);
00073 
00075    virtual void processPopupMsg( const DtAssistantPopupMsg& msg );
00076 
00078 
00079 public slots:
00080 
00082    void processPopupDismiss();
00083 
00085    void popup(const MAKRti::DtString& text, int sourceCompId,
00086       const MAKRti::DtString& advancedText);
00087 
00089    void popup(const MAKRti::DtString& text,
00090       const MAKRti::DtString& source, const MAKRti::DtString& advancedText);
00091 
00094    void displayPopupsAsNotifications( bool val );
00095 
00096 protected:
00097 
00101    DtAssistantMsgQueue myPopupMsgQueue;
00102 
00104    DtBoost::shared_ptr<DtAssistantComponentMgr> myCompMgr;
00105 
00108    bool myDisplayPopupsAsNotifications;
00109 
00111    DtAssistantPopupDialog* myPopupDialog;
00112 
00113 };
00114 
00115 #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)