VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtDockableManager.h
Go to the documentation of this file.
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 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)