39 #ifndef PYTHONSHELLWIDGET_H_
40 #define PYTHONSHELLWIDGET_H_
42 #include <QtCore/QVector>
44 #include <tulip/PythonCodeEditor.h>
50 class TLP_PYTHON_SCOPE PythonShellWidget :
public PythonCodeEditor {
55 QString _currentCodeLines;
57 QVector<QString> _history;
58 int _currentHistoryPos;
62 explicit PythonShellWidget(QWidget *parent = 0);
66 void keyPressEvent(QKeyEvent * e);
68 bool isCursorOnLastLine();
70 void executeCurrentLines();
72 void showEvent(QShowEvent * event);
76 void insert(
const QString &txt,
const bool atEnd =
false);
80 void updateAutoCompletionList(
bool dotContext=
false);