From 0e860ae0ba0c6ed9f14b9d01a28b44ae64d91532 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 9 Sep 2008 19:45:15 +0000 Subject: 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 --- src/ui/display.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/ui/display.h') 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 -class TimeIndicator; - - +#include #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 -- cgit v1.2.3-13-gbd6f