IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_report_log_fselrepeater_hist.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref report_log_fselrepeater_hist
4 %>
5 %> <b>Dataset for hint</b> - see report_log_fselrepeater_hist::data_hint
6 %>
7 %> <b>Peak Detector</b> - see report_log_fselrepeater_hist::peakdetector
8 %>
10 
11 %>@cond
12 function varargout = uip_report_log_fselrepeater_hist(varargin)
13 % Last Modified by GUIDE v2.5 06-Jul-2013 20:30:04
14 
15 % Begin initialization code - DO NOT EDIT
16 gui_Singleton = 1;
17 gui_State = struct('gui_Name', mfilename, ...
18  'gui_Singleton', gui_Singleton, ...
19  'gui_OpeningFcn', @uip_report_log_fselrepeater_hist_OpeningFcn, ...
20  'gui_OutputFcn', @uip_report_log_fselrepeater_hist_OutputFcn, ...
21  'gui_LayoutFcn', [] , ...
22  'gui_Callback', []);
23 if nargin && ischar(varargin{1})
24  gui_State.gui_Callback = str2func(varargin{1});
25 end
26 
27 if nargout
28  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
29 else
30  gui_mainfcn(gui_State, varargin{:});
31 end
32 % End initialization code - DO NOT EDIT
33 
34 
35 % --- Executes just before uip_report_log_fselrepeater_hist is made visible.
36 function uip_report_log_fselrepeater_hist_OpeningFcn(hObject, eventdata, handles, varargin)
37 handles.output.flag_ok = 0;
38 guidata(hObject, handles);
39 gui_set_position(hObject);
40 refresh(handles);
41 
42 % --- Outputs from this function are returned to the command clae.
43 function varargout = uip_report_log_fselrepeater_hist_OutputFcn(hObject, eventdata, handles)
44 try
45  uiwait(handles.figure1);
46  handles = guidata(hObject);
47  varargout{1} = handles.output;
48  delete(gcf);
49 catch
50  output.flag_ok = 0;
51  output.params = {};
52  varargout{1} = output;
53 end;
54 
55 
56 %############################################
57 
58 %#########
59 function refresh(handles)
60 listbox_load_from_workspace('peakdetector', handles.popupmenu_peakdetector, 1);
61 listbox_load_from_workspace('irdata', handles.popupmenu_data_hint, 1);
62 listbox_load_from_workspace('subsetsprocessor', handles.popupmenu_subsetsprocessor, 1);
63 
64 
65 %############################################
66 %############################################
67 
68 % --- Executes on button press in pushbuttonOK.
69 function pushbuttonOK_Callback(hObject, eventdata, handles) %#ok<*DEFNU,*INUSL>
70 try
71  speakdetector = listbox_get_selected_1stname(handles.popupmenu_peakdetector);
72  if isempty(speakdetector)
73  speakdetector = '[]';
74  end;
75  sdata_hint = listbox_get_selected_1stname(handles.popupmenu_data_hint);
76  if isempty(sdata_hint)
77  sdata_hint = '[]';
78  end;
79  ssubsetsprocessor = listbox_get_selected_1stname(handles.popupmenu_subsetsprocessor);
80  if isempty(ssubsetsprocessor)
81  ssubsetsprocessor = '[]';
82  end;
83 
84  handles.output.params = {...
85  'peakdetector', speakdetector, ...
86  'data_hint', sdata_hint, ...
87  'subsetsprocessor', ssubsetsprocessor, ...
88  };
89  handles.output.flag_ok = 1;
90  guidata(hObject, handles);
91  uiresume();
92 catch ME
93  irerrordlg(ME.message, 'Cannot continue');
94 
95 end;
96 
97 function popupmenu_subsetsprocessor_Callback(hObject, eventdata, handles)
98 function popupmenu_subsetsprocessor_CreateFcn(hObject, eventdata, handles)
99 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
100  set(hObject,'BackgroundColor','white');
101 end
102 function popupmenu_data_hint_Callback(hObject, eventdata, handles)
103 function popupmenu_data_hint_CreateFcn(hObject, eventdata, handles)
104 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
105  set(hObject,'BackgroundColor','white');
106 end
107 function popupmenu_peakdetector_Callback(hObject, eventdata, handles)
108 function popupmenu_peakdetector_CreateFcn(hObject, eventdata, handles)
109 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
110  set(hObject,'BackgroundColor','white');
111 end
112 %> @endcond
Property peakdetector
=def_peakdetector()
Dataset class.
Definition: irdata.m:30
Peak Detector.
Definition: peakdetector.m:6
function listbox_get_selected_1stname(in h_listbox)
Property data_hint
=[]. Hint dataset
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)