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