VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDockableManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <boost/unordered_map.hpp>
14 
15 namespace makVrv
16 {
17  class DtDockable;
18 
23  {
24  public:
25  friend class DtDockable;
26 
28  static DtDockableManager& instance(DtDe&);
29 
32  static void registerInstance(DtDe& de, DtDockableManager* instance);
33 
35  virtual ~DtDockableManager();
36 
38  virtual DtDockable* findDockableWidget(const std::string& className);
39 
40  protected:
41 
44 
47  virtual void registerDockableWidgetInstance(DtDockable* widget);
48 
51  virtual void unregisterDockableWidgetInstance(DtDockable* widget);
52 
53  protected:
55 
56  typedef boost::unordered_map<std::string,DtDockable*> DockableWidgets;
58  };
59 }
DockableWidgets myDockableWidgets
Definition: DtDockableManager.h:57
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
The dockable class provides the docking interface for any class to be a dockable widget in the DtDeMa...
Definition: DtDockable.h:27
This class is responsible for managed dockable widgets. All DtDockable instances are automatically re...
Definition: DtDockableManager.h:22
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
boost::unordered_map< std::string, DtDockable * > DockableWidgets
Definition: DtDockableManager.h:56
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtDe & myDe
Definition: DtDockableManager.h:54

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)