Xcos Bug Fixes
==============
-* Bug #12751 fixed - cdummy_ entry point was not found when using Code Generation.
+* Bug #9996 fixed - The RELATION_OP box drawn in the work space is not compliant to the programming.
+* Bug #12751 fixed - cdummy_ entry point was not found when using Code Generation.
Changes between version 5.4.1 and 5.5.0
exprs=[string(nin);string(ipar)]
gr_i=[]
- x=standard_define([3 2],model,exprs,gr_i)
+ x=standard_define([2 2],model,exprs,gr_i)
end
endfunction
end
if (rule<0)|(rule>5) then
message("Incorrect operator "+string(rule)+" ; must be 0 to 5.")
+ ok=%f;
end
if (Datatype==1) then
model.sim=list("relational_op",4)
[model,graphics,ok]=set_io(model,graphics,list(in,it),list(out,ot),[],[])
end
if ok then
+ if rule == 0 then
+ label = "==";
+ elseif rule == 1 then
+ label = "~=";
+ elseif rule == 2 then
+ label = "<";
+ elseif rule == 3 then
+ label = "<=";
+ elseif rule == 4 then
+ label = ">";
+ elseif rule == 5 then
+ label = ">=";
+ end
graphics.exprs=exprs;
+ graphics.style=["fontSize=13;fontStyle=1;displayedLabel="+label];
model.ipar=[rule],
model.nzcross=zcr,
model.nmode=zcr,
end
case "define" then
ipar=[2]
+ label="<";
model=scicos_model()
model.sim=list("relationalop",4)
model.in=[1;1]
model.ipar=ipar
model.blocktype="c"
model.dep_ut=[%t %f]
-
exprs=[string(ipar);string(0)]
gr_i=[]
- x=standard_define([3 2],model,exprs,gr_i)
+ x=standard_define([2 2],model,exprs,gr_i)
+ x.graphics.style=["fontSize=13;fontStyle=1;displayedLabel="+label];
end
endfunction
<add as="fillColor" value="white"/>
</add>
<add as="RELATIONALOP" extend="blockWithLabel">
- <!-- FIXME : Show parameters over block -->
- <add as="displayedLabel" value="Relational<BR> op : &<"/>
+ <add as="displayedLabel"/>
+ <!-- value for the label defined in the interface function of block -->
</add>
<add as="TEXT_f" extend="Label">
<!-- <add as="displayedLabel" value="Text"/> -->