projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small changes; mainly in the listener system:
[Mograsim.git]
/
LogicUI
/
src
/
era
/
mi
/
gui
/
examples
/
Playground.java
diff --git
a/LogicUI/src/era/mi/gui/examples/Playground.java
b/LogicUI/src/era/mi/gui/examples/Playground.java
index
74da19c
..
f556759
100644
(file)
--- a/
LogicUI/src/era/mi/gui/examples/Playground.java
+++ b/
LogicUI/src/era/mi/gui/examples/Playground.java
@@
-1,6
+1,5
@@
package era.mi.gui.examples;
package era.mi.gui.examples;
-import era.mi.gui.LogicUICanvas;
import era.mi.gui.LogicUIStandalone;
import era.mi.gui.model.ViewModel;
import era.mi.gui.model.components.GUIAndGate;
import era.mi.gui.LogicUIStandalone;
import era.mi.gui.model.ViewModel;
import era.mi.gui.model.components.GUIAndGate;
@@
-17,11
+16,11
@@
public class Playground
{
ViewModel model = new ViewModel();
LogicUIStandalone ui = new LogicUIStandalone(model);
{
ViewModel model = new ViewModel();
LogicUIStandalone ui = new LogicUIStandalone(model);
- addComponentsAndWires(
ui.getLogicUICanvas(),
model);
+ addComponentsAndWires(model);
ui.run();
}
ui.run();
}
- public static void addComponentsAndWires(
LogicUICanvas ui,
ViewModel model)
+ public static void addComponentsAndWires(ViewModel model)
{
GUIAndGate andGate = new GUIAndGate(model);
andGate.moveTo(10, 10);
{
GUIAndGate andGate = new GUIAndGate(model);
andGate.moveTo(10, 10);