summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/audiowidget.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h
index 09dc19b..bcd941e 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.h
+++ b/noncore/multimedia/opieplayer2/audiowidget.h
@@ -44,97 +44,96 @@
44#include <qlineedit.h> 44#include <qlineedit.h>
45 45
46 46
47class QPixmap; 47class QPixmap;
48 48
49namespace { 49namespace {
50 50
51enum AudioButtons { 51enum AudioButtons {
52 AudioPlay=0, 52 AudioPlay=0,
53 AudioStop, 53 AudioStop,
54 AudioNext, 54 AudioNext,
55 AudioPrevious, 55 AudioPrevious,
56 AudioVolumeUp, 56 AudioVolumeUp,
57 AudioVolumeDown, 57 AudioVolumeDown,
58 AudioLoop, 58 AudioLoop,
59 AudioPlayList, 59 AudioPlayList,
60 AudioForward, 60 AudioForward,
61 AudioBack 61 AudioBack
62}; 62};
63}; 63};
64 64
65class Ticker : public QFrame { 65class Ticker : public QFrame {
66 Q_OBJECT 66 Q_OBJECT
67 67
68public: 68public:
69 Ticker( QWidget* parent=0 ); 69 Ticker( QWidget* parent=0 );
70 ~Ticker(); 70 ~Ticker();
71 void setText( const QString& text ) ; 71 void setText( const QString& text ) ;
72 72
73protected: 73protected:
74 void timerEvent( QTimerEvent * ); 74 void timerEvent( QTimerEvent * );
75 void drawContents( QPainter *p ); 75 void drawContents( QPainter *p );
76private: 76private:
77 QString scrollText; 77 QString scrollText;
78 int pos, pixelLen; 78 int pos, pixelLen;
79}; 79};
80 80
81 81
82class AudioWidget : public QWidget { 82class AudioWidget : public QWidget {
83 Q_OBJECT 83 Q_OBJECT
84public: 84public:
85 AudioWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); 85 AudioWidget( QWidget* parent=0, const char* name=0, WFlags f=0 );
86 ~AudioWidget(); 86 ~AudioWidget();
87 void setTickerText( const QString &text ) { songInfo.setText( text ); } 87 void setTickerText( const QString &text ) { songInfo.setText( text ); }
88public slots: 88public slots:
89 void updateSlider( long, long ); 89 void updateSlider( long, long );
90 void sliderPressed( ); 90 void sliderPressed( );
91 void sliderReleased( ); 91 void sliderReleased( );
92// void setPaused( bool b) { setToggleButton( AudioPause, b ); }
93 void setLooping( bool b) { setToggleButton( AudioLoop, b ); } 92 void setLooping( bool b) { setToggleButton( AudioLoop, b ); }
94 void setPlaying( bool b) { setToggleButton( AudioPlay, b ); } 93 void setPlaying( bool b) { setToggleButton( AudioPlay, b ); }
95 void setPosition( long ); 94 void setPosition( long );
96 void setLength( long ); 95 void setLength( long );
97 void setSeekable( bool ); 96 void setSeekable( bool );
98 void setView( char ); 97 void setView( char );
99 98
100signals: 99signals:
101 void moreClicked(); 100 void moreClicked();
102 void lessClicked(); 101 void lessClicked();
103 void moreReleased(); 102 void moreReleased();
104 void lessReleased(); 103 void lessReleased();
105 void forwardClicked(); 104 void forwardClicked();
106 void backClicked(); 105 void backClicked();
107 void forwardReleased(); 106 void forwardReleased();
108 void backReleased(); 107 void backReleased();
109 void sliderMoved(long); 108 void sliderMoved(long);
110 109
111protected: 110protected:
112 void doBlank(); 111 void doBlank();
113 void doUnblank(); 112 void doUnblank();
114 void paintEvent( QPaintEvent *pe ); 113 void paintEvent( QPaintEvent *pe );
115 void showEvent( QShowEvent *se ); 114 void showEvent( QShowEvent *se );
116 void resizeEvent( QResizeEvent *re ); 115 void resizeEvent( QResizeEvent *re );
117 void mouseMoveEvent( QMouseEvent *event ); 116 void mouseMoveEvent( QMouseEvent *event );
118 void mousePressEvent( QMouseEvent *event ); 117 void mousePressEvent( QMouseEvent *event );
119 void mouseReleaseEvent( QMouseEvent *event ); 118 void mouseReleaseEvent( QMouseEvent *event );
120 void timerEvent( QTimerEvent *event ); 119 void timerEvent( QTimerEvent *event );
121 void closeEvent( QCloseEvent *event ); 120 void closeEvent( QCloseEvent *event );
122 void keyReleaseEvent( QKeyEvent *e); 121 void keyReleaseEvent( QKeyEvent *e);
123private slots: 122private slots:
124 void skipFor(); 123 void skipFor();
125 void skipBack(); 124 void skipBack();
126 void stopSkip(); 125 void stopSkip();
127private: 126private:
128 void toggleButton( int ); 127 void toggleButton( int );
129 void setToggleButton( int, bool ); 128 void setToggleButton( int, bool );
130 void paintButton( QPainter *p, int i ); 129 void paintButton( QPainter *p, int i );
131 int skipDirection; 130 int skipDirection;
132 QString skin; 131 QString skin;
133 QPixmap *pixBg; 132 QPixmap *pixBg;
134 QImage *imgUp; 133 QImage *imgUp;
135 QImage *imgDn; 134 QImage *imgDn;
136 QImage *imgButtonMask; 135 QImage *imgButtonMask;
137 QBitmap *masks[10]; 136 QBitmap *masks[10];
138 QPixmap *buttonPixUp[10]; 137 QPixmap *buttonPixUp[10];
139 QPixmap *buttonPixDown[10]; 138 QPixmap *buttonPixDown[10];
140 139