VR-Forces 5.0.3 Developer's Guide
 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. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
Definition: DtPageConfiguration.h:83
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
This is the Qt specific implementation of the page assembler. Actual page creators must be registered...
Definition: DtQtPageAssembler.h:26
The creator for the DtPageAssembler. Subclasses replace this class to replace the page assembler inst...
Definition: DtPageAssembler.h:121
The base assembler is a singleton which assembles the pages defined in a Page Configuration. A GUI specific subclass is written to actually create the pages in the GUI. Example: makVrv::DtQtPageAssembler.
Definition: DtPageAssembler.h:27
PageCreatorMap myPageCreatorMap
Definition: DtQtPageAssembler.h:73
A page path is the location of a page based upon its parents. A page path usually only consists of a ...
Definition: DtPagePath.h:21
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)