VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
releaseBombTaskDialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #if !defined(Q_MOC_RUN)
15 #endif
16 
17 class DtReleaseBombTask;
18 class QLabel;
19 class QGridLayout;
20 class QDoubleSpinBox;
21 
22 namespace makVrf
23 {
29  {
30  Q_OBJECT
31  public:
33  DtReleaseBombTaskDialog(makVrv::DtDe& de, QWidget* parent,
34  const Qt::WindowFlags& flags = 0);
35 
37  virtual ~DtReleaseBombTaskDialog() override;
38 
40  virtual void disable(const QString& reason);
41 
43  virtual void enable();
44 
47  virtual void setDetonationProximity(const double proximity);
48  virtual const double detonationProximity() const;
50 
51  protected:
54  virtual bool editStatement(const std::set<makVrv::DtUniqueID>& states, const DtSimStatement* s) override;
55 
57  virtual QWidget* contents(const std::set<makVrv::DtUniqueID>& data) override;
58 
60  virtual QBoxLayout* createMainLayout() override;
61 
64  virtual void sendRequest() override = 0;
65 
70  virtual void populateTaskFromDialog(DtReleaseBombTask* task);
71 
76  virtual void setupStatement(const std::set<makVrv::DtUniqueID>& data,
77  const DtSimStatement* stmt);
78 
81  virtual void setupFrom(const std::set<makVrv::DtUniqueID>& d) override;
82 
83  protected:
86  virtual void setupGui(const std::set<makVrv::DtUniqueID>& data) override;
87 
91  virtual void addResource(const DtSimResource&) override;
92  virtual void resourceUpdated(const DtSimResource&) override;
93 
94  virtual bool usesGuidedMunitions(void);
95 
96 
97  protected:
99  virtual void resourcesChanged() override;
100 
102  virtual void resourceCheckingDisabled() override;
103 
108  virtual void resourceCheckComplete() override;
109 
110  public:
111  QGridLayout* myLayout;
116  };
117 }
DtReleaseBombTask dialog is the base class for all the other release bomb task dialogs. It allows the user to configure the parameters which are common to all the tasks; the ammo selection and detonation proximity.
Definition: releaseBombTaskDialog.h:27
DtReleaseBombTask is the base class for all the other release bomb tasks. It is never used to launch ...
Definition: releaseBombTask.h:19
QGridLayout * myLayout
Definition: releaseBombTaskDialog.h:111
DtReleaseBombTask * myReleaseBombTask
Definition: releaseBombTaskDialog.h:115
QLabel * myDetonationProximityLabel
Definition: releaseBombTaskDialog.h:113
The class that is the interface between the GUI and the back-end.
Definition: vrfResourceRequestor.h:36
class DtSimStatement:
Definition: simStatement.h:38
DtSimResource is a class which will define a SISO Enumeration to use as a resource and the quantity o...
Definition: simResource.h:32
Definition: baseComboTaskSetDialog.h:24
QLabel * myCounterMeasuresTypesLabel
Definition: releaseBombTaskDialog.h:112
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:76
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
QDoubleSpinBox * myDetonationProximity
Definition: releaseBombTaskDialog.h:114

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)