Changeset View
Changeset View
Standalone View
Standalone View
src/backends/octave/octavehighlighter.h
Show All 31 Lines | |||||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | OctaveHighlighter(QObject* parent, Cantor::Session* session); | 36 | OctaveHighlighter(QObject* parent, Cantor::Session* session); | ||
37 | ~OctaveHighlighter() override = default; | 37 | ~OctaveHighlighter() override = default; | ||
38 | 38 | | |||
39 | public Q_SLOTS: | 39 | public Q_SLOTS: | ||
40 | void updateVariables(); | 40 | void addUserVariable(const QStringList& variables); | ||
41 | void sessionStatusChanged(Cantor::Session::Status status); | 41 | void removeUserVariable(const QStringList& variables); | ||
42 | | ||||
43 | private: | | |||
44 | Cantor::Session* m_session; | | |||
45 | QStringList m_variables; | | |||
46 | }; | 42 | }; | ||
47 | 43 | | |||
48 | #endif // OCTAVEHIGHLIGHTER_H | 44 | #endif // OCTAVEHIGHLIGHTER_H |