IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_blmisc_split_ovo.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref blmisc_split_ovo
4 %> @sa blmisc_split_ovo
5 
6 %>@cond
7 function varargout = uip_blmisc_split_ovo(varargin)
8 % Begin initialization code - DO NOT EDIT
9 gui_Singleton = 1;
10 gui_State = struct('gui_Name', mfilename, ...
11  'gui_Singleton', gui_Singleton, ...
12  'gui_OpeningFcn', @uip_blmisc_split_ovo_OpeningFcn, ...
13  'gui_OutputFcn', @uip_blmisc_split_ovo_OutputFcn, ...
14  'gui_LayoutFcn', [] , ...
15  'gui_Callback', []);
16 if nargin && ischar(varargin{1})
17  gui_State.gui_Callback = str2func(varargin{1});
18 end
19 
20 if nargout
21  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
22 else
23  gui_mainfcn(gui_State, varargin{:});
24 end
25 % End initialization code - DO NOT EDIT
26 
27 
28 %#####
29 function uip_blmisc_split_ovo_OpeningFcn(hObject, eventdata, handles, varargin)
30 if nargin > 4
31  % Dataset is expected as parameter
32  ds = varargin{2};
33  set(handles.text_caption, 'String', [get(handles.text_caption, 'String'), sprintf(' (number of levels in dataset: %d)', ds.get_no_levels)]);
34 end;
35 handles.output.flag_ok = 0;
36 guidata(hObject, handles);
37 gui_set_position(hObject);
38 
39 
40 %#####
41 function varargout = uip_blmisc_split_ovo_OutputFcn(hObject, eventdata, handles)
42 try
43  uiwait(handles.figure1);
44  handles = guidata(hObject);
45  varargout{1} = handles.output;
46  delete(gcf);
47 catch %#ok<*CTCH>
48  output.flag_ok = 0;
49  varargout{1} = output;
50 end;
51 
52 
53 %#####
54 function pushbuttonOk_Callback(hObject, eventdata, handles) %#ok<*INUSL>
55 
56 
57 try
58  idxs = eval(get(handles.edit_hierarchy, 'String'));
59 
60  if ~isnumeric(idxs)
61  irerror('Please type in a numerical vector!');
62  end;
63 
64  handles.output.params = {...
65  'hierarchy', mat2str(idxs) ...
66  };
67  handles.output.flag_ok = 1;
68  guidata(hObject, handles);
69  uiresume();
70 catch ME
71  irerrordlg(ME.message, 'Cannot continue');
72 end;
73 
74 %--------------------------------------------------------------------------------------------------------------
75 
76 function edit_hierarchy_Callback(hObject, eventdata, handles) %#ok<*INUSD,*DEFNU>
77 function edit_hierarchy_CreateFcn(hObject, eventdata, handles)
78 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
79  set(hObject,'BackgroundColor','white');
80 end
81 %>@endcond
function irerror(in s)
function gui_set_position(in hObject)
One-Versus-One dataset split class combination.
Analysis Session (AS) base class.
Definition: as.m:6
function irerrordlg(in errorstring, in dlgname)