Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/juliasession.cpp
Show All 27 Lines | |||||
28 | #include "defaultvariablemodel.h" | 28 | #include "defaultvariablemodel.h" | ||
29 | 29 | | |||
30 | #include "juliaexpression.h" | 30 | #include "juliaexpression.h" | ||
31 | #include "settings.h" | 31 | #include "settings.h" | ||
32 | #include "juliahighlighter.h" | 32 | #include "juliahighlighter.h" | ||
33 | #include "juliakeywords.h" | 33 | #include "juliakeywords.h" | ||
34 | #include "juliaextensions.h" | 34 | #include "juliaextensions.h" | ||
35 | #include "juliabackend.h" | 35 | #include "juliabackend.h" | ||
36 | #include "juliacompletionobject.h" | ||||
36 | 37 | | |||
37 | JuliaSession::JuliaSession(Cantor::Backend *backend) | 38 | JuliaSession::JuliaSession(Cantor::Backend *backend) | ||
38 | : Session(backend) | 39 | : Session(backend) | ||
39 | , m_process(nullptr) | 40 | , m_process(nullptr) | ||
40 | , m_interface(nullptr) | 41 | , m_interface(nullptr) | ||
41 | , m_currentExpression(nullptr) | 42 | , m_currentExpression(nullptr) | ||
42 | , m_variableModel(new Cantor::DefaultVariableModel(this)) | 43 | , m_variableModel(new Cantor::DefaultVariableModel(this)) | ||
43 | { | 44 | { | ||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 131 | { | |||
138 | 139 | | |||
139 | return expr; | 140 | return expr; | ||
140 | } | 141 | } | ||
141 | 142 | | |||
142 | Cantor::CompletionObject *JuliaSession::completionFor( | 143 | Cantor::CompletionObject *JuliaSession::completionFor( | ||
143 | const QString &command, | 144 | const QString &command, | ||
144 | int index) | 145 | int index) | ||
145 | { | 146 | { | ||
146 | Q_UNUSED(command); | 147 | return new JuliaCompletionObject(command, index, this); | ||
147 | Q_UNUSED(index); | | |||
148 | return nullptr; | | |||
149 | } | 148 | } | ||
150 | 149 | | |||
151 | QSyntaxHighlighter *JuliaSession::syntaxHighlighter(QObject *parent) | 150 | QSyntaxHighlighter *JuliaSession::syntaxHighlighter(QObject *parent) | ||
152 | { | 151 | { | ||
153 | JuliaHighlighter *highlighter = new JuliaHighlighter(parent); | 152 | JuliaHighlighter *highlighter = new JuliaHighlighter(parent); | ||
154 | QObject::connect( | 153 | QObject::connect( | ||
155 | this, SIGNAL(updateHighlighter()), highlighter, SLOT(updateHighlight()) | 154 | this, SIGNAL(updateHighlighter()), highlighter, SLOT(updateHighlight()) | ||
156 | ); | 155 | ); | ||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |