summaryrefslogtreecommitdiffstats
path: root/arts/tools/levelmeters.h
diff options
context:
space:
mode:
Diffstat (limited to 'arts/tools/levelmeters.h')
-rw-r--r--arts/tools/levelmeters.h42
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);
};