Commit b8181c6f authored by Mike Cichonski's avatar Mike Cichonski
Browse files

fixed File->Vised Configuration and ensured compatibility with Edit->Visually Edit

parent 47bede56
......@@ -47,20 +47,20 @@ properties = [ ...
'"alt press" = toggle channel flag when Shift-left-click is executed on event in eegplot figure axis, '...
'"ext press" = toggle channel flag when Ctrl-left-click [or simple righ-click] is executed on event in eegplot figure axis']) ...
PropertyGridField('selectcommand', vised_config.selectcommand, ...
'Type', PropertyType('cellstr','row'), ...
'Type', PropertyType('cellstr','column'), ...
'Category', 'visual editing options', ...
'DisplayName', 'select command [selectcommand]', ...
'Description', ['[cell array] list of 3 commands (strings) to run when the mouse ' ...
'button is down, when it is moving and when the mouse button is up.']) ...
PropertyGridField('extselectcommand', vised_config.extselectcommand, ...
'Type', PropertyType('cellstr','row'), ...
'Type', PropertyType('cellstr','column'), ...
'Category', 'visual editing options', ...
'DisplayName', 'extended select command [extselectcommand]', ...
'Description', ['[cell array] list of 3 commands (strings) to run when the mouse ' ...
'button + SHIFT is down, when it is ' ...
'moving and when the mouse button is up.']) ...
PropertyGridField('altselectcommand', vised_config.altselectcommand, ...
'Type', PropertyType('cellstr','row'), ...
'Type', PropertyType('cellstr','column'), ...
'Category', 'visual editing options', ...
'DisplayName', 'alternate select command [altselectcommand]', ...
'Description', ['[cell array] list of 3 commands (strings) to run when the mouse ' ...
......
......@@ -42,13 +42,14 @@ for i = 1:length(fn)
elseif isnumeric(instruct.(fn{i}))
fprintf(fid, '%s\n\t',fn{i});
if isempty(instruct.(fn{i}))
%fprintf(fid, '%s\t',fn{i});
fprintf(fid, '%s\n',' ');
else
%fprintf(fid, '%s\t',num2str(instruct.(fn{i})));
fprintf(fid, '%s\n',num2str(instruct.(fn{i})));
if ~(i==length(fn));
if isempty(instruct.(fn{i}))
%fprintf(fid, '%s\t',fn{i});
fprintf(fid, '%s\n',' ');
else
%fprintf(fid, '%s\t',num2str(instruct.(fn{i})));
fprintf(fid, '%s\n',num2str(instruct.(fn{i})));
end
end
elseif ischar(instruct.(fn{i}))
......@@ -65,7 +66,7 @@ for i = 1:length(fn)
elseif isstruct(instruct.(fn{i}))
fprintf(fid, '%s\n',fn{i});
print_report(instruct.(fn{i}),fn{i},fid);
%print_report(instruct.(fn{i}),fn{i},fid);
elseif islogical(instruct.(fn{i}))
fprintf(fid, '%s\t',fn{i});
......
......@@ -201,20 +201,20 @@ try vised_config.mocap = g.mocap; catch,end
try vised_config.selectcommand = g.selectcommand;
catch,
if isempty(vised_config.selectcommand{1}); vised_config.selectcommand={'ve_eegplot(''defdowncom'',gcbf);' ...
've_eegplot(''defmotioncom'',gcbf);' ...
've_eegplot(''defupcom'', gcbf);'};
if isempty(vised_config.selectcommand{1}); vised_config.selectcommand={['ve_eegplot(''defdowncom'',gcbf);']; ...
['ve_eegplot(''defmotioncom'',gcbf);']; ...
['ve_eegplot(''defupcom'', gcbf);']};
end
end
try vised_config.extselectcommand=g.extselectcommand; catch
if isempty(vised_config.extselectcommand{1})
vised_config.extselectcommand={ ['ve_edit;'] 've_eegplot(''defmotioncom'', gcbf);' '' };
vised_config.extselectcommand={ ['ve_edit;']; ['ve_eegplot(''defmotioncom'', gcbf);']; [''] };
end
end
try vised_config.altselectcommand=g.altselectcommand; catch
if isempty(vised_config.altselectcommand{1})
vised_config.altselectcommand={ ['ve_edit(''quick_chanflag'',''manual'');'] 've_eegplot(''defmotioncom'', gcbf);' '' };
vised_config.altselectcommand={ ['ve_edit(''quick_chanflag'',''manual'');']; ['ve_eegplot(''defmotioncom'', gcbf);']; [''] };
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment