VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtInsetViewObserverDestroyer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtInsetViewObserverDestroyer.h,v $ $Revision: 1.7 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtInsetViewObserverDestroyer_H_
14 #define DtInsetViewObserverDestroyer_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtDe.h>
18 #include <vrvCore/DtWindow.h>
19 #include <vrvCore/DtWindowManager.h>
21 
22 namespace makVrv
23 {
24 
25  class DtWindow;
26 
30  {
31 
32  public:
33 
35  static DtInsetViewObserverDestroyer& instance(DtDe& de);
36 
39 
41  void registerInsetViewForDestruction(const std::string& windowName, const std::string& observerName);
42 
44  void setEnabled(bool enable);
45 
47  bool enabled();
48 
49  protected:
50 
53 
55  void slot_onWindowToBeDestroyed(DtWindow* window);
56 
57  protected:
58 
60  std::map<std::string, std::string> myObserverMap;
61  bool myEnabled;
62 
63  };
64 }
65 
66 #endif
67 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)