VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 
35  {
36  Q_OBJECT
37  public:
38  //CTOR
39  DtTaskAggregateIndirectFireDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
40 
41  //DTOR
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 DtUUID&);
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 
91 
94 
97 
98  QGroupBox* myWeaponInfoBox;
99  QGridLayout* myWeaponInfoLayout;
100 
115 
117 
119 
124  };
125 
127  {
128  public:
129  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
130  virtual bool supportsType(makVrv::DtDe&, const DtSimTaskMessageType&, const DtSimStatement*) const;
131  };
132 }
DtRwPropertiesMap myAmmunition
Storage for properties of the entity being tasked.
Definition: taskAggregateIndirectFireDialog.h:121
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
QLabel * myWeaponRange
Definition: taskAggregateIndirectFireDialog.h:102
QLabel * myDamageTypeAttack
Definition: taskAggregateIndirectFireDialog.h:113
Definition: taskSetDialogInterface.h:84
QLabel * mySecondsPerAttackLabel
Definition: taskAggregateIndirectFireDialog.h:105
QGroupBox * myWeaponInfoBox
Definition: taskAggregateIndirectFireDialog.h:98
QLabel * myMaxSheafRadiusLabel
Definition: taskAggregateIndirectFireDialog.h:103
QLabel * myTotalRoundsLabel
Definition: taskAggregateIndirectFireDialog.h:111
QGridLayout * myGridLayout
Definition: taskAggregateIndirectFireDialog.h:87
Definition: taskAggregateIndirectFireDialog.h:126
DtVector myLocation
Storage for properties of the entity being tasked.
Definition: taskAggregateIndirectFireDialog.h:122
QGridLayout * myWeaponInfoLayout
Definition: taskAggregateIndirectFireDialog.h:99
QLabel * myDamageType
Definition: taskAggregateIndirectFireDialog.h:114
DtRwPropertiesMap myPowers
Storage for properties of the entity being tasked.
Definition: taskAggregateIndirectFireDialog.h:120
QLineEdit * mySheafRadius
Definition: taskAggregateIndirectFireDialog.h:93
QLabel * myTotalRounds
Definition: taskAggregateIndirectFireDialog.h:112
Acts as a map for properties. A map is a definition that has a key and a prototype, with values being the key and prototype pair. The key can only be a string (DtRwStringType), int (DtRwIntType, DtRwInt8Type, DtRwInt16Type, DtRwInt32Type), or real (DtRwRealType, DtRwReal32Type, DtRwReal64Type).
Definition: rwPropertiesMap.h:41
QLabel * myStrengthPerAttack
Definition: taskAggregateIndirectFireDialog.h:108
QLabel * myWeaponRangeLabel
Definition: taskAggregateIndirectFireDialog.h:101
Class that is used as a template for task/set dialogs.
Definition: taskSetDialogInterface.h:46
QLabel * myAttacksLabel
Definition: taskAggregateIndirectFireDialog.h:89
QLabel * mySheafRadiusLabel
Definition: taskAggregateIndirectFireDialog.h:92
QLabel * myRoundsPerAttack
Definition: taskAggregateIndirectFireDialog.h:110
Definition: baseFilteredListViewTaskSetDialog.h:35
QLabel * mySecondsPerAttack
Definition: taskAggregateIndirectFireDialog.h:106
QLabel * myStrengthPerAttackLabel
Definition: taskAggregateIndirectFireDialog.h:107
class DtSimStatement:
Definition: simStatement.h:38
QLabel * myRoundsPerAttackLabel
Definition: taskAggregateIndirectFireDialog.h:109
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
QSpinBox * myAttacks
Definition: taskAggregateIndirectFireDialog.h:90
QComboBox * myWeapon
Definition: taskAggregateIndirectFireDialog.h:96
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
Definition: taskAggregateIndirectFireDialog.h:34
QLabel * myMaxSheafRadius
Definition: taskAggregateIndirectFireDialog.h:104
QLabel * myWeaponLabel
Definition: taskAggregateIndirectFireDialog.h:95
double myWeaponRangeValue
Definition: taskAggregateIndirectFireDialog.h:116
QWidget * myFullCanvas
Definition: taskAggregateIndirectFireDialog.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)