Commit e8e628f4 authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Add in new data structures.

Support the new data structures.


git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_refactor@8657 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent 59de71be
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@ classdef Data < handle
    % out the data from the gui and logic.
    
    properties
        left_cond = CondGrid();
        top_cond = CondGrid();
        result_grid = ResultGrid();
        left_cond = HierarchicalGrid();
        top_cond = HierarchicalGrid();
        result_grid = TableGrid();
        function_name = [];
        function_inputs = [];
        settings = [];
@@ -28,7 +28,8 @@ classdef Data < handle
        % outputs:
        %   object:Data - created object
        function object = Data()
            
            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))
        end
        
    end
+7 −0
Original line number Diff line number Diff line
function left_grid_added_cell( object, src, event )
%LEFT_GRID_ADDED_CELL Handler for when a new left condition is added.

    object.result_grid.add_row(event.changed_cell);

end
+7 −0
Original line number Diff line number Diff line
function top_grid_added_cell( object, src, event )
%LEFT_GRID_ADDED_CELL Handler for when a new left condition is added.

    object.result_grid.add_column(event.changed_cell);

end
+13 −0
Original line number Diff line number Diff line
% Author: Matthew Dawson matthew@mjdsystems.ca
% Organization: McMaster Centre for Software Certification

classdef GridSingleColumnEventDetails < event.EventData
   properties
      changed_cell = [];
   end
   methods
      function eventData = GridSingleColumnEventDetails(changed_cell_in)
            eventData.changed_cell = changed_cell_in;
      end
   end
end
 No newline at end of file
+13 −0
Original line number Diff line number Diff line
% Author: Matthew Dawson matthew@mjdsystems.ca
% Organization: McMaster Centre for Software Certification

classdef GridSingleRowEventDetails < event.EventData
   properties
      changed_row = [];
   end
   methods
      function eventData = GridSingleRowEventDetails(changed_row_in)
            eventData.changed_row = changed_row_in;
      end
   end
end
 No newline at end of file
Loading