VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
appsrc
vrfOpdEditor
opdParameterPropertySheet.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 "
propertySheet.h
"
11
#include <vlutil/vlString.h>
12
#include <vlpi/entityType.h>
13
#include <map>
14
15
class
DtReaderWriter
;
16
class
DtVrfObjectParameters
;
17
class
DtReaderWriterClassMemberDataRecord
;
18
19
class
DtOpdParameterPropertySheet
:
public
DtPropertySheet
20
{
21
Q_OBJECT
22
23
public
:
24
DtOpdParameterPropertySheet
(
makVrv::DtDe
&, QWidget* parent = NULL);
25
virtual
~DtOpdParameterPropertySheet
();
26
27
void
setObjectParameters
(
DtVrfObjectParameters
*);
28
DtVrfObjectParameters
*
objectParameters
();
29
30
// Looks up the closest parameter documentation for the given item. Assumes
31
// that item has a DtReaderWriter object associated with it. If it cannot
32
// find an entry for the given item, it recursively looks up the tree for
33
// the closest DtReaderWriter parent object that has documentation.
34
virtual
bool
lookupParameterDocumentation
(
DtPropertyItem
* item,
35
DtReaderWriterClassMemberDataRecord
& rwClassMemberDataRec)
const
;
36
37
// Update parameter reference display widget with documentation associated
38
// with selected item.
39
virtual
void
updateParameterReferenceDisplay
(
DtPropertyItem
* item);
40
41
void
setReadOnly
(
bool
b) {
myReadOnly
= b; };
42
43
// So there may be instances where you need to inspect the entity type for a platform file but that's no
44
// longer stored here, it's in the .entity file. So here's a generic mapping for parameter types
45
// to the most basic entity type that describe the type. For example, ground params will map to 1:1:-1:-1:-1:-1:-1
46
virtual
const
DtEntityType&
getEntityTypeFromParamType
(
const
DtString
& paramType);
47
virtual
void
addEntityTypeParamMapping
(
const
DtString
& paramType,
const
DtEntityType& type);
48
49
protected
:
50
virtual
void
valueUpdated
(
DtPropertyItem
*);
51
virtual
void
valueRestored
(
DtPropertyItem
*);
52
virtual
void
valueAdded
(
DtPropertyItem
* newItem,
DtPropertyItem
* parent,
DtPropertyCreationDialog
*,
bool
isNew =
false
);
53
virtual
void
addListVariable
(
DtReaderWriter
* p,
const
char
* var);
54
virtual
void
addBooleanVariable
(
DtReaderWriter
* p,
const
char
* var);
55
56
// Returns the class type of the DtReaderWriter that contains the given
57
// item. Assumes that item has a DtReaderWriter object associated with it.
58
// Returns empty string if parent cannot be found.
59
virtual
DtString
lookupParentRwType
(
DtPropertyItem
* item)
const
;
60
61
public
slots:
62
63
// Override to handle context-senstive help
64
virtual
void
selectionChanged
(
const
QItemSelection&,
const
QItemSelection&);
65
66
signals:
67
void
opdParameterModified
(
DtVrfObjectParameters
*);
68
69
protected
:
70
DtVrfObjectParameters
*
myObjectParameters
;
71
bool
myReadOnly
;
72
std::map<DtString,DtEntityType>
myParamToEntityTypeMap
;
73
};
74
75
inline
DtVrfObjectParameters
*
DtOpdParameterPropertySheet::objectParameters
()
76
{
77
return
myObjectParameters
;
78
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)