diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-09-09 19:45:15 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-09-09 19:45:15 +0000 |
| commit | 0e860ae0ba0c6ed9f14b9d01a28b44ae64d91532 (patch) | |
| tree | 33da2a2b96d40e270b4bbe3a124bdf7e23b788f5 /src/ui/display.h | |
| parent | 3188ada336102df3bf8d77cdafdab1a8f65f4d86 (diff) | |
| download | qmmp-0e860ae0ba0c6ed9f14b9d01a28b44ae64d91532.tar.gz qmmp-0e860ae0ba0c6ed9f14b9d01a28b44ae64d91532.tar.bz2 qmmp-0e860ae0ba0c6ed9f14b9d01a28b44ae64d91532.zip | |
new libqmmp api, a lot of features has been temporary disabled
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@546 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/display.h')
| -rw-r--r-- | src/ui/display.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/ui/display.h b/src/ui/display.h index 15e0111d6..4e7623f2f 100644 --- a/src/ui/display.h +++ b/src/ui/display.h @@ -22,9 +22,7 @@ #include <QPixmap> -class TimeIndicator; - - +#include <qmmp/statehandler.h> #include "pixmapwidget.h" /** @@ -33,6 +31,7 @@ class TimeIndicator; class QPushButton; class QLabel; +class TimeIndicator; class TitleBar; class PositionBar; class Number; @@ -46,6 +45,7 @@ class PlayStatus; class VolumeBar; class BalanceBar; class MainWindow; +class SoundCore; class MainDisplay : public PixmapWidget { @@ -55,10 +55,10 @@ public: ~MainDisplay(); - void setMaxTime(long); void setEQ(QWidget*); void setPL(QWidget*); - void setInfo(const OutputState &st); + //void setInfo(const OutputState &st); + void setSoundCore(SoundCore *core); bool isEqualizerVisible()const; bool isPlaylistVisible()const; bool isRepeatable()const; @@ -67,11 +67,13 @@ public: void setIsShuffle(bool); public slots: - void setTime(int); void hideTimeDisplay(); + void setDuration(qint64); + signals: void repeatableToggled(bool); void shuffleToggled(bool); + protected: void wheelEvent(QWheelEvent *); void mousePressEvent(QMouseEvent*); @@ -79,6 +81,9 @@ protected: private slots: void updateSkin(); void updateVolume(); + void setSampleRate(int rate); + void setTime(qint64); + void setState(Qmmp::State state); private: QWidget* m_equlizer; @@ -101,6 +106,7 @@ private: BalanceBar* m_balanceBar; MainWindow* m_mw; TimeIndicator* m_timeIndicator; + SoundCore *m_core; }; #endif |
