aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-07-10 19:20:06 +0200
committerDavid Runge <dave@sleepmap.de>2016-07-10 19:20:06 +0200
commit0d0d4c017c8e9b02a7a924b331838f538397d2bb (patch)
tree30eaf028792acc72587922ef83aeb6a5f2d65636 /classes
parentc3e0dad854184458b1e7907009bebde207c1328f (diff)
downloadbowelyzer-0d0d4c017c8e9b02a7a924b331838f538397d2bb.tar.gz
bowelyzer-0d0d4c017c8e9b02a7a924b331838f538397d2bb.tar.bz2
bowelyzer-0d0d4c017c8e9b02a7a924b331838f538397d2bb.tar.xz
bowelyzer-0d0d4c017c8e9b02a7a924b331838f538397d2bb.zip
classes/BowelyzerGUI.sc: Adding function to set the TextField of a given channel to a given String.
Diffstat (limited to 'classes')
-rw-r--r--classes/BowelyzerGUI.sc26
1 files changed, 26 insertions, 0 deletions
diff --git a/classes/BowelyzerGUI.sc b/classes/BowelyzerGUI.sc
index bc5cb0a..5fc0eda 100644
--- a/classes/BowelyzerGUI.sc
+++ b/classes/BowelyzerGUI.sc
@@ -209,6 +209,32 @@ BowelyzerGUI{
});
}
+ setChannelName{
+ arg name, update;
+ {
+ channels.do({|channel|
+ if(channel.name.asSymbol == name.asSymbol, {
+ ("Channel found: "++name).postln;
+ channel.children.do({|channelChild|
+ if(channelChild.name.asSymbol == \inputs, {
+ ("headView found").postln;
+ channelChild.children.do({|headView|
+ if(headView.name == "name", {
+ ("TextField for name found").postln;
+ headView.children.do({|nameView|
+ if(nameView.isKindOf(TextField), {
+ nameView.string_(("\""++update++"\"").asString);
+ });
+ });
+ });
+ });
+ });
+ });
+ });
+ });
+ }.defer;
+ }
+
// setup a single channel View by name
setupChannelView{
arg name, config;