blob: 1d02bae681206d56c441009245dda7ec1423ea11 (
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
34
|
#ifndef VOICEPRINT_H
#define VOICEPRINT_H
#include <noatun/plugin.h>
class VoicePrint : public TQWidget, public MonoFFTScope, public Plugin
{
Q_OBJECT
TQ_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;
TQRgb mLowColor, mHighColor;
int mOffset, mSegmentWidth;
};
#endif
|