blob: 0440e8c4db375fe5ac38223226405576b01643ed (
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
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
|