aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pythontab.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-14 18:53:32 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-14 20:04:22 +0200
commit4e82ed46d209d05508c7af24cfe135c78ee353db (patch)
tree8af990b5b75b5cb1f443a3ef1fc4be67f28e9556 /gui/pythontab.h
parent9c0640240fdb2df2b1a39602e0750fdfd4fb541e (diff)
downloadnextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.tar.gz
nextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.tar.bz2
nextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.zip
Split to classes
Diffstat (limited to 'gui/pythontab.h')
-rw-r--r--gui/pythontab.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/gui/pythontab.h b/gui/pythontab.h
new file mode 100644
index 00000000..f6cffcf3
--- /dev/null
+++ b/gui/pythontab.h
@@ -0,0 +1,30 @@
+#ifndef PYTHONTAB_H
+#define PYTHONTAB_H
+
+#include "nextpnr.h"
+#include "emb.h"
+#include <QLineEdit>
+#include <QPlainTextEdit>
+
+// FIXME
+USING_NEXTPNR_NAMESPACE
+
+class PythonTab : public QWidget
+{
+ Q_OBJECT
+
+ public:
+ explicit PythonTab(QWidget *parent = 0);
+
+ private:
+ int executePython(std::string command);
+ private Q_SLOTS:
+ void editLineReturnPressed();
+
+ private:
+ QPlainTextEdit *plainTextEdit;
+ QLineEdit *lineEdit;
+ emb::stdout_write_type write;
+};
+
+#endif // PYTHONTAB_H