X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2FGUIOrGate.java;h=8a983a2196c3dd5e20481861e3401637b74e3c79;hb=db2d83580c4a6a83c0ca8388b5e7f92571aa5a18;hp=d4fdb7fef9face8c5281a447426fe565ca2df6a7;hpb=8b82d74c9b7e4435381a7e8bd900cea7f8ae57cd;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIOrGate.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIOrGate.java index d4fdb7fe..8a983a21 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIOrGate.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIOrGate.java @@ -1,6 +1,9 @@ package net.mograsim.logic.ui.model.components; +import net.mograsim.logic.core.components.gates.OrGate; import net.mograsim.logic.ui.model.ViewModelModifiable; +import net.mograsim.logic.ui.modeladapter.ViewLogicModelAdapter; +import net.mograsim.logic.ui.modeladapter.componentadapters.SimpleGateAdapter; public class GUIOrGate extends SimpleRectangularGUIGate { @@ -9,4 +12,9 @@ public class GUIOrGate extends SimpleRectangularGUIGate super(model, logicWidth, "\u22651", false);// ">=1" setInputCount(2); } + + static + { + ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUIOrGate.class, OrGate::new)); + } } \ No newline at end of file