![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: $ $Revision: $ $State: $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvUtil/DtVirtualBaseClass.h> 00015 #include <vrvCoreQt/vrvCoreQt.h> 00016 #include <boost/unordered_map.hpp> 00017 00018 namespace makVrv 00019 { 00020 class DtDockable; 00021 00025 class DT_DLL_VRVCOREQT DtDockableManager : public DtVirtualBaseClass 00026 { 00027 public: 00028 friend class DtDockable; 00029 00031 static DtDockableManager& instance(DtDe&); 00032 00035 static void registerInstance(DtDe& de, DtDockableManager* instance); 00036 00038 virtual ~DtDockableManager(); 00039 00041 virtual DtDockable* findDockableWidget(const std::string& className); 00042 00043 protected: 00044 00046 DtDockableManager(DtDe&); 00047 00050 virtual void registerDockableWidgetInstance(DtDockable* widget); 00051 00054 virtual void unregisterDockableWidgetInstance(DtDockable* widget); 00055 00056 protected: 00057 DtDe& myDe; 00058 00059 typedef boost::unordered_map<std::string,DtDockable*> DockableWidgets; 00060 DockableWidgets myDockableWidgets; 00061 }; 00062 }