tomwalters@0
|
1 % procedure for 'aim-mat'
|
tomwalters@0
|
2 %
|
tomwalters@0
|
3 % INPUT VALUES:
|
tomwalters@0
|
4 %
|
tomwalters@0
|
5 % RETURN VALUE:
|
tomwalters@0
|
6 %
|
tomwalters@0
|
7 %
|
bleeck@3
|
8 %
|
tomwalters@0
|
9 % (c) 2011, University of Southampton
|
bleeck@3
|
10 % Maintained by Stefan Bleeck (bleeck@gmail.com)
|
bleeck@3
|
11 % download of current version is on the soundsoftware site:
|
bleeck@3
|
12 % http://code.soundsoftware.ac.uk/projects/aimmat
|
bleeck@3
|
13 % documentation and everything is on http://www.acousticscale.org
|
bleeck@3
|
14
|
bleeck@3
|
15
|
tomwalters@0
|
16
|
tomwalters@0
|
17
|
tomwalters@0
|
18 function retfig=aim_displayaboutbox(handles)
|
tomwalters@0
|
19
|
tomwalters@0
|
20 % h = dialog('title','about');
|
tomwalters@0
|
21
|
tomwalters@0
|
22 if isfield(handles,'abouttexttodisplay')
|
tomwalters@0
|
23 withtext=1;
|
tomwalters@0
|
24 abtext=handles.abouttexttodisplay;
|
tomwalters@0
|
25 else
|
tomwalters@0
|
26 withtext=0;
|
tomwalters@0
|
27 end
|
tomwalters@0
|
28
|
tomwalters@0
|
29 logoname=sprintf('%s/logo.gif',handles.info.columnpath);
|
tomwalters@0
|
30 [logo,colmap]=imread(logoname);
|
tomwalters@0
|
31
|
tomwalters@0
|
32 retfig=figure('Visible','off');
|
tomwalters@0
|
33 h=image(logo);
|
tomwalters@0
|
34 colormap(colmap);
|
tomwalters@0
|
35 h2=get(h,'Parent');
|
tomwalters@0
|
36 retfig=get(h2,'Parent');
|
tomwalters@0
|
37
|
tomwalters@0
|
38 % set(win,'Visible','off');
|
tomwalters@0
|
39 set(h2,'YTick',[]);
|
tomwalters@0
|
40 set(h2,'XTick',[]);
|
tomwalters@0
|
41 set(h2,'Position',[0 0 1 1]);
|
tomwalters@0
|
42
|
tomwalters@0
|
43 if withtext==1
|
tomwalters@0
|
44 a=axis;
|
tomwalters@0
|
45 text(20,a(4)/2,abtext,'FontSize',18,'Color','r','Interpreter','none');
|
tomwalters@0
|
46 end
|
tomwalters@0
|
47
|
tomwalters@0
|
48 a=axis;
|
tomwalters@0
|
49 text(20,0.91.*a(4),release('ver'),'FontSize',12,'Color','b','Interpreter','none');
|
tomwalters@0
|
50 % text(20,0.95.*a(4),release('rev'),'FontSize',9,'Color','b','Interpreter','none');
|
tomwalters@0
|
51 text(20,0.98.*a(4),release('date'),'FontSize',12,'Color','b','Interpreter','none');
|
tomwalters@0
|
52
|
tomwalters@0
|
53 set(retfig,'Name','About aim-mat');
|
tomwalters@0
|
54 set(retfig,'NumberTitle','off');
|
tomwalters@0
|
55 set(retfig,'MenuBar','none');
|
tomwalters@0
|
56 movegui(retfig,'center');
|
tomwalters@0
|
57 pos=get(retfig,'Position');
|
tomwalters@0
|
58 sis=size(logo);
|
tomwalters@0
|
59 pos(3)=sis(2);
|
tomwalters@0
|
60 pos(4)=sis(1);
|
tomwalters@0
|
61 set(retfig,'Position',pos);
|
tomwalters@0
|
62 set(retfig,'Visible','on');
|
tomwalters@0
|
63 % but = uicontrol('Style', 'pushbutton', 'String', 'OK','Position', [390 0 70 60]);
|
tomwalters@0
|
64 % set(but,'Parent',win);
|
tomwalters@0
|
65 % set(but,'FontSize',20);
|
tomwalters@0
|
66 % set(but,'Callback', 'close');
|
tomwalters@0
|
67 % set(but,'FontWeight','bold');
|
tomwalters@0
|
68
|
tomwalters@0
|
69 a=0;
|
tomwalters@0
|
70
|