summaryrefslogtreecommitdiff
path: root/js/Sources/TKSCALE.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-25 12:08:56 +0530
committerSunil Shetye2018-06-25 12:45:27 +0530
commit7c70459c10aed0d74ee03896abaf47fefdbf7c8f (patch)
tree6f6acc6a5087295c6e59f0f94bfda5025049d5fa /js/Sources/TKSCALE.js
parent870479a2e4b932426a904b2ebae7e4ee72037326 (diff)
downloadsci2js-7c70459c10aed0d74ee03896abaf47fefdbf7c8f.tar.gz
sci2js-7c70459c10aed0d74ee03896abaf47fefdbf7c8f.tar.bz2
sci2js-7c70459c10aed0d74ee03896abaf47fefdbf7c8f.zip
separate out code for getvalue
Diffstat (limited to 'js/Sources/TKSCALE.js')
-rw-r--r--js/Sources/TKSCALE.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/js/Sources/TKSCALE.js b/js/Sources/TKSCALE.js
index 3a7f0070..82a2a369 100644
--- a/js/Sources/TKSCALE.js
+++ b/js/Sources/TKSCALE.js
@@ -1,35 +1,35 @@
/* autogenerated from "macros/Sources/TKSCALE.sci" */
function TKSCALE() {
TKSCALE.prototype.define = function TKSCALE() {
-a=-10;
-b=10;
-f=1;
-model=scicos_model();
-model.sim=list("tkscaleblk",5);
-model.out=1;
-model.evtin=1;
-model.rpar=[[a],[b],[f]];
-model.blocktype="d";
-model.dep_ut=[false,false];
-exprs=[[sci2exp(a)],[sci2exp(b)],[sci2exp(f)]];
-gr_i=[];
-x=standard_define([3,2],model,exprs,gr_i);
+ a = -10;
+ b = 10;
+ f = 1;
+ model = scicos_model();
+ model.sim = list("tkscaleblk",5);
+ model.out = 1;
+ model.evtin = 1;
+ model.rpar = [[a],[b],[f]];
+ model.blocktype = "d";
+ model.dep_ut = [false,false];
+ exprs = [[sci2exp(a)],[sci2exp(b)],[sci2exp(f)]];
+ gr_i = [];
+ x = standard_define([3,2],model,exprs,gr_i);
}
TKSCALE.prototype.details = function TKSCALE() {
}
TKSCALE.prototype.get = function TKSCALE() {
}
TKSCALE.prototype.set = function TKSCALE() {
-x=arg1;
-graphics=arg1.graphics;
-exprs=graphics.exprs;
-model=arg1.model;
-[ok,a,b,f,exprs]=scicos_getvalue("Set scale block parameters",[["Min value"],["Max value"],["Normalization"]],list("vec",1,"vec",1,"vec",1),exprs);
-if (ok) {
-graphics.exprs=exprs;
-model.rpar=[[a],[b],[f]];
-x.graphics=graphics;
-x.model=model;
+ x = arg1;
+ graphics = arg1.graphics;
+ exprs = graphics.exprs;
+ model = arg1.model;
+ [ok,a,b,f,exprs] = scicos_getvalue("Set scale block parameters",[["Min value"],["Max value"],["Normalization"]],list("vec",1,"vec",1,"vec",1),exprs);
+ if (ok) {
+ graphics.exprs = exprs;
+ model.rpar = [[a],[b],[f]];
+ x.graphics = graphics;
+ x.model = model;
}
}
}