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 #include "global.h"
00023 #include "../element.h"
00024 #include <QtGui/QWidget>
00025
00026 namespace QGst {
00027 namespace Ui {
00028
00029 class AbstractRenderer;
00030
00061 class QTGSTREAMERUI_EXPORT VideoWidget : public QWidget
00062 {
00063 Q_OBJECT
00064 public:
00065 VideoWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
00066 virtual ~VideoWidget();
00067
00068
00072 ElementPtr videoSink() const;
00073
00081 void setVideoSink(const ElementPtr & sink);
00082
00086 void releaseVideoSink();
00087
00088
00098 void watchPipeline(const PipelinePtr & pipeline);
00099
00104 void stopPipelineWatch();
00105
00106 protected:
00107 virtual void paintEvent(QPaintEvent *event);
00108
00109 private:
00110 AbstractRenderer *d;
00111 };
00112
00113 }
00114 }
00115
00116 #endif // QGST_UI_VIDEOWIDGET_H