diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /noatun/modules/kjofol-skin/kjequalizer.h | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/kjofol-skin/kjequalizer.h')
-rw-r--r-- | noatun/modules/kjofol-skin/kjequalizer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noatun/modules/kjofol-skin/kjequalizer.h b/noatun/modules/kjofol-skin/kjequalizer.h new file mode 100644 index 00000000..f3f13bd5 --- /dev/null +++ b/noatun/modules/kjofol-skin/kjequalizer.h @@ -0,0 +1,39 @@ +#ifndef KJEQUALIZER_H +#define KJEQUALIZER_H + +#include "kjwidget.h" +//#include "kjloader.h" +class KJLoader; +class VInterpolation; + +#include <qobject.h> + +class KJEqualizer : public QObject, public KJWidget +{ +Q_OBJECT +public: + KJEqualizer(const QStringList &, KJLoader *parent); + ~KJEqualizer(void); + + virtual void mouseMove(const QPoint &pos, bool); + virtual bool mousePress(const QPoint&); + virtual void paint(QPainter *p, const QRect &rect); + int barNum(const QPoint &pos) const; + int level(const QPoint &pos) const; + +public slots: + void slotUpdateBuffer(); + +private: + int mBands; + int mXSpace; + + int mBandWidth; + int mBandHalfHeight; + QPixmap mBars; // holds all slider images + QPixmap *mBack; // holds background of EQ for easy repaint + QPixmap *mView; // holds prepared img of all sliders + VInterpolation *mInterpEq; +}; + +#endif |