VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtQtPageCollection.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 namespace makVrv
16 {
17  class DtPage;
18 
24  {
25  public:
26  typedef boost::unordered_map<std::string,DtPage*> PageMap;
27 
29  DtQtPageCollection(DtDe& de, const std::string& collectionClassName);
30 
33  virtual ~DtQtPageCollection();
34 
37  void addPage(DtPage* page);
38 
41  void removePage(DtPage* page, bool deletePage = true);
42 
44  DtPage* findPage(const std::string& pageClassName);
45 
47  const DtPage* findPage(const std::string& pageClassName) const;
48 
50  const PageMap& pages() const;
51 
53  virtual void removeContainer();
54 
56  virtual void bringToTop();
57 
58  protected:
59 
60  virtual void activatePage(DtPage*);
61  virtual void deactivatePage(DtPage*);
62 
64  virtual void selectPage(const std::string& pageClassName);
65 
67  virtual void addPageToGui(DtPage*) = 0;
68 
70  virtual void removePageFromGui(DtPage*) = 0;
71 
73  virtual void selectPageInGui(DtPage* page) = 0;
74 
75  protected:
77  };
78 }
79 
The DtQtPageCollection is an abstract class which implements the page collection interface, and can be used extended by specific Qt implementations such as a tabbed panel or dialog.
Definition: DtQtPageCollection.h:23
PageMap myPages
Definition: DtQtPageCollection.h:76
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
This class provides an interface to Page collection widgets. These widgets may be implemented as dock...
Definition: DtPageCollection.h:24
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
Contains makVrv::DtPageCollection class.
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
boost::unordered_map< std::string, DtPage * > PageMap
Definition: DtQtPageCollection.h:26

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)