annotate Code/Descriptors/Matlab/MPEG7/FromWeb/VoiceSauce/MessageBox.m @ 4:92ca03a8fa99 tip

Update to ICASSP 2013 benchmark
author Dawn Black
date Wed, 13 Feb 2013 11:02:39 +0000
parents
children
rev   line source
Dawn@4 1 function varargout = MessageBox(varargin)
Dawn@4 2 % MESSAGEBOX M-file for MessageBox.fig
Dawn@4 3 % MESSAGEBOX, by itself, creates a new MESSAGEBOX or raises the existing
Dawn@4 4 % singleton*.
Dawn@4 5 %
Dawn@4 6 % H = MESSAGEBOX returns the handle to a new MESSAGEBOX or the handle to
Dawn@4 7 % the existing singleton*.
Dawn@4 8 %
Dawn@4 9 % MESSAGEBOX('CALLBACK',hObject,eventData,handles,...) calls the local
Dawn@4 10 % function named CALLBACK in MESSAGEBOX.M with the given input arguments.
Dawn@4 11 %
Dawn@4 12 % MESSAGEBOX('Property','Value',...) creates a new MESSAGEBOX or raises the
Dawn@4 13 % existing singleton*. Starting from the left, property value pairs are
Dawn@4 14 % applied to the GUI before MessageBox_OpeningFcn gets called. An
Dawn@4 15 % unrecognized property name or invalid value makes property application
Dawn@4 16 % stop. All inputs are passed to MessageBox_OpeningFcn via varargin.
Dawn@4 17 %
Dawn@4 18 % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
Dawn@4 19 % instance to run (singleton)".
Dawn@4 20 %
Dawn@4 21 % See also: GUIDE, GUIDATA, GUIHANDLES
Dawn@4 22
Dawn@4 23 % Edit the above text to modify the response to help MessageBox
Dawn@4 24
Dawn@4 25 % Last Modified by GUIDE v2.5 02-Aug-2009 22:55:59
Dawn@4 26
Dawn@4 27 % Begin initialization code - DO NOT EDIT
Dawn@4 28 gui_Singleton = 1;
Dawn@4 29 gui_State = struct('gui_Name', mfilename, ...
Dawn@4 30 'gui_Singleton', gui_Singleton, ...
Dawn@4 31 'gui_OpeningFcn', @MessageBox_OpeningFcn, ...
Dawn@4 32 'gui_OutputFcn', @MessageBox_OutputFcn, ...
Dawn@4 33 'gui_LayoutFcn', [] , ...
Dawn@4 34 'gui_Callback', []);
Dawn@4 35 if nargin && ischar(varargin{1})
Dawn@4 36 gui_State.gui_Callback = str2func(varargin{1});
Dawn@4 37 end
Dawn@4 38
Dawn@4 39 if nargout
Dawn@4 40 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
Dawn@4 41 else
Dawn@4 42 gui_mainfcn(gui_State, varargin{:});
Dawn@4 43 end
Dawn@4 44 % End initialization code - DO NOT EDIT
Dawn@4 45
Dawn@4 46
Dawn@4 47 % --- Executes just before MessageBox is made visible.
Dawn@4 48 function MessageBox_OpeningFcn(hObject, eventdata, handles, varargin)
Dawn@4 49 % This function has no output args, see OutputFcn.
Dawn@4 50 % hObject handle to figure
Dawn@4 51 % eventdata reserved - to be defined in a future version of MATLAB
Dawn@4 52 % handles structure with handles and user data (see GUIDATA)
Dawn@4 53 % varargin command line arguments to MessageBox (see VARARGIN)
Dawn@4 54
Dawn@4 55 % Choose default command line output for MessageBox
Dawn@4 56 handles.output = hObject;
Dawn@4 57
Dawn@4 58 set(handles.figure_MessageBox, 'UserData', 0);
Dawn@4 59
Dawn@4 60 % Update handles structure
Dawn@4 61 guidata(hObject, handles);
Dawn@4 62
Dawn@4 63 % UIWAIT makes MessageBox wait for user response (see UIRESUME)
Dawn@4 64 % uiwait(handles.figure_MessageBox);
Dawn@4 65
Dawn@4 66
Dawn@4 67 % --- Outputs from this function are returned to the command line.
Dawn@4 68 function varargout = MessageBox_OutputFcn(hObject, eventdata, handles)
Dawn@4 69 % varargout cell array for returning output args (see VARARGOUT);
Dawn@4 70 % hObject handle to figure
Dawn@4 71 % eventdata reserved - to be defined in a future version of MATLAB
Dawn@4 72 % handles structure with handles and user data (see GUIDATA)
Dawn@4 73
Dawn@4 74 % Get default command line output from handles structure
Dawn@4 75 varargout{1} = handles.output;
Dawn@4 76
Dawn@4 77
Dawn@4 78 % --- Executes on selection change in listbox_messages.
Dawn@4 79 function listbox_messages_Callback(hObject, eventdata, handles)
Dawn@4 80 % hObject handle to listbox_messages (see GCBO)
Dawn@4 81 % eventdata reserved - to be defined in a future version of MATLAB
Dawn@4 82 % handles structure with handles and user data (see GUIDATA)
Dawn@4 83
Dawn@4 84 % Hints: contents = get(hObject,'String') returns listbox_messages contents as cell array
Dawn@4 85 % contents{get(hObject,'Value')} returns selected item from listbox_messages
Dawn@4 86
Dawn@4 87
Dawn@4 88 % --- Executes during object creation, after setting all properties.
Dawn@4 89 function listbox_messages_CreateFcn(hObject, eventdata, handles)
Dawn@4 90 % hObject handle to listbox_messages (see GCBO)
Dawn@4 91 % eventdata reserved - to be defined in a future version of MATLAB
Dawn@4 92 % handles empty - handles not created until after all CreateFcns called
Dawn@4 93
Dawn@4 94 % Hint: listbox controls usually have a white background on Windows.
Dawn@4 95 % See ISPC and COMPUTER.
Dawn@4 96 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
Dawn@4 97 set(hObject,'BackgroundColor','white');
Dawn@4 98 end
Dawn@4 99
Dawn@4 100
Dawn@4 101 % --- Executes on button press in pushbutton_stop.
Dawn@4 102 function pushbutton_stop_Callback(hObject, eventdata, handles)
Dawn@4 103 % hObject handle to pushbutton_stop (see GCBO)
Dawn@4 104 % eventdata reserved - to be defined in a future version of MATLAB
Dawn@4 105 % handles structure with handles and user data (see GUIDATA)
Dawn@4 106 set(handles.figure_MessageBox, 'UserData', 1);
Dawn@4 107 set(handles.pushbutton_close, 'Enable', 'on');
Dawn@4 108 set(hObject, 'Enable', 'off');
Dawn@4 109
Dawn@4 110
Dawn@4 111 % --- Executes on button press in pushbutton_close.
Dawn@4 112 function pushbutton_close_Callback(hObject, eventdata, handles)
Dawn@4 113 % hObject handle to pushbutton_close (see GCBO)
Dawn@4 114 % eventdata reserved - to be defined in a future version of MATLAB
Dawn@4 115 % handles structure with handles and user data (see GUIDATA)
Dawn@4 116 delete(gcf);
Dawn@4 117
Dawn@4 118
Dawn@4 119 % --- Executes when user attempts to close figure_MessageBox.
Dawn@4 120 function figure_MessageBox_CloseRequestFcn(hObject, eventdata, handles)
Dawn@4 121 % hObject handle to figure_MessageBox (see GCBO)
Dawn@4 122 % eventdata reserved - to be defined in a future version of MATLAB
Dawn@4 123 % handles structure with handles and user data (see GUIDATA)
Dawn@4 124
Dawn@4 125 % Hint: delete(hObject) closes the figure
Dawn@4 126 set(handles.figure_MessageBox, 'UserData', 1); % signal algorithm to stop
Dawn@4 127 delete(hObject);