summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/noatunmadness/madness.h
blob: 8076d0a891d1120e57c227e1ad4c01f14763c35f (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
#ifndef MADNESS_H
#define MADNESS_H

#include <noatun/plugin.h>
#include <string.h>
#include <tqmap.h>
#include <tqvaluelist.h>
#include <kwinmodule.h>

class Madness : public TQObject, public MonoFFTScope, public Plugin
{
Q_OBJECT
public:
	Madness();
	virtual ~Madness();

	void init();

private slots:
	void update();

protected:
	virtual void scopeEvent(float *data, int bands);

private:
	KWinModule mWm;
	TQValueList<WId> mWindowList;
	TQRect mWorkArea;
	TQMap<WId, TQPoint> mOriginalPositions;
};

#endif