VR-Forces 4.8 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 /******************************************************************************
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 }
A unicode string.
Definition: DtUnicode.h:33
Definition: DtPageConfiguration.h:83
The page creator.
Definition: DtPage.h:117
#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:29
The creator for the DtPageAssembler.
Definition: DtPageAssembler.h:124
The base assembler is a singleton which assembles the pages defined in a Page Configuration.
Definition: DtPageAssembler.h:30
PageCreatorMap myPageCreatorMap
Definition: DtQtPageAssembler.h:76
A page path is the location of a page based upon its parents.
Definition: DtPagePath.h:24
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:75
This class replaces the DtPageAssemblerCreator to create a DtQtPageAssembler for the DtPageAssembler ...
Definition: DtQtPageAssembler.h:83
QWidget * myMainWindowCache
Definition: DtQtPageAssembler.h:77

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)