blob: 4d78909a1f35536676567d3ff85e0cb58ddb3473 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef VOICEPRINT_H
#define VOICEPRINT_H
#include <noatun/plugin.h>
class VoicePrint : public TQWidget, public MonoFFTScope, public Plugin
{
Q_OBJECT
public:
VoicePrint();
virtual ~VoicePrint();
void setColors(const TQColor &bg, const TQColor &fg, const TQColor &l);
void init();
protected:
virtual void closeEvent(TQCloseEvent *);
virtual void scopeEvent(float *data, int bands);
virtual void resizeEvent(TQResizeEvent *);
virtual void paintEvent(TQPaintEvent *);
public:
static VoicePrint* voicePrint;
private:
TQColor mProgress;
TQPixmap mBuffer;
QRgb mLowColor, mHighColor;
int mOffset, mSegmentWidth;
};
#endif
|