Changeset View
Changeset View
Standalone View
Standalone View
src/backends/python/pythonbackend.cpp
Show All 36 Lines | 30 | { | |||
---|---|---|---|---|---|
37 | new PythonVariableManagementExtension(this); | 37 | new PythonVariableManagementExtension(this); | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | PythonBackend::~PythonBackend() | 40 | PythonBackend::~PythonBackend() | ||
41 | { | 41 | { | ||
42 | qDebug()<<"Destroying PythonBackend"; | 42 | qDebug()<<"Destroying PythonBackend"; | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | Cantor::Backend::Capabilities PythonBackend::capabilities() const | | |||
46 | { | | |||
47 | qDebug()<<"Requesting capabilities of PythonSession"; | | |||
48 | | ||||
49 | return Cantor::Backend::SyntaxHighlighting | | | |||
50 | Cantor::Backend::Completion | | | |||
51 | Cantor::Backend::SyntaxHelp | | | |||
52 | Cantor::Backend::VariableManagement; | | |||
53 | } | | |||
54 | | ||||
55 | QWidget* PythonBackend::settingsWidget(QWidget* parent) const | 45 | QWidget* PythonBackend::settingsWidget(QWidget* parent) const | ||
56 | { | 46 | { | ||
57 | QWidget* widget=new QWidget(parent); | 47 | QWidget* widget=new QWidget(parent); | ||
58 | Ui::PythonSettingsBase s; | 48 | Ui::PythonSettingsBase s; | ||
59 | s.setupUi(widget); | 49 | s.setupUi(widget); | ||
60 | return widget; | 50 | return widget; | ||
61 | } | 51 | } | ||
62 | 52 | |