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:
|
2018-06-18 20:06:37 +08:00
|
|
|
explicit MainWindow(Context *ctx, QWidget *parent = 0);
|
2018-06-15 00:37:57 +08:00
|
|
|
~MainWindow();
|
2018-06-18 20:06:37 +08:00
|
|
|
Context *getContext() { return ctx; }
|
2018-06-15 00:37:57 +08:00
|
|
|
|
2018-06-15 18:22:44 +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);
|
2018-06-19 21:17:10 +08:00
|
|
|
void open();
|
|
|
|
bool save();
|
2018-06-15 17:10:11 +08:00
|
|
|
|
2018-06-15 00:37:57 +08:00
|
|
|
private:
|
2018-06-18 20:06:37 +08:00
|
|
|
Context *ctx;
|
2018-06-19 21:17:10 +08:00
|
|
|
QTabWidget *tabWidget;
|
2018-06-15 00:37:57 +08:00
|
|
|
InfoTab *info;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|