VR-Forces 5.0.3 Developer's Guide
 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 
13 #include "DtScenarioEventUi.hpp"
14 #include <vrvCore/DtUniqueID.h>
15 #include <string>
16 
20 class DtRwScenarioEvent;
21 class QDialog;
22 class QTreeWidgetItem;
23 class DtEntityType;
24 
25 namespace makVrf
26 {
27  class DtScenarioEventDefinitionDialog;
28  class DtTimeEntryWidget;
29  class DtDateTimeEntryWidget;
30  class DtEventContents;
31  class DtVrfFilteredListView;
32  class DtObjectListViewItem;
33 
36  {
37  public:
40 
43 
44 
48  virtual void processPopulateDialog(const makVrv::DtUniqueID& selectedUniqueID);
49 
52 
53  virtual bool updateScenarioEventData();
54 
55  virtual void onUseLocationChanged(bool);
56 
57  protected:
58  virtual void setupScenarioEvent(const DtRwScenarioEvent& evt);
59  virtual void processObjectCreation();
60  virtual void processObjectUpdate();
61 
62  protected:
67  bool myWarnOnScenarioEventError = true;
68  };
69 
74  {
75  Q_OBJECT
76 
77  public:
79  DtScenarioEventDefinitionDialog(makVrv::DtDe& de, QWidget* parent, const QString& title="", DtDialogInteractionMode mode=DtCreationMode);
80 
83 
84  virtual bool setToEvent(DtRwScenarioEvent&, bool warnOnError = true) const;
85  virtual void setupScenarioEvent(const DtRwScenarioEvent& evt);
86 
87  virtual int ordinal() const;
88 
90  virtual void setPublishObjectVisible(bool b);
91  virtual void setPublishObject(bool b);
92 
93  protected:
94 
97  virtual void setupGui();
98 
99  virtual void addForce(const QString& name, int force);
100 
101  virtual DtPointObjectDefinitionDialogLogic* createLogic();
102 
103  virtual void setupConnections();
104 
105  virtual QString selectFile(const QString& filters, const QString& title);
106 
107  virtual void populateOverlays();
108 
109  virtual void init(const DtEntityType&, DtCreateAndEditObjectDialogInterface::DtDialogInteractionMode);
110  virtual void initializeForIntelligenceObject();
111 
112  virtual void selectScenarioEventIcon(QString filename);
113  virtual void scenarioEventRemoved(QTreeWidgetItem*);
114  virtual void scenarioEventAdded(QTreeWidgetItem*);
115  virtual void scenarioEventUpdated(DtObjectListViewItem*);
116  virtual void scenarioEventsCleared();
117  virtual void setupEventIcons();
118 
119  protected slots:
120  virtual void onQuickLaunchChanged();
121  virtual void onEnableStateChanged();
122  virtual void onSelectEventSymbol();
123  virtual void onStartEventTriggerTypeChanged();
124  virtual void onEndEventTriggerTypeChanged();
125  virtual void onAvailableToAllForcesChanged();
126  virtual void onUseLocationChanged();
127  virtual void showEventContents();
128  virtual void onEditLinks();
129  virtual void onEditSensorSignatures();
130  virtual void onEventIconChanged();
131  virtual void eventContentsDeleted();
132 
133  public:
134  Ui_DtScenarioEventUI myExtUiImpl;
137 
140 
149 
150  protected:
157 
158  std::map<std::string, double> mySensorSignatures;
159  };
160 
163  {
164  public:
166  virtual DtCreateAndEditObjectDialogInterface* createDialog(makVrv::DtDe& de, QWidget* parent, const QString& title,
168  };
169 }
Logic that is used to populate and receive updates from the scenario event extension.
Definition: scenarioEventDefinitionDialog.h:35
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
Definition: pointObjectDefinitionDialogLogic.h:34
DtTimeEntryWidget * myEndTime
Used for SPLUS.
Definition: scenarioEventDefinitionDialog.h:139
This class defines the dialog that allows the creation/update of point objects in the scenario (entit...
Definition: pointObjectDefinitionDialog.h:41
int myCurrentOrdinal
Definition: scenarioEventDefinitionDialog.h:66
DtUUID myUniqueId
Definition: scenarioEventDefinitionDialog.h:152
bool myIsIntelligenceObject
Definition: scenarioEventDefinitionDialog.h:155
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
QCheckBox * myUseLocation
Definition: scenarioEventDefinitionDialog.h:146
DtDateTimeEntryWidget * myEndDateTime
Definition: scenarioEventDefinitionDialog.h:136
QComboBox * myScenarioEventsCombo
Definition: scenarioEventDefinitionDialog.h:148
Definition: createAndEditObjectDialogInterface.h:29
!!!!!!!!! DtScenarioEventDefinitionDialogCreator
Definition: scenarioEventDefinitionDialog.h:162
QDialog * myEventContainerDialog
Definition: scenarioEventDefinitionDialog.h:144
Ui_DtScenarioEventUI myExtUiImpl
Definition: scenarioEventDefinitionDialog.h:134
DtScenarioEventDefinitionDialogLogic * myCustomLogic
Definition: scenarioEventDefinitionDialog.h:151
QPushButton * myCloseEventDialogButton
Definition: scenarioEventDefinitionDialog.h:145
Widget that allows users to enter time values, including days.
Definition: timeEntryWidget.h:29
bool myNeedToSetStartTime
Definition: scenarioEventDefinitionDialog.h:153
DtEventContents * myEventContainer
Definition: scenarioEventDefinitionDialog.h:143
A widget class for managing a DtVrfTreeWidget of objects which supports user-defined filters...
Definition: vrfFilteredListView.h:63
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtScenarioEventDefinitionDialog * myCustomDialog
Definition: scenarioEventDefinitionDialog.h:65
DtDialogInteractionMode
Definition: createAndEditObjectDialogInterface.h:34
DtVrfFilteredListView * myScenarioEvents
Definition: scenarioEventDefinitionDialog.h:147
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:154
std::map< std::string, double > mySensorSignatures
Definition: scenarioEventDefinitionDialog.h:158
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:142
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: scenarioEventDefinitionDialog.h:73
makVrv::DtSignalConnectionManager myConnectionManager
Definition: scenarioEventDefinitionDialog.h:156
Definition: pointObjectDefinitionDialog.h:354
This tree widget item can be used in any tree that wants to display an icon next to the name of an ob...
Definition: objectListViewItem.h:52
Widget that allows users to enter date/time values. The date/time will be shown in the currently sele...
Definition: dateTimeEntryWidget.h:26
DtDateTimeEntryWidget * myStartDateTime
Definition: scenarioEventDefinitionDialog.h:135

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)