VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
widgets
propertyListViewItem.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#ifndef propertyListViewItem_H_
10
#define propertyListViewItem_H_
11
12
13
#include <namespace.h>
14
#include <QtGui/QTreeWidget>
15
#include <QtGui/QTreeWidgetItem>
16
#include <QtGui/QItemDelegate>
17
18
namespace
MAKVrExchange
19
{
20
21
class
DtPropertyListViewItemDelegate
:
public
QItemDelegate
22
{
23
public
:
24
DtPropertyListViewItemDelegate
(
QWidget
*);
25
26
protected
:
27
virtual
void
paint
(QPainter * p,
const
QStyleOptionViewItem& option,
28
const
QModelIndex& index)
const
;
29
};
30
31
class
DtPropertyListView
;
32
class
DtProperty
;
33
class
DtPropertyEditorWidget
;
34
40
class
DT_DLL_VRXWIDGETS
DtPropertyListViewItem
:
public
QTreeWidgetItem
41
{
42
public
:
43
44
DtPropertyListViewItem
(
DtPropertyListView
*,
const
DtProperty
*);
45
DtPropertyListViewItem
(
QTreeWidgetItem
*,
const
DtProperty
*);
46
47
virtual
~
DtPropertyListViewItem
();
48
49
virtual
void
expandAll();
50
51
virtual
void
collapseAll();
52
53
// Return the editor widget for the displayed property data
54
virtual
DtPropertyEditorWidget
* editor();
55
56
// Set the text displayed in the editor widget
57
virtual
void
setEditorText
(
const
QString&){};
58
59
// Return the text currently displayed in the editor widget
60
virtual
QString
editorText
() {
return
QString::null; };
61
62
virtual
bool
operator<(
const
QTreeWidgetItem
&)
const
;
63
virtual
bool
operator<(
const
DtPropertyListViewItem
&)
const
;
64
65
DtProperty
* property();
66
const
DtProperty
* property()
const
;
67
68
void
setChanged(
bool
);
69
void
setShowCheckBox(
bool
);
70
bool
showCheckBox()
const
;
71
72
protected
:
73
DtPropertyEditorWidget
*
myEditor
;
74
DtProperty
*
myProperty
;
75
76
bool
myIsChanged
;
77
bool
myShowCheckBox
;
78
};
79
80
}
81
82
#endif
83
Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)