X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2FLogicUI.java;h=d0e23b4fbd379a580c6689665d9c19262839077e;hb=d95163373ade630353dd7c6e5d2a1fa69b924887;hp=515bdb47f157915ead32ec446a5159747d0f9ef9;hpb=369989add6bb8fd6e2af200c72349386ab882ea7;p=Mograsim.git diff --git a/LogicUI/src/LogicUI.java b/LogicUI/src/LogicUI.java index 515bdb47..d0e23b4f 100644 --- a/LogicUI/src/LogicUI.java +++ b/LogicUI/src/LogicUI.java @@ -9,12 +9,12 @@ import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import era.mi.components.gui.BasicGUIComponent; +import era.mi.components.gui.GUIAndGate; import era.mi.components.gui.GUIMerger; import era.mi.components.gui.GUIMux; import era.mi.components.gui.GUINotGate; import era.mi.components.gui.GUISplitter; import era.mi.logic.Simulation; -import era.mi.logic.components.gates.AndGate; import era.mi.logic.wires.WireArray; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.gcs.TranslatedGC; @@ -50,7 +50,7 @@ public class LogicUI Simulation.TIMELINE.reset(); WireArray a = new WireArray(1, 1), b = new WireArray(1, 1), c = new WireArray(1, 10), d = new WireArray(2, 1), e = new WireArray(1, 1), f = new WireArray(1, 1), g = new WireArray(1, 1), h = new WireArray(2, 1), i = new WireArray(2, 1), j = new WireArray(1, 1), k = new WireArray(1, 1); - new AndGate(1, f, a, b); + addComponent(new GUIAndGate(1, f, a, b), 130, 10); addComponent(new GUINotGate(1, f, g), 100, 10); addComponent(new GUIMerger(h, c, g), 70, 10); addComponent(new GUIMux(1, i, e, h, d), 10, 10);