Mercurial > hg > ltpda
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/m/gui/gltpda/g_SetsUpdate.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,25 @@ +function g_SetsUpdate(hObject,varargin) + % Whenever the user select a different set of params + + global params paramSets paramEnabled selBlocks + + currSet = get(hObject,'Value'); + paramSets = pset(paramSets,'currSet',currSet); + functionname = getappdata(0,'ltpda_currFunctionName'); + [func,currClass] = strtok(get(gcbh,'Tag')); + infoObj = eval([currClass,'.getInfo(''',functionname,''')']); + params = infoObj.plists(currSet); + paramEnabled = zeros(1,nparams(params)); + + paramcommand = g_BuildParamCommand(params); + for kk=1:length(selBlocks), set_param(selBlocks(kk),'Description',paramcommand); end + + % Finally set the block annotation: + for nn=1:length(selBlocks), set_param(selBlocks(nn),'AttributesFormatString',''); end + + % buildplistFigureParam([],[],get(findobj('Tag','paramsPage'),'UserData')); + GUIprefs = getappdata(0, 'GUIpreferences'); + if GUIprefs.Detach, open_system(bdroot); end + selBlocks = nan; + +end