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