nextpnr/gui/mainwindow.h

37 lines
625 B
C
Raw Normal View History

2018-06-15 00:37:57 +08:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
2018-06-15 00:53:48 +08:00
#include "infotab.h"
2018-06-15 00:37:57 +08:00
#include "nextpnr.h"
#include <QMainWindow>
#include <QTabWidget>
// FIXME
USING_NEXTPNR_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(Context *ctx, QWidget *parent = 0);
2018-06-15 00:37:57 +08:00
~MainWindow();
Context *getContext() { return ctx; }
2018-06-15 00:37:57 +08:00
private:
void createMenusAndBars();
2018-06-15 00:37:57 +08:00
private Q_SLOTS:
2018-06-15 17:10:11 +08:00
void writeInfo(std::string text);
void open();
bool save();
2018-06-15 17:10:11 +08:00
2018-06-15 00:37:57 +08:00
private:
Context *ctx;
QTabWidget *tabWidget;
2018-06-15 00:37:57 +08:00
InfoTab *info;
};
#endif // MAINWINDOW_H