diff libgui/src/m-editor/file-editor.cc @ 19640:3156773fcc80 gui-release

open a doc page from editor directly without command window * file-editor.cc (add_file_editor_tab): connect new signal from edit area requesting showing the documentation * octave-qscintilla.cc (contextmenu_help_doc): emit new signal for documentation * octave-qscintilla.h: new signal for documentation
author Torsten <ttl@justmail.de>
date Thu, 22 Jan 2015 19:02:24 +0100
parents d258070914ef
children 4b980842edba
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc	Thu Jan 22 06:52:37 2015 +0100
+++ b/libgui/src/m-editor/file-editor.cc	Thu Jan 22 19:02:24 2015 +0100
@@ -1586,6 +1586,9 @@
   connect (f->qsci_edit_area (), SIGNAL (status_update (bool, bool)),
            this, SLOT (edit_status_update (bool, bool)));
 
+  connect (f->qsci_edit_area (), SIGNAL (show_doc_signal (const QString&)),
+           main_win (), SLOT (handle_show_doc (const QString&)));
+
   // Signals from the file editor_tab
   connect (f, SIGNAL (file_name_changed (const QString&, const QString&)),
            this, SLOT (handle_file_name_changed (const QString&,