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/kjtextdisplay.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/kjtextdisplay.h')
-rw-r--r-- | noatun/modules/kjofol-skin/kjtextdisplay.h | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/noatun/modules/kjofol-skin/kjtextdisplay.h b/noatun/modules/kjofol-skin/kjtextdisplay.h new file mode 100644 index 00000000..11098b0c --- /dev/null +++ b/noatun/modules/kjofol-skin/kjtextdisplay.h @@ -0,0 +1,139 @@ +#ifndef KJTEXTDISPLAY_H +#define KJTEXTDISPLAY_H + +#include "kjwidget.h" +class KJLoader; +class KPixmap; +//#include "kjloader.h" + +#include <qobject.h> +#include <qpainter.h> + +class KJFilename : public QObject, public KJWidget +{ +Q_OBJECT +public: + KJFilename(const QStringList &, KJLoader *parent); + ~KJFilename(); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void mouseRelease(const QPoint &, bool in); +// virtual void newFile(); + virtual void timeUpdate(int); + virtual void readConfig(); + + void prepareString(const QCString &str); + virtual QString tip(); + + virtual void timerEvent(QTimerEvent *); + +private: + QCString mLastTitle; + int mDistance; + int mTimerUpdates; + int mWidth; + int mTickerPos; + QPixmap mView; + KPixmap *mBack; +}; + + +class KJTime : public KJWidget +{ +public: + KJTime(const QStringList &, KJLoader *parent); + ~KJTime(); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void mouseRelease(const QPoint &, bool in); + virtual void timeUpdate(int); + virtual void readConfig(); + + void prepareString(const QCString &time); + virtual QString tip(); + +// enum countModes { Up=0, Down }; + +private: + QCString mLastTime; + int mWidth; + bool countDown; + QPixmap mTime; + KPixmap *mBack; + +private: + QString lengthString ( void ); + +}; + + +class KJVolumeText : public KJWidget +{ +public: + KJVolumeText(const QStringList &, KJLoader *parent); + ~KJVolumeText(); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void timeUpdate(int); + virtual void readConfig(); + + void prepareString(const QCString &time); + virtual QString tip(); + +private: + QCString mLastVolume; + int mWidth; + QPixmap mVolume; + KPixmap *mBack; +}; + + +class KJPitchText : public KJWidget +{ +public: + KJPitchText(const QStringList &, KJLoader *parent); + ~KJPitchText(); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void mouseRelease(const QPoint &, bool in); + virtual void timeUpdate(int); + virtual void readConfig(); + + void prepareString(const QCString &time); + virtual QString tip(); + +private: + QCString mLastPitch; + int mWidth; + QPixmap mSpeed; + KPixmap *mBack; +}; + + +class KJFileInfo : public KJWidget +{ +public: + KJFileInfo(const QStringList &, KJLoader *parent); + ~KJFileInfo(); + + virtual void paint(QPainter *, const QRect &rect); + virtual bool mousePress(const QPoint &pos); + virtual void timeUpdate(int); + virtual void readConfig(); + + void prepareString(const QCString &time); + virtual QString tip(); + +private: + QCString mLastTime; + QString mInfoType; + int mWidth; + QPixmap mTime; + KPixmap *mBack; +}; + +#endif |