Commit 96cc23fb authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Rename TableCell to TableGridCell for consistency.

Make this rename to remain consistent with HierarchicalGridCell.


git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_refactor@8659 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent e8e628f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ classdef TableGrid < handle
    % out the data from the gui and logic.
    
    properties
        grid = TableCell()
        grid = TableGridCell()
        width = 0
        height = 0
    end
+2 −2
Original line number Diff line number Diff line
@@ -12,10 +12,10 @@ function add_column( object, after_cell_index )

    if object.height ~= 0
        if isempty(after_cell_index)
            object.grid(object.height, object.width) = TableCell();
            object.grid(object.height, object.width) = TableGridCell();
            after_cell_index = object.width;
        else
            tmp(object.height, 1) = TableCell();
            tmp(object.height, 1) = TableGridCell();
            object.grid = [ object.grid(:, 1:(after_cell_index-1)) tmp object.grid(:, after_cell_index:size(object.grid, 2)) ];
        end
    end
+2 −2
Original line number Diff line number Diff line
@@ -12,10 +12,10 @@ function add_row( object, after_cell_index )

    if object.width ~= 0
        if isempty(after_cell_index)
            object.grid(object.height, object.width) = TableCell();
            object.grid(object.height, object.width) = TableGridCell();
            after_cell_index = object.width;
        else
            tmp(1, object.width) = TableCell();
            tmp(1, object.width) = TableGridCell();
            object.grid = [ object.grid(1:(after_cell_index-1), :); tmp; object.grid(after_cell_index:size(object.grid, 1), :) ];
        end
    end
+2 −2
Original line number Diff line number Diff line
% Author: Matthew Dawson matthew@mjdsystems.ca
% Organization: McMaster Centre for Software Certification
classdef TableCell
classdef TableGridCell
    %TABLECELL Summary of this class goes here
    %   Detailed explanation goes here
    
@@ -9,7 +9,7 @@ classdef TableCell
    end
    
    methods
        function object = TableCell()
        function object = TableGridCell()
        end
    end