Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index 92193a4..710ba9e 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h | |||
@@ -38,13 +38,13 @@ | |||
38 | #include "xinevideowidget.h" | 38 | #include "xinevideowidget.h" |
39 | 39 | ||
40 | class QPixmap; | 40 | class QPixmap; |
41 | class QSlider; | 41 | class QSlider; |
42 | 42 | ||
43 | enum VideoButtons { | 43 | enum VideoButtons { |
44 | VideoStop, | 44 | VideoStop = 0, |
45 | VideoPlay, | 45 | VideoPlay, |
46 | // VideoPause, | 46 | // VideoPause, |
47 | VideoPrevious, | 47 | VideoPrevious, |
48 | VideoNext, | 48 | VideoNext, |
49 | VideoVolUp, | 49 | VideoVolUp, |
50 | VideoVolDown, | 50 | VideoVolDown, |
@@ -54,13 +54,13 @@ enum VideoButtons { | |||
54 | class VideoWidget : public QWidget { | 54 | class VideoWidget : public QWidget { |
55 | Q_OBJECT | 55 | Q_OBJECT |
56 | public: | 56 | public: |
57 | VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); | 57 | VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); |
58 | ~VideoWidget(); | 58 | ~VideoWidget(); |
59 | 59 | ||
60 | bool playVideo(); | 60 | |
61 | XineVideoWidget* vidWidget(); | 61 | XineVideoWidget* vidWidget(); |
62 | public slots: | 62 | public slots: |
63 | void updateSlider( long, long ); | 63 | void updateSlider( long, long ); |
64 | void sliderPressed( ); | 64 | void sliderPressed( ); |
65 | void sliderReleased( ); | 65 | void sliderReleased( ); |
66 | void setPaused( bool b); | 66 | void setPaused( bool b); |
@@ -69,19 +69,24 @@ public slots: | |||
69 | void makeVisible(); | 69 | void makeVisible(); |
70 | void setPosition( long ); | 70 | void setPosition( long ); |
71 | void setLength( long ); | 71 | void setLength( long ); |
72 | void setView( char ); | 72 | void setView( char ); |
73 | 73 | ||
74 | signals: | 74 | signals: |
75 | void moreClicked(); | ||
76 | void lessClicked(); | ||
77 | void moreReleased(); | ||
78 | void lessReleased(); | ||
75 | void sliderMoved( long ); | 79 | void sliderMoved( long ); |
76 | void videoResized ( const QSize &s ); | 80 | void videoResized ( const QSize &s ); |
77 | 81 | ||
78 | protected: | 82 | protected: |
79 | QString skin; | 83 | |
80 | void resizeEvent( QResizeEvent * ); | 84 | void resizeEvent( QResizeEvent * ); |
81 | void paintEvent( QPaintEvent *pe ); | 85 | void paintEvent( QPaintEvent *pe ); |
86 | void showEvent( QShowEvent *se ); | ||
82 | void mouseMoveEvent( QMouseEvent *event ); | 87 | void mouseMoveEvent( QMouseEvent *event ); |
83 | void mousePressEvent( QMouseEvent *event ); | 88 | void mousePressEvent( QMouseEvent *event ); |
84 | void mouseReleaseEvent( QMouseEvent *event ); | 89 | void mouseReleaseEvent( QMouseEvent *event ); |
85 | void closeEvent( QCloseEvent *event ); | 90 | void closeEvent( QCloseEvent *event ); |
86 | void keyReleaseEvent( QKeyEvent *e); | 91 | void keyReleaseEvent( QKeyEvent *e); |
87 | 92 | ||
@@ -91,15 +96,16 @@ private: | |||
91 | QImage *imgUp; | 96 | QImage *imgUp; |
92 | QImage *imgDn; | 97 | QImage *imgDn; |
93 | QImage *imgButtonMask; | 98 | QImage *imgButtonMask; |
94 | QBitmap *masks[7]; | 99 | QBitmap *masks[7]; |
95 | QPixmap *buttonPixUp[7]; | 100 | QPixmap *buttonPixUp[7]; |
96 | QPixmap *buttonPixDown[7]; | 101 | QPixmap *buttonPixDown[7]; |
102 | QString skin; | ||
97 | // QPixmap *pixmaps[4]; | 103 | // QPixmap *pixmaps[4]; |
98 | int xoff, yoff; | 104 | int xoff, yoff; |
99 | 105 | ||
100 | 106 | ||
101 | void paintButton( QPainter *p, int i ); | 107 | void paintButton( QPainter *p, int i ); |
102 | void toggleButton( int ); | 108 | void toggleButton( int ); |
103 | void setToggleButton( int, bool ); | 109 | void setToggleButton( int, bool ); |
104 | 110 | ||
105 | QString backgroundPix; | 111 | QString backgroundPix; |