VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
appsrc
vrfOpdEditor
propertyResourceList.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <
vrvUtil/signalslib.h
>
9
10
#include "
propertyRWList.h
"
11
12
class
DtSimResourceList
;
13
class
DtSimResource
;
14
class
DtPropertyResourceCreationDialog
;
15
16
class
DtPropertyResourceList
:
public
DtPropertyRWList
17
{
18
Q_OBJECT
19
20
public
:
21
DtPropertyResourceList
(
makVrv::DtDe
&,
DtPropertySheet
*,
const
QString& title,
22
DtReaderWriter
* var,
DtReaderWriter
* backup);
23
DtPropertyResourceList
(
makVrv::DtDe
&,
DtPropertyItem
*,
DtPropertySheet
*,
const
QString& title,
24
DtReaderWriter
* var,
DtReaderWriter
* backup);
25
26
static
DtPropertyItem
*
create
(
makVrv::DtDe
&,
DtPropertySheet
*,
DtPropertyItem
*,
const
QString& title,
27
DtReaderWriter
* var,
DtReaderWriter
* backup);
28
29
virtual
void
init
();
30
31
void
setCanDeleteItem
(
bool
);
32
33
protected
:
34
virtual
bool
canCreateItem
()
const
;
35
virtual
void
addNewPropertyItem
(
DtPropertyCreationDialog
* d);
36
virtual
DtSimResource
*
createResource
(
DtPropertyResourceCreationDialog
* dlg);
37
38
protected
:
39
virtual
bool
canDeleteItem
()
const
;
40
41
// Dynamically casts resource value to set correct amount (full and current)
42
virtual
void
setResourceValue
(
DtSimResource
*,
DtPropertyResourceCreationDialog
*);
43
virtual
QString
addToolTip
()
const
;
44
45
protected
:
46
bool
myCanDeleteItem
;
47
};
48
49
inline
void
DtPropertyResourceList::setCanDeleteItem
(
bool
b)
50
{
51
myCanDeleteItem
= b;
52
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)