source: aedes_killfigs.m

Last change on this file was 147, checked in by tjniskan, 7 years ago
  • 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 size: 1.4 KB
Line 
1function aedes_killfigs(opt)
2% AEDES_KILLFIGS - Close all Matlab figures (also with hidden handles) with brute force
3%   
4%
5% Synopsis:
6%
7% Description:
8%
9% Examples:
10%
11% See also:
12%
13
14% This function is a part of Aedes - A graphical tool for analyzing
15% medical images
16%
17% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
18%
19% Department of Physics, Department of Neurobiology
20% University of Kuopio, FINLAND
21%
22% This program may be used under the terms of the GNU General Public
23% License version 2.0 as published by the Free Software Foundation
24% and appearing in the file LICENSE.TXT included in the packaging of
25% this program.
26%
27% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29
30if nargin<1
31  opt = 'all';
32end
33
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
54
Note: See TracBrowser for help on using the repository browser.

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