IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_vis_hists.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref vis_hists
4 %> @sa vis_hists
5 
6 %>@cond
7 function varargout = uip_vis_hists(varargin)
8 % Last Modified by GUIDE v2.5 05-Oct-2011 19:54:45
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_vis_hists_OpeningFcn, ...
15  'gui_OutputFcn', @uip_vis_hists_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_vis_hists is made visible.
31 function uip_vis_hists_OpeningFcn(hObject, eventdata, handles, varargin)
32 handles.output.flag_ok = 0;
33 guidata(hObject, handles);
34 gui_set_position(hObject);
35 
36 % --- Outputs from this function are returned to the command clae.
37 function varargout = uip_vis_hists_OutputFcn(hObject, eventdata, handles)
38 try
39  uiwait(handles.figure1);
40  handles = guidata(hObject);
41  varargout{1} = handles.output;
42  delete(gcf);
43 catch
44  output.flag_ok = 0;
45  output.params = {};
46  varargout{1} = output;
47 end;
48 
49 % --- Executes on button press in pushbuttonOK.
50 function pushbuttonOK_Callback(hObject, eventdata, handles)
51 try
52  handles.output.params = {...
53  'idx_hist', mat2str(eval(get(handles.edit_idx_hist, 'String'))), ...
54  'flag_group', int2str(get(handles.checkbox_flag_group, 'Value')) ...
55  };
56  handles.output.flag_ok = 1;
57  guidata(hObject, handles);
58  uiresume();
59 catch ME
60  irerrordlg(ME.message, 'Cannot continue');
61 
62 end;
63 
64 
65 function edit_idx_hist_Callback(hObject, eventdata, handles)
66 
67 % --- Executes during object creation, after setting all properties.
68 function edit_idx_hist_CreateFcn(hObject, eventdata, handles)
69 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
70  set(hObject,'BackgroundColor','white');
71 end
72 
73 % --- Executes on button press in checkbox_flag_group.
74 function checkbox_flag_group_Callback(hObject, eventdata, handles)
75 
76 %> @endcond
Visualization - Histograms from log_hist.
Definition: vis_hists.m:7
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)