src/3rdparty/phonon/mmf/videowidget.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    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 "mmf_medianode.h"
    22 #include "mmf_medianode.h"
       
    23 #include "videooutput.h"
    23 
    24 
    24 #include <QtGui/QWidget>
    25 #include <QtGui/QWidget>
    25 #include <Phonon/VideoWidget>
    26 #include <Phonon/VideoWidget>
    26 #include <Phonon/VideoWidgetInterface>
    27 #include <Phonon/VideoWidgetInterface>
    27 
    28 
    29 
    30 
    30 namespace Phonon
    31 namespace Phonon
    31 {
    32 {
    32 namespace MMF
    33 namespace MMF
    33 {
    34 {
       
    35 class AncestorMoveMonitor;
    34 class VideoOutput;
    36 class VideoOutput;
    35 
    37 
    36 class VideoWidget       :   public MediaNode
    38 class VideoWidget       :   public MediaNode
    37                         ,   public Phonon::VideoWidgetInterface
    39                         ,   public Phonon::VideoWidgetInterface
    38 {
    40 {
    39     Q_OBJECT
    41     Q_OBJECT
    40     Q_INTERFACES(Phonon::VideoWidgetInterface)
    42     Q_INTERFACES(Phonon::VideoWidgetInterface)
    41 
    43 
    42 public:
    44 public:
    43     VideoWidget(QWidget* parent);
    45     VideoWidget(AncestorMoveMonitor* ancestorMoveMonitor, QWidget* parent);
    44     ~VideoWidget();
    46     ~VideoWidget();
    45 
    47 
    46     // VideoWidgetInterface
    48     // VideoWidgetInterface
    47     virtual Phonon::VideoWidget::AspectRatio aspectRatio() const;
    49     virtual Phonon::VideoWidget::AspectRatio aspectRatio() const;
    48     virtual void setAspectRatio(Phonon::VideoWidget::AspectRatio aspectRatio);
    50     virtual void setAspectRatio(Phonon::VideoWidget::AspectRatio aspectRatio);
    56     virtual void setHue(qreal hue);
    58     virtual void setHue(qreal hue);
    57     virtual qreal saturation() const;
    59     virtual qreal saturation() const;
    58     virtual void setSaturation(qreal saturation);
    60     virtual void setSaturation(qreal saturation);
    59     virtual QWidget *widget();
    61     virtual QWidget *widget();
    60 
    62 
    61     VideoOutput& videoOutput();
       
    62 
       
    63 protected:
    63 protected:
    64     virtual bool activateOnMediaObject(MediaObject *mo);
    64     virtual bool activateOnMediaObject(MediaObject *mo);
    65 
    65 
    66 private:
    66 private:
    67     QScopedPointer<QWidget>                 m_widget;
    67     QScopedPointer<VideoOutput>             m_videoOutput;
    68 
    68 
    69     Phonon::VideoWidget::AspectRatio        m_aspectRatio;
       
    70     qreal                                   m_brightness;
    69     qreal                                   m_brightness;
    71     Phonon::VideoWidget::ScaleMode          m_scaleMode;
       
    72     qreal                                   m_contrast;
    70     qreal                                   m_contrast;
    73     qreal                                   m_hue;
    71     qreal                                   m_hue;
    74     qreal                                   m_saturation;
    72     qreal                                   m_saturation;
    75 
    73 
    76 };
    74 };