comparison m-toolbox/m/gui/gltpda/g_SetsUpdate.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_SetsUpdate(hObject,varargin)
2 % Whenever the user select a different set of params
3
4 global params paramSets paramEnabled selBlocks
5
6 currSet = get(hObject,'Value');
7 paramSets = pset(paramSets,'currSet',currSet);
8 functionname = getappdata(0,'ltpda_currFunctionName');
9 [func,currClass] = strtok(get(gcbh,'Tag'));
10 infoObj = eval([currClass,'.getInfo(''',functionname,''')']);
11 params = infoObj.plists(currSet);
12 paramEnabled = zeros(1,nparams(params));
13
14 paramcommand = g_BuildParamCommand(params);
15 for kk=1:length(selBlocks), set_param(selBlocks(kk),'Description',paramcommand); end
16
17 % Finally set the block annotation:
18 for nn=1:length(selBlocks), set_param(selBlocks(nn),'AttributesFormatString',''); end
19
20 % buildplistFigureParam([],[],get(findobj('Tag','paramsPage'),'UserData'));
21 GUIprefs = getappdata(0, 'GUIpreferences');
22 if GUIprefs.Detach, open_system(bdroot); end
23 selBlocks = nan;
24
25 end