Commit a382ae11 authored by Colin Eles's avatar Colin Eles
Browse files

remove previous version of settings

git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/trunk/TableTool@8191 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent b206bdec
Loading
Loading
Loading
Loading

@Settings/Settings.m

deleted100644 → 0
+0 −49
Original line number Diff line number Diff line
% Author: Colin Eles elesc@mcmaster.ca
% Organization: McMaster Centre for Software Certification
classdef Settings < handle
    %UNTITLED Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
        % settings
        pvs_includes = [];
        counter_trials = [];
        counter_range = [];
        except = [];
        
        % gui elements
        fig_width = 400;
        fig_height = 300;
        open = 0;
        fig = [];
        button_width = 60;
        button_height = 30;
        button_offset = 10;
        title_height = 30;
        label_height = 30;
        label_width = 75;
        text_offset = 10;
        
        include_text = [];
        count_text = [];
        range_text = [];
        except_check = [];
    end
    
    methods
        
        %% Settings
        %    constructor
        % inputs:
        %   none
        % outputs:
        %   object:Settings - created object
        function object = Settings()
        end
        
        
        
    end
    
end

@Settings/apply_call.m

deleted100644 → 0
+0 −15
Original line number Diff line number Diff line
%% apply_call
%    callback for apply button, save the settings but do not close
%    figure.
% inputs:
%   object:Settings - current object
%   src - source of the callback calling
%   event - event that triggered the callback
% outputs:
%   none
% Author: Colin Eles elesc@mcmaster.ca
% Organization: McMaster Centre for Software Certification
function err = apply_call(object,src,event)
object.save;
end

@Settings/cancel_call.m

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
%% cancel_call
%    callback for cancel button, cose figure don't save settings
% inputs:
%   object:Settings - current object
%   src - source of the callback calling
%   event - event that triggered the callback
% outputs:
%   none
% Author: Colin Eles elesc@mcmaster.ca
% Organization: McMaster Centre for Software Certification
function [] = cancel_call(object,src,event)
object.close_fig([],[]);
end

@Settings/close_fig.m

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
%% close_fig
%    when close button is pressed delete the figure, allow a new
%    one to be opened
% inputs:
%   object:Settings - current object
%   src - source of the callback calling
%   event - event that triggered the callback
% outputs:
%   none
% Author: Colin Eles elesc@mcmaster.ca
% Organization: McMaster Centre for Software Certification
function [] = close_fig(object,src,event)
delete(object.fig);
object.open = 0;
end

@Settings/elipse_call.m

deleted100644 → 0
+0 −30
Original line number Diff line number Diff line
%% elipse_call
%    callback for when the elipses button is pressed, show file
%    picker, update the textbox of selected files.
% inputs:
%   object:Settings - current object
%   src - source of the callback calling
%   event - event that triggered the callback
% outputs:
%   none
% Author: Colin Eles elesc@mcmaster.ca
% Organization: McMaster Centre for Software Certification
function [] = elipse_call(object,src,event)
files = uigetfile('*.pvs','Select pvs files','MultiSelect','on');
string = [];
if iscell(files)
    for i = 1:size(files,2)
        string = strcat(string,files(i));
      
        if i ~= size(files,2)
            string = strcat(string,', ');
           
        end
    end
    
else
    string = files;
end
set(object.include_text,'String',char(string));
end
Loading