comparison m-toolbox/test/gui/gltpda.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 function varargout = gltpda(varargin)
2 % GLTPDA M-file for gltpda.fig
3 % GLTPDA, by itself, creates a new GLTPDA or raises the existing
4 % singleton*.
5 %
6 % H = GLTPDA returns the handle to a new GLTPDA or the handle to
7 % the existing singleton*.
8 %
9 % GLTPDA('CALLBACK',hObject,eventData,handles,...) calls the local
10 % function named CALLBACK in GLTPDA.M with the given input arguments.
11 %
12 % GLTPDA('Property','Value',...) creates a new GLTPDA or raises the
13 % existing singleton*. Starting from the left, property value pairs are
14 % applied to the GUI before gltpda_OpeningFunction gets called. An
15 % unrecognized property name or invalid value makes property application
16 % stop. All inputs are passed to gltpda_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 gltpda
24
25 % Last Modified by GUIDE v2.5 15-Feb-2007 10:18:41
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', @gltpda_OpeningFcn, ...
32 'gui_OutputFcn', @gltpda_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 gltpda is made visible.
48 function gltpda_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 gltpda (see VARARGIN)
54
55 % Choose default command line output for gltpda
56 handles.output = hObject;
57
58 % Update handles structure
59 guidata(hObject, handles);
60
61 % UIWAIT makes gltpda wait for user response (see UIRESUME)
62 % uiwait(handles.main);
63
64 %----------------------
65 % Some setup stuff
66 %----------------------
67
68 gltpda_params;
69
70 % add functions/ to path
71 addpath(settings.general.functions_path)
72
73 % make settings structure
74 setappdata(handles.main, 'settings', settings);
75
76 % now we have the functions path the rest can go in init()
77 handles = gltpda_init(handles);
78
79
80
81
82 % --- Outputs from this function are returned to the command line.
83 function varargout = gltpda_OutputFcn(hObject, eventdata, handles)
84 % varargout cell array for returning output args (see VARARGOUT);
85 % hObject handle to figure
86 % eventdata reserved - to be defined in a future version of MATLAB
87 % handles structure with handles and user data (see GUIDATA)
88
89 % Get default command line output from handles structure
90 varargout{1} = handles.output;
91
92
93 % --- Executes on selection change in aoList.
94 function aoList_Callback(hObject, eventdata, handles)
95 % hObject handle to aoList (see GCBO)
96 % eventdata reserved - to be defined in a future version of MATLAB
97 % handles structure with handles and user data (see GUIDATA)
98
99 % Hints: contents = get(hObject,'String') returns aoList contents as cell array
100 % contents{get(hObject,'Value')} returns selected item from aoList
101
102 gltpda_setPlots(handles);
103
104
105 % --- Executes during object creation, after setting all properties.
106 function aoList_CreateFcn(hObject, eventdata, handles)
107 % hObject handle to aoList (see GCBO)
108 % eventdata reserved - to be defined in a future version of MATLAB
109 % handles empty - handles not created until after all CreateFcns called
110
111 % Hint: listbox controls usually have a white background on Windows.
112 % See ISPC and COMPUTER.
113 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
114 set(hObject,'BackgroundColor','white');
115 end
116
117
118 % --- Executes on button press in aoImportBtn.
119 function aoImportBtn_Callback(hObject, eventdata, handles)
120 % hObject handle to aoImportBtn (see GCBO)
121 % eventdata reserved - to be defined in a future version of MATLAB
122 % handles structure with handles and user data (see GUIDATA)
123
124 handles = gltpda_aoImport(handles);
125
126
127 % --- Executes on button press in aoPlotBtn.
128 function aoPlotBtn_Callback(hObject, eventdata, handles)
129 % hObject handle to aoPlotBtn (see GCBO)
130 % eventdata reserved - to be defined in a future version of MATLAB
131 % handles structure with handles and user data (see GUIDATA)
132
133 figure;
134 gltpda_aoPlot(handles, gca);
135
136
137 % --- Executes on button press in aoViewHistBtn.
138 function aoViewHistBtn_Callback(hObject, eventdata, handles)
139 % hObject handle to aoViewHistBtn (see GCBO)
140 % eventdata reserved - to be defined in a future version of MATLAB
141 % handles structure with handles and user data (see GUIDATA)
142
143 figure
144 gltpda_plotHist(handles, gca);
145
146 % --- Executes on selection change in analysisList.
147 function analysisList_Callback(hObject, eventdata, handles)
148 % hObject handle to analysisList (see GCBO)
149 % eventdata reserved - to be defined in a future version of MATLAB
150 % handles structure with handles and user data (see GUIDATA)
151
152 % Hints: contents = get(hObject,'String') returns analysisList contents as cell array
153 % contents{get(hObject,'Value')} returns selected item from analysisList
154
155
156 % --- Executes during object creation, after setting all properties.
157 function analysisList_CreateFcn(hObject, eventdata, handles)
158 % hObject handle to analysisList (see GCBO)
159 % eventdata reserved - to be defined in a future version of MATLAB
160 % handles empty - handles not created until after all CreateFcns called
161
162 % Hint: listbox controls usually have a white background on Windows.
163 % See ISPC and COMPUTER.
164 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
165 set(hObject,'BackgroundColor','white');
166 end
167
168
169 % --- Executes on button press in aoSaveBtn.
170 function aoSaveBtn_Callback(hObject, eventdata, handles)
171 % hObject handle to aoSaveBtn (see GCBO)
172 % eventdata reserved - to be defined in a future version of MATLAB
173 % handles structure with handles and user data (see GUIDATA)
174
175
176 % --- Executes on button press in aoPoolClearBtn.
177 function aoPoolClearBtn_Callback(hObject, eventdata, handles)
178 % hObject handle to aoPoolClearBtn (see GCBO)
179 % eventdata reserved - to be defined in a future version of MATLAB
180 % handles structure with handles and user data (see GUIDATA)
181
182
183 % --- Executes on button press in aoDeleteBtn.
184 function aoDeleteBtn_Callback(hObject, eventdata, handles)
185 % hObject handle to aoDeleteBtn (see GCBO)
186 % eventdata reserved - to be defined in a future version of MATLAB
187 % handles structure with handles and user data (see GUIDATA)
188
189
190 % --- Executes on button press in pushbutton7.
191 function pushbutton7_Callback(hObject, eventdata, handles)
192 % hObject handle to pushbutton7 (see GCBO)
193 % eventdata reserved - to be defined in a future version of MATLAB
194 % handles structure with handles and user data (see GUIDATA)
195
196
197 % --- Executes on button press in analysisParamsEditBtn.
198 function analysisParamsEditBtn_Callback(hObject, eventdata, handles)
199 % hObject handle to analysisParamsEditBtn (see GCBO)
200 % eventdata reserved - to be defined in a future version of MATLAB
201 % handles structure with handles and user data (see GUIDATA)
202
203
204 % --- Executes on button press in analysisAnalyseBtn.
205 function analysisAnalyseBtn_Callback(hObject, eventdata, handles)
206 % hObject handle to analysisAnalyseBtn (see GCBO)
207 % eventdata reserved - to be defined in a future version of MATLAB
208 % handles structure with handles and user data (see GUIDATA)
209
210 gltpda_analyse(handles);
211
212 % --- Executes on button press in analysisPlusBtn.
213 function analysisPlusBtn_Callback(hObject, eventdata, handles)
214 % hObject handle to analysisPlusBtn (see GCBO)
215 % eventdata reserved - to be defined in a future version of MATLAB
216 % handles structure with handles and user data (see GUIDATA)
217
218 gltpda_plus(handles);
219
220 % --- Executes on button press in analysisMinusBtn.
221 function analysisMinusBtn_Callback(hObject, eventdata, handles)
222 % hObject handle to analysisMinusBtn (see GCBO)
223 % eventdata reserved - to be defined in a future version of MATLAB
224 % handles structure with handles and user data (see GUIDATA)
225
226 gltpda_minus(handles);
227
228 % --- Executes on button press in analysisTimesBtn.
229 function analysisTimesBtn_Callback(hObject, eventdata, handles)
230 % hObject handle to analysisTimesBtn (see GCBO)
231 % eventdata reserved - to be defined in a future version of MATLAB
232 % handles structure with handles and user data (see GUIDATA)
233
234 gltpda_times(handles);
235
236 % --- Executes on button press in analysisDivideBtn.
237 function analysisDivideBtn_Callback(hObject, eventdata, handles)
238 % hObject handle to analysisDivideBtn (see GCBO)
239 % eventdata reserved - to be defined in a future version of MATLAB
240 % handles structure with handles and user data (see GUIDATA)
241
242 gltpda_divide(handles);
243