IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_report_soitem_merger_merger_fhg.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref report_soitem_merger_merger_fhg
5 
6 %>@cond
7 function varargout = uip_report_soitem_merger_merger_fhg(varargin)
8 % Last Modified by GUIDE v2.5 26-Jul-2012 14:54:46
9 
10 % Begin initialization code - DO NOT EDIT
11 gui_Singleton = 1;
12 gui_State = struct('gui_Name', mfilename, ...
13  'gui_Singleton', gui_Singleton, ...
14  'gui_OpeningFcn', @uip_report_soitem_merger_merger_fhg_OpeningFcn, ...
15  'gui_OutputFcn', @uip_report_soitem_merger_merger_fhg_OutputFcn, ...
16  'gui_LayoutFcn', [] , ...
17  'gui_Callback', []);
18 if nargin && ischar(varargin{1})
19  gui_State.gui_Callback = str2func(varargin{1});
20 end
21 
22 if nargout
23  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
24 else
25  gui_mainfcn(gui_State, varargin{:});
26 end
27 % End initialization code - DO NOT EDIT
28 
29 
30 % --- Executes just before uip_report_soitem_merger_merger_fhg is made visible.
31 function uip_report_soitem_merger_merger_fhg_OpeningFcn(hObject, eventdata, handles, varargin)
32 handles.output.flag_ok = 0;
33 guidata(hObject, handles);
34 gui_set_position(hObject);
35 refresh(handles);
36 
37 % --- Outputs from this function are returned to the command clae.
38 function varargout = uip_report_soitem_merger_merger_fhg_OutputFcn(hObject, eventdata, handles)
39 try
40  uiwait(handles.figure1);
41  handles = guidata(hObject);
42  varargout{1} = handles.output;
43  delete(gcf);
44 catch
45  output.flag_ok = 0;
46  output.params = {};
47  varargout{1} = output;
48 end;
49 
50 
51 %############################################
52 
53 %#########
54 function refresh(handles)
55 listbox_load_from_workspace('peakdetector', handles.popupmenu_peakdetector, 1);
56 listbox_load_from_workspace('biocomparer', handles.popupmenu_biocomparer, 1);
57 listbox_load_from_workspace('subsetsprocessor', handles.popupmenu_subsetsprocessor, 1);
58 
59 
60 %############################################
61 %############################################
62 
63 % --- Executes on button press in pushbuttonOK.
64 function pushbuttonOK_Callback(hObject, eventdata, handles) %#ok<*DEFNU,*INUSL>
65 try
66  speakdetector = listbox_get_selected_1stname(handles.popupmenu_peakdetector);
67  if isempty(speakdetector)
68  speakdetector = '[]';
69  end;
70  sbiocomparer = listbox_get_selected_1stname(handles.popupmenu_biocomparer);
71  if isempty(sbiocomparer)
72  sbiocomparer = '[]';
73  end;
74  ssubsetsprocessor = listbox_get_selected_1stname(handles.popupmenu_subsetsprocessor);
75  if isempty(ssubsetsprocessor)
76  ssubsetsprocessor = '[]';
77  end;
78 
79  handles.output.params = {...
80  'flag_draw_stability', int2str(get(handles.checkbox_flag_draw_stability, 'Value')) ...
81  'flag_biocomp_per_clssr', int2str(get(handles.checkbox_flag_biocomp_per_clssr, 'Value')), ...
82  'flag_biocomp_per_stab', int2str(get(handles.checkbox_flag_biocomp_per_stab, 'Value')), ...
83  'flag_biocomp_all', int2str(get(handles.checkbox_flag_biocomp_all, 'Value')), ...
84  'flag_nf4grades', int2str(get(handles.checkbox_flag_nf4grades, 'Value')), ...
85  'flag_biocomp_nf4grades', int2str(get(handles.checkbox_flag_biocomp_nf4grades, 'Value')), ...
86  'flag_biocomp_per_ssp', int2str(get(handles.checkbox_flag_biocomp_per_ssp, 'Value')), ...
87  'stab4all', int2str(eval(get(handles.edit_stab4all, 'String'))), ...
88  'peakdetector', speakdetector, ...
89  'biocomparer', sbiocomparer, ...
90  'subsetsprocessor', ssubsetsprocessor, ...
91  };
92  handles.output.flag_ok = 1;
93  guidata(hObject, handles);
94  uiresume();
95 catch ME
96  irerrordlg(ME.message, 'Cannot continue');
97 
98 end;
99 
100 function checkbox_flag_biocomp_per_clssr_Callback(hObject, eventdata, handles) %#ok<*INUSD>
101 
102 % --- Executes on selection change in popupmenuDataHint.
103 function popupmenuDataHint_Callback(hObject, eventdata, handles)
104 
105 % --- Executes during object creation, after setting all properties.
106 function popupmenuDataHint_CreateFcn(hObject, eventdata, handles)
107 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
108  set(hObject,'BackgroundColor','white');
109 end
110 
111 % --- Executes on selection change in popupmenuPeakdetector.
112 function popupmenuPeakdetector_Callback(hObject, eventdata, handles)
113 
114 % --- Executes during object creation, after setting all properties.
115 function popupmenuPeakdetector_CreateFcn(hObject, eventdata, handles)
116 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
117  set(hObject,'BackgroundColor','white');
118 end
119 
120 function checkbox_flag_biocomp_all_Callback(hObject, eventdata, handles)
121 
122 function radiobutton_curves_Callback(hObject, eventdata, handles)
123 if get(hObject, 'Value') > 0
124  set(handles.radiobutton_pl, 'Value', 0);
125 end;
126 function radiobutton_pl_Callback(hObject, eventdata, handles)
127 if get(hObject, 'Value') > 0
128  set(handles.radiobutton_curves, 'Value', 0);
129 end;
130 function checkbox_flag_biocomp_per_stab_Callback(hObject, eventdata, handles)
131 function edit_stab4all_Callback(hObject, eventdata, handles)
132 function edit_stab4all_CreateFcn(hObject, eventdata, handles)
133 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
134  set(hObject,'BackgroundColor','white');
135 end
136 function popupmenu_subsetsprocessor_Callback(hObject, eventdata, handles)
137 function popupmenu_subsetsprocessor_CreateFcn(hObject, eventdata, handles)
138 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
139  set(hObject,'BackgroundColor','white');
140 end
141 function popupmenu_biocomparer_Callback(hObject, eventdata, handles)
142 function popupmenu_biocomparer_CreateFcn(hObject, eventdata, handles)
143 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
144  set(hObject,'BackgroundColor','white');
145 end
146 function popupmenu_peakdetector_Callback(hObject, eventdata, handles)
147 function popupmenu_peakdetector_CreateFcn(hObject, eventdata, handles)
148 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
149  set(hObject,'BackgroundColor','white');
150 end
151 function checkbox_flag_nf4grades_Callback(hObject, eventdata, handles)
152 function checkbox_flag_biocomp_nf4grades_Callback(hObject, eventdata, handles)
153 function checkbox_flag_biocomp_per_ssp_Callback(hObject, eventdata, handles)
154 function checkbox_flag_draw_stability_Callback(hObject, eventdata, handles)
155 %> @endcond
156 
157 
Peak Detector.
Definition: peakdetector.m:6
function listbox_get_selected_1stname(in h_listbox)
function listbox_load_from_workspace(in classname, in h_list, in flag_blank, in string_empty, in input)
function gui_set_position(in hObject)
Processor of a set of subsets of features.
function irerrordlg(in errorstring, in dlgname)