Mercurial > hg > octave-lyh
comparison gui/src/backend/OctaveLink.h @ 14700:7623bece76df gui
Implemented logic for current directory bar.
* MainWindow: Changed current working directory line edit to combo box. Added various signals and slots.
* OctaveLink: Added signal that will be emitted whenever a current directory change occurs.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 29 May 2012 19:08:05 +0200 |
parents | 79c9a6d06590 |
children |
comparison
equal
deleted
inserted
replaced
14699:0bab96aeb995 | 14700:7623bece76df |
---|---|
95 void terminateOctave (); | 95 void terminateOctave (); |
96 QStringListModel *historyModel (); | 96 QStringListModel *historyModel (); |
97 WorkspaceModel *workspaceModel (); | 97 WorkspaceModel *workspaceModel (); |
98 | 98 |
99 void triggerUpdateHistoryModel (); | 99 void triggerUpdateHistoryModel (); |
100 void updateCurrentWorkingDirectory (); | |
100 | 101 |
101 void acquireSymbolInformation (); | 102 void acquireSymbolInformation (); |
102 void releaseSymbolInformation (); | 103 void releaseSymbolInformation (); |
103 void buildSymbolInformation (); | 104 void buildSymbolInformation (); |
104 const QList <SymbolInformation>& symbolInformation () const; | 105 const QList <SymbolInformation>& symbolInformation () const; |
106 | |
107 signals: | |
108 void workingDirectoryChanged (QString directory); | |
105 | 109 |
106 private: | 110 private: |
107 OctaveLink (); | 111 OctaveLink (); |
108 ~OctaveLink (); | 112 ~OctaveLink (); |
109 | 113 |
115 QTimer _updateWorkspaceModelTimer; | 119 QTimer _updateWorkspaceModelTimer; |
116 | 120 |
117 QSemaphore *_symbolInformationSemaphore; | 121 QSemaphore *_symbolInformationSemaphore; |
118 QList <SymbolInformation> _symbolInformation; | 122 QList <SymbolInformation> _symbolInformation; |
119 | 123 |
124 QString _currentWorkingDirectory; | |
120 static OctaveLink m_singleton; | 125 static OctaveLink m_singleton; |
121 }; | 126 }; |
122 #endif // OCTAVELINK_H | 127 #endif // OCTAVELINK_H |