From 7975afc30f737e8468b32285b82db26bf0023d32 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 20 Jun 2018 09:42:47 +0200 Subject: Added custom line editor with history --- gui/pythontab.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gui/pythontab.h') 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 #include #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; }; -- cgit v1.2.3