SPLASH MATLAB code 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 CALLBACK 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_OpeningFcn 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)". See also: GUIDE, GUIDATA, GUIHANDLES
0001 function varargout = splash(varargin) 0002 % SPLASH MATLAB code 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 CALLBACK 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_OpeningFcn 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 % See also: GUIDE, GUIDATA, GUIHANDLES 0022 0023 % Edit the above text to modify the response to help splash 0024 0025 % Last Modified by GUIDE v2.5 27-Feb-2012 23:57:54 0026 0027 % Begin initialization code - DO NOT EDIT 0028 gui_Singleton = 1; 0029 gui_State = struct('gui_Name', mfilename, ... 0030 'gui_Singleton', gui_Singleton, ... 0031 'gui_OpeningFcn', @splash_OpeningFcn, ... 0032 'gui_OutputFcn', @splash_OutputFcn, ... 0033 'gui_LayoutFcn', [] , ... 0034 'gui_Callback', []); 0035 if nargin && ischar(varargin{1}) 0036 gui_State.gui_Callback = str2func(varargin{1}); 0037 end 0038 0039 if nargout 0040 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); 0041 else 0042 gui_mainfcn(gui_State, varargin{:}); 0043 end 0044 % End initialization code - DO NOT EDIT 0045 0046 0047 % --- Executes just before splash is made visible. 0048 function splash_OpeningFcn(hObject, eventdata, handles, varargin) 0049 % This function has no output args, see OutputFcn. 0050 % hObject handle to figure 0051 % eventdata reserved - to be defined in a future version of MATLAB 0052 % handles structure with handles and user data (see GUIDATA) 0053 % varargin command line arguments to splash (see VARARGIN) 0054 0055 %pixels 0056 set( handles.figure1, ... 0057 'Units', 'pixels' ); 0058 0059 %get your display size 0060 screenSize = get(0, 'ScreenSize'); 0061 0062 position = get( handles.figure1, ... 0063 'Position' ); 0064 0065 position(1) = (screenSize(3)-position(3))/2; 0066 position(2) = (screenSize(4)-position(4))/2; 0067 0068 set( handles.figure1, ... 0069 'Position', position ); 0070 0071 % Choose default command line output for splash 0072 handles.output = hObject; 0073 0074 try 0075 img = imread( './utilities/logo.jpg' ); 0076 catch err 0077 img = imread( 'logo.jpg' ); 0078 end 0079 0080 imshow( img ); 0081 0082 % Update handles structure 0083 guidata(hObject, handles); 0084 0085 % UIWAIT makes splash wait for user response (see UIRESUME) 0086 % uiwait(handles.figure1); 0087 0088 0089 % --- Outputs from this function are returned to the command line. 0090 function varargout = splash_OutputFcn(hObject, eventdata, handles) 0091 % varargout cell array for returning output args (see VARARGOUT); 0092 % hObject handle to figure 0093 % eventdata reserved - to be defined in a future version of MATLAB 0094 % handles structure with handles and user data (see GUIDATA) 0095 0096 % Get default command line output from handles structure 0097 varargout{1} = handles.output; 0098 0099 % --- Executes on button press in closeButton. 0100 function closeButton_Callback(hObject, eventdata, handles) 0101 % hObject handle to closeButton (see GCBO) 0102 % eventdata reserved - to be defined in a future version of MATLAB 0103 % handles structure with handles and user data (see GUIDATA) 0104 close; 0105 %icaoberg 9/28/2013 0106 %hide toolbar from this release 0107 %toolbar; 0108 0109 0110 % -------------------------------------------------------------------- 0111 function people_Callback(hObject, eventdata, handles) 0112 % hObject handle to people (see GCBO) 0113 % eventdata reserved - to be defined in a future version of MATLAB 0114 % handles structure with handles and user data (see GUIDATA)