VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDynamicTerrainPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: 169216 $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvOsgQt/vrvOsgQt.h>
16 #include <vrvCoreQt/DtPage.h>
19 
20 #include <QtCore/QModelIndex>
21 
22 class QCheckBox;
23 class QGridLayout;
24 class QPushButton;
25 class QTreeWidget;
26 class QTreeWidgetItem;
27 class QTreeView;
28 class QThread;
29 class QSortFilterProxyModel;
30 class QMenu;
31 
32 namespace makVrv
33 {
34  class DtDynamicTerrainPageLogic;
35 
39  : public DtPage
42  {
43  Q_OBJECT
44 
45  public:
46 
48  DtDynamicTerrainPage(DtDe& de, QWidget* pParent = 0);
49 
50  virtual ~DtDynamicTerrainPage();
51 
52  virtual void executeInNewThread(const boost::function<void ()>& callback);
53 
55  virtual QIcon icon();
56 
58  virtual QString title();
59 
61  virtual const std::string& pageClassName() const;
62 
63  virtual bool processMouseEvent( const DtMouseEvent& ev, DtChannel& channel);
64  virtual bool processKeyboardEvent( const DtKeyEvent& ev, DtChannel& channel);
65 
66  virtual const std::string& className();
67 
68  protected slots:
69  void selectIndex(QModelIndex);
70 
71  void updateSize();
72  void expandAll();
73  void contextMenuAt(const QPoint&);
74 
75  protected:
76 
77  void setupGui();
78  void tearDownGui();
79 
81  virtual void activate();
82 
84  virtual void deactivate();
85 
86  protected:
87 
88  std::string myClassName;
89 
93  QGridLayout* myLayout;
95 
96  QSortFilterProxyModel* myProxyModel;
97  boost::shared_ptr<DtDynamicTerrainPageLogic> myLogic;
98 
100  };
101 
105  {
106  public:
109 
113  virtual std::string pageClassName() const;
114 
116  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
117 
118  };
119 
120 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)