Changeset View
Changeset View
Standalone View
Standalone View
src/backends/python3/python3backend.cpp
Show All 40 Lines | 40 | { | |||
---|---|---|---|---|---|
41 | return QLatin1String("python3"); | 41 | return QLatin1String("python3"); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | QString Python3Backend::version() const | 44 | QString Python3Backend::version() const | ||
45 | { | 45 | { | ||
46 | return QLatin1String("3.6"); | 46 | return QLatin1String("3.6"); | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | Cantor::Backend::Capabilities Python3Backend::capabilities() const | ||||
50 | { | ||||
51 | qDebug()<<"Requesting capabilities of Python3Session"; | ||||
52 | | ||||
53 | Backend::Capabilities cap = | ||||
54 | Cantor::Backend::SyntaxHighlighting | | ||||
55 | Cantor::Backend::Completion | | ||||
56 | Cantor::Backend::SyntaxHelp; | ||||
57 | | ||||
58 | if(PythonSettings::variableManagement()) | ||||
59 | cap |= Cantor::Backend::VariableManagement; | ||||
60 | | ||||
61 | return cap; | ||||
62 | } | ||||
63 | | ||||
49 | QUrl Python3Backend::helpUrl() const | 64 | QUrl Python3Backend::helpUrl() const | ||
50 | { | 65 | { | ||
51 | const QUrl& localDoc = PythonSettings::self()->localDoc(); | 66 | const QUrl& localDoc = PythonSettings::self()->localDoc(); | ||
52 | if (!localDoc.isEmpty()) | 67 | if (!localDoc.isEmpty()) | ||
53 | return localDoc; | 68 | return localDoc; | ||
54 | else | 69 | else | ||
55 | return QUrl(i18nc("the url to the documentation Python 3", "http://docs.python.org/3/")); | 70 | return QUrl(i18nc("the url to the documentation Python 3", "http://docs.python.org/3/")); | ||
56 | } | 71 | } | ||
Show All 15 Lines |