aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pythontab.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-20 09:42:47 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-20 09:43:18 +0200
commit7975afc30f737e8468b32285b82db26bf0023d32 (patch)
tree395351dc4f19329cd8ff65d1837b4ddf23284431 /gui/pythontab.h
parent1d3450793767ced2003b6d3fb4b7ea2f49f0d1ca (diff)
downloadnextpnr-7975afc30f737e8468b32285b82db26bf0023d32.tar.gz
nextpnr-7975afc30f737e8468b32285b82db26bf0023d32.tar.bz2
nextpnr-7975afc30f737e8468b32285b82db26bf0023d32.zip
Added custom line editor with history
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;
};