diff libgui/src/m-editor/file-editor.h @ 26873:9ec36417c262

debug step starts script if not already running in debug mode (bug #44728) * file-editor-tab.cc (run_file): new additional parameter whether just run or step through the file * file-editor-tab.h: run_file with new parameter * file-editor.cc (check_actions): emit new signal for indicating the existence of tabs; (request_step_into_file): new slote for running a file for stepping through it; (add_file_editor_tab): update connection of signal fetab_run_file with slot run_file with new parameter; * file-editor.h: updated fetab_run_file signal with new parameter, new signal editor_tabs_changed for changed number of tabs, new slot request_step_into_file * main-window.cc (debug_step_over): check for debug state; if in debug mode just call dbstep or start stepping through the file otherwise; (construct): connect new signal for stepping through the current editor file with the related slot of the editor, connect new editor signal indicating the exsitence of tabs with the related slot in the main window; (editor_tabs_changed): new slot for editor signal on changed tabs; (handle_exit_debugger): only set debug step action to disabled if editor does not have tabs * main-window.h: new signal for stepping through the current editor file, new slot for changed existence of edtior tabs, new class variable holding whether editor has tabs or not
author Torsten Lilge <ttl-octave@mailbox.org>
date Sun, 10 Mar 2019 16:40:35 +0100
parents 00f796120a6d
children ce972086bfd6
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h	Sun Mar 10 14:07:25 2019 +0100
+++ b/libgui/src/m-editor/file-editor.h	Sun Mar 10 16:40:35 2019 +0100
@@ -136,7 +136,7 @@
     void fetab_save_file (const QWidget *ID);
     void fetab_save_file_as (const QWidget *ID);
     void fetab_print_file (const QWidget *ID);
-    void fetab_run_file (const QWidget *ID);
+    void fetab_run_file (const QWidget *ID, bool step_into = false);
     void fetab_context_run (const QWidget *ID);
     void fetab_toggle_bookmark (const QWidget *ID);
     void fetab_next_bookmark (const QWidget *ID);
@@ -176,6 +176,8 @@
     void request_open_file_external (const QString& file_name, int line);
     void file_loaded_signal (void);
 
+    void editor_tabs_changed_signal (bool);
+
   public slots:
 
     void focus (void);
@@ -198,6 +200,7 @@
     void request_save_file (bool);
     void request_save_file_as (bool);
     void request_run_file (bool);
+    void request_step_into_file ();
     void request_context_run (bool);
     void request_toggle_bookmark (bool);
     void request_next_bookmark (bool);