Mercurial > hg > octave-lyh
diff libgui/src/main-window.h @ 16452:744ff2fe11ce
add create script context menu to history window
* history-dockwidget.h (history_doc_widget::command_create_script):
New signal.
* history-dockwidget.cc, history-dockwidget.h
(history_dock_widget::ctxMenu): New menu item, Create script.
(history_dock_widget::handle_contextmenu_create_script): New function.
* file-editor-interface.h (file-editor-interface::request_new_file):
New argument, commands.
* file-editor-tab.h, file-editor-tab.cc (file_editor_tab::new_file):
New argument, commands.
* m-editor/file-editor.h, m-editor/file-editor.cc
(file_editor::new_file, file_editor::request_new_file):
New argument, commands.
* main-window.h, main-window.cc (main_window::new_file):
New argument, commands.
main_window::construct): Connect history_window::command_create_script
signal to main_window::new_file.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 06 Apr 2013 23:58:58 -0400 |
parents | d4c3736e1e28 |
children | 2e3c652c89d1 |
line wrap: on
line diff
--- a/libgui/src/main-window.h +++ b/libgui/src/main-window.h @@ -1,6 +1,5 @@ /* -Copyright (C) 2013 John W. Eaton Copyright (C) 2011-2012 Jacob Dawid This file is part of Octave. @@ -81,7 +80,7 @@ void handle_load_workspace_request (); void handle_clear_workspace_request (); void handle_clear_history_request (void); - void new_file (); + void new_file (const QString& commands = QString ()); void open_file (); void open_file (const QString& file_name); void open_online_documentation_page ();