1
#include "artsmodulesmixers.h"
9
class SimpleMixerChannelGuiFactory_impl : virtual public SimpleMixerChannelGuiFactory_skel {
11
Widget createGui(Object object)
13
KGlobal::locale()->insertCatalogue( "artsmodules" );
14
arts_return_val_if_fail(!object.isNull(), Arts::Widget::null());
15
SimpleMixerChannel ch = DynamicCast(object);
16
arts_return_val_if_fail(!ch.isNull(), Arts::Widget::null());
19
vbox.direction( Arts::TopToBottom );
22
high.caption(i18n("volume","high").utf8().data());
23
high.color("blue"); high.min(-12); high.max(12);
24
high.value(ch.equalizerLeft().high());
25
connect(high,"value_changed", ch.equalizerLeft(), "high");
26
connect(high,"value_changed", ch.equalizerRight(), "high");
27
vbox.addWidget( high );
30
mid.caption(i18n("volume","mid").utf8().data());
31
mid.color("blue"); mid.min(-12); mid.max(12);
32
mid.value(ch.equalizerLeft().mid());
33
connect(mid,"value_changed", ch.equalizerLeft(), "mid");
34
connect(mid,"value_changed", ch.equalizerRight(), "mid");
35
vbox.addWidget( mid );
38
low.caption(i18n("volume","low").utf8().data());
39
low.color("blue"); low.min(-12); low.max(12);
40
low.value(ch.equalizerLeft().low());
41
connect(low,"value_changed", ch.equalizerLeft(), "low");
42
connect(low,"value_changed", ch.equalizerRight(), "low");
43
vbox.addWidget( low );
46
frequency.caption(i18n("frequency").utf8().data());
47
frequency.color("darkgreen"); frequency.min(200); frequency.max(10000);
48
frequency.value(ch.equalizerLeft().frequency());
49
frequency.logarithmic(2.0);
50
connect(frequency,"value_changed", ch.equalizerLeft(), "frequency");
51
connect(frequency,"value_changed", ch.equalizerRight(), "frequency");
52
vbox.addWidget( frequency );
55
q.caption(i18n( "q" ).utf8().data());
56
q.color("darkgreen"); q.min(0.01); q.max(10);
57
q.value(ch.equalizerLeft().q());
59
connect(q,"value_changed", ch.equalizerLeft(), "q");
60
connect(q,"value_changed", ch.equalizerRight(), "q");
64
pan.caption(i18n("pan").utf8().data());
65
pan.color("grey"); pan.min(-1.0); pan.max(1.0);
67
connect(pan,"value_changed",ch,"pan");
68
vbox.addWidget( pan );
71
volume.caption(i18n("volume").utf8().data());
72
volume.color("red"); volume.min(0.01); volume.max(4);
73
volume.value(ch.volumeLeft());
74
connect(volume,"value_changed", ch, "volumeLeft");
75
connect(volume,"value_changed", ch, "volumeRight");
76
vbox.addWidget( volume );
81
REGISTER_IMPLEMENTATION(SimpleMixerChannelGuiFactory_impl);