3
Copyright (C) 2001 Stefan Westerfeld
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License as published by the Free Software Foundation; either
9
version 2 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Library General Public License for more details.
16
You should have received a copy of the GNU Library General Public License
17
along with this library; see the file COPYING.LIB. If not, write to
18
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
Boston, MA 02111-1307, USA.
23
#include "artsmodules.h"
32
class FreeverbGuiFactory_impl : public FreeverbGuiFactory_skel
35
Widget createGui(Object freeverb);
38
REGISTER_IMPLEMENTATION(FreeverbGuiFactory_impl);
42
Widget FreeverbGuiFactory_impl::createGui(Object object)
44
arts_return_val_if_fail(!object.isNull(), Arts::Widget::null());
46
Synth_FREEVERB freeverb = DynamicCast(object);
47
arts_return_val_if_fail(!freeverb.isNull(), Arts::Widget::null());
50
panel.width(330); panel.height(80); panel.show();
53
roomsize.x(20); roomsize.y(10); roomsize.text("roomsize");
54
roomsize.color("red"); roomsize.min(0); roomsize.max(1);
55
roomsize.value(freeverb.roomsize());
56
roomsize.parent(panel);
58
connect(roomsize,"value_changed", freeverb, "roomsize");
59
panel._addChild(roomsize,"roomsizeWidget");
62
damp.x(80); damp.y(10); damp.text("damp");
63
damp.color("red"); damp.min(0); damp.max(1);
64
damp.value(freeverb.damp());
67
connect(damp,"value_changed", freeverb, "damp");
68
panel._addChild(damp,"dampWidget");
71
wet.x(140); wet.y(10); wet.text("wet");
72
wet.color("red"); wet.min(0); wet.max(1);
73
wet.value(freeverb.wet());
76
connect(wet,"value_changed", freeverb, "wet");
77
panel._addChild(wet,"wetWidget");
80
dry.x(200); dry.y(10); dry.text("dry");
81
dry.color("red"); dry.min(0); dry.max(1);
82
dry.value(freeverb.dry());
85
connect(dry,"value_changed", freeverb, "dry");
86
panel._addChild(dry,"dryWidget");
89
width.x(260); width.y(10); width.text("width");
90
width.color("red"); width.min(0); width.max(1);
91
width.value(freeverb.width());
94
connect(width,"value_changed", freeverb, "width");
95
panel._addChild(width,"widthWidget");