aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-26 16:38:11 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-26 16:38:11 +0200
commit467e0926f920f23b7cb2241cf52dbcfe84646fed (patch)
treeb491fb8baae4e90ab532ec1be196832225813bbd /gui
parent6a59b8522cd13f4d4c4e0c0ac43a374da2d95615 (diff)
downloadnextpnr-467e0926f920f23b7cb2241cf52dbcfe84646fed.tar.gz
nextpnr-467e0926f920f23b7cb2241cf52dbcfe84646fed.tar.bz2
nextpnr-467e0926f920f23b7cb2241cf52dbcfe84646fed.zip
Add getWireType()/getPipType() API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'gui')
-rw-r--r--gui/designwidget.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index f9d231c1..4086fd63 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -567,6 +567,7 @@ void DesignWidget::onItemSelectionChanged()
QtProperty *topItem = addTopLevelProperty("Wire");
addProperty(topItem, QVariant::String, "Name", c.c_str(ctx));
+ addProperty(topItem, QVariant::String, "Type", ctx->getWireType(wire).c_str(ctx));
addProperty(topItem, QVariant::Bool, "Available", ctx->checkWireAvail(wire));
addProperty(topItem, QVariant::String, "Bound Net", ctx->getBoundWireNet(wire).c_str(ctx), ElementType::NET);
addProperty(topItem, QVariant::String, "Conflicting Net", ctx->getConflictingWireNet(wire).c_str(ctx),
@@ -618,6 +619,7 @@ void DesignWidget::onItemSelectionChanged()
QtProperty *topItem = addTopLevelProperty("Pip");
addProperty(topItem, QVariant::String, "Name", c.c_str(ctx));
+ addProperty(topItem, QVariant::String, "Type", ctx->getPipType(pip).c_str(ctx));
addProperty(topItem, QVariant::Bool, "Available", ctx->checkPipAvail(pip));
addProperty(topItem, QVariant::String, "Bound Net", ctx->getBoundPipNet(pip).c_str(ctx), ElementType::NET);
addProperty(topItem, QVariant::String, "Conflicting Net", ctx->getConflictingPipNet(pip).c_str(ctx),