Changeset View
Changeset View
Standalone View
Standalone View
src/backends/R/rbackend.cpp
Show All 31 Lines | |||||
32 | 32 | | |||
33 | RBackend::RBackend( QObject* parent,const QList<QVariant> args ) : Cantor::Backend( parent,args ) | 33 | RBackend::RBackend( QObject* parent,const QList<QVariant> args ) : Cantor::Backend( parent,args ) | ||
34 | { | 34 | { | ||
35 | setObjectName(QLatin1String("rbackend")); | 35 | setObjectName(QLatin1String("rbackend")); | ||
36 | qDebug()<<"Creating RBackend"; | 36 | qDebug()<<"Creating RBackend"; | ||
37 | 37 | | |||
38 | new RScriptExtension(this); | 38 | new RScriptExtension(this); | ||
39 | new RPlotExtension(this); | 39 | new RPlotExtension(this); | ||
40 | new RVariableManagementExtension(this); | ||||
40 | } | 41 | } | ||
41 | 42 | | |||
42 | RBackend::~RBackend() | 43 | RBackend::~RBackend() | ||
43 | { | 44 | { | ||
44 | qDebug()<<"Destroying RBackend"; | 45 | qDebug()<<"Destroying RBackend"; | ||
45 | } | 46 | } | ||
46 | 47 | | |||
47 | QString RBackend::id() const | 48 | QString RBackend::id() const | ||
Show All 13 Lines | 59 | { | |||
61 | return new RSession(this); | 62 | return new RSession(this); | ||
62 | } | 63 | } | ||
63 | 64 | | |||
64 | Cantor::Backend::Capabilities RBackend::capabilities() const | 65 | Cantor::Backend::Capabilities RBackend::capabilities() const | ||
65 | { | 66 | { | ||
66 | qDebug()<<"Requesting capabilities of RSession"; | 67 | qDebug()<<"Requesting capabilities of RSession"; | ||
67 | return Cantor::Backend::InteractiveMode | | 68 | return Cantor::Backend::InteractiveMode | | ||
68 | Cantor::Backend::SyntaxHighlighting | | 69 | Cantor::Backend::SyntaxHighlighting | | ||
69 | Cantor::Backend::Completion; | 70 | Cantor::Backend::Completion | | ||
71 | Cantor::Backend::VariableManagement; | ||||
70 | } | 72 | } | ||
71 | 73 | | |||
72 | bool RBackend::requirementsFullfilled() const | 74 | bool RBackend::requirementsFullfilled() const | ||
73 | { | 75 | { | ||
74 | QFileInfo info(QStandardPaths::findExecutable( QLatin1String("cantor_rserver") ) ); | 76 | QFileInfo info(QStandardPaths::findExecutable( QLatin1String("cantor_rserver") ) ); | ||
75 | return info.isExecutable(); | 77 | return info.isExecutable(); | ||
76 | } | 78 | } | ||
77 | 79 | | |||
Show All 28 Lines |