0001 function current_gui_advanced_callback(fig, hObj)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 if ~exist('fig', 'var'), error('fig is a required parameter.'); end
0018 if ~exist('hObj', 'var'), error('hObj is a required parameter.'); end
0019
0020
0021
0022
0023
0024 data = guidata(fig);
0025 H = data.H;
0026
0027 switch(hObj)
0028 case {H.overlapped_radiobutton, H.concatenate_radiobutton}
0029 radiobutton_group = [H.overlapped_radiobutton, ...
0030 H.concatenate_radiobutton];
0031 set(radiobutton_group, 'Value', 0);
0032 set(hObj, 'Value', 1);
0033 case H.cancel_push
0034 current_gui_advanced_delete(fig);
0035 case H.ok_push
0036 current_parm = current_gui_advanced_get_parm_gui(fig);
0037 current_gui(data.parent, 'merge_parm', current_parm);
0038 current_gui_advanced_delete(fig);
0039 end