Changeset View
Changeset View
Standalone View
Standalone View
src/backends/python2/python2backend.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 47 | { | |||
---|---|---|---|---|---|
48 | return QLatin1String("python2"); | 48 | return QLatin1String("python2"); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | QString Python2Backend::version() const | 51 | QString Python2Backend::version() const | ||
52 | { | 52 | { | ||
53 | return QLatin1String("2.7"); | 53 | return QLatin1String("2.7"); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | Cantor::Backend::Capabilities Python2Backend::capabilities() const | ||||
57 | { | ||||
58 | qDebug()<<"Requesting capabilities of Python3Session"; | ||||
59 | | ||||
60 | Backend::Capabilities cap = | ||||
61 | Cantor::Backend::SyntaxHighlighting | | ||||
62 | Cantor::Backend::Completion | | ||||
63 | Cantor::Backend::SyntaxHelp; | ||||
64 | | ||||
65 | if(PythonSettings::variableManagement()) | ||||
66 | cap |= Cantor::Backend::VariableManagement; | ||||
67 | | ||||
68 | return cap; | ||||
69 | } | ||||
70 | | ||||
56 | QUrl Python2Backend::helpUrl() const | 71 | QUrl Python2Backend::helpUrl() const | ||
57 | { | 72 | { | ||
58 | const QUrl& localDoc = PythonSettings::self()->localDoc(); | 73 | const QUrl& localDoc = PythonSettings::self()->localDoc(); | ||
59 | if (!localDoc.isEmpty()) | 74 | if (!localDoc.isEmpty()) | ||
60 | return localDoc; | 75 | return localDoc; | ||
61 | else | 76 | else | ||
62 | return QUrl(i18nc("the url to the documentation Python 2", "http://docs.python.org/2/")); | 77 | return QUrl(i18nc("the url to the documentation Python 2", "http://docs.python.org/2/")); | ||
63 | } | 78 | } | ||
Show All 15 Lines |