source: aedes_helpabout.m

Last change on this file was 213, checked in by tjniskan, 2 years ago
  • Fixed Aedes for Handle Graphics version 2 (HG2).

M aedes.m
M aedes_createmosaic.m
M aedes_export_gui.m
M aedes_gui_defaults.m
M aedes_headerbrowser.m
M aedes_helpabout.m
M aedes_inputdlg.m
M aedes_juigetfiles.m
M aedes_readfidprefs.m
M aedes_resviewer.m
M aedes_revision.m

File size: 6.4 KB
Line 
1function aedes_helpabout()
2% AEDES_HELPABOUT - Show Aedes About dialog
3%   
4%
5% Synopsis:
6%
7% Description:
8%
9% Examples:
10%
11% See also:
12%        AEDES
13
14% This function is a part of Aedes - A graphical tool for analyzing
15% medical images
16%
17% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
18%
19% Department of Physics, Department of Neurobiology
20% University of Kuopio, FINLAND
21%
22% This program may be used under the terms of the GNU General Public
23% License version 2.0 as published by the Free Software Foundation
24% and appearing in the file LICENSE.TXT included in the packaging of
25% this program.
26%
27% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29
30
31%% Load default font and colors
32GD=aedes_gui_defaults;
33
34fig_w = 310;
35fig_h = 395;
36fig_location = aedes_dialoglocation([fig_w,fig_h]);
37fig_pos = [fig_location(1) fig_location(2) fig_w fig_h];
38
39%% Main Figure ----------------------------
40fh = figure('Units','Pixel', ...
41            'position',fig_pos,...
42            'Name',['About Aedes'],...
43            'Numbertitle','off', ...
44            'Tag','aedes_about_figure', ...
45            'Color','w',...%GD.col.mainfig, ...
46            'Toolbar','none', ...
47            'Menubar','none', ...
48            'DockControls','off',...
49            'renderer','painters',...
50            'Handlevisibility','off',...
51            'windowstyle','modal',...
52            'colormap',gray(256));
53if ~GD.HG2graphics
54        set(fh,'DoubleBuffer','on')
55end
56set(fh,'resize','off')
57
58%% Background axes
59bgax = axes('parent',fh,...
60            'units','normal',...
61            'position',[0 0 1 1],...
62            'xlim',[0 1],...
63            'ylim',[0 1],...
64            'visible','off');
65
66%% Image axes
67imax = axes('parent',fh,...
68            'units','pixel',...
69            'position',[(fig_w-256)/2 0.65*fig_h 256 130],...
70            'visible','off',...
71            'ydir','reverse',...
72            'clim',[0 500]);
73uistack(imax,'bottom')
74
75%% Show head image
76fpath=which('aedes');
77[fp,fn,fe]=fileparts(fpath);
78try
79  imdata = imread([fp,filesep,'aedes_logo.png']);
80  %imdata = imdata(:,:,1);
81catch
82  delete(fh);
83  hh=errordlg('Cannot find file "aedes_logo.png"!','Error!',...
84              'modal');
85  return
86end
87
88sz=size(imdata);
89im=image('parent',imax,'cdata',imdata,...
90  'cdatamapping','scaled');
91set(imax,'xlim',[0.5 sz(2)+0.5],...
92  'ylim',[0.5 sz(1)+0.5])
93
94% %% Title text
95% shadow_tx = text('parent',bgax,...
96%                  'horizontalalign','left',...
97%                  'units','normal',...
98%                  'position',[0.054 0.976],...
99%                  'verticalalign','top',...
100%                  'string','Aedes 1.0',...
101%                  'fontsize',22,...
102%                  'fontweig','bold',...
103%                  'color',[0 0 0]);
104% title_tx = text('parent',bgax,...
105%                 'horizontalalign','left',...
106%                 'units','normal',...
107%                 'position',[0.05 0.98],...
108%                 'verticalalign','top',...
109%                 'string','Aedes 1.0',...
110%                 'fontsize',22,...
111%                 'fontweig','bold',...
112%                 'color',[0 0 0.85]);
113
114% Version text
115[rev,repo,wc_dir] = aedes_revision;
116version_tx = text('parent',bgax,...
117                  'horizontalalign','left',...
118                  'units','normal',...
119                  'position',[0.10 0.63],...
120                  'verticalalign','top',...
121                  'string',...
122                                  sprintf(['version 1.0 rev %d\n%s'],rev,'http://aedes.uku.fi'),...
123                  'fontsize',10,...
124                  'fontweig','bold',...
125                  'color',[0 0 0]);
126                               
127% Licence notise text
128tmp = get(version_tx,'position');
129lic_tx = text('parent',bgax,...
130  'horizontalalign','left',...
131  'units','normal',...
132  'position',[tmp(1) tmp(2)-0.1],...
133  'verticalalign','top',...
134  'string',{'Aedes comes with ABSOLUTELY NO WARRANTY!',...
135  'This is free software, and you are welcome to',...
136  'redistribute it under certain conditions. Please ',...
137  'see the file "license.txt" for details.'},...
138  'fontsize',8,...
139  'fontweig','bold',...
140  'color',[0 0 0]);
141
142% Copyright text
143tmp=get(imax,'position');
144copyright_tx = text('parent',bgax,...
145                    'horizontalalign','left',...
146                    'units','pixel',...
147                    'position',[0.05*fig_w 25],...%[tmp(1) tmp(2)],...
148                    'verticalalign','bottom',...
149                    'string',[char(169),' 2006 Juha-Pekka Niskanen'],...
150                    'fontsize',8,...
151                    'fontweig','bold',...
152                    'color',[0 0 0]);
153
154% Horizontal line
155ln = line('parent',bgax,...
156          'xdata',[0.05 0.95],...
157          'ydata',[0.1 0.1],...
158          'color',[0.8 0.8 0.8]);
159
160% Contact info
161contact_shadow = text('parent',bgax,...
162                      'horizontalalign','left',...
163                      'units','normal',...
164                      'position',[0.1 0.117],...
165                      'verticalalign','bottom',...
166                      'string',{'Contact information:','',...
167                    'Juha-Pekka Niskanen,',...
168                    'Biomedical NMR Group,',...
169                    'A. I. Virtanen Institute for Molecular Sciences,',...
170                    'University of Eastern Finland, Finland'...
171                    'Email: Juha-Pekka.Niskanen@uef.fi'},...
172                      'fontsize',8,...
173                      'fontweig','bold',...
174                      'color',[1 1 1]);
175contact_tx = text('parent',bgax,...
176                  'horizontalalign','left',...
177                  'units','normal',...
178                  'position',[0.1 0.12],...
179                  'verticalalign','bottom',...
180                  'string',{'Contact information:','',...
181                    'Juha-Pekka Niskanen,',...
182                    'Biomedical NMR Group,',...
183                    'A. I. Virtanen Institute for Molecular Sciences,',...
184                    'University of Eastern Finland, Finland'...
185                    'Email: Juha-Pekka.Niskanen@uef.fi'},...
186                  'fontsize',8,...
187                  'fontweig','bold',...
188                  'color',[0 0 0]);
189
190% Close button
191close_btn = uicontrol('parent',fh,...
192                      'units','normal',...
193                      'position',[0.7 0.01 0.25 0.075],...
194                      'style','pushbutton',...
195                      'string','Close',...
196                      'callback','delete(gcbf)');
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008