aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pythontab.h
blob: 4290d277e29a2547c61fd0bd4ac82e8db9db62b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef PYTHONTAB_H
#define PYTHONTAB_H

#include <QLineEdit>
#include <QPlainTextEdit>
#include "emb.h"
#include "nextpnr.h"

// 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