Merge pull request #1272 from ispyisail/feature/wires-per-terminal

Add an optional limit on wires per terminal (discussion #1158)
This commit is contained in:
Laurent Trinques
2026-10-03 16:35:10 +02:00
committed by GitHub
17 changed files with 992 additions and 3 deletions
+5
View File
@@ -973,6 +973,11 @@ bool QetScriptApi::addConductor(int folioIndex,
log(QStringLiteral("qet.addConductor: those two terminals are already wired together"));
return false;
}
if (!t1->hasRoomForWire() || !t2->hasRoomForWire()) {
log(QStringLiteral("qet.addConductor: a terminal already has as many wires as the "
"project's wires-per-terminal limit allows"));
return false;
}
if (!t1->canBeLinkedTo(t2)) {
log(QStringLiteral("qet.addConductor: those two terminals cannot be linked"));
return false;