www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@sweepsetfilter/modifyGuidFiltersDlg.m
function [OK, ssf] = modifyGuidFiltersDlg(ssf, hParent, indexSS) %modifyGuidFiltersDlg dialog to restore removed rows % [OK, ssf] = modifyGuidFiltersDlg(ssf, hParent, indexSS) % Copyright 2000-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. % Need to get a sweepset to index the guid filters against if nargin < 2 hParent = []; end if nargin < 3 indexSS = sweepset(ssf.pSweepset.info); end [removedRows,guidList] = getRemovedRows(ssf,indexSS); % Create the dialog dlg = mbcgui.container.Dialog(... 'Name', 'Restore Removed Data',... 'Size', [290, 310], ... 'Owner',hParent,... 'Buttons', 'OK_CANCEL', ... 'DefaultAction', 'OK', ... 'CloseAction', 'CANCEL', ... 'Visible', 'off'); fig = dlg.Figure; list = listitemselector(fig,... 'itemlist',removedRows,... 'selectionstyle','multiple',... 'unselectedtitle','Removed data:',... 'selectedtitle','Points to restore:'); dlg.Content = list; OK = strcmp(dlg.showDialog(),'OK'); if OK % Which guids are being restored restoreGuids = guidList(list.selecteditems); ssf = removeGuidFilter(ssf, restoreGuids); end % And delete the dialog delete(dlg)