Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/juliakeywords.h
Show All 21 Lines | |||||
22 | #include <QStringList> | 22 | #include <QStringList> | ||
23 | 23 | | |||
24 | class JuliaKeywords | 24 | class JuliaKeywords | ||
25 | { | 25 | { | ||
26 | public: | 26 | public: | ||
27 | static JuliaKeywords *instance(); | 27 | static JuliaKeywords *instance(); | ||
28 | 28 | | |||
29 | const QStringList &keywords() const { return m_keywords; } | 29 | const QStringList &keywords() const { return m_keywords; } | ||
30 | | ||||
30 | const QStringList &variables() const { return m_variables; } | 31 | const QStringList &variables() const { return m_variables; } | ||
32 | const QStringList &removedVariables() const { return m_removedVariables; } | ||||
33 | void clearVariables(); | ||||
34 | void addVariable(const QString &variable); | ||||
35 | | ||||
36 | const QStringList &functions() const { return m_functions; } | ||||
37 | const QStringList &removedFunctions() const { return m_removedFunctions; } | ||||
38 | void clearFunctions(); | ||||
39 | void addFunction(const QString &function); | ||||
31 | 40 | | |||
32 | private: | 41 | private: | ||
33 | QStringList m_keywords; | 42 | QStringList m_keywords; | ||
34 | QStringList m_variables; | 43 | QStringList m_variables; | ||
44 | QStringList m_removedVariables; | ||||
45 | QStringList m_functions; | ||||
46 | QStringList m_removedFunctions; | ||||
35 | 47 | | |||
36 | JuliaKeywords() {} | 48 | JuliaKeywords() {} | ||
37 | ~JuliaKeywords() {} | 49 | ~JuliaKeywords() {} | ||
38 | 50 | | |||
39 | void loadFromFile(); | 51 | void loadFromFile(); | ||
40 | }; | 52 | }; |