Mercurial > octave
diff libgui/src/m-editor/octave-qscintilla.cc @ 19606: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 | be7ac98fab43 |
children | 2f4406e9dad6 |
line wrap: on
line diff
--- a/libgui/src/m-editor/octave-qscintilla.cc Thu Jan 22 06:52:37 2015 +0100 +++ b/libgui/src/m-editor/octave-qscintilla.cc Thu Jan 22 19:02:24 2015 +0100 @@ -255,12 +255,10 @@ void octave_qscintilla::contextmenu_help_doc (bool documentation) { - QString command; if (documentation) - command = "doc "; + emit show_doc_signal (_word_at_cursor); else - command = "help "; - emit execute_command_in_terminal_signal (command + _word_at_cursor); + emit execute_command_in_terminal_signal ("help " + _word_at_cursor); } void