source: aedes_helpabout.m @ 214

Last change on this file since 214 was 213, checked in by tjniskan, 4 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
RevLine 
[80]1function aedes_helpabout()
2% AEDES_HELPABOUT - Show Aedes About dialog
[2]3%   
4%
5% Synopsis:
6%
7% Description:
8%
9% Examples:
10%
11% See also:
[37]12%        AEDES
[2]13
[37]14% This function is a part of Aedes - A graphical tool for analyzing
[36]15% medical images
[2]16%
[36]17% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
18%
[45]19% Department of Physics, Department of Neurobiology
[37]20% University of Kuopio, FINLAND
[36]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.
[2]29
[36]30
[2]31%% Load default font and colors
[80]32GD=aedes_gui_defaults;
[2]33
34fig_w = 310;
35fig_h = 395;
[155]36fig_location = aedes_dialoglocation([fig_w,fig_h]);
37fig_pos = [fig_location(1) fig_location(2) fig_w fig_h];
[2]38
39%% Main Figure ----------------------------
40fh = figure('Units','Pixel', ...
41            'position',fig_pos,...
[37]42            'Name',['About Aedes'],...
[2]43            'Numbertitle','off', ...
[37]44            'Tag','aedes_about_figure', ...
[2]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));
[213]53if ~GD.HG2graphics
54        set(fh,'DoubleBuffer','on')
55end
[2]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',...
[82]69            'position',[(fig_w-256)/2 0.65*fig_h 256 130],...
[2]70            'visible','off',...
71            'ydir','reverse',...
72            'clim',[0 500]);
[36]73uistack(imax,'bottom')
[2]74
75%% Show head image
[37]76fpath=which('aedes');
[2]77[fp,fn,fe]=fileparts(fpath);
78try
[82]79  imdata = imread([fp,filesep,'aedes_logo.png']);
80  %imdata = imdata(:,:,1);
[2]81catch
82  delete(fh);
[82]83  hh=errordlg('Cannot find file "aedes_logo.png"!','Error!',...
[2]84              'modal');
85  return
86end
[82]87
[2]88sz=size(imdata);
89im=image('parent',imax,'cdata',imdata,...
[82]90  'cdatamapping','scaled');
91set(imax,'xlim',[0.5 sz(2)+0.5],...
92  'ylim',[0.5 sz(1)+0.5])
[2]93
[82]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]);
[2]113
114% Version text
[80]115[rev,repo,wc_dir] = aedes_revision;
[2]116version_tx = text('parent',bgax,...
117                  'horizontalalign','left',...
118                  'units','normal',...
[82]119                  'position',[0.10 0.63],...
[2]120                  'verticalalign','top',...
[25]121                  'string',...
[82]122                                  sprintf(['version 1.0 rev %d\n%s'],rev,'http://aedes.uku.fi'),...
[2]123                  'fontsize',10,...
124                  'fontweig','bold',...
125                  'color',[0 0 0]);
[36]126                               
127% Licence notise text
[42]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]);
[2]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
[82]161contact_shadow = text('parent',bgax,...
[2]162                      'horizontalalign','left',...
163                      'units','normal',...
[82]164                      'position',[0.1 0.117],...
[2]165                      'verticalalign','bottom',...
166                      'string',{'Contact information:','',...
167                    'Juha-Pekka Niskanen,',...
[82]168                    'Biomedical NMR Group,',...
169                    'A. I. Virtanen Institute for Molecular Sciences,',...
[148]170                    'University of Eastern Finland, Finland'...
171                    'Email: Juha-Pekka.Niskanen@uef.fi'},...
[2]172                      'fontsize',8,...
173                      'fontweig','bold',...
174                      'color',[1 1 1]);
[82]175contact_tx = text('parent',bgax,...
[2]176                  'horizontalalign','left',...
177                  'units','normal',...
[82]178                  'position',[0.1 0.12],...
[2]179                  'verticalalign','bottom',...
180                  'string',{'Contact information:','',...
181                    'Juha-Pekka Niskanen,',...
[82]182                    'Biomedical NMR Group,',...
183                    'A. I. Virtanen Institute for Molecular Sciences,',...
[148]184                    'University of Eastern Finland, Finland'...
185                    'Email: Juha-Pekka.Niskanen@uef.fi'},...
[2]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