diff options
Diffstat (limited to 'gui/pythontab.h')
-rw-r--r-- | gui/pythontab.h | 30 |
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
|