comparison libgui/src/m-editor/file-editor-tab.cc @ 17627:811019b9ef57

Add help and documentation on actual keyword to the editor menu * octave-qscintilla.cc(context_help_doc): new function for editor menu action; (get_global_textcursor_pos): new function for calculationg the cursor pos; (contextMenuEvent): uses get_global_textcursor_pos now, added context menu entry for documentation; (contextmenu_help,contextmenu_doc): slots for context menu; (contextmenu_help_doc): new common function used from context_help_doc and the context menu slots * octave-qscintilla.h: new functions context_help_doc, contextmenu_doc, contextmenu_help_doc, get_global_textcursor_pos * file-editor-tab.cc(context_help): new slot for editor menu action * file-editor-tab.h: new slot context_help * file-editor.cc(request_context_help,request_context_doc): new slots for help menu entries; (construct): new help menu with keyword help and documentation; (add_file_editor_tab): connect new signal fetab_context_help to the new slot context_help in file_editor_tab; (set_shortcuts): enable/disable new shortcuts when editor focus changes (check_actions): enable/disable new actions depending on existing tabs * file-editor.h: new signal fetab_context_help, new slots request_context_help and request_contest_doc, new help and doc actions
author Torsten <ttl@justmail.de>
date Fri, 11 Oct 2013 13:05:06 +0200
parents 6bd74153c3ae
children 99ffa521ecec
comparison
equal deleted inserted replaced
17626:82b1778798d3 17627:811019b9ef57
407 407
408 _edit_area->paste (); 408 _edit_area->paste ();
409 } 409 }
410 410
411 void 411 void
412 file_editor_tab::context_help (const QWidget *ID, bool doc)
413 {
414 if (ID != this)
415 return;
416
417 _edit_area->context_help_doc (doc);
418 }
419
420 void
412 file_editor_tab::save_file (const QWidget *ID) 421 file_editor_tab::save_file (const QWidget *ID)
413 { 422 {
414 if (ID != this) 423 if (ID != this)
415 return; 424 return;
416 425