Commit 19e64d77 authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Commit in everything so far.

A really bad commit is comming, but the tool is coming together.


git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_refactor@8734 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent 119491cf
Loading
Loading
Loading
Loading

@Cell/Cell.m

0 → 100644
+22 −0
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
+1 −0
Original line number Diff line number Diff line
@@ -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
+3 −1
Original line number Diff line number Diff line
@@ -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;

@GUIBase/GUIBase.m

0 → 100644
+30 −0
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
+19 −0
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