VR-Forces 4.3.1 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
include
entityEditorImpl
enumerationWidget.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
entityEditorImpl/entityEditorImplDefines.h
"
12
#include <QtGui/QWidget>
13
#include <
vrfGuiCore/disDictionaryInterface.h
>
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
#include <
vrfGuiCore/entityMapperKey.h
>
16
17
class
QLabel
;
18
class
QPushButton
;
19
class
QCheckBox
;
20
21
class
DT_DLL_entityeditorimpl
DtEnumerationWidget
:
public
QWidget
22
{
23
Q_OBJECT
24
25
public
:
26
28
DtEnumerationWidget
(
makVrv::DtDe
&,
QWidget
* parent = NULL,
const
Qt::WindowFlags& flags = 0);
29
31
virtual
~
DtEnumerationWidget
();
32
34
virtual
void
init
(
bool
showSubordinateChangeCheckbox);
35
virtual
void
setObjectType(
const
makVrf::DtEntityMapperKey
&);
36
virtual
void
clearContents();
37
virtual
const
makVrf::DtEntityMapperKey
& objectType()
const
;
38
39
virtual
void
setMatchingTypeEnabled(
bool
);
40
virtual
bool
matchingTypeEnabled()
const
;
41
virtual
void
setMatchingType(
const
makVrf::DtEntityMapperKey
&);
42
virtual
const
makVrf::DtEntityMapperKey
& matchingType()
const
;
43
44
public
slots:
45
virtual
bool
changeEnumeration(
const
QString& title =
""
,
bool
okEnabled =
false
);
46
virtual
void
canSetEnumerationWithMatchingType(
const
DtObjectType&,
const
DtObjectType&);
47
virtual
void
canSetEnumeration(
const
DtObjectType&);
48
49
signals:
50
void
typeChanged(
const
makVrf::DtEntityMapperKey
&,
bool
);
51
void
typeChangedWithMatchingType(
const
makVrf::DtEntityMapperKey
&,
const
makVrf::DtEntityMapperKey
&,
bool
);
52
53
public
:
54
QLabel
*
myEnumeration
;
55
QPushButton
*
myOK
;
56
57
protected
:
58
makVrf::DtEntityMapperKey
myObjectType
;
59
makVrf::DtEntityMapperKey
myMatchingType
;
60
makVrv::DtDe
&
myDe
;
61
bool
myMatchingTypeEnabled
;
62
bool
myShowSubordinateChangeCheckbox
;
63
};
64
65
inline
bool
DtEnumerationWidget::matchingTypeEnabled
()
const
66
{
67
return
myMatchingTypeEnabled
;
68
}
69
70
inline
const
makVrf::DtEntityMapperKey
&
DtEnumerationWidget::objectType
()
const
71
{
72
return
myObjectType
;
73
}
74
75
inline
const
makVrf::DtEntityMapperKey
&
DtEnumerationWidget::matchingType
()
const
76
{
77
return
myMatchingType
;
78
}
79
81
class
DT_DLL_entityeditorimpl
DtEnumerationWidgetCreator
:
public
makVrv::DtVirtualBaseClass
82
{
83
public
:
85
DtEnumerationWidgetCreator
(
makVrv::DtDe
&);
86
88
virtual
~
DtEnumerationWidgetCreator
();
89
91
static
DtEnumerationWidgetCreator
& instance(
makVrv::DtDe
&);
92
94
static
void
registerInstance(
makVrv::DtDe
&,
DtEnumerationWidgetCreator
*);
95
97
virtual
DtEnumerationWidget
* create(
QWidget
* parent);
98
99
protected
:
100
makVrv::DtDe
&
myDe
;
101
};
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)