diff m-toolbox/classes/@constructor/cb_selectClass.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/classes/@constructor/cb_selectClass.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,21 @@
+function cb_selectClass(varargin)
+  
+  myh = varargin{1};
+  mainfig = varargin{end};
+    
+  % get selected class
+  h = findobj(mainfig.handle, 'Tag', 'ClassSelect');
+  classes = get(h, 'String');
+  cl = classes{get(h, 'Value')};
+  
+  % get sets
+  ii = eval([cl '.getInfo']);
+  
+  % fill set list
+  h = findobj(mainfig.handle, 'Tag', 'SetSelect');
+  set(h, 'Value', 1);
+  set(h, 'String', ii.sets);
+  
+  constructor.cb_selectSet(myh, mainfig);
+  
+end