aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.h
diff options
context:
space:
mode:
authorSerge Bazanski <q3k@q3k.org>2018-07-27 15:54:34 +0000
committerSerge Bazanski <q3k@q3k.org>2018-07-27 15:54:34 +0000
commitefda05a5c0d6d14c015382cb3fd2890673200751 (patch)
treedcee8c5ccecb90ea166e1070e3f4e9e3bbbab305 /gui/designwidget.h
parente5acd80247264fed41dfc1e7e07efa8a10a67fae (diff)
parentc210ce77688677a933e9b2906452766f0c344f33 (diff)
downloadnextpnr-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/designwidget.h')
-rw-r--r--gui/designwidget.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/designwidget.h b/gui/designwidget.h
index 6d4b7fe1..60291cf3 100644
--- a/gui/designwidget.h
+++ b/gui/designwidget.h
@@ -37,7 +37,8 @@ enum class ElementType
WIRE,
PIP,
NET,
- CELL
+ CELL,
+ GROUP
};
class DesignWidget : public QWidget
@@ -63,7 +64,7 @@ class DesignWidget : public QWidget
void updateHighlightGroup(QList<QTreeWidgetItem *> item, int group);
Q_SIGNALS:
void info(std::string text);
- void selected(std::vector<DecalXY> decal);
+ void selected(std::vector<DecalXY> decal, bool keep);
void highlight(std::vector<DecalXY> decal, int group);
private Q_SLOTS:
@@ -74,6 +75,9 @@ class DesignWidget : public QWidget
public Q_SLOTS:
void newContext(Context *ctx);
void updateTree();
+ void onClickedBel(BelId bel, bool keep);
+ void onClickedWire(WireId wire, bool keep);
+ void onClickedPip(PipId pip, bool keep);
private:
Context *ctx;