MAK RTIspy API Documentation for HLA Evolved
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
libsrc
rtiAssistantApp
propertyListViewItem.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2012 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#ifndef propertyListViewItem_H_
10
#define propertyListViewItem_H_
11
12
13
#include <
rtiMsConfig.h
>
14
#include <QtGui/QTreeWidget>
15
#include <QtGui/QTreeWidgetItem>
16
#include <QtGui/QItemDelegate>
17
18
class
DtPropertyListViewItemDelegate
:
public
QItemDelegate
19
{
20
public
:
21
DtPropertyListViewItemDelegate
(
QWidget
*);
22
23
protected
:
24
virtual
void
paint
(QPainter * p,
const
QStyleOptionViewItem& option,
25
const
QModelIndex& index)
const
;
26
};
27
28
class
DtPropertyListView
;
29
class
DtProperty
;
30
class
DtPropertyEditorWidget
;
31
37
class
DT_DLL_ASSISTANTAPP
DtPropertyListViewItem
:
public
QTreeWidgetItem
38
{
39
public
:
40
41
DtPropertyListViewItem
(
DtPropertyListView
*,
const
DtProperty
*);
42
DtPropertyListViewItem
(
QTreeWidgetItem
*,
const
DtProperty
*);
43
44
virtual
~
DtPropertyListViewItem
();
45
46
virtual
void
expandAll();
47
48
virtual
void
collapseAll();
49
50
// Return the editor widget for the displayed property data
51
virtual
DtPropertyEditorWidget
* editor();
52
53
// Set the text displayed in the editor widget
54
virtual
void
setEditorText
(
const
QString&){};
55
56
// Return the text currently displayed in the editor widget
57
virtual
QString
editorText
() {
return
QString::null; };
58
59
virtual
bool
operator<(
const
QTreeWidgetItem
&)
const
;
60
virtual
bool
operator<(
const
DtPropertyListViewItem
&)
const
;
61
62
DtProperty
* property();
63
const
DtProperty
* property()
const
;
64
65
void
setChanged(
bool
);
66
void
setShowCheckBox(
bool
);
67
bool
showCheckBox()
const
;
68
69
protected
:
70
DtPropertyEditorWidget
*
myEditor
;
71
DtProperty
*
myProperty
;
72
73
bool
myIsChanged
;
74
bool
myShowCheckBox
;
75
};
76
77
78
#endif
79
Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)