00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QGST_UI_GRAPHICSVIDEOWIDGET_H
00019 #define QGST_UI_GRAPHICSVIDEOWIDGET_H
00020
00021 #include "graphicsvideosurface.h"
00022 #include <QtGui/QGraphicsWidget>
00023
00024 namespace QGst {
00025 namespace Ui {
00026
00037 class QTGSTREAMERUI_EXPORT GraphicsVideoWidget : public QGraphicsWidget
00038 {
00039 Q_OBJECT
00040 Q_DISABLE_COPY(GraphicsVideoWidget)
00041 Q_PROPERTY(QGst::Ui::GraphicsVideoSurface* surface READ surface WRITE setSurface)
00042 public:
00043 explicit GraphicsVideoWidget(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0);
00044 virtual ~GraphicsVideoWidget();
00045
00047 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
00048
00049 GraphicsVideoSurface *surface() const;
00050 void setSurface(GraphicsVideoSurface *surface);
00051
00052 private:
00053 QWeakPointer<GraphicsVideoSurface> m_surface;
00054 };
00055
00056 }
00057 }
00058
00059 #endif // QGST_UI_GRAPHICSVIDEOWIDGET_H