Completely changed the structure and switched to Eclipse Plugin.
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUIfulladder.java
diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIfulladder.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIfulladder.java
deleted file mode 100644 (file)
index 12bddce..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-package net.mograsim.logic.ui.model.components.mi.nandbased;
-
-import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
-import net.mograsim.logic.ui.model.ViewModelModifiable;
-import net.mograsim.logic.ui.model.components.GUINandGate;
-import net.mograsim.logic.ui.model.components.SimpleRectangularSubmodelComponent;
-import net.mograsim.logic.ui.model.wires.GUIWire;
-import net.mograsim.logic.ui.model.wires.Pin;
-
-public class GUIfulladder extends SimpleRectangularSubmodelComponent
-{
-       public GUIfulladder(ViewModelModifiable model)
-       {
-               super(model, 1, "GUIfulladder");
-               setSubmodelScale(.4);
-               setInputPins("A", "B", "C");
-               setOutputPins("Y", "Z");
-               initSubmodelComponents();
-       }
-
-       @SuppressWarnings("unused") // for GUIWires being created
-       private void initSubmodelComponents()
-       {
-               Pin A = getSubmodelPin("A");
-               Pin B = getSubmodelPin("B");
-               Pin C = getSubmodelPin("C");
-               Pin Y = getSubmodelPin("Y");
-               Pin Z = getSubmodelPin("Z");
-
-               GUIhalfadder halfBC = new GUIhalfadder(submodelModifiable);
-               GUIhalfadder halfAY = new GUIhalfadder(submodelModifiable);
-               GUINandGate nandZ = new GUINandGate(submodelModifiable, 1);
-
-               halfAY.moveTo(45, 7.5);
-               halfBC.moveTo(5, 40);
-               nandZ.moveTo(57.5, 40);
-
-               new GUIWire(submodelModifiable, A, halfAY.getPin("A"), new Point[0]);
-               new GUIWire(submodelModifiable, B, halfBC.getPin("A"));
-               new GUIWire(submodelModifiable, C, halfBC.getPin("B"));
-               new GUIWire(submodelModifiable, halfBC.getPin("Y"), halfAY.getPin("B"));
-               new GUIWire(submodelModifiable, halfBC.getPin("_Z"), nandZ.getPin("B"), new Point[0]);
-               new GUIWire(submodelModifiable, halfAY.getPin("Y"), Y, new Point[0]);
-               new GUIWire(submodelModifiable, halfAY.getPin("_Z"), nandZ.getPin("A"), new Point(82.5, 22.5), new Point(82.5, 35),
-                               new Point(52.5, 35), new Point(52.5, 45));
-               new GUIWire(submodelModifiable, nandZ.getPin("Y"), Z);
-       }
-}
\ No newline at end of file