VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
targetConfigurationDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
8 #pragma once
9 
10 #if !defined(Q_MOC_RUN)
11 
13 //#include <vrfGuiCommonQt/mapFocusHandlerManager.h>
14 
15 #include <vrvCore/DtDe.h>
16 #include <vrvCore/DtSimEntry.h>
17 #include <matrix/vlVector.h>
18 #include <vrfutil/rwUUID.h>
19 #endif
20 
21 #include <QtWidgets/QDialog>
22 
23 class QGridLayout;
24 class QLabel;
25 class QComboBox;
26 class QHBoxLayout;
27 class QLineEdit;
28 class QIntValidator;
29 
31 {
36 };
37 
38 const std::map<int, QString> targetTypes
39 {
40  {MGRSTarget, QObject::tr("MGRS Coordinates")},
41  {GeodeticDMSTarget, QObject::tr("Lat/Lon Coordinates")},
42  {LaserDesignationTarget, QObject::tr("Laser Designation Code")},
43  {Target, QObject::tr("Target")}
44 };
45 
46 namespace makVrf
47 {
48  class DtVrfFilteredListView;
49  class DtBombResourceSelectionEntryWidget;
50  class DtLocationEntryWithoutAltitudeWidget;
51 
53  {
54  Q_OBJECT
55 
56  public:
57 
60  makVrv::DtDe& de,
61  const std::vector<makVrv::DtSimEntry*>& connectedTo,
62  QWidget* parent = 0,
63  const Qt::WindowFlags& flags = 0);
64 
66  virtual ~DtTargetConfigurationDialog();
67 
68  virtual void setupGui();
69 
70  virtual void setCreationMode(bool add);
71 
72  virtual void setCurrentTargetType(int type);
73  virtual void setCurrentWeapon(const std::string& weapon);
74 
75  virtual void setCurrentTargetLocation(const DtVector& geocPosition);
76  virtual void setCurrentLaserCode(int code);
77  virtual void setCurrentTarget(const DtUUID& target);
78 
79  signals:
80  void updateTarget(bool);
81 
82  protected slots:
83  virtual void accept();
84  virtual void targetTypeChanged(int);
85  virtual void checkValidity();
86 
87  protected:
88 
89  virtual void showEvent(QShowEvent* event);
90  virtual void hideEvent(QHideEvent* event);
91 
92  public:
93 
94  QGridLayout* myGridLayout;
95 
98 
103  QIntValidator* myValidator;
104 
107 
108  QHBoxLayout* myButtonLayout;
111 
112  protected:
114  const std::vector<makVrv::DtSimEntry*>& myConnectedTo;
116  //DtMapFocusHandlerManager myFilteredListViewManager;
117  };
118 }
makVrv::DtDe & myDe
Definition: targetConfigurationDialog.h:113
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtBombResourceSelectionEntryWidget * myWeaponSelection
Definition: targetConfigurationDialog.h:106
QIntValidator * myValidator
Definition: targetConfigurationDialog.h:103
QLabel * myTargetTypeLabel
Definition: targetConfigurationDialog.h:96
QLabel * myWeaponLabel
Definition: targetConfigurationDialog.h:105
const std::map< int, QString > targetTypes
Definition: targetConfigurationDialog.h:39
Definition: targetConfigurationDialog.h:52
Contains makVrv::DtDe class.
Contains the DtUUID class declaration.
const std::vector< makVrv::DtSimEntry * > & myConnectedTo
Definition: targetConfigurationDialog.h:114
Definition: targetConfigurationDialog.h:32
QPushButton * myCancelButton
Definition: targetConfigurationDialog.h:110
Contains makVrv::DtSimEntry class.
DtVrfFilteredListView * myTargetListView
Definition: targetConfigurationDialog.h:100
A widget class for managing a DtVrfTreeWidget of objects which supports user-defined filters...
Definition: vrfFilteredListView.h:63
Definition: targetConfigurationDialog.h:35
QGridLayout * myGridLayout
Definition: targetConfigurationDialog.h:94
Widget that only displays munition resources.
Definition: resourceSelectionEntryWidget.h:143
DtLocationEntryWithoutAltitudeWidget * myTargetLocation
Definition: targetConfigurationDialog.h:101
QComboBox * myTargetTypeCombobox
Definition: targetConfigurationDialog.h:97
Definition: targetConfigurationDialog.h:33
TargetType
Definition: targetConfigurationDialog.h:30
QLabel * myTargetChoiceLabel
Definition: targetConfigurationDialog.h:99
bool isNewTarget
Definition: targetConfigurationDialog.h:115
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
QLineEdit * myLaserCode
Definition: targetConfigurationDialog.h:102
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
Specialized version of location entry widget used for scripted tasks that will create a location entr...
Definition: locationEntryWidget.h:356
QHBoxLayout * myButtonLayout
Definition: targetConfigurationDialog.h:108
QPushButton * myOKButton
Definition: targetConfigurationDialog.h:109
Definition: targetConfigurationDialog.h:34

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)