diff options
author | Serge Bazanski <q3k@q3k.org> | 2018-07-27 15:54:34 +0000 |
---|---|---|
committer | Serge Bazanski <q3k@q3k.org> | 2018-07-27 15:54:34 +0000 |
commit | efda05a5c0d6d14c015382cb3fd2890673200751 (patch) | |
tree | dcee8c5ccecb90ea166e1070e3f4e9e3bbbab305 /gui/basewindow.cc | |
parent | e5acd80247264fed41dfc1e7e07efa8a10a67fae (diff) | |
parent | c210ce77688677a933e9b2906452766f0c344f33 (diff) | |
download | nextpnr-efda05a5c0d6d14c015382cb3fd2890673200751.tar.gz nextpnr-efda05a5c0d6d14c015382cb3fd2890673200751.tar.bz2 nextpnr-efda05a5c0d6d14c015382cb3fd2890673200751.zip |
Merge branch 'q3k/clickity' into 'master'
gui: Hover & selection support for GL renderer
See merge request SymbioticEDA/nextpnr!22
Diffstat (limited to 'gui/basewindow.cc')
-rw-r--r-- | gui/basewindow.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/basewindow.cc b/gui/basewindow.cc index e07200de..6e997011 100644 --- a/gui/basewindow.cc +++ b/gui/basewindow.cc @@ -2,6 +2,7 @@ * nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Miodrag Milanovic <miodrag@symbioticeda.com>
+ * Copyright (C) 2018 Serge Bazanski <q3k@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -80,8 +81,11 @@ BaseMainWindow::BaseMainWindow(std::unique_ptr<Context> context, QWidget *parent centralTabWidget->tabBar()->tabButton(0, QTabBar::RightSide)->resize(0, 0);
connect(this, SIGNAL(contextChanged(Context *)), fpgaView, SLOT(newContext(Context *)));
- connect(designview, SIGNAL(selected(std::vector<DecalXY>)), fpgaView,
- SLOT(onSelectedArchItem(std::vector<DecalXY>)));
+ connect(designview, SIGNAL(selected(std::vector<DecalXY>, bool)), fpgaView,
+ SLOT(onSelectedArchItem(std::vector<DecalXY>, bool)));
+ connect(fpgaView, SIGNAL(clickedBel(BelId, bool)), designview, SLOT(onClickedBel(BelId, bool)));
+ connect(fpgaView, SIGNAL(clickedWire(WireId, bool)), designview, SLOT(onClickedWire(WireId, bool)));
+ connect(fpgaView, SIGNAL(clickedPip(PipId, bool)), designview, SLOT(onClickedPip(PipId, bool)));
connect(designview, SIGNAL(highlight(std::vector<DecalXY>, int)), fpgaView,
SLOT(onHighlightGroupChanged(std::vector<DecalXY>, int)));
|