forked from psemiletov/eko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfxlist.cpp
More file actions
68 lines (54 loc) · 1.71 KB
/
fxlist.cpp
File metadata and controls
68 lines (54 loc) · 1.71 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include "fxlist.h"
#include "fxset.h"
CFxList::CFxList()
{
/*list.append (new CFxSimpleAmp);
list.append (new CFxSimpleOverdrive);
list.append (new CFxDelay);
list.append (new CFxSimpleFilter);
list.append (new CFxVynil);
list.append (new CFxMetaluga);
list.append (new CFxJest);
*/
modulenames[CFxSimpleAmp::get_modulename()] = CFxSimpleAmp::create_self;
modulenames[CFxSimpleOverdrive::get_modulename()] = CFxSimpleOverdrive::create_self;
modulenames[CFxDelay::get_modulename()] = CFxDelay::create_self;
modulenames[CFxSimpleFilter::get_modulename()] = CFxSimpleFilter::create_self;
modulenames[CFxVynil::get_modulename()] = CFxVynil::create_self;
modulenames[CFxMetaluga::get_modulename()] = CFxMetaluga::create_self;
modulenames[CFxJest::get_modulename()] = CFxJest::create_self;
classnames["CFxSimpleAmp"] = CFxSimpleAmp::create_self;
classnames["CFxSimpleOverdrive"] = CFxSimpleOverdrive::create_self;
classnames["CFxDelay"] = CFxDelay::create_self;
classnames["CFxSimpleFilter"] = CFxSimpleFilter::create_self;
classnames["CFxVynil"] = CFxVynil::create_self;
classnames["CFxMetaluga"] = CFxMetaluga::create_self;
classnames["CFxJest"] = CFxJest::create_self;
}
CFxList::~CFxList()
{
/*foreach (AFx *f, list)
{
delete f;
}*/
}
AFx *CFxList::find_by_name (const QString &fxname)
{
/*for (int i = 0; i < list.size(); i++)
{
if (list[i]->name == fxname)
return list[i];
}
return 0;*/
return modulenames[fxname]();
}
QStringList CFxList::names()
{
/* QStringList l;
foreach (AFx *f, list)
l.append (f->name);
return l; */
QStringList l = modulenames.keys();
l.sort();
return l;
}