nextpnr/gui/basewindow.h

46 lines
855 B
C
Raw Normal View History

2018-06-21 19:41:16 +08:00
#ifndef BASEMAINWINDOW_H
#define BASEMAINWINDOW_H
#include "infotab.h"
#include "nextpnr.h"
#include <QMainWindow>
#include <QMenu>
#include <QMenuBar>
#include <QStatusBar>
2018-06-21 19:55:36 +08:00
#include <QTabWidget>
#include <QToolBar>
2018-06-21 19:41:16 +08:00
// FIXME
USING_NEXTPNR_NAMESPACE
class BaseMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit BaseMainWindow(Context *ctx, QWidget *parent = 0);
~BaseMainWindow();
Context *getContext() { return ctx; }
protected:
void createMenusAndBars();
protected Q_SLOTS:
void writeInfo(std::string text);
void open();
bool save();
protected:
Context *ctx;
QTabWidget *tabWidget;
2018-06-21 20:12:02 +08:00
QTabWidget *centralTabWidget;
2018-06-21 19:41:16 +08:00
InfoTab *info;
2018-06-21 19:55:36 +08:00
2018-06-21 19:41:16 +08:00
QMenuBar *menuBar;
QToolBar *mainToolBar;
QStatusBar *statusBar;
};
#endif // BASEMAINWINDOW_H