author | llornkcor <llornkcor> | 2002-07-29 23:36:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-29 23:36:40 (UTC) |
commit | ce331dbef4c05d829f655707ea3bf22f3187340b (patch) (unidiff) | |
tree | d69bf0314427ed6b8bb49f3e7a7900ac88f6404d | |
parent | 3507cf869b041872b0547bb595c1cbf5c0501cb9 (diff) | |
download | opie-ce331dbef4c05d829f655707ea3bf22f3187340b.zip opie-ce331dbef4c05d829f655707ea3bf22f3187340b.tar.gz opie-ce331dbef4c05d829f655707ea3bf22f3187340b.tar.bz2 |
add qlineedit.h include
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h index 9bc924d..2b892be 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.h +++ b/noncore/multimedia/opieplayer2/audiowidget.h | |||
@@ -1,107 +1,108 @@ | |||
1 | #ifndef AUDIO_WIDGET_H | 1 | #ifndef AUDIO_WIDGET_H |
2 | #define AUDIO_WIDGET_H | 2 | #define AUDIO_WIDGET_H |
3 | 3 | ||
4 | #include <qwidget.h> | 4 | #include <qwidget.h> |
5 | #include <qpainter.h> | 5 | #include <qpainter.h> |
6 | #include <qdrawutil.h> | 6 | #include <qdrawutil.h> |
7 | #include <qpixmap.h> | 7 | #include <qpixmap.h> |
8 | #include <qstring.h> | 8 | #include <qstring.h> |
9 | #include <qslider.h> | 9 | #include <qslider.h> |
10 | #include <qframe.h> | 10 | #include <qframe.h> |
11 | #include <qlineedit.h> | ||
11 | 12 | ||
12 | 13 | ||
13 | class QPixmap; | 14 | class QPixmap; |
14 | 15 | ||
15 | enum AudioButtons { | 16 | enum AudioButtons { |
16 | AudioPlay=0, | 17 | AudioPlay=0, |
17 | AudioStop, | 18 | AudioStop, |
18 | AudioPause, | 19 | AudioPause, |
19 | AudioNext, | 20 | AudioNext, |
20 | AudioPrevious, | 21 | AudioPrevious, |
21 | AudioVolumeUp, | 22 | AudioVolumeUp, |
22 | AudioVolumeDown, | 23 | AudioVolumeDown, |
23 | AudioLoop, | 24 | AudioLoop, |
24 | AudioPlayList | 25 | AudioPlayList |
25 | }; | 26 | }; |
26 | 27 | ||
27 | 28 | ||
28 | //#define USE_DBLBUF | 29 | //#define USE_DBLBUF |
29 | 30 | ||
30 | 31 | ||
31 | class Ticker : public QFrame { | 32 | class Ticker : public QFrame { |
32 | Q_OBJECT | 33 | Q_OBJECT |
33 | 34 | ||
34 | public: | 35 | public: |
35 | Ticker( QWidget* parent=0 ); | 36 | Ticker( QWidget* parent=0 ); |
36 | ~Ticker(); | 37 | ~Ticker(); |
37 | void setText( const QString& text ) ; | 38 | void setText( const QString& text ) ; |
38 | 39 | ||
39 | protected: | 40 | protected: |
40 | void timerEvent( QTimerEvent * ); | 41 | void timerEvent( QTimerEvent * ); |
41 | void drawContents( QPainter *p ); | 42 | void drawContents( QPainter *p ); |
42 | private: | 43 | private: |
43 | QString scrollText; | 44 | QString scrollText; |
44 | int pos, pixelLen; | 45 | int pos, pixelLen; |
45 | }; | 46 | }; |
46 | 47 | ||
47 | 48 | ||
48 | class AudioWidget : public QWidget { | 49 | class AudioWidget : public QWidget { |
49 | Q_OBJECT | 50 | Q_OBJECT |
50 | public: | 51 | public: |
51 | AudioWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); | 52 | AudioWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); |
52 | ~AudioWidget(); | 53 | ~AudioWidget(); |
53 | void setTickerText( const QString &text ) { songInfo.setText( text ); } | 54 | void setTickerText( const QString &text ) { songInfo.setText( text ); } |
54 | bool isStreaming; | 55 | bool isStreaming; |
55 | public slots: | 56 | public slots: |
56 | void updateSlider( long, long ); | 57 | void updateSlider( long, long ); |
57 | void sliderPressed( ); | 58 | void sliderPressed( ); |
58 | void sliderReleased( ); | 59 | void sliderReleased( ); |
59 | void setPaused( bool b) { setToggleButton( AudioPause, b ); } | 60 | void setPaused( bool b) { setToggleButton( AudioPause, b ); } |
60 | void setLooping( bool b) { setToggleButton( AudioLoop, b ); } | 61 | void setLooping( bool b) { setToggleButton( AudioLoop, b ); } |
61 | void setPlaying( bool b) { setToggleButton( AudioPlay, b ); } | 62 | void setPlaying( bool b) { setToggleButton( AudioPlay, b ); } |
62 | void setPosition( long ); | 63 | void setPosition( long ); |
63 | void setLength( long ); | 64 | void setLength( long ); |
64 | void setView( char ); | 65 | void setView( char ); |
65 | 66 | ||
66 | signals: | 67 | signals: |
67 | void moreClicked(); | 68 | void moreClicked(); |
68 | void lessClicked(); | 69 | void lessClicked(); |
69 | void moreReleased(); | 70 | void moreReleased(); |
70 | void lessReleased(); | 71 | void lessReleased(); |
71 | void sliderMoved(long); | 72 | void sliderMoved(long); |
72 | 73 | ||
73 | protected: | 74 | protected: |
74 | void doBlank(); | 75 | void doBlank(); |
75 | void doUnblank(); | 76 | void doUnblank(); |
76 | void paintEvent( QPaintEvent *pe ); | 77 | void paintEvent( QPaintEvent *pe ); |
77 | void showEvent( QShowEvent *se ); | 78 | void showEvent( QShowEvent *se ); |
78 | void resizeEvent( QResizeEvent *re ); | 79 | void resizeEvent( QResizeEvent *re ); |
79 | void mouseMoveEvent( QMouseEvent *event ); | 80 | void mouseMoveEvent( QMouseEvent *event ); |
80 | void mousePressEvent( QMouseEvent *event ); | 81 | void mousePressEvent( QMouseEvent *event ); |
81 | void mouseReleaseEvent( QMouseEvent *event ); | 82 | void mouseReleaseEvent( QMouseEvent *event ); |
82 | void timerEvent( QTimerEvent *event ); | 83 | void timerEvent( QTimerEvent *event ); |
83 | void closeEvent( QCloseEvent *event ); | 84 | void closeEvent( QCloseEvent *event ); |
84 | void keyReleaseEvent( QKeyEvent *e); | 85 | void keyReleaseEvent( QKeyEvent *e); |
85 | private: | 86 | private: |
86 | void toggleButton( int ); | 87 | void toggleButton( int ); |
87 | void setToggleButton( int, bool ); | 88 | void setToggleButton( int, bool ); |
88 | void paintButton( QPainter *p, int i ); | 89 | void paintButton( QPainter *p, int i ); |
89 | QString skin; | 90 | QString skin; |
90 | QPixmap *pixBg; | 91 | QPixmap *pixBg; |
91 | QImage *imgUp; | 92 | QImage *imgUp; |
92 | QImage *imgDn; | 93 | QImage *imgDn; |
93 | QImage *imgButtonMask; | 94 | QImage *imgButtonMask; |
94 | QBitmap *masks[11]; | 95 | QBitmap *masks[11]; |
95 | QPixmap *buttonPixUp[11]; | 96 | QPixmap *buttonPixUp[11]; |
96 | QPixmap *buttonPixDown[11]; | 97 | QPixmap *buttonPixDown[11]; |
97 | 98 | ||
98 | QPixmap *pixmaps[4]; | 99 | QPixmap *pixmaps[4]; |
99 | Ticker songInfo; | 100 | Ticker songInfo; |
100 | QSlider slider; | 101 | QSlider slider; |
101 | QLineEdit time; | 102 | QLineEdit time; |
102 | int xoff, yoff; | 103 | int xoff, yoff; |
103 | }; | 104 | }; |
104 | 105 | ||
105 | 106 | ||
106 | #endif // AUDIO_WIDGET_H | 107 | #endif // AUDIO_WIDGET_H |
107 | 108 | ||