VR-Forces 5.0.2 Developer's Guide
 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 
17 
18 class QLabel;
19 class QLineEdit;
20 class QComboBox;
21 class QIntValidator;
22 class QGridLayout;
23 class QGroupBox;
24 class QSpinBox;
25 
26 namespace makVrf
27 {
28  class DtAltitudeEntryWidget;
29  class DtWeaponSelectionWidget;
30  class DtLocationEntryWidget;
31 
33  {
34  Q_OBJECT
35  public:
36  //CTOR
37  DtTaskAggregateBombLocationDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
38 
39  //DTOR
41 
42  virtual int numberOfBombs() const;
43  virtual void setNumberOfBombs(int);
44 
45  virtual QString weapon() const;
46  virtual void setWeapon(const QString&);
47 
48  virtual DtVector targetLocation() const;
49  virtual void setTargetLocation(const DtVector&);
50 
51  virtual void setLocationValid(bool);
52  virtual void validate();
53 
54  protected:
55  virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
56 
57  virtual void setupStatement(const DtSimStatement* stmt);
58 
59  protected:
60  virtual void sendRequest();
61  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& d);
62  virtual bool valid() const;
63 
64  protected slots:
65 
69  void slot_onWeaponChanged(const QString& weaponName);
70 
73  void slot_onBombsChanged(int num);
74 
75  public:
76  QWidget* myCanvas;
77  QGridLayout* myGridLayout;
78 
80 
83 
86 
87  QGroupBox* myWeaponInfoBox;
88  QGridLayout* myWeaponInfoLayout;
89 
102 
104 
109 
110  protected:
113  };
114 
116  {
117  public:
118  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
119  virtual bool supportsType(makVrv::DtDe&, const DtSimTaskMessageType&, const DtSimStatement*) const;
120  };
121 }
QLabel * myWeaponRangeLabel
Definition: taskAggregateBombLocationDialog.h:90
QComboBox * myWeapon
Definition: taskAggregateBombLocationDialog.h:85
Definition: baseTaskSetDialogInterface.h:34
DtRwPropertiesMap myPowers
Storage for properties of the entity being tasked.
Definition: taskAggregateBombLocationDialog.h:105
Definition: taskSetDialogInterface.h:84
QLabel * myStrengthPerBombLabel
Definition: taskAggregateBombLocationDialog.h:96
DtLocationEntryWidget * myTargetLocation
Definition: taskAggregateBombLocationDialog.h:79
QLabel * myWeaponRange
Definition: taskAggregateBombLocationDialog.h:91
QLabel * myDamageTypeAttack
Definition: taskAggregateBombLocationDialog.h:100
DtVector myLocation
Storage for properties of the entity being tasked.
Definition: taskAggregateBombLocationDialog.h:107
DtRwPropertiesMap myAmmunition
Storage for properties of the entity being tasked.
Definition: taskAggregateBombLocationDialog.h:106
QGridLayout * myGridLayout
Definition: taskAggregateBombLocationDialog.h:77
bool myLocationValid
Definition: taskAggregateBombLocationDialog.h:111
QGroupBox * myWeaponInfoBox
Definition: taskAggregateBombLocationDialog.h:87
Definition: taskAggregateBombLocationDialog.h:115
Contains makVrf::DtBaseTaskSetDialogInterface class. This is the interface for the dialog used by mos...
QGridLayout * myWeaponInfoLayout
Definition: taskAggregateBombLocationDialog.h:88
QLabel * myTotalBombs
Definition: taskAggregateBombLocationDialog.h:99
DtMapFocusHandler myMapFocusHandler
Definition: taskAggregateBombLocationDialog.h:112
QLabel * myTotalBombsLabel
Definition: taskAggregateBombLocationDialog.h:98
QLabel * myWeaponLabel
Definition: taskAggregateBombLocationDialog.h:84
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 * mySecondsPerBombLabel
Definition: taskAggregateBombLocationDialog.h:94
Class that is used as a template for task/set dialogs.
Definition: taskSetDialogInterface.h:46
Definition: taskAggregateBombLocationDialog.h:32
QLabel * mySecondsPerBomb
Definition: taskAggregateBombLocationDialog.h:95
QLabel * myBlastRadiusLabel
Definition: taskAggregateBombLocationDialog.h:92
class DtSimStatement:
Definition: simStatement.h:38
QLabel * myDamageType
Definition: taskAggregateBombLocationDialog.h:101
QSpinBox * myNumBombs
Definition: taskAggregateBombLocationDialog.h:82
This class will manage filtered list views for the basic purpose of allowing a single list view in th...
Definition: mapFocusHandler.h:74
QWidget * myCanvas
Definition: taskAggregateBombLocationDialog.h:76
QLabel * myStrengthPerBomb
Definition: taskAggregateBombLocationDialog.h:97
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
Definition: locationEntryWidget.h:45
QLabel * myBlastRadius
Definition: taskAggregateBombLocationDialog.h:93
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
QLabel * myNumBombsLabel
Definition: taskAggregateBombLocationDialog.h:81

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)