VR-Forces 4.6 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
16 #include <boost/unordered_map.hpp>
17 
18 namespace makVrv
19 {
20  class DtPage;
21 
27  {
28  public:
29  typedef boost::unordered_map<std::string,DtPage*> PageMap;
30 
32  DtQtPageCollection(DtDe& de, const std::string& collectionClassName);
33 
36  virtual ~DtQtPageCollection();
37 
40  void addPage(DtPage* page);
41 
44  void removePage(DtPage* page, bool deletePage = true);
45 
47  DtPage* findPage(const std::string& pageClassName);
48 
50  const DtPage* findPage(const std::string& pageClassName) const;
51 
53  const PageMap& pages() const;
54 
56  virtual void removeContainer();
57 
59  virtual void bringToTop();
60 
61  protected:
62 
63  virtual void activatePage(DtPage*);
64  virtual void deactivatePage(DtPage*);
65 
67  virtual void selectPage(const std::string& pageClassName);
68 
70  virtual void addPageToGui(DtPage*) = 0;
71 
73  virtual void removePageFromGui(DtPage*) = 0;
74 
76  virtual void selectPageInGui(DtPage* page) = 0;
77 
78  protected:
80  };
81 }
82 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)