X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2FSimpleRectangularGUIGate.java;h=cbb8ab7eab47e83be7a2e0ee0e63e423430d9208;hb=7aa6eab72deba89dbc22ae9c90ffb5df53f9d496;hp=aae03d29d3a08a8e173f1a33f991466214be566a;hpb=fdb090ca9a42f72119b0332f8157aa7d14119ef6;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SimpleRectangularGUIGate.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SimpleRectangularGUIGate.java index aae03d29..cbb8ab7e 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SimpleRectangularGUIGate.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SimpleRectangularGUIGate.java @@ -35,7 +35,7 @@ public class SimpleRectangularGUIGate extends GUIComponent this.logicWidth = logicWidth; this.isInverted = isInverted; this.rectWidth = width - (isInverted ? invertedCircleDiam : 0); - this.outputPin = new MovablePin(this, logicWidth, width, 0); + this.outputPin = new MovablePin(this, "Y", logicWidth, width, 0); addPin(outputPin); this.inputPins = new ArrayList<>(); this.inputPinsUnmodifiable = Collections.unmodifiableList(inputPins); @@ -52,7 +52,8 @@ public class SimpleRectangularGUIGate extends GUIComponent else if (oldInputCount < inputCount) for (int i = oldInputCount; i < inputCount; i++) { - Pin pin = new Pin(this, logicWidth, 0, pinDistance / 2 + i * pinDistance); + // TODO what for more than 26 input pins? + Pin pin = new Pin(this, "A" + i, logicWidth, 0, pinDistance / 2 + i * pinDistance); inputPins.add(pin); addPin(pin); }