ASCII2KML_GUI M-file for ASCII2KML_GUI.fig ASCII2KML_GUI, by itself, creates a new ASCII2KML_GUI or raises the existing singleton*. H = ASCII2KML_GUI returns the handle to a new ASCII2KML_GUI or the handle to the existing singleton*. ASCII2KML_GUI('CALLBACK',hObject,eventData,handles,...) calls the local function named CALLBACK in ASCII2KML_GUI.M with the given input arguments. ASCII2KML_GUI('Property','Value',...) creates a new ASCII2KML_GUI or raises the existing singleton*. Starting from the left, property value pairs are applied to the GUI before ASCII2KML_GUI_OpeningFcn gets called. An unrecognized property name or invalid value makes property application stop. All inputs are passed to ASCII2KML_GUI_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 = ASCII2KML_GUI(varargin) 0002 % ASCII2KML_GUI M-file for ASCII2KML_GUI.fig 0003 % ASCII2KML_GUI, by itself, creates a new ASCII2KML_GUI or raises the existing 0004 % singleton*. 0005 % 0006 % H = ASCII2KML_GUI returns the handle to a new ASCII2KML_GUI or the handle to 0007 % the existing singleton*. 0008 % 0009 % ASCII2KML_GUI('CALLBACK',hObject,eventData,handles,...) calls the local 0010 % function named CALLBACK in ASCII2KML_GUI.M with the given input arguments. 0011 % 0012 % ASCII2KML_GUI('Property','Value',...) creates a new ASCII2KML_GUI or raises the 0013 % existing singleton*. Starting from the left, property value pairs are 0014 % applied to the GUI before ASCII2KML_GUI_OpeningFcn gets called. An 0015 % unrecognized property name or invalid value makes property application 0016 % stop. All inputs are passed to ASCII2KML_GUI_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 ASCII2KML_GUI 0024 0025 % Last Modified by GUIDE v2.5 13-Mar-2011 21:26:01 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', @ASCII2KML_GUI_OpeningFcn, ... 0032 'gui_OutputFcn', @ASCII2KML_GUI_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 ASCII2KML_GUI is made visible. 0048 function ASCII2KML_GUI_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 ASCII2KML_GUI (see VARARGIN) 0054 0055 % Choose default command line output for ASCII2KML_GUI 0056 handles.output = hObject; 0057 0058 % Update handles structure 0059 guidata(hObject, handles); 0060 0061 % Ensure path to utils & docs is available 0062 % ---------------------------------------- 0063 filesep = '\'; % windows 0064 utilspath = [pwd filesep 'utils']; 0065 docspath = [pwd filesep 'doc']; 0066 toolspath = [pwd filesep 'tools']; 0067 addpath(utilspath,docspath,toolspath) 0068 0069 % UIWAIT makes ASCII2KML_GUI wait for user response (see UIRESUME) 0070 % uiwait(handles.figure1); 0071 0072 0073 % --- Outputs from this function are returned to the command line. 0074 function varargout = ASCII2KML_GUI_OutputFcn(hObject, eventdata, handles) 0075 % varargout cell array for returning output args (see VARARGOUT); 0076 % hObject handle to figure 0077 % eventdata reserved - to be defined in a future version of MATLAB 0078 % handles structure with handles and user data (see GUIDATA) 0079 0080 % Get default command line output from handles structure 0081 varargout{1} = handles.output; 0082 0083 0084 % --- Executes on button press in runbutton. 0085 function runbutton_Callback(hObject, eventdata, handles) 0086 % hObject handle to runbutton (see GCBO) 0087 % eventdata reserved - to be defined in a future version of MATLAB 0088 % handles structure with handles and user data (see GUIDATA) 0089 0090 ASCII2KML