VR-Forces 4.6.1 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
multipleOpdParameterPropertySheet.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 "
opdParameterPropertySheet.h
"
11
#include <
vrfobjparam/vrfObjectParameters.h
>
12
13
class
DtMultipleOpdParameterPropertySheet
:
public
DtOpdParameterPropertySheet
14
{
15
Q_OBJECT
16
17
public
:
18
DtMultipleOpdParameterPropertySheet
(
makVrv::DtDe
&, QWidget* parent = NULL);
19
virtual
~DtMultipleOpdParameterPropertySheet
();
20
21
void
setObjectParameters
(
const
QList<DtVrfObjectParameters*>
& current,
22
const
QList<DtVrfObjectParameters*>
& backup);
23
24
protected
:
25
virtual
void
valueUpdated
(
DtPropertyItem
*);
26
virtual
void
valueRestored
(
DtPropertyItem
*);
27
virtual
void
valueAdded
(
DtPropertyItem
* newItem,
DtPropertyItem
* parent,
DtPropertyCreationDialog
*,
bool
isNew =
false
);
28
virtual
DtReaderWriter
*
findValue
(
DtPropertyItem
* p,
DtReaderWriter
* source,
DtReaderWriter
* var);
29
virtual
void
valueRemovedFrom
(
DtPropertyItem
*,
DtPropertyItem
*);
30
31
// Returns true if the registry item needs an exact match based on potential multiple entries (i.e. the
32
// source item has an object type as part of it)
33
virtual
DtReaderWriter
*
needsExactMatch
(
DtPropertyItem
* source)
const
;
34
virtual
DtReaderWriter
*
needsExactMatch
(
const
DtReaderWriterRegistry
& source,
bool
recurse =
true
)
const
;
35
virtual
bool
exactMatch
(
DtReaderWriter
* source,
DtReaderWriter
* dest)
const
;
36
37
// use the fact that it has an object
38
// Uses the name of the source to assign to a hardcoded list type of the
39
// expected opd parameter entry (i.e. Actuators is the actuator list, Controllers
40
// is the controller list, etc).
41
virtual
DtReaderWriter
*
findListValue
(
DtPropertyItem
* p,
DtReaderWriter
* source,
DtReaderWriter
* var);
42
43
// Returns the class type of the DtReaderWriter that contains the given
44
// item. Assumes that item has a DtReaderWriter object associated with it.
45
// Returns empty string if parent cannot be found.
46
virtual
DtString
lookupParentRwType
(
DtPropertyItem
* item)
const
;
47
48
signals:
49
void
multipleValuesRestored
(
DtPropertyItem
*);
50
51
protected
:
52
QList<DtVrfObjectParameters*>
myListParameters
;
53
QList<DtVrfObjectParameters*>
myListBackupParameters
;
54
bool
myInPropertyUpdate
;
55
DtPropertyItem
*
myAddingTo
;
56
};
57
58
inline
void
DtMultipleOpdParameterPropertySheet::setObjectParameters
(
const
QList<DtVrfObjectParameters*>
& current,
59
const
QList<DtVrfObjectParameters*>
& backup)
60
{
61
myListParameters
= current;
62
myListBackupParameters
= backup;
63
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)