Mercurial > hg > octave-lyh
changeset 16575:1a1f8199b5bb
generate single-line commands from workspace view context menu
* workspace-view.cc (workspace_view::handle_contextmenu_plot,
workspace_view::handle_contextmenu_stem): Don't insert newline after
figure command.
(workspace_view::handle_contextmenu_command): Don't append newline to
command string.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 27 Apr 2013 21:45:48 -0400 |
parents | b678d2d10e53 |
children | 2754c5fd6ae0 |
files | libgui/src/workspace-view.cc |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/workspace-view.cc +++ b/libgui/src/workspace-view.cc @@ -196,19 +196,19 @@ void workspace_view::handle_contextmenu_disp (void) { - relay_contextmenu_command ("disp"); + relay_contextmenu_command ("disp"); } void workspace_view::handle_contextmenu_plot (void) { - relay_contextmenu_command ("figure;\nplot"); + relay_contextmenu_command ("figure (); plot"); } void workspace_view::handle_contextmenu_stem (void) { - relay_contextmenu_command ("figure;\nstem"); + relay_contextmenu_command ("figure (); stem"); } void @@ -226,7 +226,7 @@ QString var_name = item_data[0].toString (); - emit command_requested (cmdname + "(" + var_name + ")\n"); + emit command_requested (cmdname + " (" + var_name + ");"); } }