function xbat_startup

% xbat_startup - startup file for xbat
% ------------------------------------
%
% xbat_startup

%--------------------------------
% Author: Harold Figueroa
%--------------------------------
% $Revision: 132 $
% $Date: 2004-12-02 15:58:47 -0500 (Thu, 02 Dec 2004) $
%--------------------------------

%------------------------------------------
% PROPERTY VALUES
%------------------------------------------

%--
% default font
%--

FONT_NAME = 'Comic Sans MS';

%--
% default font size
%--

% this needs to be improved

tmp = get(0,'screensize');

if (tmp(3) > 1024)
	FONT_SIZE = 8;
else
	FONT_SIZE = 9;
end

%------------------------------------------
% SET DEFAULT OBJECT PROPERTIES
%------------------------------------------

%--
% turn off tex interpreter
%--

set(0,'DefaultTextInterpreter','none');

%--
% turn off figure menubar
%--

set(0,'DefaultFigureMenubar','none');

%--
% set axes text properties
%--

set(0, ...
	'DefaultAxesFontName',FONT_NAME, ...
	'DefaultAxesFontSize',FONT_SIZE ...
);

%--
% set text properties
%--

set(0, ...
	'DefaultTextFontName',FONT_NAME, ...
	'DefaultTextFontSize',FONT_SIZE ...
);

%--
% set uicontrol text properties
%--

set(0, ...
	'DefaultUicontrolFontName',FONT_NAME, ...
	'DefaultUicontrolFontSize',FONT_SIZE ...
);

%------------------------------------------
% GET ROOT USERDATA
%------------------------------------------

%--
% environment variables are stored in root userdata
%--

data = get(0,'userdata');

%------------------------------------------
% XBAT ENVIRONMENT VARIABLES
%------------------------------------------

VERSION = 'XBAT 0.3';

ROOT = ['C:\MATLAB6p5\work' filesep VERSION];

%--
% xbat root
%--

data.env.xbat_root = ROOT;

%--
% xbat file locations
%--

data.env.xbat_sounds = ROOT;

data.env.xbat_save = ROOT;

%------------------------------------------
% XBAT PREFERENCES
%------------------------------------------

%--
% palette size
%--

% value can be 'small', 'medium', or 'large'

data.env.palette_size = 'small'; 

%--
% palette tooltips
%--

% value can be 'on' or 'off'

data.env.palette_tooltips = 'on';

%------------------------------------------
% SET ENVIRONMENT VARIABLES
%------------------------------------------

%--
% environment variables are saved in the root userdata
%--

set(0,'userdata',data);

%------------------------------------------
% ADD PATHS
%------------------------------------------

%--
% add paths recursively starting from xbat root
%--

add_path(data.env.xbat_root,'rec');







