Mercurial > octave
diff libgui/src/main-window.h @ 17901:2c241092b47b
use edit.m for creating a new function with the gui (bug #40502)
* file-editor-interface.h: request_new_function without string argument
* file-editor.cc (request_new_function): boolean instead of string as parameter,
ask for function name, set preference for not asking when creating new files,
connect a signal when file is loaded, and evaluate edit in the console
(restore_create_file_setting): slot that restores the create file pref when
file is loaded
(request_open_file): emit a signal when file is loaded
(construct): new action for new function, connect execute in terminal signal
* file_editor.h: new signal for executing a command in terminal, new signal
when file is loaded, request_new_function with boolean instead of string
parameter, new slot for restoring prompt create new file preference
* main-window.cc (construct_new_menu): new function action as class variable
(set_global_shortcuts): shortcut for new function
* main-window.h: new function action as class variable
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 11 Nov 2013 22:01:27 +0100 |
parents | 3851e5fde76d |
children | a38cee8f0a9b |
line wrap: on
line diff