VR-Forces 4.8 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 
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:26
PageMap myPages
Definition: DtQtPageCollection.h:79
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
This class provides an interface to Page collection widgets.
Definition: DtPageCollection.h:27
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.
Definition: DtDe.h:69
boost::unordered_map< std::string, DtPage * > PageMap
Definition: DtQtPageCollection.h:29

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)