| | 63 | this.setInspectorConfig([ |
|---|
| | 64 | {name:"fPath",value:thisPtr.fPath,label:"Patch Path",type:"string",input:"file"} |
|---|
| | 65 | ]); |
|---|
| | 66 | |
|---|
| | 67 | //save the values returned by the inspector- returned in form {valueName:value...} |
|---|
| | 68 | //called after the inspector window is saved |
|---|
| | 69 | this.saveInspectorValues=function(vals) { |
|---|
| | 70 | |
|---|
| | 71 | var oldpath = thisPtr.fPath; //save the path first |
|---|
| | 72 | |
|---|
| | 73 | //update the local properties |
|---|
| | 74 | for(var x in vals) |
|---|
| | 75 | thisPtr[x]=vals[x]; |
|---|
| | 76 | |
|---|
| | 77 | //update the arg str |
|---|
| | 78 | this.args=LilyUtils.quoteString(vals["fPath"]); |
|---|
| | 79 | |
|---|
| | 80 | if((thisPtr.fPath&&oldpath!=thisPtr.fPath)) |
|---|
| | 81 | reloadPatch(); //reload the patch if the path or args has changed. |
|---|
| | 82 | |
|---|
| | 83 | } |
|---|
| | 84 | |
|---|