VR-Forces 4.1.1 Class Documentation
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 
77  protected:
78 
81 
83  DtSceneGraphTreeWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
84 
86  virtual void activate();
87 
89  virtual void deactivate();
90 
91  virtual void showEvent(QShowEvent *);
92 
93  void setupGui();
94 
95  protected:
96 
97  std::string myClassName;
102  };
103 
107  {
108  public:
109 
112 
115 
119  virtual std::string pageClassName() const;
120 
122  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
123  };
124 
125 }
126 
127 
128 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)