view m-toolbox/classes/@LTPDAprefs/setApplicationData.m @ 52:daf4eab1a51e database-connection-manager tip

Fix. Default password should be [] not an empty string
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 07 Dec 2011 17:29:47 +0100
parents f0afece42f48
children
line wrap: on
line source

% SETAPPLICATIONDATA sets the application data from the preferences object.
%
% Call:         LTPDAprefs.setApplicationData()
%
% Parameters:
%       prefs - preferences object
%
% Version:
%     $Id: setApplicationData.m,v 1.1 2010/11/30 17:39:03 ingo Exp $
%

function setApplicationData()
  
  set(0,'DefaultAxesFontSize', LTPDAprefs.axesFontSize);
  set(0,'DefaultAxesLineWidth', LTPDAprefs.axesLineWidth);
  set(0,'DefaultLineLineWidth', LTPDAprefs.lineLineWidth);
  set(0,'defaultlinemarkersize', LTPDAprefs.lineMarkerSize);
  set(0,'DefaultAxesGridLineStyle', LTPDAprefs.gridStyle);
  set(0,'DefaultAxesMinorGridLineStyle', LTPDAprefs.minorGridStyle);
  val = LTPDAprefs.axesFontWeight;
  if strcmpi(val, 'Plain')
    set(0, 'DefaultAxesFontWeight', 'normal');
  elseif strcmpi(val, 'Bold')
    set(0, 'DefaultAxesFontWeight', 'bold');
  elseif strcmpi(val, 'Italic')
    set(0, 'DefaultAxesFontWeight', 'light');
  elseif strcmpi(val, 'Bold Italic')
    set(0, 'DefaultAxesFontWeight', 'demi');
  else
    error('### Unknown value (%s) for the default axes property ''FontWeight''', char(val));
  end
  
end