Diffstat (limited to 'noncore/multimedia/opieplayer2/xinevideowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinevideowidget.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.h b/noncore/multimedia/opieplayer2/xinevideowidget.h index c5101da..33f1470 100644 --- a/noncore/multimedia/opieplayer2/xinevideowidget.h +++ b/noncore/multimedia/opieplayer2/xinevideowidget.h | |||
@@ -1,8 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | Copyright (c) 2002 Max Reiss <harlekin@handhelds.org> | 4 | Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> |
5 | Copyright (c) 2002 LJP <> | ||
6 | Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> | 5 | Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> |
7 | =. | 6 | =. |
8 | .=l. | 7 | .=l. |
@@ -38,36 +37,38 @@ | |||
38 | #include "lib.h" | 37 | #include "lib.h" |
39 | 38 | ||
40 | class QImage; | 39 | class QImage; |
40 | |||
41 | |||
41 | class XineVideoWidget : public QWidget { | 42 | class XineVideoWidget : public QWidget { |
42 | Q_OBJECT | 43 | Q_OBJECT |
44 | |||
43 | public: | 45 | public: |
44 | XineVideoWidget( QWidget* parent, const char* name ); | 46 | XineVideoWidget ( QWidget* parent, const char* name ); |
45 | ~XineVideoWidget(); | 47 | ~XineVideoWidget ( ); |
46 | QImage *image() { return m_image; }; | 48 | QImage *logo ( ) const; |
47 | void setImage( QImage* image ); | 49 | void setLogo ( QImage *image ); |
48 | void setImage( uchar* image, int width, int height, int linestep); | 50 | void setVideoFrame ( uchar *image, int width, int height, int linestep ); |
49 | void clear() ; | 51 | void clear ( ); |
50 | 52 | ||
51 | protected: | 53 | protected: |
52 | void paintEvent( QPaintEvent* p ); | 54 | void paintEvent( QPaintEvent *p ); |
53 | void resizeEvent ( QResizeEvent *r ); | 55 | void resizeEvent ( QResizeEvent *r ); |
54 | 56 | ||
55 | void mousePressEvent ( QMouseEvent *e ); | ||
56 | void mouseReleaseEvent ( QMouseEvent *e ); | 57 | void mouseReleaseEvent ( QMouseEvent *e ); |
57 | 58 | ||
58 | signals: | 59 | signals: |
59 | void clicked(); | 60 | void clicked ( ); |
60 | void videoResized ( const QSize &s ); | 61 | void videoResized ( const QSize &s ); |
61 | 62 | ||
62 | private: | 63 | private: |
63 | QRect m_lastframe; | 64 | QRect m_lastframe; |
64 | QRect m_thisframe; | 65 | QRect m_thisframe; |
65 | 66 | ||
66 | uchar* m_buff; | 67 | uchar *m_buff; |
67 | int m_bytes_per_line_fb; | 68 | int m_bytes_per_line_fb; |
68 | int m_bytes_per_line_frame; | 69 | int m_bytes_per_line_frame; |
69 | int m_bytes_per_pixel; | 70 | int m_bytes_per_pixel; |
70 | QImage* m_image; | 71 | QImage *m_logo; |
71 | int m_rotation; | 72 | int m_rotation; |
72 | }; | 73 | }; |
73 | 74 | ||