VR-Forces 4.5 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
taskAggregateBombLocationDialog.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/baseTaskSetDialogInterface.h
>
15
#include <
vrfutil/rwPropertiesMap.h
>
16
17
class
QLabel
;
18
class
QLineEdit
;
19
class
QComboBox
;
20
class
QIntValidator;
21
class
QGridLayout;
22
class
QGroupBox;
23
class
QSpinBox
;
24
25
namespace
makVrf
26
{
27
class
DtAltitudeEntryWidget;
28
class
DtWeaponSelectionWidget;
29
class
DtLocationEntryWidget;
30
31
class
DT_DLL_VRFGUICOREQT
DtTaskAggregateBombLocationDialog
:
public
DtBaseTaskSetDialogInterface
32
{
33
Q_OBJECT
34
public
:
35
//CTOR
36
DtTaskAggregateBombLocationDialog
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
37
38
//DTOR
39
virtual
~
DtTaskAggregateBombLocationDialog
();
40
41
virtual
int
numberOfBombs()
const
;
42
virtual
void
setNumberOfBombs(
int
);
43
44
virtual
QString weapon()
const
;
45
virtual
void
setWeapon(
const
QString&);
46
47
virtual
DtVector
targetLocation()
const
;
48
virtual
void
setTargetLocation(
const
DtVector
&);
49
50
virtual
void
setLocationValid(
bool
);
51
virtual
void
validate();
52
53
protected
:
54
virtual
QWidget
* contents(
const
std::vector<makVrv::DtSimEntry*>& data);
55
56
virtual
void
setupStatement(
const
DtSimStatement
* stmt);
57
58
protected
:
59
virtual
void
sendRequest();
60
virtual
void
setupFrom(
const
std::vector<makVrv::DtSimEntry*>& d);
61
virtual
bool
valid()
const
;
62
63
protected
slots:
64
68
void
slot_onWeaponChanged(
const
QString& weaponName);
69
72
void
slot_onBombsChanged(
int
num);
73
74
public
:
75
QWidget
*
myCanvas
;
76
QGridLayout*
myGridLayout
;
77
78
DtLocationEntryWidget
*
myTargetLocation
;
79
80
QLabel
*
myNumBombsLabel
;
81
QSpinBox
*
myNumBombs
;
82
83
QLabel
*
myWeaponLabel
;
84
QComboBox
*
myWeapon
;
85
86
QGroupBox*
myWeaponInfoBox
;
87
QGridLayout*
myWeaponInfoLayout
;
88
89
QLabel
*
myWeaponRangeLabel
;
90
QLabel
*
myWeaponRange
;
91
QLabel
*
myBlastRadiusLabel
;
92
QLabel
*
myBlastRadius
;
93
QLabel
*
mySecondsPerBombLabel
;
94
QLabel
*
mySecondsPerBomb
;
95
QLabel
*
myStrengthPerBombLabel
;
96
QLabel
*
myStrengthPerBomb
;
97
QLabel
*
myTotalBombsLabel
;
98
QLabel
*
myTotalBombs
;
99
QLabel
*
myDamageTypeAttack
;
100
QLabel
*
myDamageType
;
101
103
104
DtRwPropertiesMap
myPowers
;
105
DtRwPropertiesMap
myAmmunition
;
106
DtVector
myLocation
;
108
109
protected
:
110
bool
myLocationValid
;
111
};
112
113
class
DT_DLL_VRFGUICOREQT
DtTaskAggregateBombLocationDialogCreator
:
public
DtVrfTaskDialogCreator
114
{
115
public
:
116
virtual
DtTaskSetDialogInterface
* create(
makVrv::DtDe
&,
QWidget
* parent);
117
virtual
bool
supportsType(
makVrv::DtDe
&,
const
DtSimTaskMessageType
&,
const
DtSimStatement
*)
const
;
118
};
119
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)