author | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
commit | 0cecd08dba036f39e414e34a2b7c070008ee3884 (patch) (side-by-side diff) | |
tree | c187c9308f0553b1d5d9cd59093bcc3c11740665 /noncore/multimedia/opieplayer2/xinevideowidget.h | |
parent | 8fb605fdfbbcbc654f567efcb59f02ec0d26228a (diff) | |
download | opie-0cecd08dba036f39e414e34a2b7c070008ee3884.zip opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.gz opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.bz2 |
Added support for fullscreen playback
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinevideowidget.h') (more/less context) (ignore 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; }; |