comparison m-toolbox/classes/@repogui2/cb_fieldSelect.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 % CB_FIELDSELECT callback executed when a field is selected
2 %
3 % M Hewitson
4 %
5 % $Id: cb_fieldSelect.m,v 1.2 2011/04/08 08:56:36 hewitson Exp $
6 %
7 function cb_fieldSelect(varargin)
8
9
10 mainfig = varargin{end};
11
12 %---- Set the order by field to the first in this list
13
14 % Get selected fields
15 fieldList = findobj(mainfig.handle, 'Tag', 'fieldsList');
16 fieldsStr = get(fieldList, 'String');
17 vals = get(fieldList, 'Value');
18 fields = fieldsStr(vals);
19
20 orderBy = findobj(mainfig.handle, 'Tag', 'fieldOrderBy');
21 set(orderBy, 'Value', 1);
22 set(orderBy, 'String', fields);
23
24
25 % Build query
26 repogui2.buildquery(mainfig);
27
28 end