VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
taskNbcAttackDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
17 #include <vlpi/entityType.h>
18 
19 class QLabel;
20 class QLineEdit;
21 class QComboBox;
22 class QIntValidator;
23 class QGridLayout;
24 class QGroupBox;
25 class QSpinBox;
26 
27 namespace makVrf
28 {
29  class DtLocationEntryWidget;
30 
32  {
33  Q_OBJECT
34  public:
35  //CTOR
36  DtTaskNbcAttackDialog(makVrv::DtDe& de, QWidget* parent,
37  const DtString& nbcCategory, const DtEntityType& nbcEntityType,
38  const Qt::WindowFlags& flags = 0);
39 
40  //DTOR
41  virtual ~DtTaskNbcAttackDialog();
42 
44  virtual DtString agentType() const;
45  virtual void setAgentType(const DtString&);
46 
49  virtual DtEntityType contaminationAreaType() const;
50 
52  virtual DtVector targetLocation() const;
53  virtual void setTargetLocation(const DtVector&);
54 
55  protected:
56  virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
57 
58  virtual void setupStatement(const DtSimStatement* stmt);
59 
60  protected:
61  virtual void sendRequest();
62  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& d);
63  virtual bool valid() const;
64 
65  public:
66  QWidget* myCanvas;
67  QGridLayout* myGridLayout;
68 
70 
73 
75  DtEntityType myNbcEntityType;
76 
77  protected:
79  };
80 
82  {
83  public:
84 
85  DtTaskNbcAttackDialogCreator(const DtString& nbcCategory, const DtEntityType& nbcEntityType);
86 
87  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
88  virtual bool supportsType(makVrv::DtDe&, const DtSimTaskMessageType&, const DtSimStatement*) const;
89 
90  protected:
91 
93  DtEntityType myNbcEntityType;
94  };
95 }
Definition: baseTaskSetDialogInterface.h:34
DtEntityType myNbcEntityType
Definition: taskNbcAttackDialog.h:75
DtEntityType myNbcEntityType
Definition: taskNbcAttackDialog.h:93
Definition: taskSetDialogInterface.h:84
DtLocationEntryWidget * myTargetLocation
Definition: taskNbcAttackDialog.h:69
QWidget * myCanvas
Definition: taskNbcAttackDialog.h:66
QComboBox * myAgentType
Definition: taskNbcAttackDialog.h:72
DtMapFocusHandler myMapFocusHandler
Definition: taskNbcAttackDialog.h:78
QLabel * myAgentTypeLabel
Definition: taskNbcAttackDialog.h:71
Contains makVrf::DtBaseTaskSetDialogInterface class. This is the interface for the dialog used by mos...
Definition: taskNbcAttackDialog.h:31
DtString myNbcCategory
Definition: taskNbcAttackDialog.h:74
Class that is used as a template for task/set dialogs.
Definition: taskSetDialogInterface.h:46
QGridLayout * myGridLayout
Definition: taskNbcAttackDialog.h:67
Definition: taskNbcAttackDialog.h:81
class DtSimStatement:
Definition: simStatement.h:38
DtString myNbcCategory
Definition: taskNbcAttackDialog.h:92
This class will manage filtered list views for the basic purpose of allowing a single list view in th...
Definition: mapFocusHandler.h:74
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
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22

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)