Loading @Cell/Cell.m +22 Changes for @Cell/Cell.m: 22 added lines, 0 removed lines. Original line number Diff line number Diff line classdef Cell < handle %CELL Base cell class that stores text. % Base cell that handles the text. All other cell uses this to % implement their data specific representations. properties text = '' end methods function str = get_user_string(object) str = object.text; end function set_string(object, string) %TODO: Verify string is a string ... object.text = string; end end end @Data/Data.m +1 Changes for @Data/Data.m: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ classdef Data < handle object.left_cond.addlistener('AddedOuterCell', @(src, event) left_grid_added_cell(object, src, event)); object.top_cond.addlistener('AddedOuterCell', @(src, event) top_grid_added_cell(object, src, event)); object.top_cond.addlistener('RemovedOuterCell', @(src, event) object.outputs_grid.delete_column(event.changed_cell)); end end Loading @GUI/init.m +3 −1 Changes for @GUI/init.m: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -206,7 +206,9 @@ object.grid_layout.insert_drawable(object.horizontal_grid, 2, 1); object.grid_layout.insert_drawable(object.outputs_grid, 2, 2); object.grid_layout_panel = uipanel(object.fig); object.grid_layout.draw_onto(object.grid_layout_panel); object.grid_layout.draw(object.grid_layout_panel); object.grid_layout.addlistener('BoundingBoxChanged', @(src, event)set_command_pos(object) ); object.set_command_pos; Loading @GUIBase/GUIBase.m +30 Changes for @GUIBase/GUIBase.m: 30 added lines, 0 removed lines. Original line number Diff line number Diff line classdef GUIBase < handle %GUIBASE Summary of this class goes here % Detailed explanation goes here properties phandle = -1 end methods function draw(object, parent_handle) %TODO delete old controls object.phandle = parent_handle; object.redraw(); end function redraw(object) draw_onto(object, object.phandle); end end methods(Abstract) draw_onto(object, parent_handle); end events BoundingBoxChanged end end @GUIParameters/GUIParameters.m +19 Changes for @GUIParameters/GUIParameters.m: 19 added lines, 0 removed lines. Original line number Diff line number Diff line classdef GUIParameters %GUIPARAMETERS Summary of this class goes here % Detailed explanation goes here properties edit_width = 250 edit_height = 60 layout_margin_x = 20 layout_margin_y = 20 end methods function object = GUIParameters() end end end Loading
@Cell/Cell.m +22 Changes for @Cell/Cell.m: 22 added lines, 0 removed lines. Original line number Diff line number Diff line classdef Cell < handle %CELL Base cell class that stores text. % Base cell that handles the text. All other cell uses this to % implement their data specific representations. properties text = '' end methods function str = get_user_string(object) str = object.text; end function set_string(object, string) %TODO: Verify string is a string ... object.text = string; end end end
@Data/Data.m +1 Changes for @Data/Data.m: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ classdef Data < handle object.left_cond.addlistener('AddedOuterCell', @(src, event) left_grid_added_cell(object, src, event)); object.top_cond.addlistener('AddedOuterCell', @(src, event) top_grid_added_cell(object, src, event)); object.top_cond.addlistener('RemovedOuterCell', @(src, event) object.outputs_grid.delete_column(event.changed_cell)); end end Loading
@GUI/init.m +3 −1 Changes for @GUI/init.m: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -206,7 +206,9 @@ object.grid_layout.insert_drawable(object.horizontal_grid, 2, 1); object.grid_layout.insert_drawable(object.outputs_grid, 2, 2); object.grid_layout_panel = uipanel(object.fig); object.grid_layout.draw_onto(object.grid_layout_panel); object.grid_layout.draw(object.grid_layout_panel); object.grid_layout.addlistener('BoundingBoxChanged', @(src, event)set_command_pos(object) ); object.set_command_pos; Loading
@GUIBase/GUIBase.m +30 Changes for @GUIBase/GUIBase.m: 30 added lines, 0 removed lines. Original line number Diff line number Diff line classdef GUIBase < handle %GUIBASE Summary of this class goes here % Detailed explanation goes here properties phandle = -1 end methods function draw(object, parent_handle) %TODO delete old controls object.phandle = parent_handle; object.redraw(); end function redraw(object) draw_onto(object, object.phandle); end end methods(Abstract) draw_onto(object, parent_handle); end events BoundingBoxChanged end end
@GUIParameters/GUIParameters.m +19 Changes for @GUIParameters/GUIParameters.m: 19 added lines, 0 removed lines. Original line number Diff line number Diff line classdef GUIParameters %GUIPARAMETERS Summary of this class goes here % Detailed explanation goes here properties edit_width = 250 edit_height = 60 layout_margin_x = 20 layout_margin_y = 20 end methods function object = GUIParameters() end end end