view aim-mat/gui/aim_getwindowtitle.m @ 0:74dedb26614d

Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author tomwalters
date Fri, 20 May 2011 12:32:31 +0100
parents
children 20ada0af3d7d
line wrap: on
line source
% procedure for 'aim-mat'
% function namestr=aim_getwindowtitle(handles)
% 
%   INPUT VALUES:
%   RETURN VALUE:
% 	a string with the current graphics window title
%
% plots the current graphic in the GUI or in the current windowhandle
% 
% (c) 2011, University of Southampton
% Maintained and written by Stefan Bleeck (bleec@gmail.com)
% http://www.soton.ac.uk/aim


function namestr=aim_getwindowtitle(handles)

modus=[];modul=[];
str=[handles.info.completesoundfilename];
op=handles.info.current_plot;
if op>1
	modus='PCP';
	modul=handles.info.current_pcp_module;
	str=[str ' - '  modus ': ' modul];
end
if op>2
	modus='BMM';
	modul=handles.info.current_bmm_module;
	str=[str ' - '  modus ': ' modul];
end
if op>3
	modus='NAP';
	modul=handles.info.current_nap_module;
	str=[str ' - '  modus ': ' modul];
end
if op>4
	modus='STROBES';
	modul=handles.info.current_strobes_module;
	str=[str ' - '  modus ': ' modul];
end
if op>5
	modus='SAI';
	modul=handles.info.current_sai_module;
	str=[str ' - '  modus ': ' modul];
end
if op>6
	modus='USER';
	modul=handles.info.current_usermodule_module;
	str=[str ' - '  modus ': ' modul];
end

namestr=str;