00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef QGST_UI_VIDEOWIDGET_H
00020 #define QGST_UI_VIDEOWIDGET_H
00021
00022 #ifdef Q_MOC_RUN
00023 #define BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
00024 #endif
00025
00026 #include "global.h"
00027 #include "../element.h"
00028 #include <QtGui/QWidget>
00029
00030 namespace QGst {
00031 namespace Ui {
00032
00033 class AbstractRenderer;
00034
00065 class QTGSTREAMERUI_EXPORT VideoWidget : public QWidget
00066 {
00067 Q_OBJECT
00068 public:
00069 VideoWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
00070 virtual ~VideoWidget();
00071
00072
00076 ElementPtr videoSink() const;
00077
00085 void setVideoSink(const ElementPtr & sink);
00086
00090 void releaseVideoSink();
00091
00092
00102 void watchPipeline(const PipelinePtr & pipeline);
00103
00108 void stopPipelineWatch();
00109
00110 protected:
00111 virtual void paintEvent(QPaintEvent *event);
00112
00113 private:
00114 AbstractRenderer *d;
00115 };
00116
00117 }
00118 }
00119
00120 #endif // QGST_UI_VIDEOWIDGET_H