9
namespace Arts { class StereoEffect; }
11
class EffectConfigWidget;
14
* new Effect("Arts::SomeEffect");
15
* then you can add,insert,bleh it with class Effects
20
friend class EffectConfigWidget;
22
Effect(const char *name);
26
* return the effect processed
27
* directly before this one
29
Effect *before() const;
31
* return the effect processed
32
* directly after this one
34
Effect *after() const;
38
* get the Arts object.
41
Arts::StereoEffect *effect() const;
44
* Get the name of the object.
46
QCString name() const;
49
* get the "clean" title of effect
51
QString title() const;
54
* is this effect name invalid? e.g., will it segfault
55
* if you StereoEffect::start() this?
60
* show the configure dialog box for
61
* this effect. if friendly is true,
62
* then create a top-level window,
63
* set an icon and make it purdy. Otherwise
64
* create a plan widget that you can reparent.
66
QWidget *configure(bool friendly=true);
69
* Does this widget have a configurable
70
* dialog box. E.g., will configure
73
bool configurable() const;
76
* turn Arts::FREEVERB into just FREEVERB
78
static QString clean(const QCString &name);
81
Arts::StereoEffect *mEffect;
86
class Effects : public QObject
93
bool insert(const Effect *after, Effect *item);
96
* create the Effect, by getting the proper item
97
* from the list, then append it here.
99
* for example, append(new Effect(available()[0]));
101
bool append(Effect *item);
104
* reorder the effect stack. if after is null,
107
void move(const Effect *after, Effect *item);
109
* remove @param item from the effect stack, but
110
* don't deallocate it unless del is true (default true)
112
void remove(Effect *item, bool del=true);
114
* @r remove() all items from the effect stack
115
* only delete them if del is true (default true)
117
void removeAll(bool del=true);
120
* a list of all available effects, by name
121
* each of these can be given to the first
122
* argument of the Effect constructor
124
QStrList available() const;
126
QList<Effect> effects() const;
129
* Get the Effect that has the following id
131
Effect *findId(long id) const;
134
QListIterator<Effect> stackPosition() const;
138
* called when @param effect has been
139
* added to the effect stack
141
void added(Effect *effect);
143
* called when @param effect has been
144
* removed from the effect stack
146
void removed(Effect *effect);
148
* called when @param effect has been moved
150
void moved(Effect *effect);
152
* callsed when @p effect is about to be
153
* deleted (from memory)
155
void deleting(Effect *effect);
158
// stored in no specific order
159
QList<Effect> mItems;