source: aedes_helpabout.m @ 196

Last change on this file since 196 was 155, checked in by tjniskan, 8 years ago
  • Added support for multiple monitor systems

M aedes_inputdlg.m
M aedes_roi_copy_gui.m
A aedes_dialoglocation.m
M aedes_readfidprefs.m
M aedes_rotateflip.m
M aedes_resviewer.m
M aedes.m
M aedes_helpabout.m
M plugins/fat_analysis.m
M plugins/copy_data_to_workspace.m
M aedes_export_gui.m
M aedes_headerbrowser.m
M aedes_revision.m
M aedes_juigetfiles.m
M aedes_editstack.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            'DoubleBuffer','on', ...
49            'DockControls','off',...
50            'renderer','painters',...
51            'Handlevisibility','off',...
52            'windowstyle','modal',...
53            'colormap',gray(256));
54set(fh,'resize','off')
55
56%% Background axes
57bgax = axes('parent',fh,...
58            'units','normal',...
59            'position',[0 0 1 1],...
60            'xlim',[0 1],...
61            'ylim',[0 1],...
62            'visible','off');
63
64%% Image axes
65imax = axes('parent',fh,...
66            'units','pixel',...
67            'position',[(fig_w-256)/2 0.65*fig_h 256 130],...
68            'visible','off',...
69            'ydir','reverse',...
70            'clim',[0 500]);
71uistack(imax,'bottom')
72
73%% Show head image
74fpath=which('aedes');
75[fp,fn,fe]=fileparts(fpath);
76try
77  imdata = imread([fp,filesep,'aedes_logo.png']);
78  %imdata = imdata(:,:,1);
79catch
80  delete(fh);
81  hh=errordlg('Cannot find file "aedes_logo.png"!','Error!',...
82              'modal');
83  return
84end
85
86sz=size(imdata);
87im=image('parent',imax,'cdata',imdata,...
88  'cdatamapping','scaled');
89set(imax,'xlim',[0.5 sz(2)+0.5],...
90  'ylim',[0.5 sz(1)+0.5])
91
92% %% Title text
93% shadow_tx = text('parent',bgax,...
94%                  'horizontalalign','left',...
95%                  'units','normal',...
96%                  'position',[0.054 0.976],...
97%                  'verticalalign','top',...
98%                  'string','Aedes 1.0',...
99%                  'fontsize',22,...
100%                  'fontweig','bold',...
101%                  'color',[0 0 0]);
102% title_tx = text('parent',bgax,...
103%                 'horizontalalign','left',...
104%                 'units','normal',...
105%                 'position',[0.05 0.98],...
106%                 'verticalalign','top',...
107%                 'string','Aedes 1.0',...
108%                 'fontsize',22,...
109%                 'fontweig','bold',...
110%                 'color',[0 0 0.85]);
111
112% Version text
113[rev,repo,wc_dir] = aedes_revision;
114version_tx = text('parent',bgax,...
115                  'horizontalalign','left',...
116                  'units','normal',...
117                  'position',[0.10 0.63],...
118                  'verticalalign','top',...
119                  'string',...
120                                  sprintf(['version 1.0 rev %d\n%s'],rev,'http://aedes.uku.fi'),...
121                  'fontsize',10,...
122                  'fontweig','bold',...
123                  'color',[0 0 0]);
124                               
125% Licence notise text
126tmp = get(version_tx,'position');
127lic_tx = text('parent',bgax,...
128  'horizontalalign','left',...
129  'units','normal',...
130  'position',[tmp(1) tmp(2)-0.1],...
131  'verticalalign','top',...
132  'string',{'Aedes comes with ABSOLUTELY NO WARRANTY!',...
133  'This is free software, and you are welcome to',...
134  'redistribute it under certain conditions. Please ',...
135  'see the file "license.txt" for details.'},...
136  'fontsize',8,...
137  'fontweig','bold',...
138  'color',[0 0 0]);
139
140% Copyright text
141tmp=get(imax,'position');
142copyright_tx = text('parent',bgax,...
143                    'horizontalalign','left',...
144                    'units','pixel',...
145                    'position',[0.05*fig_w 25],...%[tmp(1) tmp(2)],...
146                    'verticalalign','bottom',...
147                    'string',[char(169),' 2006 Juha-Pekka Niskanen'],...
148                    'fontsize',8,...
149                    'fontweig','bold',...
150                    'color',[0 0 0]);
151
152% Horizontal line
153ln = line('parent',bgax,...
154          'xdata',[0.05 0.95],...
155          'ydata',[0.1 0.1],...
156          'color',[0.8 0.8 0.8]);
157
158% Contact info
159contact_shadow = text('parent',bgax,...
160                      'horizontalalign','left',...
161                      'units','normal',...
162                      'position',[0.1 0.117],...
163                      'verticalalign','bottom',...
164                      'string',{'Contact information:','',...
165                    'Juha-Pekka Niskanen,',...
166                    'Biomedical NMR Group,',...
167                    'A. I. Virtanen Institute for Molecular Sciences,',...
168                    'University of Eastern Finland, Finland'...
169                    'Email: Juha-Pekka.Niskanen@uef.fi'},...
170                      'fontsize',8,...
171                      'fontweig','bold',...
172                      'color',[1 1 1]);
173contact_tx = text('parent',bgax,...
174                  'horizontalalign','left',...
175                  'units','normal',...
176                  'position',[0.1 0.12],...
177                  'verticalalign','bottom',...
178                  'string',{'Contact information:','',...
179                    'Juha-Pekka Niskanen,',...
180                    'Biomedical NMR Group,',...
181                    'A. I. Virtanen Institute for Molecular Sciences,',...
182                    'University of Eastern Finland, Finland'...
183                    'Email: Juha-Pekka.Niskanen@uef.fi'},...
184                  'fontsize',8,...
185                  'fontweig','bold',...
186                  'color',[0 0 0]);
187
188% Close button
189close_btn = uicontrol('parent',fh,...
190                      'units','normal',...
191                      'position',[0.7 0.01 0.25 0.075],...
192                      'style','pushbutton',...
193                      'string','Close',...
194                      'callback','delete(gcbf)');
Note: See TracBrowser for help on using the repository browser.

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