SPLASH M-file for splash.fig SPLASH, by itself, creates a new SPLASH or raises the existing singleton*. H = SPLASH returns the handle to a new SPLASH or the handle to the existing singleton*. SPLASH('CALLBACK',hObject,eventData,handles,...) calls the local function named SPLASH in SPLASH.M with the given input arguments. SPLASH('Property','Value',...) creates a new SPLASH or raises the existing singleton*. Starting from the left, property value pairs are applied to the GUI before splash_OpeningFunction gets called. An unrecognized property name or invalid value makes property application stop. All inputs are passed to splash_OpeningFcn via varargin. *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one instance to run (singleton)". Code construction assisted by GUIDE GENERAL Omitted. INPUT/S - OUTPUT/S - PENDING WORK - KNOWN BUG/S - COMMENT/S - RELATED FUNCTION/S ABOUT -Created: February 12th, 2004 -Last update: -Revision: 0.0.9 -Author: R. S. Schestowitz, University of Manchester ==============================================================
0001 function varargout = splash(varargin) 0002 % SPLASH M-file for splash.fig 0003 % SPLASH, by itself, creates a new SPLASH or raises the existing 0004 % singleton*. 0005 % 0006 % H = SPLASH returns the handle to a new SPLASH or the handle to 0007 % the existing singleton*. 0008 % 0009 % SPLASH('CALLBACK',hObject,eventData,handles,...) calls the local 0010 % function named SPLASH in SPLASH.M with the given input arguments. 0011 % 0012 % SPLASH('Property','Value',...) creates a new SPLASH or raises the 0013 % existing singleton*. Starting from the left, property value pairs are 0014 % applied to the GUI before splash_OpeningFunction gets called. An 0015 % unrecognized property name or invalid value makes property application 0016 % stop. All inputs are passed to splash_OpeningFcn via varargin. 0017 % 0018 % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one 0019 % instance to run (singleton)". 0020 % 0021 % Code construction assisted by GUIDE 0022 % 0023 % GENERAL 0024 % 0025 % Omitted. 0026 % 0027 % INPUT/S 0028 % 0029 % - 0030 % 0031 % 0032 % OUTPUT/S 0033 % 0034 % - 0035 % 0036 % PENDING WORK 0037 % 0038 % - 0039 % 0040 % KNOWN BUG/S 0041 % 0042 % - 0043 % 0044 % COMMENT/S 0045 % 0046 % - 0047 % 0048 % RELATED FUNCTION/S 0049 % 0050 % 0051 % 0052 % ABOUT 0053 % 0054 % -Created: February 12th, 2004 0055 % -Last update: 0056 % -Revision: 0.0.9 0057 % -Author: R. S. Schestowitz, University of Manchester 0058 % ============================================================== 0059 0060 % Edit the above text to modify the response to help_button register 0061 0062 % Last Modified by GUIDE v2.5 18-Feb-2004 08:44:46 0063 0064 % Begin initialization code - DO NOT EDIT 0065 gui_Singleton = 1; 0066 gui_State = struct('gui_Name', mfilename, ... 0067 'gui_Singleton', gui_Singleton, ... 0068 'gui_OpeningFcn', @splash_OpeningFcn, ... 0069 'gui_OutputFcn', @splash_OutputFcn, ... 0070 'gui_LayoutFcn', [] , ... 0071 'gui_Callback', []); 0072 if nargin & isstr(varargin{1}) 0073 gui_State.gui_Callback = str2func(varargin{1}); 0074 end 0075 0076 if nargout 0077 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); 0078 else 0079 gui_mainfcn(gui_State, varargin{:}); 0080 end 0081 % End initialization code - DO NOT EDIT 0082 0083 % --- Executes just before register is made visible. 0084 function splash_OpeningFcn(hObject, eventdata, handles, varargin) 0085 % This function has no output args, see OutputFcn. 0086 % hObject handle to figure 0087 % eventdata reserved - to be defined in a future version of MATLAB 0088 % handles structure with handles and user data (see GUIDATA) 0089 % varargin command line arguments to register (see VARARGIN) 0090 0091 % Choose default command line output for register 0092 handles.output = hObject; 0093 0094 % Update handles structure 0095 guidata(hObject, handles); 0096 0097 if strcmp(get(hObject,'Visible'),'off') 0098 initialize_gui(hObject, handles); 0099 end 0100 0101 % UIWAIT makes register pause for user response (see UIRESUME) 0102 % uiwait(handles.Splash_window); 0103 0104 0105 % --- Outputs from this function are returned to the command line. 0106 function varargout = splash_OutputFcn(hObject, eventdata, handles) 0107 % varargout cell array for returning output args (see VARARGOUT); 0108 % hObject handle to figure 0109 % eventdata reserved - to be defined in a future version of MATLAB 0110 % handles structure with handles and user data (see GUIDATA) 0111 0112 % Get default command line output from handles structure 0113 varargout{1} = handles.output; 0114 0115 0116 0117 function initialize_gui(fig_handle, handles) 0118 0119 set(handles.caption, 'String', ['Victoria University of Manchester Version ', [get_version]]); 0120 % Put some bigger logo here 0121 0122 axes(handles.aart_logo); 0123 axis off; 0124 aart_logo = imread('aartlrg.jpg'); 0125 imshow(aart_logo,[0,255]); 0126 0127 axes(handles.aart_title); 0128 axis off; 0129 aart_logo = imread('aarttitle.jpg'); 0130 imshow(aart_logo,[0,255]); 0131 0132 % destroy splash screen later in the function that calls this routine.