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/kjsliders.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/kjsliders.h')
-rw-r--r-- | noatun/modules/kjofol-skin/kjsliders.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/noatun/modules/kjofol-skin/kjsliders.h b/noatun/modules/kjofol-skin/kjsliders.h new file mode 100644 index 00000000..94f10934 --- /dev/null +++ b/noatun/modules/kjofol-skin/kjsliders.h @@ -0,0 +1,88 @@ +#ifndef KJSLIDERS_H +#define KJSLIDERS_H + +#include "kjwidget.h" +#include <qpainter.h> + +class KJLoader; +class KJPitchText; +class KJVolumeText; + + +class KJVolumeBMP : public KJWidget +{ +public: + KJVolumeBMP(const QStringList &, KJLoader *parent); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void mouseRelease(const QPoint &pos, bool); + virtual void timeUpdate(int); + virtual void mouseMove(const QPoint &pos, bool); + + virtual QString tip(); + + void setText(KJVolumeText *t) { mText=t; } + +private: + QPixmap mImages; + QImage mPos; + int mVolume, mOldVolume; + int mWidth, mCount; + KJVolumeText *mText; +}; + + +class KJVolumeBar : public KJWidget +{ +public: + KJVolumeBar(const QStringList &, KJLoader *parent); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void mouseRelease(const QPoint &pos, bool); + virtual void timeUpdate(int); + virtual void mouseMove(const QPoint &pos, bool); + + virtual QString tip(); + + void setText(KJVolumeText *t) { mText=t; } + +private: + QPixmap mSlider; + QPixmap mBack; + int mVolume; + KJVolumeText *mText; +}; + + +class KJPitchBMP : public KJWidget +{ +public: + KJPitchBMP(const QStringList &, KJLoader *parent); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void mouseRelease(const QPoint &pos, bool); + virtual void timeUpdate(int); + virtual void newFile(); + virtual void mouseMove(const QPoint &pos, bool); + virtual void readConfig(); + + virtual QString tip(); + + void setText(KJPitchText *t) { mText=t; } + +private: + QPixmap mImages; + QImage mPos; + int mWidth, mCount; + float mCurrentPitch; + float mOldPitch; + float mMinPitch; + float mMaxPitch; + + KJPitchText *mText; +}; + +#endif |