diff libgui/src/m-editor/file-editor-interface.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 86c6ae5f969e
children 2ea741d22554
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-interface.h	Mon Nov 11 09:54:07 2013 -0500
+++ b/libgui/src/m-editor/file-editor-interface.h	Mon Nov 11 22:01:27 2013 +0100
@@ -64,7 +64,7 @@
 public slots:
   virtual void request_new_file (const QString& command = QString ()) = 0;
   virtual void request_new_script (const QString& command = QString ()) = 0;
-  virtual void request_new_function (const QString& command = QString ()) = 0;
+  virtual void request_new_function (bool) = 0;
   virtual void request_open_file () = 0;
   virtual void request_open_file (const QString& openFileName, int line = -1,
                                   bool debug_pointer = false,