Home > m > gui > ltpdv > callbacks > ltpdv_objectList_select.m

ltpdv_objectList_select

PURPOSE ^

LTPDV_OBJECTLIST_SELECT activates when the user selects cells in the

SYNOPSIS ^

function ltpdv_objectList_select(varargin)

DESCRIPTION ^

 LTPDV_OBJECTLIST_SELECT activates when the user selects cells in the
 workspace object list on the import panel

 M Hewitson 22-04-08

 $Id: ltpdv_objectList_select.m,v 1.3 2008/09/02 07:51:47 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % LTPDV_OBJECTLIST_SELECT activates when the user selects cells in the
0002 % workspace object list on the import panel
0003 %
0004 % M Hewitson 22-04-08
0005 %
0006 % $Id: ltpdv_objectList_select.m,v 1.3 2008/09/02 07:51:47 hewitson Exp $
0007 %
0008 function ltpdv_objectList_select(varargin)
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   setappdata(mainfig, 'ObjectListSelectedRows', rows);
0020 
0021   % Set tooltip
0022   objs = getappdata(mainfig, 'LTPDAobjects');
0023   if numel(rows) == 1
0024     w = display(objs{rows});
0025     str = [];
0026     for j=1:numel(w)
0027       str = [str sprintf('\n%s', w{j})];
0028     end
0029     set(myh, 'TooltipString', sprintf('%s', str));
0030 
0031 
0032     % get object
0033     obj = objs{rows};
0034 
0035     ltpdv_properties_build_props(obj, mainfig)
0036 
0037   end
0038 
0039 
0040 end
0041 
0042 % END

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003