Moved code serializing a symbol renderer to where it belongs
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / am2901 / GUIAm2901ALUInclDecode.json
index 9c3181c..9d6395c 100644 (file)
@@ -1,7 +1,5 @@
-mograsim version: 0.1.2
+mograsim version: 0.1.3
 {
-  "type": "SimpleRectangularSubmodelComponent",
-  "name": "GUIAm2901ALUInclDecode",
   "width": 35.0,
   "height": 120.0,
   "interfacePins": [
@@ -150,7 +148,7 @@ mograsim version: 0.1.2
       "logicWidth": 1
     }
   ],
-  "composition": {
+  "submodel": {
     "innerScale": 0.25,
     "subComps": [
       {
@@ -158,248 +156,202 @@ mograsim version: 0.1.2
           "x": 20.0,
           "y": 2.5
         },
-        "name": "GUIAm2901ALUFuncDecode",
-        "params": {}
+        "id": "GUIAm2901ALUFuncDecode"
       },
       {
         "pos": {
           "x": 45.0,
           "y": 80.0
         },
-        "name": "GUIAm2901ALUOneBit",
-        "params": {}
+        "id": "GUIAm2901ALUOneBit"
       },
       {
         "pos": {
           "x": 45.0,
           "y": 180.0
         },
-        "name": "GUIAm2901ALUOneBit",
-        "params": {}
+        "id": "GUIAm2901ALUOneBit"
       },
       {
         "pos": {
           "x": 45.0,
           "y": 280.0
         },
-        "name": "GUIAm2901ALUOneBit",
-        "params": {}
+        "id": "GUIAm2901ALUOneBit"
       },
       {
         "pos": {
           "x": 45.0,
           "y": 380.0
         },
-        "name": "GUIAm2901ALUOneBit",
-        "params": {}
+        "id": "GUIAm2901ALUOneBit"
       },
       {
         "pos": {
           "x": 95.0,
           "y": 400.0
         },
-        "name": "GUIxor",
-        "params": {}
+        "id": "GUIxor"
       },
       {
         "pos": {
           "x": 24.0,
           "y": 94.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 24.0,
           "y": 194.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 24.0,
           "y": 294.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 26.5,
           "y": 104.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 26.5,
           "y": 204.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 26.5,
           "y": 304.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 29.0,
           "y": 124.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 29.0,
           "y": 224.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 29.0,
           "y": 324.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 31.5,
           "y": 144.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 31.5,
           "y": 244.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 31.5,
           "y": 344.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 34.0,
           "y": 154.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 34.0,
           "y": 254.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 34.0,
           "y": 354.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 36.5,
           "y": 164.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 36.5,
           "y": 264.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 36.5,
           "y": 364.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 84.0,
           "y": 374.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 84.0,
           "y": 384.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       }
     ],
     "innerWires": [
@@ -1464,30 +1416,12 @@ mograsim version: 0.1.2
       }
     ]
   },
-  "specialized": {
-    "input_count": [
-      "I5",
-      "I4",
-      "I3",
-      "Cn",
-      "R1",
-      "R2",
-      "R3",
-      "R4",
-      "S1",
-      "S2",
-      "S3",
-      "S4"
-    ],
-    "label": "GUIAm2901ALUInclDecode",
-    "logic_width": 1,
-    "output_count": [
-      "F1",
-      "F2",
-      "F3",
-      "F4",
-      "Cn+4",
-      "OVR"
-    ]
+  "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+  "symbolRendererParams": {
+    "centerText": "GUIAm2901ALUInclDecode",
+    "horizontalComponentCenter": 17.5,
+    "centerTextHeight": 5.0,
+    "pinLabelHeight": 3.5,
+    "pinLabelMargin": 0.5
   }
 }
\ No newline at end of file