Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h index 7cb1d79..54adb36 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.h +++ b/noncore/multimedia/opieplayer2/audiowidget.h | |||
@@ -33,24 +33,25 @@ | |||
33 | 33 | ||
34 | #ifndef AUDIO_WIDGET_H | 34 | #ifndef AUDIO_WIDGET_H |
35 | #define AUDIO_WIDGET_H | 35 | #define AUDIO_WIDGET_H |
36 | 36 | ||
37 | #include <qwidget.h> | 37 | #include <qwidget.h> |
38 | #include <qpainter.h> | 38 | #include <qpainter.h> |
39 | #include <qdrawutil.h> | 39 | #include <qdrawutil.h> |
40 | #include <qpixmap.h> | 40 | #include <qpixmap.h> |
41 | #include <qstring.h> | 41 | #include <qstring.h> |
42 | #include <qslider.h> | 42 | #include <qslider.h> |
43 | #include <qframe.h> | 43 | #include <qframe.h> |
44 | #include <qlineedit.h> | 44 | #include <qlineedit.h> |
45 | #include <qimage.h> | ||
45 | 46 | ||
46 | #include <opie/oticker.h> | 47 | #include <opie/oticker.h> |
47 | 48 | ||
48 | class QPixmap; | 49 | class QPixmap; |
49 | 50 | ||
50 | namespace { | 51 | namespace { |
51 | 52 | ||
52 | enum AudioButtons { | 53 | enum AudioButtons { |
53 | AudioPlay=0, | 54 | AudioPlay=0, |
54 | AudioStop, | 55 | AudioStop, |
55 | AudioNext, | 56 | AudioNext, |
56 | AudioPrevious, | 57 | AudioPrevious, |
@@ -104,28 +105,28 @@ protected: | |||
104 | void closeEvent( QCloseEvent *event ); | 105 | void closeEvent( QCloseEvent *event ); |
105 | void keyReleaseEvent( QKeyEvent *e); | 106 | void keyReleaseEvent( QKeyEvent *e); |
106 | private slots: | 107 | private slots: |
107 | void skipFor(); | 108 | void skipFor(); |
108 | void skipBack(); | 109 | void skipBack(); |
109 | void stopSkip(); | 110 | void stopSkip(); |
110 | private: | 111 | private: |
111 | void toggleButton( int ); | 112 | void toggleButton( int ); |
112 | void setToggleButton( int, bool ); | 113 | void setToggleButton( int, bool ); |
113 | void paintButton( QPainter *p, int i ); | 114 | void paintButton( QPainter *p, int i ); |
114 | int skipDirection; | 115 | int skipDirection; |
115 | QString skin; | 116 | QString skin; |
116 | QPixmap *pixBg; | 117 | QPixmap pixBg; |
117 | QImage *imgUp; | 118 | QImage imgUp; |
118 | QImage *imgDn; | 119 | QImage imgDn; |
119 | QImage *imgButtonMask; | 120 | QImage imgButtonMask; |
120 | QBitmap *masks[10]; | 121 | QBitmap *masks[10]; |
121 | QPixmap *buttonPixUp[10]; | 122 | QPixmap *buttonPixUp[10]; |
122 | QPixmap *buttonPixDown[10]; | 123 | QPixmap *buttonPixDown[10]; |
123 | 124 | ||
124 | QPixmap *pixmaps[4]; | 125 | QPixmap *pixmaps[4]; |
125 | OTicker songInfo; | 126 | OTicker songInfo; |
126 | QSlider slider; | 127 | QSlider slider; |
127 | QLineEdit time; | 128 | QLineEdit time; |
128 | int xoff, yoff; | 129 | int xoff, yoff; |
129 | bool isStreaming : 1; | 130 | bool isStreaming : 1; |
130 | }; | 131 | }; |
131 | 132 | ||