📄 erp_create_modify_ui.m
字号:
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','right', ...
'String',' ', ...
'Position',pos);
x = x+w+0.01;
w = 0.05;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % (ms)
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','(ms)', ...
'Position',pos);
x = x+w+0.03;
w = 0.13;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Epoch Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','End of Epoch:', ...
'Position',pos);
x = x+w;
w = 0.09;
pos = [x y w h];
epoch_hdl = uicontrol('Parent',h01, ... % Epoch Edit
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','right', ...
'String',' ', ...
'Position',pos);
x = x+w+0.01;
w = 0.05;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % (ms)
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','(ms)', ...
'Position',pos);
x = left_margin;
y = (num_line-6)*factor_line;
h = 0.6 * factor_line;
w = 0.22;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Start Time Lable
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','Analysis Starting Time:', ...
'Position',pos);
x = x+w;
h = 0.6 * factor_line;
w = 0.09;
pos = [x y w h];
start_time_hdl = uicontrol('Parent',h01, ... % Start Time Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','right', ...
'String',' ', ...
'Callback','erp_modify_datamat(''start_time_edit'');', ...
'Position',pos);
x = x+w+0.01;
h = 0.6 * factor_line;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % (ms)
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','(ms)', ...
'Position',pos);
x = (1-2*left_margin)*0.7;
h = 0.6 * factor_line;
w = 0.18;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % End Time Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','Analysis Ending Time:', ...
'Position',pos);
x = x+w;
h = 0.6 * factor_line;
w = 0.09;
pos = [x y w h];
end_time_hdl = uicontrol('Parent',h01, ... % End Time Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','right', ...
'String',' ', ...
'Callback','erp_modify_datamat(''end_time_edit'');', ...
'Position',pos);
x = x+w+0.01;
h = 0.6 * factor_line;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % (ms)
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','(ms)', ...
'Position',pos);
if ismodify
set(h01, 'name', 'Modify Datamat');
x = left_margin;
y = (num_line-7)*factor_line;
w = 0.22;
h = 0.6 * factor_line - 0.01 * factor_line;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Save As Lable
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','Save Datamat As:', ...
'visible','on', ...
'Position',pos);
x = x+w;
w = 0.25;
h = 0.6 * factor_line;
pos = [x y w h];
filename_hdl = uicontrol('Parent',h01, ... % Save As Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String',' ', ...
'Callback','erp_modify_datamat(''filename_edit'');', ...
'visible','on', ...
'Position',pos);
x = left_margin + 0.54;
y = (num_line-7)*factor_line;
w = 0.15;
h = 0.6 * factor_line;
% x = left_margin + 0.49;
% y = (num_line-7)*factor_line;
% w = 0.15;
% h = 0.6 * factor_line;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Modify
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'ListboxTop',0, ...
'String','Modify', ...
'Callback','erp_modify_datamat(''click_modify'');', ...
'Position',pos);
% x = x+w+0.1;
x = x+w+0.05;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Cancel
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'ListboxTop',0, ...
'String','Cancel', ...
'Callback','close(gcf);', ...
'Position',pos);
else
set(h01, 'name', 'Create Datamat');
x = left_margin;
y = (num_line-7)*factor_line;
w = 0.22;
h = 0.6 * factor_line - 0.01 * factor_line;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Save As Lable
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String','Save Datamat As:', ...
'visible','off', ...
'Position',pos);
x = x+w;
w = 0.25;
h = 0.6 * factor_line;
pos = [x y w h];
filename_hdl = uicontrol('Parent',h01, ... % Save As Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'String',' ', ...
'Callback','erp_create_datamat(''filename_edit'');', ...
'visible','off', ...
'Position',pos);
x = left_margin + 0.54;
y = (num_line-7)*factor_line;
w = 0.15;
h = 0.6 * factor_line;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Create
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'ListboxTop',0, ...
'String','Create', ...
'Callback','erp_create_datamat(''create_bn_pressed'');', ...
'Position',pos);
x = x+w+0.05;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Cancel
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'ListboxTop',0, ...
'String','Cancel', ...
'Callback','erp_create_datamat(''close_bn_pressed'');', ...
'Position',pos);
end
w = 1;
h = 0.6 * factor_line;
x = 0.01;
y = 0;
pos = [x y w h];
h1 = uicontrol('Parent',h01, ... % Message Line Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ForegroundColor',[0.8 0.0 0.0], ...
'FontUnits','normal', ...
'FontSize',0.55, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','', ...
'Tag','MessageLine');
setappdata(h01,'chan_lst_hdl', chan_lst_hdl);
setappdata(h01,'subj_lst_hdl', subj_lst_hdl);
setappdata(h01,'cond_lst_hdl', cond_lst_hdl);
setappdata(h01,'behav_lst_hdl', behav_lst_hdl);
setappdata(h01,'prestim_hdl', prestim_hdl);
setappdata(h01,'sweep_hdl', sweep_hdl);
setappdata(h01,'epoch_hdl', epoch_hdl);
setappdata(h01,'start_time_hdl', start_time_hdl);
setappdata(h01,'end_time_hdl', end_time_hdl);
setappdata(h01,'filename_hdl', filename_hdl);
return;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -