Commit 59de71be authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Rename CondGrid to HierarchicalGrid along with its cell.

Rename this grid to match with how life is proceding now.  Its no longer 
guaranteed that the layout of a table will be as expected.  Thus move towards
a more generic system for managing the system.



git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_refactor@8640 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent 3b241485
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
% Author: Matthew Dawson matthew@mjdsystems.ca
% Organization: McMaster Centre for Software Certification
classdef CondGrid < handle
classdef HierarchicalGrid < handle
    % This class stores a grid containing conditions for the table.
    % It can be used either for the left of top grid.
    
@@ -21,7 +21,7 @@ classdef CondGrid < handle
        %   none
        % outputs:
        %   object:Data - created object
        function object = CondGrid()
        function object = HierarchicalGrid()
            
        end
        
+2 −4
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ function [] = add_cell( object, beneath_cell, after_cell )
%% ADD_CELL Add a cell to the grid.
%   Adds a new cell to the grid, updates relevant information throughout,
%   and sends appropriate update signals.
global asdf

    %% Find Subgrid
    if isempty(beneath_cell)
        subgrid = object;
@@ -13,9 +13,7 @@ global asdf
        subgrid = beneath_cell;
    end
    
    NewCell = CondCell();
    NewCell.text = asdf;
    asdf = asdf + 1;
    NewCell = HierarchicalGridCell();
        
    if isempty(after_cell)
        %% Append cell to grid
+2 −2
Original line number Diff line number Diff line
% Author: Matthew Dawson matthew@mjdsystems.ca
% Organization: McMaster Centre for Software Certification
classdef CondCell < handle
classdef HierarchicalGridCell < handle
    % This class will store a single cell of data.  It contains its string,
    % and it contains a subgrid if appropriate.
    
@@ -19,7 +19,7 @@ classdef CondCell < handle
        %   none
        % outputs:
        %   object:Data - created object
        function object = CondCell()
        function object = HierarchicalGridCell()
            
        end