author | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
commit | 0cecd08dba036f39e414e34a2b7c070008ee3884 (patch) (unidiff) | |
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 | |||
@@ -36,19 +36,27 @@ | |||
36 | #include <qwidget.h> | 36 | #include <qwidget.h> |
37 | 37 | ||
38 | #include "lib.h" | ||
39 | |||
38 | class QImage; | 40 | class QImage; |
39 | class XineVideoWidget : public QWidget { | 41 | class XineVideoWidget : public QWidget { |
40 | Q_OBJECT | 42 | Q_OBJECT |
41 | public: | 43 | public: |
42 | XineVideoWidget( int width, int height, QWidget* parent, const char* name ); | 44 | XineVideoWidget( QWidget* parent, const char* name ); |
43 | ~XineVideoWidget(); | 45 | ~XineVideoWidget(); |
44 | QImage *image() { return m_image; }; | 46 | QImage *image() { return m_image; }; |
45 | void setImage( QImage* image ); | 47 | void setImage( QImage* image ); |
46 | void setImage( uchar* image, int yoffsetXLine, int xoffsetXBytes, | 48 | void setImage( uchar* image, int width, int height, int linestep); |
47 | int width, int height, int linestep, int bytes, int bpp); | ||
48 | int width() const; | ||
49 | int height() const; | ||
50 | void clear() ; | 49 | void clear() ; |
50 | |||
51 | protected: | 51 | protected: |
52 | void paintEvent( QPaintEvent* p ); | 52 | void paintEvent( QPaintEvent* p ); |
53 | void resizeEvent ( QResizeEvent *r ); | ||
54 | |||
55 | void mousePressEvent ( QMouseEvent *e ); | ||
56 | void mouseReleaseEvent ( QMouseEvent *e ); | ||
57 | |||
58 | signals: | ||
59 | void videoResized ( const QSize &s ); | ||
60 | |||
53 | private: | 61 | private: |
54 | QRect m_lastframe; | 62 | QRect m_lastframe; |
@@ -60,5 +68,5 @@ private: | |||
60 | int m_bytes_per_pixel; | 68 | int m_bytes_per_pixel; |
61 | QImage* m_image; | 69 | QImage* m_image; |
62 | 70 | int m_rotation; | |
63 | }; | 71 | }; |
64 | 72 | ||