VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 
32  {
33  Q_OBJECT
34  public:
35  //CTOR
36  DtTaskAggregateBombLocationDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
37 
38  //DTOR
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 
79 
82 
85 
86  QGroupBox* myWeaponInfoBox;
87  QGridLayout* myWeaponInfoLayout;
88 
101 
103 
108 
109  protected:
111  };
112 
114  {
115  public:
116  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
117  virtual bool supportsType(makVrv::DtDe&, const DtSimTaskMessageType&, const DtSimStatement*) const;
118  };
119 }
QLabel * myWeaponRangeLabel
Definition: taskAggregateBombLocationDialog.h:89
QComboBox * myWeapon
Definition: taskAggregateBombLocationDialog.h:84
Definition: baseTaskSetDialogInterface.h:33
DtRwPropertiesMap myPowers
Storage for properties of the entity being tasked.
Definition: taskAggregateBombLocationDialog.h:104
Definition: taskSetDialogInterface.h:83
QLabel * myStrengthPerBombLabel
Definition: taskAggregateBombLocationDialog.h:95
DtLocationEntryWidget * myTargetLocation
Definition: taskAggregateBombLocationDialog.h:78
QLabel * myWeaponRange
Definition: taskAggregateBombLocationDialog.h:90
QLabel * myDamageTypeAttack
Definition: taskAggregateBombLocationDialog.h:99
DtVector myLocation
Definition: taskAggregateBombLocationDialog.h:106
DtRwPropertiesMap myAmmunition
Definition: taskAggregateBombLocationDialog.h:105
QGridLayout * myGridLayout
Definition: taskAggregateBombLocationDialog.h:76
bool myLocationValid
Definition: taskAggregateBombLocationDialog.h:110
QGroupBox * myWeaponInfoBox
Definition: taskAggregateBombLocationDialog.h:86
Definition: taskAggregateBombLocationDialog.h:113
Contains makVrf::DtBaseTaskSetDialogInterface class.
QGridLayout * myWeaponInfoLayout
Definition: taskAggregateBombLocationDialog.h:87
QLabel * myTotalBombs
Definition: taskAggregateBombLocationDialog.h:98
QLabel * myTotalBombsLabel
Definition: taskAggregateBombLocationDialog.h:97
QLabel * myWeaponLabel
Definition: taskAggregateBombLocationDialog.h:83
Acts as a map for properties.
Definition: rwPropertiesMap.h:41
QLabel * mySecondsPerBombLabel
Definition: taskAggregateBombLocationDialog.h:93
Class that is used as a template for task/set dialogs.
Definition: taskSetDialogInterface.h:45
Definition: taskAggregateBombLocationDialog.h:31
QLabel * mySecondsPerBomb
Definition: taskAggregateBombLocationDialog.h:94
QLabel * myBlastRadiusLabel
Definition: taskAggregateBombLocationDialog.h:91
class DtSimStatement:
Definition: simStatement.h:35
QLabel * myDamageType
Definition: taskAggregateBombLocationDialog.h:100
QSpinBox * myNumBombs
Definition: taskAggregateBombLocationDialog.h:81
QWidget * myCanvas
Definition: taskAggregateBombLocationDialog.h:75
QLabel * myStrengthPerBomb
Definition: taskAggregateBombLocationDialog.h:96
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Definition: locationEntryWidget.h:44
QLabel * myBlastRadius
Definition: taskAggregateBombLocationDialog.h:92
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
QLabel * myNumBombsLabel
Definition: taskAggregateBombLocationDialog.h:80

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)