Mercurial > hg > octave-nkf
diff gui/src/backend/OctaveLink.h @ 14698:79c9a6d06590 gui
Wrote SymbolInformation struct and refactored code that updates the symbol table.
* OctaveGUI: Commented out activateWindow call.
* WorkspaceModel: Complete rewrite of symbol table update code.
* OctaveLink: Added code for updating the symbol table.
* MainWindow: Added dummy central widget to meet Qt specifications.
* src.pro: Added includepath to be able to compile with standalone Qt SDK.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 29 May 2012 14:29:05 +0200 |
parents | f346343654a4 |
children | 7623bece76df |
line wrap: on
line diff
--- a/gui/src/backend/OctaveLink.h +++ b/gui/src/backend/OctaveLink.h @@ -75,6 +75,7 @@ #include "WorkspaceModel.h" #include "OctaveMainThread.h" +#include "SymbolInformation.h" /** * \class OctaveLink @@ -96,7 +97,11 @@ WorkspaceModel *workspaceModel (); void triggerUpdateHistoryModel (); - void triggerCacheSymbolTable (); + + void acquireSymbolInformation (); + void releaseSymbolInformation (); + void buildSymbolInformation (); + const QList <SymbolInformation>& symbolInformation () const; private: OctaveLink (); @@ -109,6 +114,9 @@ OctaveMainThread *m_octaveMainThread; QTimer _updateWorkspaceModelTimer; + QSemaphore *_symbolInformationSemaphore; + QList <SymbolInformation> _symbolInformation; + static OctaveLink m_singleton; }; #endif // OCTAVELINK_H