-
// wslib 2009 OneShotController : SimpleController { update { arg theChanger, what ... moreArgs; var action; if( actions.notNil ) { action = actions.at(what); if (action.notNil, { action.valueArray(theChanger, what, moreArgs); actions.remov ...
-
... that receives notifications from the model and communicates with the view. This SimpleController object is looking for '\source' notifications, and changes the view's displayed value. Benefits: You can make as many views as you want, on ...
-
... olor(0.2,0.2,0.2,1)] ]) .action_({ | view | playButton.valueAction_(0)}); ctl = SimpleController(player).put(\synch, { |m,c,v| defer { playButton.value = v } }); }; ~simplePlayerGUI = { | win, name, player, rect| var bounds, stringWidth; va ...
-
... . This way dependants (such as GUI objects or server value) can be updated with SimpleControllers. The method aCV-action_(function) creates such a connection. A CV's value can be read with the 'value' message. CV can also be used as a Patte ...
-
... ion_({|view| ref.value_(map.value(view.value)).changed(\value); }); controller= SimpleController(ref).put(\value, {|ref| view.value= unmap.value(ref.value); }); view.onClose_({controller.remove}); this.save; } }
-
... ec.setView( vw, values.value( vwvals ) ); }); vw; }); RoundView.popSkin; ctrl = SimpleController( pathView.xyView ) .put( \select, { editView.selected = pathView.selected }) .put( \mouse_hit, { editView.apply( true ) }) .put( \edited, { |ob ...
-
... llers { cvs.keysValuesDo{|k, v| var param= this.cvsToParam(k); controllers.add( SimpleController(v).put(\value, {|ref| synth.set(param, ref.value); }) ); }; } //--for subclasses *def {^this.subclassResponsibility(thisMethod)} }
-
... e_(redMixer.lag) .action_({|v| redMixer.lag= v.value.max(0)}); controllers.add( SimpleController(redMixer.cvs.lag).put(\value, {|ref| lagBox.value= ref.value; }) ); lagBox, RedStaticText(nil, nil, "lag").maxHeight_(lh).maxWidth_(20), RedBut ...
-
... tNil ) { currentScoreEditorController.remove; }; currentScoreEditorController = SimpleController( scoreEditorsList.last ); currentScoreEditorController.put(\preparingToChangeScore, { this.baseEditor.storeUndoState; }); }; if( scoreControlle ...
-
... ec; ctrl.remove; kkey = unit.get( \key ); spec = unit.getSpec( \value ); ctrl = SimpleController( currentEnvironment ) .put( kkey, { spec = unit.getSpec( \value ); val = currentEnvironment[ kkey ] ? (spec.default); fromSpec = currentEnviron ...