diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/tools/levelmeters.h | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/tools/levelmeters.h')
-rw-r--r-- | arts/tools/levelmeters.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/arts/tools/levelmeters.h b/arts/tools/levelmeters.h index 14f8a1ff..638d0d9a 100644 --- a/arts/tools/levelmeters.h +++ b/arts/tools/levelmeters.h @@ -22,10 +22,10 @@ #ifndef ARTS_TOOLS_LEVELMETERS_H #define ARTS_TOOLS_LEVELMETERS_H -#include <qobject.h> -#include <qframe.h> -#include <qdatetime.h> -#include <qptrlist.h> +#include <tqobject.h> +#include <tqframe.h> +#include <tqdatetime.h> +#include <tqptrlist.h> #include <math.h> // helper functions @@ -42,10 +42,10 @@ inline float DBToLevel(float db) { /** * Base class for a single volume / value bar. */ -class ACLevelMeter : public QFrame { +class ACLevelMeter : public TQFrame { Q_OBJECT public: - ACLevelMeter(QWidget *parent): QFrame(parent) {} + ACLevelMeter(TQWidget *parent): TQFrame(parent) {} public slots: virtual void setValue(float f) = 0; }; @@ -53,10 +53,10 @@ public slots: /** * Base class for a pair of volume / value bars. */ -class StereoLevelMeter : public QFrame { +class StereoLevelMeter : public TQFrame { Q_OBJECT public: - StereoLevelMeter(QWidget *parent): QFrame(parent) {} + StereoLevelMeter(TQWidget *parent): TQFrame(parent) {} public slots: virtual void setValues(float left, float right) = 0; }; @@ -74,11 +74,11 @@ protected: class Observation { public: - QTime time; + TQTime time; float value; Observation(float aValue): value(aValue) { time.start(); } }; - QPtrList<Observation> lastValues; + TQPtrList<Observation> lastValues; float currentValue, maxValue, minValue; void checkMinMax(); @@ -89,29 +89,29 @@ protected: void frameChanged(); public: - PeakBar(QWidget *parent); + PeakBar(TQWidget *parent); - QSize sizeHint() const; + TQSize sizeHint() const; - void drawContents(QPainter *p); + void drawContents(TQPainter *p); virtual void setValue(float f); }; /** * Special class which draws the Db scale with ticks, numbers and so on. */ -class ScaleView : public QFrame { +class ScaleView : public TQFrame { Q_OBJECT protected: - QFont font; + TQFont font; int dbRange; int upperMargin, lowerMargin; public: - ScaleView(QWidget *parent); + ScaleView(TQWidget *parent); void setDbRange(int db); void setScaleMargins(int margins) { upperMargin= margins; lowerMargin=margins; } - QSize sizeHint() const; - void drawContents(QPainter *p); + TQSize sizeHint() const; + void drawContents(TQPainter *p); }; /** @@ -127,7 +127,7 @@ protected: ScaleView scaleView; public: - PeakLevelMeters(QWidget *parent); + PeakLevelMeters(TQWidget *parent); public slots: void setValues(float leftVal, float rightVal); @@ -147,7 +147,7 @@ protected: KLed *leds[12]; public: - LedMeter(QWidget *parent, bool blueState = false); + LedMeter(TQWidget *parent, bool blueState = false); void setValue(float f); }; @@ -160,7 +160,7 @@ protected: LedMeter left, right; public: - StereoLedMeters(QWidget *parent); + StereoLedMeters(TQWidget *parent); public slots: void setValues(float left, float right); }; |