diff libgui/src/m-editor/file-editor-tab.h @ 16389:f5204f486a29

gui: add shortcut for goto line action in the editor and center the target line * file-editor.cc(construct): add shortcut Ctrl-G for goto line action * file-editor-tab.cc(center_current_line): new function, centering current line * file-editor-tab.cc(set_debugger_position): use center_current_line * file-editor-tab.cc(goto_line): call center_current_line only if goto_line was called from goto line action * file-editor-tab.h: new function center_current_line
author Torsten <ttl@justmail.de>
date Thu, 28 Mar 2013 17:01:43 +0100
parents 4902484f9181
children fc491da603f6
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h
+++ b/libgui/src/m-editor/file-editor-tab.h
@@ -142,6 +142,7 @@
   void add_breakpoint_callback (const bp_info& info);
   void remove_breakpoint_callback (const bp_info& info);
   void remove_all_breakpoints_callback (const bp_info& info);
+  void center_current_line ();
 
   QsciScintilla *       _edit_area;