Loading EMLGenerator.m +7 −7 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ classdef EMLGenerator < handle function code = generate_eml_code(obj) code = []; code = [code obj.generate_preamble]; code = [code obj.generate_conditional(obj.data.Grid1,obj.data.Grid2)]; code = [code obj.generate_conditional(obj.data.Grid1,obj.data.Grid2,0)]; end Loading Loading @@ -142,7 +142,7 @@ classdef EMLGenerator < handle code = [code sprintf('%selseif(%s)\n',space,strtrim(char(g1.cells(j).cond_text)))]; end cell = obj.Grid0.search_return(g1.cells(j),g2.cells(1)); cell = obj.data.Grid0.search_return(g1.cells(j),g2.cells(1)); if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -173,7 +173,7 @@ classdef EMLGenerator < handle if (~isempty(elsecell)) code = [code sprintf('%selse\n',space)]; cell = obj.Grid0.search_return(elsecell,g2.cells(1)); cell = obj.data.Grid0.search_return(elsecell,g2.cells(1)); if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -250,7 +250,7 @@ classdef EMLGenerator < handle end end cell = obj.Grid0.search_return(g1.cells(j),g2.cells(i)) cell = obj.data.Grid0.search_return(g1.cells(j),g2.cells(i)) if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -284,7 +284,7 @@ classdef EMLGenerator < handle if (~isempty(elsecell1)) code = [code sprintf('%selse\n',space)]; cell = obj.Grid0.search_return(elsecell1,g2.cells(i)) cell = obj.data.Grid0.search_return(elsecell1,g2.cells(i)) if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -353,7 +353,7 @@ classdef EMLGenerator < handle end end cell = obj.Grid0.search_return(g1.cells(j),g2.cells(elseindex)); cell = obj.data.Grid0.search_return(g1.cells(j),g2.cells(elseindex)); if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -387,7 +387,7 @@ classdef EMLGenerator < handle if (~isempty(elsecell1)) code = [code sprintf('%selse\n',space)]; cell = obj.Grid0.search_return(elsecell1,g2.cells(elseindex)); cell = obj.data.Grid0.search_return(elsecell1,g2.cells(elseindex)); if(~isempty(cell)) depth = depth + 1; space = []; Loading GUI.m +1 −1 Original line number Diff line number Diff line Loading @@ -491,7 +491,7 @@ classdef GUI < handle %code = [code object.generate_code(object.Grid1,object.Grid2,0)]; %fprintf('%s',code); TableBlock.set_code(object.block_handle,code,obj.data.function_name); TableBlock.set_code(object.block_handle,code,object.Data.function_name); Loading TableBlock.m +2 −2 Original line number Diff line number Diff line Loading @@ -112,7 +112,7 @@ classdef TableBlock < handle % for each line, call delete_recursive if handle still exist for i=1:length( lines ) if ishandle( lines( i ) ) object.delete_recursive( lines( i ) ) TableBlock.delete_recursive( lines( i ) ) end end % end copyright Loading Loading @@ -236,7 +236,7 @@ classdef TableBlock < handle % for each line, call delete_recursive if handle still exist for i=1:length( lines ) if ishandle( lines( i ) ) object.delete_recursive( lines( i ) ) TableBlock.delete_recursive( lines( i ) ) end end % end copyright Loading Loading
EMLGenerator.m +7 −7 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ classdef EMLGenerator < handle function code = generate_eml_code(obj) code = []; code = [code obj.generate_preamble]; code = [code obj.generate_conditional(obj.data.Grid1,obj.data.Grid2)]; code = [code obj.generate_conditional(obj.data.Grid1,obj.data.Grid2,0)]; end Loading Loading @@ -142,7 +142,7 @@ classdef EMLGenerator < handle code = [code sprintf('%selseif(%s)\n',space,strtrim(char(g1.cells(j).cond_text)))]; end cell = obj.Grid0.search_return(g1.cells(j),g2.cells(1)); cell = obj.data.Grid0.search_return(g1.cells(j),g2.cells(1)); if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -173,7 +173,7 @@ classdef EMLGenerator < handle if (~isempty(elsecell)) code = [code sprintf('%selse\n',space)]; cell = obj.Grid0.search_return(elsecell,g2.cells(1)); cell = obj.data.Grid0.search_return(elsecell,g2.cells(1)); if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -250,7 +250,7 @@ classdef EMLGenerator < handle end end cell = obj.Grid0.search_return(g1.cells(j),g2.cells(i)) cell = obj.data.Grid0.search_return(g1.cells(j),g2.cells(i)) if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -284,7 +284,7 @@ classdef EMLGenerator < handle if (~isempty(elsecell1)) code = [code sprintf('%selse\n',space)]; cell = obj.Grid0.search_return(elsecell1,g2.cells(i)) cell = obj.data.Grid0.search_return(elsecell1,g2.cells(i)) if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -353,7 +353,7 @@ classdef EMLGenerator < handle end end cell = obj.Grid0.search_return(g1.cells(j),g2.cells(elseindex)); cell = obj.data.Grid0.search_return(g1.cells(j),g2.cells(elseindex)); if(~isempty(cell)) depth = depth + 1; space = []; Loading Loading @@ -387,7 +387,7 @@ classdef EMLGenerator < handle if (~isempty(elsecell1)) code = [code sprintf('%selse\n',space)]; cell = obj.Grid0.search_return(elsecell1,g2.cells(elseindex)); cell = obj.data.Grid0.search_return(elsecell1,g2.cells(elseindex)); if(~isempty(cell)) depth = depth + 1; space = []; Loading
GUI.m +1 −1 Original line number Diff line number Diff line Loading @@ -491,7 +491,7 @@ classdef GUI < handle %code = [code object.generate_code(object.Grid1,object.Grid2,0)]; %fprintf('%s',code); TableBlock.set_code(object.block_handle,code,obj.data.function_name); TableBlock.set_code(object.block_handle,code,object.Data.function_name); Loading
TableBlock.m +2 −2 Original line number Diff line number Diff line Loading @@ -112,7 +112,7 @@ classdef TableBlock < handle % for each line, call delete_recursive if handle still exist for i=1:length( lines ) if ishandle( lines( i ) ) object.delete_recursive( lines( i ) ) TableBlock.delete_recursive( lines( i ) ) end end % end copyright Loading Loading @@ -236,7 +236,7 @@ classdef TableBlock < handle % for each line, call delete_recursive if handle still exist for i=1:length( lines ) if ishandle( lines( i ) ) object.delete_recursive( lines( i ) ) TableBlock.delete_recursive( lines( i ) ) end end % end copyright Loading