diff libgui/src/main-window.h @ 18155:14acb08d75fa gui-release

gui: optionally set focus to console when a command is run from another widget * settings-dialog.ui: new checkbox for focus switching to console * settings-dialog.cc (constructor): read new setting and init check box, (write_changed_settings): write state from check box into settings file * main-window.cc (focus_console_after_command): new functions checking settings file for new settings, (execute_command_in_terminal): focus console if desired, (run_file_in_terminal): focus console if desired * main-window.h: new function focus_console_after_command
author Torsten <ttl@justmail.de>
date Fri, 20 Dec 2013 16:13:20 +0100
parents 8695fa048226
children 545a77c3206e
line wrap: on
line diff
--- a/libgui/src/main-window.h	Thu Dec 19 17:32:38 2013 -0800
+++ b/libgui/src/main-window.h	Fri Dec 20 16:13:20 2013 +0100
@@ -250,6 +250,7 @@
 
   void execute_command_callback ();
   void run_file_callback (const QFileInfo& info);
+  bool focus_console_after_command ();
 
   void new_figure_callback (void);