diff libgui/src/m-editor/file-editor-tab.h @ 18833:6504a1932637 gui-release

auto completion offers builtins and file functions for octave (bug #41371) * file-editor-tab.cc (update_lexer): read settings whether builtin and file functions should also be considered in auto completion for octave files; when functions are also displayed, updating of the files with prepared auto completion informations depends on last modification date of package lists; (add_octave_apis): new function for adding strings to the lexer APIs from the internal octave functions * file-editor-tab.h (add_octave_apis): new function * main-window.cc (handle_octave_ready): call function for creating the empty tab in the editor here because all octave functions must be known for creating the auto completion information * settings-dialog.ui: new checkboxes for auto completion of octaves buitlin and file functions * settings-dialog.cc (constructor): read states for new checkboxes from the settings file; (write_changed_settings): write states of new checkboxes into the settings file
author Torsten <ttl@justmail.de>
date Mon, 16 Jun 2014 12:11:21 +0200
parents 095fdef3d67c
children 0e6f7b5f6556
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h	Thu Jun 12 19:48:50 2014 +0200
+++ b/libgui/src/m-editor/file-editor-tab.h	Mon Jun 16 12:11:21 2014 +0200
@@ -34,6 +34,7 @@
 
 #include "find-dialog.h"
 #include "octave-qscintilla.h"
+#include "builtin-defun-decls.h"
 
 class file_editor;
 
@@ -206,6 +207,8 @@
   void remove_all_breakpoints_callback (const bp_info& info);
   void center_current_line ();
 
+  void add_octave_apis (octave_value_list key_ovl);
+
   octave_qscintilla *_edit_area;
 
   QStatusBar *_status_bar;