VR-Forces 4.7 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
include
simulationObjectEditorImpl
newEntityDialog.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2019 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
#pragma once
9
10
#include "
simulationObjectEditorImpl/simulationObjectEditorImplDefines.h
"
11
#include <
vrvUtil/DtVirtualBaseClass.h
>
12
#include "
vrfutil/rwNLengthStringVector.h
"
13
#include <
vrvUtil/DtUnicode.h
>
14
15
#include <QtWidgets/QDialog>
16
#include <
vrfExtProtocol/objectType.h
>
17
#include <QtGui/QValidator>
18
19
namespace
makVrf
20
{
21
class
DtEntityMapperKey;
22
};
23
24
class
QComboBox
;
25
class
QLineEdit
;
26
class
DtEnumerationWidget
;
27
class
QLabel
;
28
class
QPushButton
;
29
30
namespace
makVrf
31
{
32
class
DtEntityMapperKey;
33
}
34
35
class
DT_DLL_simulationObjectEditorimpl
DtNewEntityDialog
:
public
QDialog
36
{
37
Q_OBJECT
38
39
public
:
40
DtNewEntityDialog
(
makVrv::DtDe
&, QWidget* parent,
const
Qt::WindowFlags& f = 0);
41
42
virtual
bool
init
(
bool
categorySelection =
true
,
int
onlyForKind = -1);
43
44
virtual
QString parameterType()
const
;
45
virtual
DtObjectType
objectType()
const
;
46
47
virtual
QString name()
const
;
48
49
static
DtNewEntityDialog
* create(QWidget* p = NULL);
50
51
virtual
void
setEntityType(
const
DtEntityType&);
52
53
virtual
QString category()
const
;
54
55
virtual
DtRwNLengthStringVector
categories()
const
;
56
57
virtual
DtEntityType templateType()
const
;
58
59
virtual
void
updateTakeVisualsFrom();
60
61
virtual
makVrv::DtUnicode
elementDefinition()
const
;
62
63
virtual
void
setCanSelectVisuals(
bool
b);
64
65
protected
:
66
virtual
void
accept();
67
68
protected
slots:
69
virtual
void
categoryChanged();
70
virtual
DtObjectType
objectTypeSelected()
const
;
71
virtual
void
updateTemplates();
72
virtual
void
templateChanged();
73
virtual
void
updateEntityType(
const
makVrf::DtEntityMapperKey
&);
74
75
public
:
76
QLabel
*
myDescriptionLabel
;
77
QLabel
*
myDescription
;
78
QComboBox
*
myCategories
;
79
QLabel
*
myCategoriesLabel
;
80
QLabel
*
myTemplatesLabel
;
81
QComboBox
*
myTemplates
;
82
QLineEdit
*
myName
;
83
QLabel
*
myNameLabel
;
84
QLabel
*
myEntityTypeLabel
;
85
DtEnumerationWidget
*
myEntityType
;
86
QLabel
*
myTakeVisualsFromLabel
;
87
QComboBox
*
myTakeVisualsFrom
;
88
QPushButton
*
myOKButton
;
89
90
protected
:
91
makVrv::DtDe
&
myDe
;
92
DtEntityType
myTemplateMatch
;
93
int
myLastKind
;
94
bool
myCanSelectVisuals
;
95
};
96
98
class
DT_DLL_simulationObjectEditorimpl
DtNewEntityDialogCreator
:
public
makVrv::DtVirtualBaseClass
99
{
100
public
:
102
DtNewEntityDialogCreator
(
makVrv::DtDe
&);
103
105
virtual
~
DtNewEntityDialogCreator
();
106
108
static
DtNewEntityDialogCreator
& instance(
makVrv::DtDe
&);
109
111
static
void
registerInstance(
makVrv::DtDe
&,
DtNewEntityDialogCreator
*);
112
114
virtual
DtNewEntityDialog
* create(QWidget* parent);
115
116
protected
:
117
makVrv::DtDe
&
myDe
;
118
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)