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