Mercurial > octave
diff libgui/src/m-editor/file-editor-interface.h @ 18399:2ea741d22554 gui-release
create empty script when editor becomes visible without open files (bug #41347)
* file-editor.cc (empty_script): new function determining whether to create
an empty script or not;
(handle_visibility): reimplemented from octave_dock_widget, calls
empty_script each time the editor becomes visible;
* file-editor.h: new slot handle_visibility, new function empty_script
* file-editor-interface.h: new virtual function empty_script
* main-window.cc (connect_visibility_changed): call empty_script when main
window and all widgets are initialized
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 26 Jan 2014 12:55:21 +0100 |
parents | 2c241092b47b |
children | 777281eeb3d4 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-interface.h Fri Jan 24 17:17:00 2014 -0800 +++ b/libgui/src/m-editor/file-editor-interface.h Sun Jan 26 12:55:21 2014 +0100 @@ -61,6 +61,8 @@ virtual void set_focus () = 0; + virtual void empty_script (bool, bool) = 0; + public slots: virtual void request_new_file (const QString& command = QString ()) = 0; virtual void request_new_script (const QString& command = QString ()) = 0;