comparison m-toolbox/classes/@LTPDAHelper/cb_guiClosed.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % cb_guiClosed callback for closing the LTPDAHelper GUI
2 %
3 % Parameters:
4 % first - LTPDAHelper object
5 % second - Source object (here: java LTPDAHelper)
6 % third - Event Object (here: WindowEvent)
7 %
8 % Version:
9 % $Id: cb_guiClosed.m,v 1.1 2010/12/17 15:32:18 hewitson Exp $
10 %
11
12 function cb_guiClosed(varargin)
13 disp('*** Goodbye from LTPDAHelper');
14 ltpdaHelper = varargin{1};
15
16 if ~isempty(ltpdaHelper) && isvalid(ltpdaHelper)
17 %--- called when window is closed
18 h = handle(ltpdaHelper.gui, 'callbackproperties');
19 set(h, 'WindowClosedCallback', []);
20
21 %--- It is also necessary to destroy the GUI with the destructor 'delete'
22 delete(ltpdaHelper);
23 end
24
25 end