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 @@ | |||
37 | 37 | ||
38 | #include "lib.h" | ||
39 | |||
38 | class QImage; | 40 | class QImage; |
@@ -41,3 +43,3 @@ class XineVideoWidget : public QWidget { | |||
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(); |
@@ -45,9 +47,15 @@ public: | |||
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: |
@@ -61,3 +69,3 @@ private: | |||
61 | QImage* m_image; | 69 | QImage* m_image; |
62 | 70 | int m_rotation; | |
63 | }; | 71 | }; |