VR-Forces 4.8 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>
22 
23 namespace makVrv
24 {
25 
26  class DtWindow;
27 
31  {
32 
33  public:
34 
36  static DtInsetViewObserverDestroyer& instance(DtDe& de);
37 
40 
42  void registerInsetViewForDestruction(const std::string& windowName, const std::string& observerName);
43 
45  void setEnabled(bool enable);
46 
48  bool enabled();
49 
50  protected:
51 
54 
56  void slot_onWindowToBeDestroyed(DtWindow* window);
57 
58  protected:
59 
61  std::map<std::string, std::string> myObserverMap;
62  bool myEnabled;
64  };
65 }
66 
67 #endif
68 
The DtInsetViewObserverDestroyer will destroy an observer when its window is destroyed.
Definition: DtInsetViewObserverDestroyer.h:30
Abstract Base class.
Definition: DtWindow.h:25
Virtual base class.
Definition: DtVirtualBaseClass.h:22
Contains makVrv::DtDe class.
std::map< std::string, std::string > myObserverMap
Definition: DtInsetViewObserverDestroyer.h:61
Contains makVrv::DtVirtualBaseClass class.
DtSignalConnectionManager myConnections
Definition: DtInsetViewObserverDestroyer.h:63
Contains makVrv::DtIgView class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Base class to provide boost signal/slot management.
Contains makVrv::DtWindowManager class.
DtDe & myDe
Definition: DtInsetViewObserverDestroyer.h:60
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
bool myEnabled
Definition: DtInsetViewObserverDestroyer.h:62
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)