nextpnr/gui/basewindow.h
Miodrag Milanovic 23fe31da44 cleanup
2018-06-21 13:55:36 +02:00

45 lines
820 B
C++

#ifndef BASEMAINWINDOW_H
#define BASEMAINWINDOW_H
#include "infotab.h"
#include "nextpnr.h"
#include <QMainWindow>
#include <QMenu>
#include <QMenuBar>
#include <QStatusBar>
#include <QTabWidget>
#include <QToolBar>
// 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;
InfoTab *info;
QMenuBar *menuBar;
QToolBar *mainToolBar;
QStatusBar *statusBar;
};
#endif // BASEMAINWINDOW_H