aboutsummaryrefslogtreecommitdiffstats
path: root/gui/dummy/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dummy/mainwindow.cc')
-rw-r--r--gui/dummy/mainwindow.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/gui/dummy/mainwindow.cc b/gui/dummy/mainwindow.cc
new file mode 100644
index 00000000..da162dd0
--- /dev/null
+++ b/gui/dummy/mainwindow.cc
@@ -0,0 +1,30 @@
+#include "mainwindow.h"
+
+static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
+
+NEXTPNR_NAMESPACE_BEGIN
+
+MainWindow::MainWindow(Context *_ctx, QWidget *parent)
+ : BaseMainWindow(_ctx, parent)
+{
+ initMainResource();
+
+ std::string title = "nextpnr-dummy - " + ctx->getChipName();
+ setWindowTitle(title.c_str());
+
+ createMenu();
+}
+
+MainWindow::~MainWindow() {}
+
+void MainWindow::createMenu()
+{
+ QMenu *menu_Custom = new QMenu("&Dummy", menuBar);
+ menuBar->addAction(menu_Custom->menuAction());
+}
+
+void MainWindow::open() {}
+
+bool MainWindow::save() { return false; }
+
+NEXTPNR_NAMESPACE_END