VR-Forces 4.3 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
propertyOrderableList.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
DtComponentDescriptor
;
13
14
class
DtPropertyOrderableList
:
public
DtPropertyRWList
15
{
16
Q_OBJECT
17
18
public
:
19
DtPropertyOrderableList
(
makVrv::DtDe
&,
DtPropertySheet
*,
const
QString& title,
20
DtReaderWriter
* var,
DtReaderWriter
* backup);
21
DtPropertyOrderableList
(
makVrv::DtDe
&,
DtPropertyItem
*,
DtPropertySheet
*,
const
QString& title,
22
DtReaderWriter
* var,
DtReaderWriter
* backup);
23
24
virtual
void
setCanPrioritize
(
bool
);
25
bool
canPrioritize
()
const
;
26
27
// Returns true if this item has the supplied descriptor
28
virtual
bool
hasDescriptor
(
const
DtString
&);
29
30
protected
:
31
virtual
bool
canCreateItem
()
const
;
32
virtual
void
initConnections
(
DtPropertyItem
*);
33
virtual
void
restoreList
();
34
virtual
void
addNewPropertyItem
(
DtPropertyCreationDialog
* d);
35
36
// Adds a new item nased on the original and backup reader/writer variables
37
// Called as part of adding a new item to the list
38
virtual
DtPropertyItem
*
addPropertyItem
(
DtReaderWriter
*,
DtReaderWriter
*,
bool
createPropertyItem =
true
) = 0;
39
40
virtual
DtComponentDescriptor
*
createDescriptor
(
const
char
* name);
41
virtual
DtPropertyItem
*
addPropertyItem
(
DtPICreator
itemToCreate,
42
DtReaderWriter
* rwCurrentType,
DtReaderWriter
* rwBackupType,
bool
createPropertyItem);
43
44
virtual
void
setupListItems
(
DtPICreator
itemToCreate);
45
46
protected
slots:
47
virtual
void
childUpdated
();
48
49
protected
:
50
bool
myCanPrioritize
;
51
};
52
53
inline
bool
DtPropertyOrderableList::canPrioritize
()
const
54
{
55
return
myCanPrioritize
;
56
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)