equal
deleted
inserted
replaced
17 */ |
17 */ |
18 |
18 |
19 #ifndef PHONON_MMF_VIDEOWIDGET_H |
19 #ifndef PHONON_MMF_VIDEOWIDGET_H |
20 #define PHONON_MMF_VIDEOWIDGET_H |
20 #define PHONON_MMF_VIDEOWIDGET_H |
21 |
21 |
|
22 #include "abstractvideooutput.h" |
22 #include "mmf_medianode.h" |
23 #include "mmf_medianode.h" |
23 #include "videooutput.h" |
|
24 |
24 |
25 #include <QtGui/QWidget> |
25 #include <QtGui/QWidget> |
26 #include <phonon/videowidget.h> |
26 #include <phonon/videowidget.h> |
27 #include <phonon/videowidgetinterface.h> |
27 #include <phonon/videowidgetinterface.h> |
28 |
28 |
30 |
30 |
31 namespace Phonon |
31 namespace Phonon |
32 { |
32 { |
33 namespace MMF |
33 namespace MMF |
34 { |
34 { |
|
35 #ifndef PHONON_MMF_VIDEO_SURFACES |
35 class AncestorMoveMonitor; |
36 class AncestorMoveMonitor; |
36 class VideoOutput; |
37 #endif |
37 |
38 |
38 class VideoWidget : public MediaNode |
39 class VideoWidget : public MediaNode |
39 , public Phonon::VideoWidgetInterface |
40 , public Phonon::VideoWidgetInterface |
40 { |
41 { |
41 Q_OBJECT |
42 Q_OBJECT |
42 Q_INTERFACES(Phonon::VideoWidgetInterface) |
43 Q_INTERFACES(Phonon::VideoWidgetInterface) |
43 |
44 |
44 public: |
45 public: |
45 VideoWidget(AncestorMoveMonitor* ancestorMoveMonitor, QWidget* parent); |
46 VideoWidget(QWidget* parent); |
46 ~VideoWidget(); |
47 ~VideoWidget(); |
|
48 |
|
49 #ifndef PHONON_MMF_VIDEO_SURFACES |
|
50 void setAncestorMoveMonitor(AncestorMoveMonitor *ancestorMoveMonitor); |
|
51 #endif |
47 |
52 |
48 // VideoWidgetInterface |
53 // VideoWidgetInterface |
49 virtual Phonon::VideoWidget::AspectRatio aspectRatio() const; |
54 virtual Phonon::VideoWidget::AspectRatio aspectRatio() const; |
50 virtual void setAspectRatio(Phonon::VideoWidget::AspectRatio aspectRatio); |
55 virtual void setAspectRatio(Phonon::VideoWidget::AspectRatio aspectRatio); |
51 virtual qreal brightness() const; |
56 virtual qreal brightness() const; |
64 // MediaNode |
69 // MediaNode |
65 void connectMediaObject(MediaObject *mediaObject); |
70 void connectMediaObject(MediaObject *mediaObject); |
66 void disconnectMediaObject(MediaObject *mediaObject); |
71 void disconnectMediaObject(MediaObject *mediaObject); |
67 |
72 |
68 private: |
73 private: |
69 QScopedPointer<VideoOutput> m_videoOutput; |
74 QScopedPointer<AbstractVideoOutput> m_videoOutput; |
70 |
75 |
71 qreal m_brightness; |
76 qreal m_brightness; |
72 qreal m_contrast; |
77 qreal m_contrast; |
73 qreal m_hue; |
78 qreal m_hue; |
74 qreal m_saturation; |
79 qreal m_saturation; |