Diffstat (limited to 'noncore/multimedia/opieplayer2/xinevideowidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinevideowidget.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.h b/noncore/multimedia/opieplayer2/xinevideowidget.h index 7d9a6d2..2fc627d 100644 --- a/noncore/multimedia/opieplayer2/xinevideowidget.h +++ b/noncore/multimedia/opieplayer2/xinevideowidget.h @@ -37,2 +37,4 @@ +#include "lib.h" + class QImage; @@ -41,3 +43,3 @@ class XineVideoWidget : public QWidget { public: - XineVideoWidget( int width, int height, QWidget* parent, const char* name ); + XineVideoWidget( QWidget* parent, const char* name ); ~XineVideoWidget(); @@ -45,9 +47,15 @@ public: void setImage( QImage* image ); - void setImage( uchar* image, int yoffsetXLine, int xoffsetXBytes, - int width, int height, int linestep, int bytes, int bpp); - int width() const; - int height() const; + void setImage( uchar* image, int width, int height, int linestep); void clear() ; + protected: void paintEvent( QPaintEvent* p ); + void resizeEvent ( QResizeEvent *r ); + + void mousePressEvent ( QMouseEvent *e ); + void mouseReleaseEvent ( QMouseEvent *e ); + +signals: + void videoResized ( const QSize &s ); + private: @@ -61,3 +69,3 @@ private: QImage* m_image; - + int m_rotation; }; |