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
vrfGuiCoreQt
simulationCommandChangeHostility.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 <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
14
#include <
vrfGuiCoreQt/simulationCommandDialogInterface.h
>
15
16
class
DtChangeHostilityCommand
;
17
18
class
QWidget;
19
class
QGridLayout;
20
class
QLabel
;
21
class
QRadioButton;
22
class
QComboBox
;
23
24
namespace
makVrf
25
{
26
class
DT_DLL_VRFGUICOREQT
DtChangeHostilityObjectWrapper
:
public
DtSimCommandObjectWrapper
27
{
28
public
:
29
DtChangeHostilityObjectWrapper
(
makVrv::DtDe
&,
const
DtChangeHostilityCommand
&);
30
DtChangeHostilityObjectWrapper
(
const
DtChangeHostilityObjectWrapper
&);
31
32
virtual
void
setObject(
const
DtUUID
&);
33
virtual
DtUUID
object()
const
;
34
35
virtual
DtSimCommandObjectWrapper
* clone()
const
;
36
};
37
38
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandChangeHostilityWidget
:
public
DtSimulationCommandDialogInterface
39
{
40
Q_OBJECT
41
42
public
:
43
//CTOR
44
DtSimulationCommandChangeHostilityWidget
(
makVrv::DtDe
& de, QWidget* parent,
const
Qt::WindowFlags& flags = 0);
45
46
//DTOR
47
virtual
~
DtSimulationCommandChangeHostilityWidget
();
48
49
virtual
void
setForceOne(
int
);
50
virtual
int
forceOne()
const
;
51
52
virtual
void
setForceTwo(
int
);
53
virtual
int
forceTwo()
const
;
54
55
virtual
void
setForceOneIsHostileToForceTwo(
bool
);
56
virtual
bool
forceOneIsHostileToForceTwo()
const
;
57
58
virtual
void
addForce(
const
std::string&,
int
force);
59
virtual
void
removeForce(
int
force);
60
61
protected
:
62
63
virtual
QWidget* contents(
const
std::vector<makVrv::DtSimEntry*>& data);
64
65
virtual
void
sendRequest();
66
virtual
void
setupStatement(
const
DtSimStatement
*);
67
68
protected
:
69
virtual
bool
wantsSelectionOfObjectInCommandMode()
const
;
70
virtual
void
initializeItems(
const
std::vector<makVrv::DtSimEntry*>& data);
71
72
public
:
73
QWidget*
myCanvas
;
74
QGridLayout*
myMainLayout
;
75
76
QLabel
*
myForceToChangeLabel
;
77
QComboBox
*
myForceToChangeCombo
;
78
79
QLabel
*
myNewStanceLabel
;
80
QRadioButton*
myHostileTo
;
81
QRadioButton*
myFriendlyTo
;
82
83
QLabel
*
myToForceLabel
;
84
QComboBox
*
myToForceCombo
;
85
};
86
87
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandChangeHostilityCreator
:
public
DtVrfSimulationCommandDialogCreator
88
{
89
public
:
90
virtual
DtSimulationCommandDialogInterface
* create(
makVrv::DtDe
&, QWidget* parent);
91
virtual
bool
supportsType(
makVrv::DtDe
&,
const
DtSimCommandMessageType
&,
const
DtSimStatement
*)
const
;
92
virtual
DtUUID
objectFromStatement(
makVrv::DtDe
&,
const
DtSimCommand
*)
const
;
93
};
94
}
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
)