aboutsummaryrefslogtreecommitdiffstats
path: root/classes/Bowelyzer.sc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-07-10 17:02:54 +0200
committerDavid Runge <dave@sleepmap.de>2016-07-10 17:02:54 +0200
commitba885b3716e6180d3ac1d81049f0a2ebccd042fa (patch)
treee2e1f684d05f19ca0b589be5c7dddd994204a297 /classes/Bowelyzer.sc
parent4b4d19ebbdf6e5737931a18315666c505b10c4a2 (diff)
downloadbowelyzer-ba885b3716e6180d3ac1d81049f0a2ebccd042fa.tar.gz
bowelyzer-ba885b3716e6180d3ac1d81049f0a2ebccd042fa.tar.bz2
bowelyzer-ba885b3716e6180d3ac1d81049f0a2ebccd042fa.tar.xz
bowelyzer-ba885b3716e6180d3ac1d81049f0a2ebccd042fa.zip
classes/BowelyzerGUI.sc: Implementing channel selector as EZPopUpMenu. Providing complete BowelyzerConfig instance on BowelyzerGUI init, to also get access to configFilePath for display. Refactoring action of 'save as' Button into separate function for easier access, when no configuration file is setup yet. classes/Bowelyzer.sc: Initializing BowelyzerGUI with complete BowelyzerConfig instance. Calling 'save as' if there is no configuration file setup yet.
Diffstat (limited to 'classes/Bowelyzer.sc')
-rw-r--r--classes/Bowelyzer.sc10
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/Bowelyzer.sc b/classes/Bowelyzer.sc
index db6913d..3a61618 100644
--- a/classes/Bowelyzer.sc
+++ b/classes/Bowelyzer.sc
@@ -22,7 +22,7 @@ Bowelyzer{
server.waitForBoot({
hub = BowelyzerOSCHub.new(config.config);
analyzer = BowelyzerAnalyzer.new(config.config);
- gui = BowelyzerGUI.new(config.config);
+ gui = BowelyzerGUI.new(config);
this.addGUIListeners;
this.addServerListeners;
},
@@ -179,7 +179,13 @@ Bowelyzer{
func: {|msg, time, addr, recvPort|
var path = msg[1];
postln("Received: "++msg);
- config.writeConfigurationFile;
+ if(config.configFilePath.isNil || config.configFilePath == "",{
+ {
+ gui.saveAsAction(nil);
+ }.defer;
+ },{
+ config.writeConfigurationFile;
+ });
},
path: "/save",
srcID: hub.local