VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsgQt
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
>
16
#include <
vrvOsgQt/DtSceneGraphTreeLogic.h
>
17
#include <
vrvOsgQt/DtSceneGraphTreeWidgetInterface.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
36
class
DT_DLL_VRVOSGQT
DtSceneGraphTreeWidget
:
public
DtPage
,
37
public
DtSceneGraphTreeWidgetInterface
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
80
friend
class
DtSceneGraphTreeWidgetCreator
;
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
;
98
QTreeWidget
*
myTreeWidget
;
99
QPushButton
*
myRefreshButton
;
100
QCheckBox
*
myResizeBox
;
101
DtSceneGraphTreeLogic
*
myLogic
;
102
};
103
106
class
DT_DLL_VRVOSGQT
DtSceneGraphTreeWidgetCreator
:
public
DtPageCreator
107
{
108
public
:
109
111
DtSceneGraphTreeWidgetCreator
(
DtDe
& de);
112
114
virtual
~
DtSceneGraphTreeWidgetCreator
();
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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)