blob: 3105849fd6a2473d503cf4ed103000c5fe9cbd58 (
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 <qstring.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, HorizontalPair);
REGISTER(hartley, Hartley);
#undef REGISTER
};
#endif
|