VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtQtPageAssembler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
16 #include <boost/unordered_map.hpp>
17 
18 class QWidget;
19 
20 namespace makVrv
21 {
22  class DtPageCreator;
23 
30  {
31  public:
33 
35  static DtQtPageAssembler& instance(DtDe& de);
36 
38  virtual ~DtQtPageAssembler();
39 
42  void registerPageCreator(DtPageCreator* creator);
43 
45  void unregisterPageCreator(DtPageCreator* creator, bool deleteCreator = true);
46 
48  DtPageCreator* findPageCreator(const std::string& pageClassName) const;
49 
50  protected:
51 
54 
56  virtual void assembleCollection(const DtPagePath& pagePath, const DtUnicode& pageTitle,
58 
60  virtual void assemblePage(const DtPagePath& pagePath);
61 
63  virtual void updatePage( const DtPagePath& pagePath, const DtPageConfiguration::PageCollectionState& state);
64 
66  virtual void tabify( const DtPagePath& pagePath1, const DtPagePath& pagePath2 );
67 
69  virtual void setSelectedPage(const DtPagePath& pPath);
70 
71  QWidget* mainWindow();
72 
73  protected:
74 
75  typedef boost::unordered_map<std::string,DtPageCreator*> PageCreatorMap;
78  };
79 
84  {
85  public:
86 
90 
92  virtual ~DtQtPageAssemblerCreator();
93 
95  virtual DtPageAssembler* create(DtDe& de);
96 
97  };
98 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)