aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pythontab.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/pythontab.h')
-rw-r--r--gui/pythontab.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/pythontab.h b/gui/pythontab.h
index 4290d277..3876b3df 100644
--- a/gui/pythontab.h
+++ b/gui/pythontab.h
@@ -4,6 +4,7 @@
#include <QLineEdit>
#include <QPlainTextEdit>
#include "emb.h"
+#include "line_editor.h"
#include "nextpnr.h"
// FIXME
@@ -17,13 +18,14 @@ class PythonTab : public QWidget
explicit PythonTab(QWidget *parent = 0);
private:
- int executePython(std::string command);
+ void print(std::string line);
+ int executePython(std::string &command);
private Q_SLOTS:
- void editLineReturnPressed();
+ void editLineReturnPressed(QString text);
private:
QPlainTextEdit *plainTextEdit;
- QLineEdit *lineEdit;
+ LineEditor *lineEdit;
emb::stdout_write_type write;
};