LTPDV_OBJECTLIST_EDIT activates when the user changes the content of a cell. M Hewitson 22-04-08 $Id: ltpdv_objectList_edit.m,v 1.2 2008/06/18 15:07:35 hewitson Exp $
0001 function ltpdv_objectList_edit(varargin) 0002 % LTPDV_OBJECTLIST_EDIT activates when the user changes the content of a 0003 % cell. 0004 % 0005 % M Hewitson 22-04-08 0006 % 0007 % $Id: ltpdv_objectList_edit.m,v 1.2 2008/06/18 15:07:35 hewitson Exp $ 0008 % 0009 0010 % Handles 0011 myh = varargin{1}; 0012 mainfig = varargin{end}; 0013 0014 % Structure of selection details 0015 sel = varargin{2}; 0016 0017 % Get selected rows 0018 rows = unique(sel.Indices(:,1)); 0019 0020 % Get current object list 0021 objs = getappdata(mainfig, 'LTPDAobjects'); 0022 0023 objs{rows} = objs{rows}.setName(sel.NewData); 0024 0025 % Set objects back 0026 setappdata(mainfig, 'LTPDAobjects', objs); 0027 0028 % Refresh object list 0029 ltpdv_refresh_object_list(mainfig); 0030 0031 0032 % END