Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index 149c78e..ae0e687 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h | |||
@@ -26,24 +26,26 @@ | |||
26 | -_. . . )=. = Library General Public License along with | 26 | -_. . . )=. = Library General Public License along with |
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #ifndef VIDEO_WIDGET_H | 34 | #ifndef VIDEO_WIDGET_H |
35 | #define VIDEO_WIDGET_H | 35 | #define VIDEO_WIDGET_H |
36 | 36 | ||
37 | #include <qwidget.h> | 37 | #include <qwidget.h> |
38 | #include <qimage.h> | ||
39 | #include <qpixmap.h> | ||
38 | #include "xinevideowidget.h" | 40 | #include "xinevideowidget.h" |
39 | 41 | ||
40 | #include "mediawidget.h" | 42 | #include "mediawidget.h" |
41 | 43 | ||
42 | class QPixmap; | 44 | class QPixmap; |
43 | class QSlider; | 45 | class QSlider; |
44 | 46 | ||
45 | enum VideoButtons { | 47 | enum VideoButtons { |
46 | VideoStop = 0, | 48 | VideoStop = 0, |
47 | VideoPlay, | 49 | VideoPlay, |
48 | // VideoPause, | 50 | // VideoPause, |
49 | VideoPrevious, | 51 | VideoPrevious, |
@@ -86,28 +88,28 @@ signals: | |||
86 | protected: | 88 | protected: |
87 | 89 | ||
88 | void resizeEvent( QResizeEvent * ); | 90 | void resizeEvent( QResizeEvent * ); |
89 | void paintEvent( QPaintEvent *pe ); | 91 | void paintEvent( QPaintEvent *pe ); |
90 | void showEvent( QShowEvent *se ); | 92 | void showEvent( QShowEvent *se ); |
91 | void mouseMoveEvent( QMouseEvent *event ); | 93 | void mouseMoveEvent( QMouseEvent *event ); |
92 | void mousePressEvent( QMouseEvent *event ); | 94 | void mousePressEvent( QMouseEvent *event ); |
93 | void mouseReleaseEvent( QMouseEvent *event ); | 95 | void mouseReleaseEvent( QMouseEvent *event ); |
94 | void keyReleaseEvent( QKeyEvent *e); | 96 | void keyReleaseEvent( QKeyEvent *e); |
95 | 97 | ||
96 | private: | 98 | private: |
97 | // Ticker songInfo; | 99 | // Ticker songInfo; |
98 | QPixmap *pixBg; | 100 | QPixmap pixBg; |
99 | QImage *imgUp; | 101 | QImage imgUp; |
100 | QImage *imgDn; | 102 | QImage imgDn; |
101 | QImage *imgButtonMask; | 103 | QImage imgButtonMask; |
102 | QBitmap *masks[7]; | 104 | QBitmap *masks[7]; |
103 | QPixmap *buttonPixUp[7]; | 105 | QPixmap *buttonPixUp[7]; |
104 | QPixmap *buttonPixDown[7]; | 106 | QPixmap *buttonPixDown[7]; |
105 | QString skin; | 107 | QString skin; |
106 | // QPixmap *pixmaps[4]; | 108 | // QPixmap *pixmaps[4]; |
107 | int xoff, yoff; | 109 | int xoff, yoff; |
108 | 110 | ||
109 | 111 | ||
110 | void paintButton( QPainter *p, int i ); | 112 | void paintButton( QPainter *p, int i ); |
111 | void toggleButton( int ); | 113 | void toggleButton( int ); |
112 | void setToggleButton( int, bool ); | 114 | void setToggleButton( int, bool ); |
113 | 115 | ||