projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GUIComponents now have names
[Mograsim.git]
/
net.mograsim.logic.ui.am2900
/
src
/
net
/
mograsim
/
logic
/
ui
/
model
/
components
/
mi
/
nandbased
/
GUIdff.java
diff --git
a/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java
b/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java
index
7b84010
..
4756547
100644
(file)
--- a/
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java
+++ b/
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java
@@
-15,7
+15,12
@@
public class GUIdff extends SimpleRectangularSubmodelComponent
public GUIdff(ViewModelModifiable model)
{
public GUIdff(ViewModelModifiable model)
{
- super(model, 1, "GUIdff");
+ this(model, null);
+ }
+
+ public GUIdff(ViewModelModifiable model, String name)
+ {
+ super(model, 1, "GUIdff", name);
setSubmodelScale(.2);
setInputPins("C", "D");
setOutputPins("Q", "_Q");
setSubmodelScale(.2);
setInputPins("C", "D");
setOutputPins("Q", "_Q");
@@
-97,6
+102,6
@@
public class GUIdff extends SimpleRectangularSubmodelComponent
static
{
static
{
- IndirectGUIComponentCreator.setComponentSupplier(GUIdff.class.getCanonicalName(), (m, p
) -> new GUIdff(m
));
+ IndirectGUIComponentCreator.setComponentSupplier(GUIdff.class.getCanonicalName(), (m, p
, n) -> new GUIdff(m, n
));
}
}
\ No newline at end of file
}
}
\ No newline at end of file