view m-toolbox/classes/@LTPDAworkbench/cb_changeVerbosity.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 source

% CB_CHANGEVERBOSITY change the LTPDA verbosity level via the LTPDAprefs
% interface.
%
% M Hewitson 31-01-09
%
% $Id: cb_changeVerbosity.m,v 1.4 2010/08/16 18:03:43 ingo Exp $
%
function cb_changeVerbosity(varargin)
  
  wb = varargin{1};
  jc = varargin{2};
  
  val = jc.SelectedIndex - 1;
  
  warning('!!! Please remove this callback and change the preferences direct in the LTPDAworkbench')
  
  prefs = getappdata(0, 'LTPDApreferences');
  prefs.getDisplayPrefs.setDisplayVerboseLevel(java.lang.Integer(val));
end