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