X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fmodel%2Fcomponents%2Fatomic%2FModelFixedOutput.java;h=1d3bb1eea4671f9ccbbe4ac8fd81454d9cc2d9de;hb=8bed58cd47f4e53a0a83e066d38864aa6875502f;hp=2bdd36ebe2d0ab22ed0e37350d38f520bb7f3a6b;hpb=552986fd8718d5f2db00802015fdd1ecd58a5a2f;p=Mograsim.git diff --git a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelFixedOutput.java b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelFixedOutput.java index 2bdd36eb..1d3bb1ee 100644 --- a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelFixedOutput.java +++ b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelFixedOutput.java @@ -10,7 +10,7 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Point; import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; import net.mograsim.logic.core.types.BitVector; import net.mograsim.logic.core.types.BitVectorFormatter; -import net.mograsim.logic.model.model.ViewModelModifiable; +import net.mograsim.logic.model.model.LogicModelModifiable; import net.mograsim.logic.model.model.components.ModelComponent; import net.mograsim.logic.model.model.wires.Pin; import net.mograsim.logic.model.model.wires.PinUsage; @@ -29,12 +29,14 @@ public class ModelFixedOutput extends ModelComponent public final BitVector bits; - public ModelFixedOutput(ViewModelModifiable model, BitVector bits, String name) + public ModelFixedOutput(LogicModelModifiable model, BitVector bits, String name) { - super(model, name); + super(model, name, false); this.bits = bits; setSize(width, height); - addPin(new Pin(this, "out", bits.length(), PinUsage.OUTPUT, width, height / 2)); + addPin(new Pin(model, this, "out", bits.length(), PinUsage.OUTPUT, width, height / 2)); + + init(); } @Override