VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtPlanListBoxItem.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: DtPlanListBoxItem.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#pragma once
13
14
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
15
16
#include <
vrfplan/stmtIndex.h
>
17
#include <vlutil/vlString.h>
18
19
#include <QtGui/QImage>
20
#include <QtGui/QTreeWidget>
21
22
namespace
makVrf
23
{
24
class
DT_DLL_VRFGUICOREQT
DtPlanListBoxItem
:
public
QTreeWidgetItem
25
{
26
public
:
27
DtPlanListBoxItem
(
const
QString & text = QString::null,
bool
showCurrentAsArrow =
false
);
28
DtPlanListBoxItem
(
const
DtStmtIndex
& index,
29
const
QString& indent,
bool
showCurrentAsArrow =
false
);
30
virtual
~
DtPlanListBoxItem
();
31
32
virtual
void
setStatementIndex(
const
DtStmtIndex
index);
33
virtual
const
DtStmtIndex
& statementIndex()
const
;
34
35
virtual
void
setIndent(
const
QString& indent);
36
virtual
const
QString& indent()
const
;
37
38
virtual
void
setBlockIndex(
int
index);
39
virtual
int
blockIndex()
const
;
40
41
virtual
void
setPlanText(
const
QString&);
42
44
virtual
QString planItemText()
const
;
45
46
QTreeWidgetItem
* prev();
47
50
virtual
void
setCurrent(
bool
);
51
bool
current()
const
;
52
54
virtual
QVariant data(
int
col,
int
role)
const
;
55
57
virtual
const
QImage& arrowIcon()
const
;
58
59
virtual
QString stringRep()
const
;
60
61
protected
:
62
DtStmtIndex
myStatementIndex
;
63
QString
myIndent
;
64
int
myBlockIndex
;
65
bool
myCurrent
;
66
bool
myShowCurrentAsArrow
;
67
68
static
QImage
theCurrentArrow
;
69
};
70
71
inline
bool
DtPlanListBoxItem::current
()
const
72
{
73
return
myCurrent
;
74
}
75
}
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)