VR-Forces 4.6 Class Documentation
 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 #include <vrvUtil/signalslib.h>
15 
16 #include <vlutil/vlString.h>
17 #include <vrfutil/scenario.h>
18 
19 #include <QtWidgets/QDialog>
20 
21 class QWebView;
22 class QTextEdit;
23 class QCheckBox;
24 class QPushButton;
25 class QLayout;
26 class DtSimMessage;
28 
29 namespace makVrv
30 {
31  class DtDe;
32 }
33 
34 namespace makVrf
35 {
36  class DtScenarioPreviewWidget;
40  {
41  Q_OBJECT
42 
43  public:
44  //CTOR. If doNotDisplayIfNoDescription is true will not display dialog unless a non-empty description is returned. If an empty description is
46  DtScenarioDescriptionDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = Qt::Tool, bool doNotDisplayIfNoDescription = false);
47 
48  //DTOR
49  virtual ~DtScenarioDescriptionDialog();
50 
52  virtual void setDisplayOnly(bool);
53 
55  virtual void setShowNeverShowAgain(bool);
56 
58  boost::signal<void ()> signal_closed;
59 
62  boost::signal<void (DtScenario&)> signal_scenarioInformationAboutToBeSet;
63 
64  virtual void closeEvent(QCloseEvent*);
65 
66  virtual void setupGui();
67 
69  virtual bool neverShowAgain() const;
70 
72  virtual void setUpdateScenarioDescriptionFromThisDialog(bool);
73  bool updateScenarioDescriptionFromThisDialog() const
74  {
75  return myUpdateScenarioDescriptionFromThisDialog;
76  }
77 
79  virtual void setScenarioInformation(const DtIfScenarioDescriptionMessage*);
80 
81  virtual void setHideCancel(bool);
82 
92  virtual void setDisplayChangeWarningIcon(DtScenarioInformationWidget::DisplayElement, bool);
93 
95  virtual void setShowScreenElement(DtScenarioInformationWidget::DisplayElement, bool);
96 
98  virtual void setEnableScreenElement(DtScenarioInformationWidget::DisplayElement, bool);
99 
101  virtual void setCanSelectTerrain(bool);
102 
103  const DtScenario& scenario() const
104  {
105  return myScenario;
106  }
107 
108  protected:
110  virtual void scenarioDescriptionCallback(DtSimMessage*);
111 
113  virtual void accept();
114 
115  public:
120 
121  protected:
127  };
128 
130  {
131  public:
133  static void registerInstance(makVrv::DtDe&, DtScenarioDescriptionDialogCreator*);
134 
135  DtScenarioDescriptionDialog* create(makVrv::DtDe&, QWidget*, const Qt::WindowFlags& flags = Qt::Tool, bool doNotDisplayIfNoDescription = false);
136  };
137 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)