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
vrfGuiCoreQt
simulationCommandDialogInterface.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrvUtil/signalslib.h
>
14
15
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
16
#include <
vrfGuiCoreQt/baseTaskSetDialogInterface.h
>
17
18
#include <QtGui/QWidget>
19
20
namespace
makVrv
21
{
22
class
DtDe;
23
class
DtSimEntry;
24
struct
DtEntityState;
25
class
DtSimObjectEntry;
26
}
27
28
static
const
Qt::WindowFlags
theSimulationCommandSetCreationFlags
=
29
Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint;
30
31
class
QWidget
;
32
class
DtSimCommand
;
33
class
DtString
;
34
class
DtSimStatement
;
35
36
namespace
makVrf
37
{
38
class
DtSimulationCommandDialogInterface;
39
40
//* This wrapper MUST be used for all sim commands that take an object. The subclass will be
41
//* implemented by the individual sim command dialogs to appropriately set the object name
42
43
class
DT_DLL_VRFGUICOREQT
DtSimCommandObjectWrapper
44
{
45
public
:
46
DtSimCommandObjectWrapper
(
makVrv::DtDe
&,
const
DtSimCommand
&);
47
DtSimCommandObjectWrapper
(
const
DtSimCommandObjectWrapper
&);
48
virtual
~
DtSimCommandObjectWrapper
();
49
50
virtual
void
setObjectName(
const
DtString
&) = 0;
51
virtual
DtString
objectName()
const
= 0;
52
53
virtual
DtSimCommandObjectWrapper
* clone()
const
= 0;
54
55
DtSimCommand
* simCommand()
56
{
57
return
mySimCommand;
58
}
59
60
const
DtSimCommand
* simCommand()
const
61
{
62
return
mySimCommand;
63
}
64
65
protected
:
66
DtSimCommand
*
mySimCommand
;
67
makVrv::DtDe
&
myDe
;
68
};
69
71
class
DT_DLL_VRFGUICOREQT
DtVrfSimulationCommandDialogCreator
72
{
73
public
:
74
virtual
DtSimulationCommandDialogInterface
* create(
makVrv::DtDe
&,
QWidget
* parent) = 0;
75
virtual
bool
supportsType(
makVrv::DtDe
&,
const
DtSimCommandMessageType
&,
const
DtSimStatement
* stmt)
const
= 0;
76
virtual
std::string objectNameFromStatement(
makVrv::DtDe
&,
const
DtSimCommand
*)
const
= 0;
77
};
78
79
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandDialogInterface
:
public
DtBaseTaskSetDialogInterface
80
{
81
public
:
82
//CTOR
83
DtSimulationCommandDialogInterface
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
84
85
protected
:
86
virtual
QWidget
* contents(
const
std::vector<makVrv::DtSimEntry*>& data);
87
};
88
}
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
)