summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/noatunmadness/madness.h
blob: c48c676a56da9db92ec006ebf1173bbff4a7212e (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 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
  TQ_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