summaryrefslogtreecommitdiff
path: root/js/Misc/TEXT_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/TEXT_f.js')
-rw-r--r--js/Misc/TEXT_f.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/js/Misc/TEXT_f.js b/js/Misc/TEXT_f.js
index 0b8d4b9c..9e8c7cde 100644
--- a/js/Misc/TEXT_f.js
+++ b/js/Misc/TEXT_f.js
@@ -1,19 +1,19 @@
/* autogenerated from "macros/Misc/TEXT_f.sci" */
function TEXT_f() {
TEXT_f.prototype.define = function TEXT_f() {
- font = 2;
- siz = 1;
+ this.font = 2;
+ this.siz = 1;
model = scicos_model();
model.sim = "text";
model.rpar = "Text";
- model.ipar = [[font],[siz]];
- exprs = [["Text"],[string(font)],[string(siz)]];
+ model.ipar = [[this.font],[this.siz]];
+ exprs = [["Text"],[string(this.font)],[string(this.siz)]];
graphics = scicos_graphics();
graphics.orig = [0,0];
graphics.sz = [2,1];
graphics.exprs = exprs;
this.x = mlist(["Text","graphics","model","void","gui"],graphics,model," ","TEXT_f");
- return new BasicBlock(this.x);
+ return new TextBlock(this.x);
}
TEXT_f.prototype.details = function TEXT_f() {
return this.x;
@@ -30,15 +30,15 @@ function TEXT_f() {
exprs = [[exprs],["3"],["1"]];
}
while (true) {
- [ok,txt,font,siz,exprs] = scicos_getvalue("Set Text block parameters",[["Text"],["Font number"],["Font size"]],list("str",-1,"vec",1,"vec",1),exprs);
+ [ok,this.txt,this.font,this.siz,exprs] = scicos_getvalue("Set Text block parameters",[["Text"],["Font number"],["Font size"]],list("str",-1,"vec",1,"vec",1),exprs);
if (!ok) {
break;
}
- if (font<=0||font>6) {
+ if (this.font<=0||this.font>6) {
message("Font number must be greater than 0 and less than 7");
ok = false;
}
- if (siz<0) {
+ if (this.siz<0) {
message("Font size must be positive");
ok = false;
}
@@ -48,8 +48,8 @@ function TEXT_f() {
default_font_style = gh_winpal.font_style;
default_font_size = gh_winpal.font_size;
default_font_color = gh_winpal.font_color;
- gh_winpal.font_style = font;
- gh_winpal.font_size = siz;
+ gh_winpal.font_style = this.font;
+ gh_winpal.font_size = this.siz;
r = xstringl(0,0,exprs[1-1],evstr(exprs[2-1]),evstr(exprs[3-1]));
gh_winpal.font_style = default_font_style;
gh_winpal.font_size = default_font_size;
@@ -57,13 +57,13 @@ function TEXT_f() {
sz = r.slice(3-1,4);
graphics.sz = sz;
this.x.graphics = graphics;
- ipar = [[font],[siz]];
- model.rpar = txt;
+ ipar = [[this.font],[this.siz]];
+ model.rpar = this.txt;
model.ipar = ipar;
this.x.model = model;
break;
}
}
- return new BasicBlock(this.x);
+ return new TextBlock(this.x);
}
}