summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/renderers.h
blob: 2c8e72636ba5b1123a6961ba42fe5b330c280511 (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 RENDERERS_H
#define RENDERERS_H

#include <tqstring.h>

class Renderer;

namespace Creators
{



#ifdef RENDERERS_CPP 
#define REGISTER(function, cl) \
Renderer *function() \
{ \
	return new cl; \
}
#else
#define REGISTER(function, cl) \
Renderer *function();
#endif

REGISTER(fade, Fade)
REGISTER(doubler, Doubler)
REGISTER(waveform,TQt::HorizontalPair);
REGISTER(hartley, Hartley);

#undef REGISTER
};


#endif