VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <boost/unordered_map.hpp>
14 
15 class QWidget;
16 
17 namespace makVrv
18 {
19  class DtPageCreator;
20 
27  {
28  public:
30 
32  static DtQtPageAssembler& instance(DtDe& de);
33 
35  virtual ~DtQtPageAssembler();
36 
39  void registerPageCreator(DtPageCreator* creator);
40 
42  void unregisterPageCreator(DtPageCreator* creator, bool deleteCreator = true);
43 
45  DtPageCreator* findPageCreator(const std::string& pageClassName) const;
46 
47  protected:
48 
51 
53  virtual void assembleCollection(const DtPagePath& pagePath, const DtUnicode& pageTitle,
55 
57  virtual void assemblePage(const DtPagePath& pagePath);
58 
60  virtual void updatePage( const DtPagePath& pagePath, const DtPageConfiguration::PageCollectionState& state);
61 
63  virtual void tabify( const DtPagePath& pagePath1, const DtPagePath& pagePath2 );
64 
66  virtual void setSelectedPage(const DtPagePath& pPath);
67 
68  QWidget* mainWindow();
69 
70  protected:
71 
72  typedef boost::unordered_map<std::string,DtPageCreator*> PageCreatorMap;
75  };
76 
81  {
82  public:
83 
87 
89  virtual ~DtQtPageAssemblerCreator();
90 
92  virtual DtPageAssembler* create(DtDe& de);
93 
94  };
95 }
A unicode string.
Definition: DtUnicode.h:33
Definition: DtPageConfiguration.h:83
The page creator.
Definition: DtPage.h:114
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
This is the Qt specific implementation of the page assembler.
Definition: DtQtPageAssembler.h:26
The creator for the DtPageAssembler.
Definition: DtPageAssembler.h:121
The base assembler is a singleton which assembles the pages defined in a Page Configuration.
Definition: DtPageAssembler.h:27
PageCreatorMap myPageCreatorMap
Definition: DtQtPageAssembler.h:73
A page path is the location of a page based upon its parents.
Definition: DtPagePath.h:21
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains makVrv::DtPageAssembler class.
boost::unordered_map< std::string, DtPageCreator * > PageCreatorMap
Definition: DtQtPageAssembler.h:72
This class replaces the DtPageAssemblerCreator to create a DtQtPageAssembler for the DtPageAssembler ...
Definition: DtQtPageAssembler.h:80
QWidget * myMainWindowCache
Definition: DtQtPageAssembler.h:74

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)