comparison m-toolbox/m/gui/ltpdv/callbacks/ltpdv_server_addTime.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 function ltpdv_server_addTime(varargin)
2
3 % Handles
4 myh = varargin{1};
5 mainfig = varargin{end};
6
7 % Add to times list
8 tlist = getappdata(mainfig, 'TimesList');
9
10 % Build this time
11 start = ltpdv_server_get_start_time(mainfig);
12 stop = ltpdv_server_get_stop_time(mainfig);
13 comm = ltpdv_server_get_comment(mainfig);
14
15
16 if start > 0 && stop > 0
17 t = {start, stop, comm};
18
19 tlist = [tlist; t];
20
21 setappdata(mainfig, 'TimesList', tlist);
22
23 ltpdv_server_set_timeslist(mainfig);
24 end
25