summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/audiowidget.h
authorsimon <simon>2002-12-09 15:39:26 (UTC)
committer simon <simon>2002-12-09 15:39:26 (UTC)
commit21738c78103c42605625f85abf7bfd0d6beaad3f (patch) (side-by-side diff)
tree0d64cf6453265f4730025d4965b4fff6d1613115 /noncore/multimedia/opieplayer2/audiowidget.h
parent9aa2442f6ea4e0d58fa7888995ebad04b3692049 (diff)
downloadopie-21738c78103c42605625f85abf7bfd0d6beaad3f.zip
opie-21738c78103c42605625f85abf7bfd0d6beaad3f.tar.gz
opie-21738c78103c42605625f85abf7bfd0d6beaad3f.tar.bz2
- merged duplicated setToggleButton method
- minor fixlet for paintAllButtons
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 8c433ac..9b276b5 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.h
+++ b/noncore/multimedia/opieplayer2/audiowidget.h
@@ -45,64 +45,63 @@
#include <opie/oticker.h>
#include "mediawidget.h"
class QPixmap;
class AudioWidget : public MediaWidget {
Q_OBJECT
public:
AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 );
~AudioWidget();
void setTickerText( const QString &text ) { songInfo.setText( text ); }
public slots:
void updateSlider( long, long );
void sliderPressed( );
void sliderReleased( );
void setLooping( bool b) { setToggleButton( Loop, b ); }
void setPosition( long );
void setSeekable( bool );
public:
virtual void setLength( long );
virtual void setPlaying( bool b) { setToggleButton( Play, b ); }
virtual void setDisplayType( MediaPlayerState::DisplayType displayType );
signals:
void moreClicked();
void lessClicked();
void forwardClicked();
void backClicked();
void sliderMoved(long);
protected:
void doBlank();
void doUnblank();
void showEvent( QShowEvent *se );
void resizeEvent( QResizeEvent *re );
void mouseMoveEvent( QMouseEvent *event );
void mousePressEvent( QMouseEvent *event );
void mouseReleaseEvent( QMouseEvent *event );
void timerEvent( QTimerEvent *event );
void keyReleaseEvent( QKeyEvent *e);
private slots:
void skipFor();
void skipBack();
void stopSkip();
private:
- void setToggleButton( int, bool );
int skipDirection;
QString skin;
QImage imgUp;
QImage imgDn;
OTicker songInfo;
QSlider slider;
QLineEdit time;
bool isStreaming : 1;
bool audioSliderBeingMoved : 1;
};
#endif // AUDIO_WIDGET_H