VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenarioEventDefinitionDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 //\file DtScenarioEventDefinitionDialog.h
7 //\brief Contains DtScenarioEventDefinitionDialog class.
8 
9 #pragma once
10 
12 #include "DtScenarioEventUi.hpp"
13 #include <vrvCore/DtUniqueID.h>
14 #include <string>
15 
19 class DtRwScenarioEvent;
20 class QDialog;
21 class QTreeWidgetItem;
22 class DtEntityType;
23 
24 namespace makVrf
25 {
26  class DtScenarioEventDefinitionDialog;
27  class DtTimeEntryWidget;
28  class DtDateTimeEntryWidget;
29  class DtEventContents;
30  class DtVrfFilteredListView;
31  class DtObjectListViewItem;
32 
35  {
36  public:
39 
42 
43 
47  virtual void processPopulateDialog(const makVrv::DtUniqueID& selectedUniqueID);
48 
51 
52  virtual void updateScenarioEventData();
53 
54  virtual void onUseLocationChanged(bool);
55 
56  protected:
57  virtual void setupScenarioEvent(const DtRwScenarioEvent& evt);
58  virtual void processObjectCreation();
59  virtual void processObjectUpdate();
60 
61  protected:
66  };
67 
72  {
73  Q_OBJECT
74 
75  public:
77  DtScenarioEventDefinitionDialog(makVrv::DtDe& de, QWidget* parent, const QString& title="", DtDialogInteractionMode mode=DtCreationMode);
78 
81 
82  virtual void setToEvent(DtRwScenarioEvent&) const;
83  virtual void setupScenarioEvent(const DtRwScenarioEvent& evt);
84 
85  virtual int ordinal() const;
86 
88  virtual void setPublishObjectVisible(bool b);
89  virtual void setPublishObject(bool b);
90 
91  protected:
92 
95  virtual void setupGui();
96 
97  virtual void addForce(const QString& name, int force);
98 
99  virtual DtPointObjectDefinitionDialogLogic* createLogic();
100 
101  virtual void setupConnections();
102 
103  virtual QString selectFile(const QString& filters, const QString& title);
104 
105  virtual void populateOverlays();
106 
107  virtual void init(const DtEntityType&, DtCreateAndEditObjectDialogInterface::DtDialogInteractionMode);
108  virtual void initializeForIntelligenceObject();
109 
110  virtual void selectScenarioEventIcon(QString filename);
111  virtual void scenarioEventRemoved(QTreeWidgetItem*);
112  virtual void scenarioEventAdded(QTreeWidgetItem*);
113  virtual void scenarioEventUpdated(DtObjectListViewItem*);
114  virtual void scenarioEventsCleared();
115 
116  protected slots:
117  virtual void onQuickLaunchChanged();
118  virtual void onEnableStateChanged();
119  virtual void onSelectEventSymbol();
120  virtual void onStartEventTriggerTypeChanged();
121  virtual void onEndEventTriggerTypeChanged();
122  virtual void onAvailableToAllForcesChanged();
123  virtual void onUseLocationChanged();
124  virtual void showEventContents();
125  virtual void onEditLinks();
126  virtual void onEditSensorSignatures();
127  virtual void onEventIconChanged();
128  virtual void eventContentsDeleted();
129 
130  public:
131  Ui_DtScenarioEventUI myExtUiImpl;
134 
137 
146 
147  protected:
154 
155  std::map<std::string, double> mySensorSignatures;
156  };
157 
160  {
161  public:
163  virtual DtCreateAndEditObjectDialogInterface* createDialog(makVrv::DtDe& de, QWidget* parent, const QString& title,
165  };
166 }
Logic that is used to populate and receive updates from the scenario event extension.
Definition: scenarioEventDefinitionDialog.h:34
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
This class implements the logic behind the DtPointObjectDefinitionDialog.
Definition: pointObjectDefinitionDialog.h:42
DtTimeEntryWidget * myEndTime
Used for SPLUS.
Definition: scenarioEventDefinitionDialog.h:136
This class defines the dialog that allows the creation/update of point objects in the scenario (entit...
Definition: pointObjectDefinitionDialog.h:199
int myCurrentOrdinal
Definition: scenarioEventDefinitionDialog.h:65
DtUUID myUniqueId
Definition: scenarioEventDefinitionDialog.h:149
bool myIsIntelligenceObject
Definition: scenarioEventDefinitionDialog.h:152
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
QCheckBox * myUseLocation
Definition: scenarioEventDefinitionDialog.h:143
DtDateTimeEntryWidget * myEndDateTime
Definition: scenarioEventDefinitionDialog.h:133
QComboBox * myScenarioEventsCombo
Definition: scenarioEventDefinitionDialog.h:145
Definition: createAndEditObjectDialogInterface.h:29
!!!!!!!!! DtScenarioEventDefinitionDialogCreator
Definition: scenarioEventDefinitionDialog.h:159
QDialog * myEventContainerDialog
Definition: scenarioEventDefinitionDialog.h:141
Ui_DtScenarioEventUI myExtUiImpl
Definition: scenarioEventDefinitionDialog.h:131
DtScenarioEventDefinitionDialogLogic * myCustomLogic
Definition: scenarioEventDefinitionDialog.h:148
QPushButton * myCloseEventDialogButton
Definition: scenarioEventDefinitionDialog.h:142
Widget that allows users to enter time values, including days.
Definition: timeEntryWidget.h:29
bool myNeedToSetStartTime
Definition: scenarioEventDefinitionDialog.h:150
DtEventContents * myEventContainer
Definition: scenarioEventDefinitionDialog.h:140
A widget class for managing a DtTreeWidget of objects which supports user-defined filters...
Definition: vrfFilteredListView.h:62
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
DtScenarioEventDefinitionDialog * myCustomDialog
Definition: scenarioEventDefinitionDialog.h:64
DtDialogInteractionMode
Definition: createAndEditObjectDialogInterface.h:34
DtVrfFilteredListView * myScenarioEvents
Definition: scenarioEventDefinitionDialog.h:144
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
Definition: eventContents.h:46
The DtRwScenarioEvent class will define the contents of a scenario event and it&#39;s current status...
Definition: rwScenarioEvent.h:68
bool myNeedToSetEndTime
Definition: scenarioEventDefinitionDialog.h:151
std::map< std::string, double > mySensorSignatures
Definition: scenarioEventDefinitionDialog.h:155
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
const char int mode
Definition: ioapi.h:38
Contains makVrv::DtUniqueID type.
DtTimeEntryWidget * myStartTime
Used for SPLUS.
Definition: scenarioEventDefinitionDialog.h:139
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Definition: scenarioEventDefinitionDialog.h:71
makVrv::DtSignalConnectionManager myConnectionManager
Definition: scenarioEventDefinitionDialog.h:153
Definition: pointObjectDefinitionDialog.h:510
Definition: objectListViewItem.h:45
Widget that allows users to enter date/time values.
Definition: dateTimeEntryWidget.h:25
DtDateTimeEntryWidget * myStartDateTime
Definition: scenarioEventDefinitionDialog.h:132

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)