tomwalters@0: % procedure for 'aim-mat' tomwalters@0: % function namestr=aim_getwindowtitle(handles) tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % RETURN VALUE: tomwalters@0: % a string with the current graphics window title tomwalters@0: % tomwalters@0: % plots the current graphic in the GUI or in the current windowhandle tomwalters@0: % bleeck@3: % tomwalters@0: % (c) 2011, University of Southampton bleeck@3: % Maintained by Stefan Bleeck (bleeck@gmail.com) bleeck@3: % download of current version is on the soundsoftware site: bleeck@3: % http://code.soundsoftware.ac.uk/projects/aimmat bleeck@3: % documentation and everything is on http://www.acousticscale.org bleeck@3: tomwalters@0: tomwalters@0: tomwalters@0: function namestr=aim_getwindowtitle(handles) tomwalters@0: tomwalters@0: modus=[];modul=[]; tomwalters@0: str=[handles.info.completesoundfilename]; tomwalters@0: op=handles.info.current_plot; tomwalters@0: if op>1 tomwalters@0: modus='PCP'; tomwalters@0: modul=handles.info.current_pcp_module; tomwalters@0: str=[str ' - ' modus ': ' modul]; tomwalters@0: end tomwalters@0: if op>2 tomwalters@0: modus='BMM'; tomwalters@0: modul=handles.info.current_bmm_module; tomwalters@0: str=[str ' - ' modus ': ' modul]; tomwalters@0: end tomwalters@0: if op>3 tomwalters@0: modus='NAP'; tomwalters@0: modul=handles.info.current_nap_module; tomwalters@0: str=[str ' - ' modus ': ' modul]; tomwalters@0: end tomwalters@0: if op>4 tomwalters@0: modus='STROBES'; tomwalters@0: modul=handles.info.current_strobes_module; tomwalters@0: str=[str ' - ' modus ': ' modul]; tomwalters@0: end tomwalters@0: if op>5 tomwalters@0: modus='SAI'; tomwalters@0: modul=handles.info.current_sai_module; tomwalters@0: str=[str ' - ' modus ': ' modul]; tomwalters@0: end tomwalters@0: if op>6 tomwalters@0: modus='USER'; tomwalters@0: modul=handles.info.current_usermodule_module; tomwalters@0: str=[str ' - ' modus ': ' modul]; tomwalters@0: end tomwalters@0: tomwalters@0: namestr=str;