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
propertyReaderWriter.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 "
propertyItem.h
"
11
12
class
DtString
;
13
class
DtReaderWriterRegistryData
;
14
15
typedef
struct
DtPropertyItemStruct
16
{
17
QString
key
;
18
DtPICreator
fcn
;
19
}
DtPropertyItemStruct
;
20
21
class
DtPropertyReaderWriter
:
public
DtPropertyItem
22
{
23
Q_OBJECT
24
25
public
:
26
DtPropertyReaderWriter
(
makVrv::DtDe
&,
DtPropertySheet
*,
const
QString& title,
27
DtReaderWriter
* var,
DtReaderWriter
* backup);
28
DtPropertyReaderWriter
(
makVrv::DtDe
&,
DtPropertyItem
*,
DtPropertySheet
*,
const
QString& title,
29
DtReaderWriter
* var,
DtReaderWriter
* backup);
30
31
virtual
~DtPropertyReaderWriter
();
32
33
static
DtPropertyItem
*
create
(
makVrv::DtDe
&,
DtPropertySheet
*,
DtPropertyItem
*,
const
QString& title,
34
DtReaderWriter
* var,
DtReaderWriter
* backup);
35
36
virtual
void
init
();
37
virtual
bool
allowObjectType
()
const
;
38
virtual
bool
isChanged
()
const
;
39
virtual
bool
isNew
()
const
;
40
41
public
:
42
static
void
addFactoryItem
(
const
char
* item,
DtPICreator
fcn);
43
static
DtPropertyItemStruct
*
findPropertyItem
(
const
DtString
&
keyword
);
44
static
DtPropertyItemStruct
*
findPropertyItem
(
DtReaderWriterRegistryData
* d);
45
46
protected
:
47
virtual
void
addPropertyItem
(
DtReaderWriterRegistryData
* d,
48
DtReaderWriterRegistryData
* b);
49
50
// Sets up information based on current and backup list types. Assumes all list
51
// entries are of type reader/writer
52
virtual
void
setupListItems
(
DtReaderWriter
* current,
DtReaderWriter
* backup,
53
DtPICreator
itemToCreate);
54
55
virtual
void
showEditor
();
56
57
virtual
void
restore
();
58
59
protected
:
60
static
QVector<DtPropertyItemStruct>
myPropertyItemFactory
;
61
};
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
)