-
... Func.( paths ); }; } { func = { |path| lastPath = path; okFunc.( path ); }; }; ^Dialog.openPanel( func, cancelFunc, multipleSelection, lastPath ); } *savePanel { arg okFunc, cancelFunc, path; var func; func = { |path| lastPath = path; okFun ...
-
... VGFile .read( Document .current.path.dirname ++ "/example.svg" ); f.write; // a dialog should appear read ( replaceObjects ) reads the file specified in the path variable. replaceObjects : if true (default) replaces the current object sin t ...
-
... views[ \genWindow ], 80@18 ) .extrude_(false) .label_( "generate" ) .action_({ Dialog.savePanel({ |path| PartConvBuffer.convertIRFile( PartConvBuffer.generateDanStowelIR( views[ \genDur ].value ), path.replaceExtension( "partconv" ), ULib. ...
-
... ged).postln; }; changed } }; ~dorotaExportSVG = { |path = nil| if(path.isNil) { Dialog.savePanel({ |p| exportSVGFromTracks.(p) }, "dorota_export.svg"); } { exportSVGFromTracks.(path); }; }; ~dorotaImportSVG = { |path = nil| if(path.isNil) { ...
-
SFPlayer { var <path, <outbus, <server, <autoShowOpenDialog, <>autoBootServer, <>autoSetSampleRate, <>autoSetOutputChannels; var <buffer, <sf, cond, <curSynth, <synthName; var clock, <skin; var <cues, offset, lastStart; var <amp, <isPlaying ...
-
... e file is permanently deleted. If ask == true ( default ) && toTrash == false a dialog comes up before anything gets deleted "~/Desktop/testCopy/testDir" .removeFile( false ); "~/Desktop/testCopy/testDir" .removeFile; // check the trashcan ...
-
... nces", Color.white, Color(0.3, 0.3, 0.3)]]) .action_({ |pb| CVCenterPreferences.dialog }) .acceptsMouseOver_(true) ; if (GUI.id !== \cocoa, { prefBut.toolTip_("Edit the global preferences for CVCenter (resp.\nCVWidget). Preferences will be ...
-
... ht, buttonwidth, controlsheight ) ); loadb.states = [["Load"]]; loadb.action_({ Dialog.openPanel({ arg path; //no checking safety, just tries to load as best it can this.load(path); }); }); analysisb = Button( w, Rect( margin + viewwidth - ...
-
... yCode: KeyDownActions.keyCodes['fn + F1']) ); scFunc = "// load a new setup via dialog\n" ++ { CVCenterLoadDialog() }.asCompileString; this.globalShortcuts.put( 'fn + F2', (func: scFunc, keyCode: KeyDownActions.keyCodes['fn + F2']) ); scFun ...
-
... ca", 9)) .states_([["load", Color.black, Color.clear]]) .action_({arg butt; GUI.dialog.getPaths({ arg paths; var chosenstate; paths.do({ arg p; stateDict = Object.readArchive(p); }); stateNum = stateDict.size; if(stateNum > 0, { // if there ...