Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/juliakeywords.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 78 | } else { | |||
---|---|---|---|---|---|
79 | xml.skipCurrentElement(); | 79 | xml.skipCurrentElement(); | ||
80 | } | 80 | } | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | if (xml.hasError()) { | 83 | if (xml.hasError()) { | ||
84 | qWarning() << "Error parsing keywords.xml:" << xml.errorString(); | 84 | qWarning() << "Error parsing keywords.xml:" << xml.errorString(); | ||
85 | } | 85 | } | ||
86 | } | 86 | } | ||
87 | | ||||
88 | void JuliaKeywords::addVariable(const QString &variable) | ||||
89 | { | ||||
90 | if (not m_variables.contains(variable)) { | ||||
91 | m_variables << variable; | ||||
92 | } | ||||
93 | } | ||||
94 | | ||||
95 | void JuliaKeywords::clearVariables() | ||||
96 | { | ||||
97 | m_removedVariables = m_variables; | ||||
98 | m_variables.clear(); | ||||
99 | } | ||||
100 | | ||||
101 | void JuliaKeywords::addFunction(const QString &function) | ||||
102 | { | ||||
103 | if (not m_functions.contains(function)) { | ||||
104 | m_functions << function; | ||||
105 | } | ||||
106 | } | ||||
107 | | ||||
108 | void JuliaKeywords::clearFunctions() | ||||
109 | { | ||||
110 | m_removedFunctions == m_functions; | ||||
111 | m_functions.clear(); | ||||
112 | } |