VR-Forces Development_Version 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
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
static
DtPropertyItem
*
create
(
makVrv::DtDe
&,
DtPropertySheet
*,
DtPropertyItem
*,
const
QString& title,
32
DtReaderWriter
* var,
DtReaderWriter
* backup);
33
34
virtual
void
init
();
35
virtual
bool
allowObjectType
()
const
;
36
virtual
bool
isChanged
()
const
;
37
virtual
bool
isNew
()
const
;
38
39
public
:
40
static
void
addFactoryItem
(
const
char
* item,
DtPICreator
fcn);
41
static
DtPropertyItemStruct
*
findPropertyItem
(
const
DtString
&
keyword
);
42
static
DtPropertyItemStruct
*
findPropertyItem
(
DtReaderWriterRegistryData
* d);
43
44
protected
:
45
virtual
void
addPropertyItem
(
DtReaderWriterRegistryData
* d,
46
DtReaderWriterRegistryData
* b);
47
48
// Sets up information based on current and backup list types. Assumes all list
49
// entries are of type reader/writer
50
virtual
void
setupListItems
(
DtReaderWriter
* current,
DtReaderWriter
* backup,
51
DtPICreator
itemToCreate);
52
53
virtual
void
showEditor
();
54
55
virtual
void
restore
();
56
57
protected
:
58
static
QVector<DtPropertyItemStruct>
myPropertyItemFactory
;
59
};
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)