VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSceneGraphTreeWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSceneGraphTreeWidget.h,v $ $Revision: 1.27 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #pragma once
13 #include <vrvCoreQt/DtPage.h>
14 
15 #include <vrvOsgQt/vrvOsgQt.h>
18 #include <QtGui/QTreeWidget>
19 
20 namespace osg
21 {
22  class Node;
23 }
24 
25 class QTreeWidgetItem;
26 class QPushButton;
27 class QCheckBox;
28 
29 namespace makVrv
30 {
31  class DtVrvApplication;
32  class DtQtDeMainWindow;
33 
38  {
39 
40  Q_OBJECT
41 
42  public:
43 
45  virtual ~DtSceneGraphTreeWidget();
46 
48  virtual QIcon icon();
49 
51  virtual QString title();
52 
54  virtual const std::string& pageClassName() const;
55 
57  virtual void clear();
58 
60  virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem,
61  QTreeWidgetItem* pParent);
62 
64  virtual QTreeWidgetItem* rootItem();
65 
67  virtual void onActivate();
68 
70  virtual void onDeactivate();
71 
72  protected slots:
73 
74  void updateSize();
75  void refresh();
76  void expandAll();
77 
78  protected:
79 
82 
84  DtSceneGraphTreeWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
85 
87  virtual void activate();
88 
90  virtual void deactivate();
91 
92  virtual void showEvent(QShowEvent *);
93 
94  void setupGui();
95 
96  protected:
97 
98  std::string myClassName;
104  };
105 
109  {
110  public:
111 
114 
117 
121  virtual std::string pageClassName() const;
122 
124  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
125  };
126 
127 }
128 
129 
130 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)