VR-Forces 5.0.3 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();
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*);
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 
95  virtual void setDisplayChangeWarningIcon(DtScenarioInformationWidget::DisplayElement, bool);
96 
98  virtual void setShowScreenElement(DtScenarioInformationWidget::DisplayElement, bool);
99 
101  virtual void setEnableScreenElement(DtScenarioInformationWidget::DisplayElement, bool);
102 
104  virtual void setCanSelectTerrain(bool);
105 
106  const DtScenario& scenario() const
107  {
108  return myScenario;
109  }
110 
111  protected:
113  virtual void scenarioDescriptionCallback(DtSimMessage*);
114 
116  virtual void accept();
117 
118  public:
123 
124  protected:
130  };
131 
133  {
134  public:
136  static void registerInstance(makVrv::DtDe&, DtScenarioDescriptionDialogCreator*);
137 
138  DtScenarioDescriptionDialog* create(makVrv::DtDe&, QWidget*, const Qt::WindowFlags& flags = Qt::Tool, bool doNotDisplayIfNoDescription = false);
139  };
140 }
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:119
bool updateScenarioDescriptionFromThisDialog() const
Definition: scenarioDescriptionDialog.h:76
DtScenarioPreviewWidget * myScenarioInformation
Definition: scenarioDescriptionDialog.h:122
QPushButton * myCancel
Definition: scenarioDescriptionDialog.h:121
bool myIsEditable
Definition: scenarioDescriptionDialog.h:127
bool myDoNotDisplayIfNoDescription
Definition: scenarioDescriptionDialog.h:128
QPushButton * myOK
Definition: scenarioDescriptionDialog.h:120
Contains makVrv::DtVirtualBaseClass class.
File: simMsg.h.
Definition: simMessage.h:35
Definition: scenarioDescriptionDialog.h:132
DisplayElement
Definition: scenarioInformationWidget.h:49
DtScenario myScenario
Definition: scenarioDescriptionDialog.h:125
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:126
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
const DtScenario & scenario() const
Definition: scenarioDescriptionDialog.h:106
Definition: scenarioInformationWidget.h:244
boost::signals2::signal< void()> signal_closed
Signal sent when window is closing.
Definition: scenarioDescriptionDialog.h:61
bool myUpdateScenarioDescriptionFromThisDialog
Definition: scenarioDescriptionDialog.h:129

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)