aboutsummaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.h
blob: 6f3e515f6c1749d033997a9a65d1adb5aed52a93 (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
31
32
33
34
35
36
37
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "emb.h"
#include "nextpnr.h"

#include <QMainWindow>

// FIXME
USING_NEXTPNR_NAMESPACE

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

  public:
    explicit MainWindow(Design *design, QWidget *parent = 0);
    ~MainWindow();
    Design *getDesign() { return design; }

  private:
    int executePython(std::string command);

  private Q_SLOTS:
    void on_lineEdit_returnPressed();

  private:
    Ui::MainWindow *ui;
    emb::stdout_write_type write;
    Design *design;
};

#endif // MAINWINDOW_H