Loading @GUI/init.m +1 −1 Changes for @GUI/init.m: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ object.setPBenable; object.default_prover = object.CVC_const; object.settings = Settings(); object.settings = TTSettings(); if isfield(object.Data.settings,'set') object.settings.setvalues(object.Data.settings); else Loading @TTSettings/Settings.m +49 Changes for @TTSettings/Settings.m: 49 added lines, 0 removed lines. 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 @TTSettings/apply_call.m +15 Changes for @TTSettings/apply_call.m: 15 added lines, 0 removed lines. 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 @TTSettings/cancel_call.m +13 Changes for @TTSettings/cancel_call.m: 13 added lines, 0 removed lines. 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 @TTSettings/close_fig.m +16 Changes for @TTSettings/close_fig.m: 16 added lines, 0 removed lines. 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 Loading
@GUI/init.m +1 −1 Changes for @GUI/init.m: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ object.setPBenable; object.default_prover = object.CVC_const; object.settings = Settings(); object.settings = TTSettings(); if isfield(object.Data.settings,'set') object.settings.setvalues(object.Data.settings); else Loading
@TTSettings/Settings.m +49 Changes for @TTSettings/Settings.m: 49 added lines, 0 removed lines. 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
@TTSettings/apply_call.m +15 Changes for @TTSettings/apply_call.m: 15 added lines, 0 removed lines. 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
@TTSettings/cancel_call.m +13 Changes for @TTSettings/cancel_call.m: 13 added lines, 0 removed lines. 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
@TTSettings/close_fig.m +16 Changes for @TTSettings/close_fig.m: 16 added lines, 0 removed lines. 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