diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-13 19:56:11 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-13 19:56:11 +0200 |
commit | 07ff5ad8b8e4d0f87770b81b8478aa257567c504 (patch) | |
tree | 805d62b8e63e92919da29b86e3ed0290d0182dd4 /gui/pythontab.h | |
parent | 013cfebcc5ccdf0fda9cedddd94e5b70ec20a029 (diff) | |
download | nextpnr-07ff5ad8b8e4d0f87770b81b8478aa257567c504.tar.gz nextpnr-07ff5ad8b8e4d0f87770b81b8478aa257567c504.tar.bz2 nextpnr-07ff5ad8b8e4d0f87770b81b8478aa257567c504.zip |
Made python console use edit line and better
Diffstat (limited to 'gui/pythontab.h')
-rw-r--r-- | gui/pythontab.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/pythontab.h b/gui/pythontab.h index 4b22e6a9..3fd12981 100644 --- a/gui/pythontab.h +++ b/gui/pythontab.h @@ -25,6 +25,7 @@ #include <QLineEdit>
#include <QMenu>
#include <QPlainTextEdit>
+#include "ParseHelper.h"
#include "line_editor.h"
#include "nextpnr.h"
#include "pyconsole.h"
@@ -42,13 +43,20 @@ class PythonTab : public QWidget private Q_SLOTS:
void showContextMenu(const QPoint &pt);
void clearBuffer();
+ void editLineReturnPressed(QString text);
public Q_SLOTS:
void newContext(Context *ctx);
private:
PythonConsole *console;
+ LineEditor *lineEdit;
QMenu *contextMenu;
bool initialized;
+ ParseHelper parseHelper;
+ QString prompt;
+
+ static const QString PROMPT;
+ static const QString MULTILINE_PROMPT;
};
NEXTPNR_NAMESPACE_END
|