VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scenarioEventInformationPages.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 class QPushButton;
16 class QHBoxLayout;
17 class QTextBrowser;
18 class QLabel;
19 class QMediaPlayer;
20 class QVideoWidget;
21 class QSlider;
22 class QGridLayout;
23 
24 namespace makVrf
25 {
26  namespace makVrfGuiObjectInformationQt
27  {
30  {
31  public:
32 
34  DtScenarioEventDialogPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
35 
37  virtual ~DtScenarioEventDialogPage();
38 
39  protected:
40  virtual void dialogAboutToShow(DtInformationDialog*);
41  };
42 
44  {
45  Q_OBJECT
46  public:
47 
49  DtScenarioEventAudioPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
50 
52  virtual ~DtScenarioEventAudioPage();
53 
55  virtual QIcon icon();
56 
58  virtual QString title();
59 
61  virtual const std::string& pageClassName() const;
62 
64  static const std::string& thePageClassName();
65 
66  virtual DtInformationDialogPageLogic* createLogic()
67  {
68  return 0;
69  }
70 
71  protected:
72  virtual void activate();
73  virtual void deactivate();
74 
75  virtual ShowStatus setupGui(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
76  virtual bool keepInformationDialogUpOnRewind() const { return false; };
77 
78  protected slots:
79  virtual void playStateChanged();
80  virtual void audioFinished();
81 
82  public:
83  QMediaPlayer* mySoundObject;
84 
85  QHBoxLayout* myButtonLayout;
87  QSlider* myVolume;
90  };
91 
93  {
94  Q_OBJECT
95  public:
96 
98  DtScenarioEventVideoPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
99 
101  virtual ~DtScenarioEventVideoPage();
102 
104  virtual QIcon icon();
105 
107  virtual QString title();
108 
110  virtual const std::string& pageClassName() const;
111 
113  static const std::string& thePageClassName();
114 
115  virtual DtInformationDialogPageLogic* createLogic()
116  {
117  return 0;
118  }
119 
120  protected:
121  virtual void activate();
122  virtual void deactivate();
123 
124  virtual ShowStatus setupGui(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
125  virtual bool keepInformationDialogUpOnRewind() const { return false; };
126 
127  protected slots:
128  virtual void playStateChanged();
129  virtual void videoFinished();
130  virtual void durationChanged(qint64);
131  virtual void positionChanged(qint64);
132  virtual void seekChanged(int);
133 
134  public:
135  QMediaPlayer* myVideoObject;
136  QVideoWidget* myVideoPlayer;
137 
138  QHBoxLayout* myButtonLayout;
139  QSlider* myVolume;
141  QSlider* mySeek;
143  QGridLayout* myControlsLayout;
146  };
147 
149  {
150  Q_OBJECT
151  public:
152 
154  DtScenarioEventTextPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
155 
157  virtual ~DtScenarioEventTextPage();
158 
160  virtual QIcon icon();
161 
163  virtual QString title();
164 
166  virtual const std::string& pageClassName() const;
167 
169  static const std::string& thePageClassName();
170 
171  protected:
172  virtual void activate();
173  virtual void deactivate();
174 
176  virtual bool keepInformationDialogUpOnRewind() const { return false; };
177 
178  public:
179  QTextBrowser* myText;
180  };
181 
183  {
184  Q_OBJECT
185  public:
186 
188  DtScenarioEventPicturePage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
189 
191  virtual ~DtScenarioEventPicturePage();
192 
194  virtual QIcon icon();
195 
197  virtual QString title();
198 
200  virtual const std::string& pageClassName() const;
201 
203  static const std::string& thePageClassName();
204 
205  protected:
206  virtual void activate();
207  virtual void deactivate();
208 
210  virtual bool keepInformationDialogUpOnRewind() const { return false; };
211 
212  public:
213  QLabel* myPicture;
214  };
215 
218 
221 
224 
227  }
228 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)