From 21b0cfec8f414af816d198044d2dbf97dbebfb47 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 20 Jun 2018 15:58:03 +0530 Subject: start working on scicos_getvalue --- js/Misc/PAL_f.js | 31 +++++++++++++++++++++++++++++-- js/Sources/GEN_SQR.js | 2 +- js/Sources/PULSE_SC.js | 2 +- 3 files changed, 31 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/Misc/PAL_f.js b/js/Misc/PAL_f.js index 21ebba14..f27f6e8d 100644 --- a/js/Misc/PAL_f.js +++ b/js/Misc/PAL_f.js @@ -1,3 +1,30 @@ -Syntax error in input LexToken(SCICOS,'scicos',1,1009) /* autogenerated from "macros/Misc/PAL_f.sci" */ -None +function PAL_f() { +PAL_f.prototype.define = function PAL_f() { +scs=scicos_diagram(); +scs.props.title="Palette"; +model=scicos_model(); +model.sim="palette"; +model.in1=[]; +model.out=[]; +model.rpar=scs; +model.blocktype="h"; +model.dep_ut=[false,false]; +gr_i=[]; +x=standard_define([2,2],model,[],gr_i); +x.graphics.id=scs.props.title(1); +} +PAL_f.prototype.details = function PAL_f() { +} +PAL_f.prototype.get = function PAL_f() { +} +PAL_f.prototype.set = function PAL_f() { +[x,newparameters,needcompile,edited]=scicos(arg1.model.rpar); +arg1.graphics.id=x.props.title(1); +arg1.model.rpar=x; +x=arg1; +y=[]; +typ=[]; +%exit=resume(false) +} +} diff --git a/js/Sources/GEN_SQR.js b/js/Sources/GEN_SQR.js index eea33f2a..6a5213d4 100644 --- a/js/Sources/GEN_SQR.js +++ b/js/Sources/GEN_SQR.js @@ -1,3 +1,3 @@ -Syntax error in input LexToken(SCICOS_CONTEXT,'scicos_context',1,1457) +Syntax error in input LexToken(DOT,'.',1,1561) /* autogenerated from "macros/Sources/GEN_SQR.sci" */ None diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index bc19ab77..0d7ab77a 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -1,3 +1,3 @@ -Syntax error in input LexToken(SCICOS_CONTEXT,'scicos_context',1,1406) +Syntax error in input LexToken(DOT,'.',1,1511) /* autogenerated from "macros/Sources/PULSE_SC.sci" */ None -- cgit