VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainqt
terrainFeaturesListEx.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: terrainFeaturesListEx.h,v $ $Revision: 1.6 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef TERRAINFEATURESLISTEX_H_
13
#define TERRAINFEATURESLISTEX_H_
14
16
#include "
terrainqt/terrainFeaturesList.h
"
17
18
#include <QtGui/QPixmap>
19
20
const
int
DtFeatureColorRole
= Qt::UserRole + 3;
21
22
class
DtColor
;
23
24
class
DT_DLL_terrainqt
DtTerrainFeaturesListEx
:
public
DtTerrainFeaturesList
25
{
26
Q_OBJECT
27
28
public
:
29
DtTerrainFeaturesListEx
(
QWidget
* parent);
30
virtual
~
DtTerrainFeaturesListEx
();
31
32
public
:
35
virtual
void
setTerrainDatabase
(
const
DtTerrainDatabase
* db);
36
38
virtual
bool
init
(
bool
useDrawOrdering);
39
45
virtual
bool
commitChanges(DtList& orderedList);
46
49
virtual
void
changeOrderOfSelectedItem(
int
iBy);
50
52
virtual
bool
setFeatureColor
(
int
fid,
const
QColor& color);
53
54
protected
slots:
55
virtual
void
colorCheck(
QTreeWidgetItem
* item, QMouseEvent*,
int
col);
56
57
signals:
58
void
featureColorChanged(
QTreeWidgetItem
*);
59
60
protected
:
62
virtual
QTreeWidgetItem
*
addFeatureEntry
(
const
DtSpecificationStringAttribute
* group,
63
const
DtSpecificationStringAttribute
* groupName,
int
uniqueIdentifier,
int
iSpecification,
DtSpecification
& spec);
64
68
virtual
bool
updateSpecification(
DtFeatureEntry
* entry);
69
70
virtual
void
restore
(
QTreeWidgetItem
* item);
71
72
virtual
void
setColor(
QTreeWidgetItem
* item,
const
DtColor
& color);
73
virtual
bool
pixmapSelected(
QTreeWidgetItem
*,
const
QPoint& pos)
const
;
74
75
protected
:
77
bool
myUseDrawOrdering
;
78
79
QHash<int, DtFeatureEntry*>
myDrawOrder
;
80
};
81
82
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)