comparison m-toolbox/m/gui/gltpda/g_UndoButtonCallback.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 g_UndoButtonCallback(varargin)
2 % Whenever the user clicks on the 'Undo' button.
3
4 global params oldparams paramEnabled oldparamEnabled selBlocks
5
6 temp = paramEnabled;
7 paramEnabled = oldparamEnabled;
8 oldparamEnabled = temp;
9
10 paramcommand = g_BuildParamCommand(params);
11 for kk=1:length(selBlocks)
12 set_param(selBlocks(kk),'Description',paramcommand);
13 end
14 g_AnnotationUpdate(params);
15
16 % This to swap params and params, so it's possible to undo the undo:
17 temp = params;
18 params = oldparams;
19 oldparams = temp;
20 clear temp;
21
22 ltpdagui('Redraw',2)
23
24 end