Mercurial > hg > ltpda
comparison m-toolbox/m/gui/ltpdv/callbacks/ltpdv_build_get_selected_class.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 % LTPDV_BUILD_GET_SELECTED_CLASS returns the currently selected class on | |
2 % the build panel. | |
3 % | |
4 % M Hewitson 26-08-08 | |
5 % | |
6 % $Id: ltpdv_build_get_selected_class.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $ | |
7 % | |
8 | |
9 function cl = ltpdv_build_get_selected_class(mainfig) | |
10 | |
11 % Fill in the set selector list | |
12 sh = findobj(mainfig, 'Tag', 'LTPDVbuildObjectClass'); | |
13 | |
14 % Get the selected class | |
15 strs = get(sh, 'String'); | |
16 idx = get(sh, 'Value'); | |
17 cl = strs{idx}; | |
18 | |
19 end |