VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 class QScrollArea;
24 
25 namespace makVrf
26 {
27  namespace makVrfGuiObjectInformationQt
28  {
31  {
32  public:
33 
35  DtScenarioEventDialogPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
36 
38  virtual ~DtScenarioEventDialogPage();
39 
40  protected:
41  virtual void dialogAboutToShow(DtInformationDialog*);
42  };
43 
45  {
46  Q_OBJECT
47  public:
48 
50  DtScenarioEventAudioPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
51 
53  virtual ~DtScenarioEventAudioPage();
54 
56  virtual QIcon icon();
57 
59  virtual QString title();
60 
62  virtual const std::string& pageClassName() const;
63 
65  static const std::string& thePageClassName();
66 
68  {
69  return 0;
70  }
71 
72  protected:
73  virtual void activate();
74  virtual void deactivate();
75 
76  virtual ShowStatus setupGui(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
77  virtual bool keepInformationDialogUpOnRewind() const { return false; };
78 
79  protected slots:
80  virtual void playStateChanged();
81  virtual void audioFinished();
82 
83  public:
84  QMediaPlayer* mySoundObject;
85 
86  QHBoxLayout* myButtonLayout;
88  QSlider* myVolume;
91  };
92 
94  {
95  Q_OBJECT
96  public:
97 
99  DtScenarioEventVideoPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
100 
102  virtual ~DtScenarioEventVideoPage();
103 
105  virtual QIcon icon();
106 
108  virtual QString title();
109 
111  virtual const std::string& pageClassName() const;
112 
114  static const std::string& thePageClassName();
115 
117  {
118  return 0;
119  }
120 
121  protected:
122  virtual void activate();
123  virtual void deactivate();
124 
125  virtual ShowStatus setupGui(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
126  virtual bool keepInformationDialogUpOnRewind() const { return false; };
127 
128  protected slots:
129  virtual void playStateChanged();
130  virtual void videoFinished();
131  virtual void durationChanged(qint64);
132  virtual void positionChanged(qint64);
133  virtual void seekChanged(int);
134 
135  public:
136  QMediaPlayer* myVideoObject;
137  QVideoWidget* myVideoPlayer;
138 
139  QHBoxLayout* myButtonLayout;
140  QSlider* myVolume;
142  QSlider* mySeek;
144  QGridLayout* myControlsLayout;
147  };
148 
150  {
151  Q_OBJECT
152  public:
153 
155  DtScenarioEventTextPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
156 
158  virtual ~DtScenarioEventTextPage();
159 
161  virtual QIcon icon();
162 
164  virtual QString title();
165 
167  virtual const std::string& pageClassName() const;
168 
170  static const std::string& thePageClassName();
171 
172  protected:
173  virtual void activate();
174  virtual void deactivate();
175 
177  virtual bool keepInformationDialogUpOnRewind() const { return false; };
178 
179  public:
180  QTextBrowser* myText;
181  };
182 
184  {
185  Q_OBJECT
186  public:
187 
189  DtScenarioEventPicturePage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
190 
192  virtual ~DtScenarioEventPicturePage();
193 
195  virtual QIcon icon();
196 
198  virtual QString title();
199 
201  virtual const std::string& pageClassName() const;
202 
204  static const std::string& thePageClassName();
205 
206  protected:
207  virtual void activate();
208  virtual void deactivate();
209 
211  virtual bool keepInformationDialogUpOnRewind() const { return false; };
212 
213  public:
214  QScrollArea* myPictureArea;
216  };
217 
220 
223 
226 
229  }
230 }
virtual bool keepInformationDialogUpOnRewind() const
Definition: scenarioEventInformationPages.h:126
virtual DtInformationDialogPageLogic * createLogic()
Definition: scenarioEventInformationPages.h:67
Definition: scenarioEventInformationPages.h:183
QHBoxLayout * myButtonLayout
Definition: scenarioEventInformationPages.h:139
virtual bool keepInformationDialogUpOnRewind() const
Definition: scenarioEventInformationPages.h:77
QVideoWidget * myVideoPlayer
Definition: scenarioEventInformationPages.h:137
QSlider * myVolume
Definition: scenarioEventInformationPages.h:88
virtual DtInformationDialogPageLogic * createLogic()
Definition: scenarioEventInformationPages.h:116
QLabel * myVolumeLabel
Definition: scenarioEventInformationPages.h:141
Definition: scenarioEventInformationPages.h:44
QSlider * mySeek
Definition: scenarioEventInformationPages.h:142
QHBoxLayout * myButtonLayout
Definition: scenarioEventInformationPages.h:86
QLabel * myPicture
Definition: scenarioEventInformationPages.h:215
Definition: scenarioEventInformationPages.h:93
QPushButton * myStop
Definition: scenarioEventInformationPages.h:146
QLabel * myVolumeLabel
Definition: scenarioEventInformationPages.h:87
Definition: DtPage.h:143
Contains makVrv::DtInformationDialogPage class.
makVrv::DtPageCreatorTemplate< DtScenarioEventPicturePage > DtScenarioEventPicturePageCreator
Definition: scenarioEventInformationPages.h:228
QMediaPlayer * myVideoObject
Definition: scenarioEventInformationPages.h:136
QSlider * myVolume
Definition: scenarioEventInformationPages.h:140
#define DT_DLL_VRFGUIOBJECTINFORMATIONQT
Contains DLL export macros.
Definition: vrfGuiObjectInformationQt.h:25
QPushButton * myStop
Definition: scenarioEventInformationPages.h:90
makVrv::DtPageCreatorTemplate< DtScenarioEventVideoPage > DtScenarioEventVideoPageCreator
Definition: scenarioEventInformationPages.h:222
QPushButton * myPlayPause
Definition: scenarioEventInformationPages.h:145
ShowStatus
Definition: informationDialogPage.h:265
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
QGridLayout * myControlsLayout
Definition: scenarioEventInformationPages.h:144
QPushButton * myPlayPause
Definition: scenarioEventInformationPages.h:89
makVrv::DtPageCreatorTemplate< DtScenarioEventTextPage > DtScenarioEventTextPageCreator
Definition: scenarioEventInformationPages.h:225
Base class to give dialog a standard starting size.
Definition: scenarioEventInformationPages.h:30
QLabel * mySeekLabel
Definition: scenarioEventInformationPages.h:143
QMediaPlayer * mySoundObject
Definition: scenarioEventInformationPages.h:84
Definition: scenarioEventInformationPages.h:149
makVrv::DtPageCreatorTemplate< DtScenarioEventAudioPage > DtScenarioEventAudioPageCreator
Definition: scenarioEventInformationPages.h:219

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)