diff m-toolbox/m/gui/ltpdv/callbacks/ltpdv_build_get_selected_pset.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/ltpdv/callbacks/ltpdv_build_get_selected_pset.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,19 @@
+% LTPDV_BUILD_GET_SELECTED_PSET returns the currently selected set on
+% the build panel.
+% 
+% M Hewitson 26-08-08
+% 
+% $Id: ltpdv_build_get_selected_pset.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $
+% 
+
+function set = ltpdv_build_get_selected_pset(mainfig)
+  
+  % Fill in the set selector list
+  sh = findobj(mainfig, 'Tag', 'LTPDVbuildSetSelect');
+ 
+  % Get the selected class
+  strs = get(sh, 'String');
+  idx  = get(sh, 'Value');  
+  set = strs{idx};
+  
+end
\ No newline at end of file