diff libgui/src/octave-qobject.cc @ 28795:901a92f45ff0

provide access to worksapce model via base_object * main-window.cc (main_window): get m_workspace_model from octave qobject and do not create it here * octave-qobject.cc (base_qobject): create workspace model here * octave-qobject.h: include workspace-model.h; (get_workspace_model): new method just returning the workspace model; new class variable for the workspace model * workspace-model.h (get_symbol_names): new method just returning the list of current worksapce symbol names
author Torsten Lilge <ttl-octave@mailbox.org>
date Sat, 26 Sep 2020 11:50:17 +0200
parents d73e4749d8dd
children 6aba3944b608
line wrap: on
line diff
--- a/libgui/src/octave-qobject.cc	Fri Sep 25 12:01:43 2020 -0400
+++ b/libgui/src/octave-qobject.cc	Sat Sep 26 11:50:17 2020 +0200
@@ -160,6 +160,7 @@
       m_argv (m_app_context.sys_argv ()),
       m_qapplication (new octave_qapplication (m_argc, m_argv)),
       m_resource_manager (), m_shortcut_manager (*this),
+      m_workspace_model (new workspace_model (*this)),
       m_qt_tr (new QTranslator ()), m_gui_tr (new QTranslator ()),
       m_qsci_tr (new QTranslator ()), m_translators_installed (false),
       m_qt_interpreter_events (new qt_interpreter_events (*this)),