Changeset 147 for aedes_killfigs.m


Ignore:
Timestamp:
Oct 22, 2010, 12:41:54 PM (9 years ago)
Author:
tjniskan
Message:
  • Added support for Windows network paths (
    server\share) to

aedes_juigetfiles.m (Windows only)

  • Added a link for suppressing the license information from printing to

workspace

  • Fixed some uicontrol colors in aedes_headerbrowser.m
  • Changed the buffer size for reading VNMR PROCPAR to 1MB. The

previous buffer size (10kB) was apparently too low for some SWIFT data

  • aedes_killfigs.m now has an option to force close only Aedes-related

figures

  • Updated figure tags for aedes_killfigs.m
  • Added a request for restarting Aedes to the "Update successful" dialog

M aedes_readprocpar.m
M aedes_killfigs.m
M aedes_data_read.m
M aedes_gui_defaults.m
M aedes_resviewer.m
M aedes.m
M aedes_update.m
M aedes_export_gui.m
M aedes_headerbrowser.m
M aedes_revision.m
M aedes_juigetfiles.m
M aedes_errordump.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_killfigs.m

    r80 r147  
    1 function aedes_killfigs()
     1function aedes_killfigs(opt)
    22% AEDES_KILLFIGS - Close all Matlab figures (also with hidden handles) with brute force
    33%   
     
    2828% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    2929
     30if nargin<1
     31  opt = 'all';
     32end
    3033
    31 % Get handles to all figures (with hidden and normal handles)
    32 H = findall(0,'type','figure');
    33 fprintf(1,'Killing %d figure(s)...\n',length(H))
    34 delete(H);
     34switch opt
     35  case 'all'
     36    % Get handles to all figures (with hidden and normal handles)
     37    H = findall(0,'type','figure');
     38    fprintf(1,'Killing %d figure(s)...\n',length(H))
     39    delete(H);
     40   
     41  case 'aedes'
     42    % Find handles to aedes windows
     43    tags = {'aedes_main_fig','aedes_juigetfiles_main_fig',...
     44      'header_browser_fig','aedes_overlay_controls_fig',...
     45      'aedes_resview_fig','aedes_export_fig'};
     46    for ii=1:length(tags)
     47      h=findall(0,'tag',tags{ii});
     48      delete(h)
     49    end
     50   
     51  otherwise
     52   error('Valid input arguments are ''all'' or ''aedes''!')
     53end
    3554
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008