VR-Forces 4.3 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
taskAggregateIndirectFireDialog.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
14
15
#pragma once
16
17
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
18
#include <
vrfGuiCoreQt/baseFilteredListViewTaskSetDialog.h
>
19
#include <
vrfutil/rwPropertiesMap.h
>
20
21
class
QLabel
;
22
class
QLineEdit
;
23
class
QComboBox
;
24
class
QIntValidator;
25
class
QGridLayout;
26
class
QGroupBox;
27
class
QSpinBox
;
28
29
namespace
makVrf
30
{
31
class
DtAltitudeEntryWidget;
32
class
DtWeaponSelectionWidget;
33
34
class
DT_DLL_VRFGUICOREQT
DtTaskAggregateIndirectFireDialog
:
public
DtBaseFilteredListViewTaskSetDialog
35
{
36
Q_OBJECT
37
public
:
38
//CTOR
39
DtTaskAggregateIndirectFireDialog
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
40
41
//DTOR
42
virtual
~
DtTaskAggregateIndirectFireDialog
();
43
44
virtual
int
numberOfAttacks()
const
;
45
virtual
void
setNumberOfAttacks(
int
);
46
47
virtual
QString weapon()
const
;
48
virtual
void
setWeapon(
const
QString&);
49
50
virtual
double
sheafRadius()
const
;
51
virtual
void
setSheafRadius(
double
);
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
initializeSelectionFilters();
61
virtual
void
setupFrom(
const
std::vector<makVrv::DtSimEntry*>& d);
62
virtual
bool
valid()
const
;
63
virtual
void
slot_onNameChanged(
const
QString& s);
64
66
bool
validWeaponAndAttacks(
const
QString& weaponName,
int
numAttacks)
const
;
67
69
bool
areaIsInRange()
const
;
70
71
protected
slots:
72
76
void
slot_onWeaponChanged(
const
QString& weaponName);
77
80
void
slot_onAttacksChanged(
int
num);
81
83
void
slot_onRadiusChanged(
const
QString& radius);
84
85
public
:
86
QWidget
*
myFullCanvas
;
87
QGridLayout*
myGridLayout
;
88
89
QLabel
*
myAttacksLabel
;
90
QSpinBox
*
myAttacks
;
91
92
QLabel
*
mySheafRadiusLabel
;
93
QLineEdit
*
mySheafRadius
;
94
95
QLabel
*
myWeaponLabel
;
96
QComboBox
*
myWeapon
;
97
98
QGroupBox*
myWeaponInfoBox
;
99
QGridLayout*
myWeaponInfoLayout
;
100
101
QLabel
*
myWeaponRangeLabel
;
102
QLabel
*
myWeaponRange
;
103
QLabel
*
myMaxSheafRadiusLabel
;
104
QLabel
*
myMaxSheafRadius
;
105
QLabel
*
mySecondsPerAttackLabel
;
106
QLabel
*
mySecondsPerAttack
;
107
QLabel
*
myStrengthPerAttackLabel
;
108
QLabel
*
myStrengthPerAttack
;
109
QLabel
*
myRoundsPerAttackLabel
;
110
QLabel
*
myRoundsPerAttack
;
111
QLabel
*
myTotalRoundsLabel
;
112
QLabel
*
myTotalRounds
;
113
QLabel
*
myDamageTypeAttack
;
114
QLabel
*
myDamageType
;
115
116
double
myWeaponRangeValue
;
117
119
120
DtRwPropertiesMap
myPowers
;
121
DtRwPropertiesMap
myAmmunition
;
122
DtVector
myLocation
;
124
};
125
126
class
DT_DLL_VRFGUICOREQT
DtTaskAggregateIndirectFireDialogCreator
:
public
DtVrfTaskDialogCreator
127
{
128
public
:
129
virtual
DtTaskSetDialogInterface
* create(
makVrv::DtDe
&,
QWidget
* parent);
130
virtual
bool
supportsType(
makVrv::DtDe
&,
const
DtSimTaskMessageType
&,
const
DtSimStatement
*)
const
;
131
};
132
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)