nextpnr/gui/pythontab.h

31 lines
536 B
C
Raw Normal View History

2018-06-15 00:53:32 +08:00
#ifndef PYTHONTAB_H
#define PYTHONTAB_H
#include <QLineEdit>
#include <QPlainTextEdit>
2018-06-15 00:53:48 +08:00
#include "emb.h"
#include "nextpnr.h"
2018-06-15 00:53:32 +08:00
// 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