VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenarioDescriptionDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #if !defined(Q_MOC_RUN)
12 
16 
17 #include <vlutil/vlString.h>
18 #include <vrfutil/scenario.h>
19 #endif
20 #include <boost/signals2.hpp>
21 
22 #include <QtWidgets/QDialog>
23 
24 class QWebView;
25 class QTextEdit;
26 class QCheckBox;
27 class QPushButton;
28 class QLayout;
29 class DtSimMessage;
31 
32 namespace makVrv
33 {
34  class DtDe;
35 }
36 
37 namespace makVrf
38 {
39  class DtScenarioPreviewWidget;
43  {
44  Q_OBJECT
45 
46  public:
47  //CTOR. If doNotDisplayIfNoDescription is true will not display dialog unless a non-empty description is returned. If an empty description is
49  DtScenarioDescriptionDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = Qt::Tool, bool doNotDisplayIfNoDescription = false);
50 
51  //DTOR
52  virtual ~DtScenarioDescriptionDialog() override;
53 
55  virtual void setDisplayOnly(bool);
56 
58  virtual void setShowNeverShowAgain(bool);
59 
61  boost::signals2::signal<void ()> signal_closed;
62 
65  boost::signals2::signal<void (DtScenario&)> signal_scenarioInformationAboutToBeSet;
66 
67  virtual void closeEvent(QCloseEvent*) override;
68 
69  virtual void setupGui();
70 
72  virtual bool neverShowAgain() const;
73 
75  virtual void setUpdateScenarioDescriptionFromThisDialog(bool);
77  {
78  return myUpdateScenarioDescriptionFromThisDialog;
79  }
80 
82  virtual void setScenarioInformation(const DtIfScenarioDescriptionMessage*);
83 
84  virtual void setHideCancel(bool);
85 
94  virtual void setDisplayChangeWarningIcon(DtScenarioInformationWidget::DisplayElement, bool);
95 
97  virtual void setShowScreenElement(DtScenarioInformationWidget::DisplayElement, bool);
98 
100  virtual void setEnableScreenElement(DtScenarioInformationWidget::DisplayElement, bool);
101 
103  virtual void setCanSelectTerrain(bool);
104 
105  const DtScenario& scenario() const
106  {
107  return myScenario;
108  }
109 
110  protected:
112  virtual void scenarioDescriptionCallback(DtSimMessage*);
113 
115  virtual void accept() override;
116 
117  public:
122 
123  protected:
129  };
130 
132  {
133  public:
135  static void registerInstance(makVrv::DtDe&, DtScenarioDescriptionDialogCreator*);
136 
137  DtScenarioDescriptionDialog* create(makVrv::DtDe&, QWidget*, const Qt::WindowFlags& flags = Qt::Tool, bool doNotDisplayIfNoDescription = false);
138  };
139 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Definition: scenario.h:52
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
QCheckBox * myNeverShowAgain
Definition: scenarioDescriptionDialog.h:118
bool updateScenarioDescriptionFromThisDialog() const
Definition: scenarioDescriptionDialog.h:76
DtScenarioPreviewWidget * myScenarioInformation
Definition: scenarioDescriptionDialog.h:121
QPushButton * myCancel
Definition: scenarioDescriptionDialog.h:120
bool myIsEditable
Definition: scenarioDescriptionDialog.h:126
bool myDoNotDisplayIfNoDescription
Definition: scenarioDescriptionDialog.h:127
QPushButton * myOK
Definition: scenarioDescriptionDialog.h:119
Contains makVrv::DtVirtualBaseClass class.
File: simMsg.h.
Definition: simMessage.h:35
Definition: scenarioDescriptionDialog.h:131
DisplayElement
Definition: scenarioInformationWidget.h:50
DtScenario myScenario
Definition: scenarioDescriptionDialog.h:124
boost::signals2::signal< void(DtScenario &)> signal_scenarioInformationAboutToBeSet
Signal sent when the scenario information is about to be set in the dialog. Whatever changes are made...
Definition: scenarioDescriptionDialog.h:65
Definition: ifScenarioDescriptionMessage.h:32
Will show a dialog that will request the scenario description. Depending on the mode will allow the u...
Definition: scenarioDescriptionDialog.h:42
makVrv::DtDe & myDe
Definition: scenarioDescriptionDialog.h:125
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
const DtScenario & scenario() const
Definition: scenarioDescriptionDialog.h:105
Definition: scenarioInformationWidget.h:237
boost::signals2::signal< void()> signal_closed
Signal sent when window is closing.
Definition: scenarioDescriptionDialog.h:61
bool myUpdateScenarioDescriptionFromThisDialog
Definition: scenarioDescriptionDialog.h:128

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)