![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtInsetViewObserverDestroyer.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtInsetViewObserverDestroyer_H_ 00014 #define DtInsetViewObserverDestroyer_H_ 00015 00016 #include <vrvCore/vrvCore.h> 00017 #include <vrvCore/DtDe.h> 00018 #include <vrvCore/DtWindow.h> 00019 #include <vrvCore/DtWindowManager.h> 00020 #include <vrvUtil/DtVirtualBaseClass.h> 00021 00022 namespace makVrv 00023 { 00024 00025 class DtWindow; 00026 00029 class DT_DLL_VRVCORE DtInsetViewObserverDestroyer : public DtVirtualBaseClass 00030 { 00031 00032 public: 00033 00035 static DtInsetViewObserverDestroyer& instance(DtDe& de); 00036 00038 virtual ~DtInsetViewObserverDestroyer(); 00039 00041 void registerInsetViewForDestruction(const std::string& windowName, const std::string& observerName); 00042 00043 protected: 00044 00046 DtInsetViewObserverDestroyer(DtDe& de); 00047 00049 void slot_onWindowToBeDestroyed(DtWindow* window); 00050 00051 protected: 00052 00053 DtDe& myDe; 00054 std::map<std::string, std::string> myObserverMap; 00055 00056 }; 00057 } 00058 00059 #endif 00060