Changeset View
Changeset View
Standalone View
Standalone View
src/backends/R/rbackend.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | Cantor::Backend::Capabilities RBackend::capabilities() const | 64 | Cantor::Backend::Capabilities RBackend::capabilities() const | ||
65 | { | 65 | { | ||
66 | qDebug()<<"Requesting capabilities of RSession"; | 66 | qDebug()<<"Requesting capabilities of RSession"; | ||
67 | return Cantor::Backend::InteractiveMode | | 67 | return Cantor::Backend::InteractiveMode | | ||
68 | Cantor::Backend::SyntaxHighlighting | | 68 | Cantor::Backend::SyntaxHighlighting | | ||
69 | Cantor::Backend::Completion; | 69 | Cantor::Backend::Completion; | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | bool RBackend::requirementsFullfilled() const | | |||
73 | { | | |||
74 | QFileInfo info(QStandardPaths::findExecutable( QLatin1String("cantor_rserver") ) ); | | |||
75 | return info.isExecutable(); | | |||
76 | } | | |||
77 | | ||||
78 | QWidget* RBackend::settingsWidget(QWidget* parent) const | 72 | QWidget* RBackend::settingsWidget(QWidget* parent) const | ||
79 | { | 73 | { | ||
80 | return new RSettingsWidget(parent); | 74 | return new RSettingsWidget(parent); | ||
81 | } | 75 | } | ||
82 | 76 | | |||
83 | KConfigSkeleton* RBackend::config() const | 77 | KConfigSkeleton* RBackend::config() const | ||
84 | { | 78 | { | ||
85 | return RServerSettings::self(); | 79 | return RBackendSettings::self(); | ||
86 | } | 80 | } | ||
87 | 81 | | |||
88 | QUrl RBackend::helpUrl() const | 82 | QUrl RBackend::helpUrl() const | ||
89 | { | 83 | { | ||
90 | return QUrl(i18nc("the url to the documentation of R, please check if there is a translated version and use the correct url", | 84 | return QUrl(i18nc("the url to the documentation of R, please check if there is a translated version and use the correct url", | ||
91 | "http://rwiki.sciviews.org/doku.php?id=rdoc:rdoc")); | 85 | "http://rwiki.sciviews.org/doku.php?id=rdoc:rdoc")); | ||
92 | } | 86 | } | ||
93 | 87 | | |||
Show All 12 Lines |