Sfoglia il codice sorgente

added new svgs, added parser, added tree view package functions

wolfpi 2 anni fa
parent
commit
9d35e5c29b

+ 0 - 83
graphics/Gauge.svg

@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="21mm"
-   height="29mm"
-   viewBox="0 0 210 297"
-   version="1.1"
-   id="svg8"
-   inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
-   sodipodi:docname="Gauge.svg">
-  <defs
-     id="defs2" />
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="1.0041055"
-     inkscape:cx="268.36851"
-     inkscape:cy="560.51836"
-     inkscape:document-units="mm"
-     inkscape:current-layer="layer1"
-     inkscape:document-rotation="0"
-     showgrid="true"
-     inkscape:window-width="1920"
-     inkscape:window-height="1001"
-     inkscape:window-x="-9"
-     inkscape:window-y="-9"
-     inkscape:window-maximized="1">
-    <inkscape:grid
-       type="xygrid"
-       id="grid873" />
-  </sodipodi:namedview>
-  <metadata
-     id="metadata5">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Layer 1"
-     inkscape:groupmode="layer"
-     id="layer1">
-    <circle
-       style="opacity:0.997;fill:#ffffff;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
-       id="path835"
-       cx="54.790253"
-       cy="180.13965"
-       r="50" />
-    <circle
-       style="opacity:0.997;fill:#ffffff;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
-       id="path833-2"
-       cx="54.528358"
-       cy="179.87239"
-       r="45" />
-    <g
-       id="g871"
-       transform="translate(0,-3.7041668)">
-      <path
-         style="fill:none;stroke:#000000;stroke-width:3.67883;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
-         d="M 17.963822,182.5625 H 89.401324"
-         id="path875" />
-      <path
-         style="fill:none;stroke:#000000;stroke-width:2.63413;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
-         d="M 55.5625,182.5625 40.523031,161.82733"
-         id="path877" />
-    </g>
-  </g>
-</svg>

+ 82 - 0
graphics/method_node.svg

@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="50mm"
+   height="50mm"
+   viewBox="0 0 50 50"
+   version="1.1"
+   id="svg5"
+   sodipodi:docname="method_node.svg"
+   inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     height="50mm"
+     inkscape:zoom="2.8792368"
+     inkscape:cx="199.87936"
+     inkscape:cy="82.834451"
+     inkscape:window-width="2400"
+     inkscape:window-height="1271"
+     inkscape:window-x="2391"
+     inkscape:window-y="-9"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" />
+  <defs
+     id="defs2">
+    <rect
+       x="233.39518"
+       y="106.27816"
+       width="72.58868"
+       height="70.852109"
+       id="rect5765" />
+    <rect
+       x="5.9043424"
+       y="-62.516567"
+       width="129.54822"
+       height="93.080222"
+       id="rect1915" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect914"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+  </defs>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:#5a2ca0;stroke:#000000;stroke-width:0.725227;stroke-linecap:round"
+       id="rect1075"
+       width="47.274776"
+       height="47.274773"
+       x="1.3626134"
+       y="1.3626134" />
+    <text
+       xml:space="preserve"
+       transform="matrix(1.1114327,0,0,1.1568754,-0.64611067,73.724984)"
+       id="text1913"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect1915);fill:#000000;fill-opacity:1;stroke:none"><tspan
+         x="5.9042969"
+         y="-27.125"
+         id="tspan8886">M</tspan></text>
+  </g>
+</svg>

+ 82 - 0
graphics/node.svg

@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="50mm"
+   height="50mm"
+   viewBox="0 0 50 50"
+   version="1.1"
+   id="svg5"
+   sodipodi:docname="node.svg"
+   inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     height="50mm"
+     inkscape:zoom="2.8792368"
+     inkscape:cx="199.87936"
+     inkscape:cy="82.834451"
+     inkscape:window-width="2400"
+     inkscape:window-height="1271"
+     inkscape:window-x="2391"
+     inkscape:window-y="-9"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" />
+  <defs
+     id="defs2">
+    <rect
+       x="233.39518"
+       y="106.27816"
+       width="72.58868"
+       height="70.852109"
+       id="rect5765" />
+    <rect
+       x="5.9043424"
+       y="-62.516567"
+       width="129.54822"
+       height="93.080222"
+       id="rect1915" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect914"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+  </defs>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:#afdde9;stroke:#000000;stroke-width:0.725227;stroke-linecap:round"
+       id="rect1075"
+       width="47.274776"
+       height="47.274773"
+       x="1.3626134"
+       y="1.3626134" />
+    <text
+       xml:space="preserve"
+       transform="matrix(1.1114327,0,0,1.1568754,2.2944834,73.541197)"
+       id="text1913"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect1915);fill:#000000;fill-opacity:1;stroke:none"><tspan
+         x="5.9042969"
+         y="-27.125"
+         id="tspan10522">N</tspan></text>
+  </g>
+</svg>

+ 96 - 0
graphics/node_type.svg

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="50mm"
+   height="50mm"
+   viewBox="0 0 50 50"
+   version="1.1"
+   id="svg5"
+   sodipodi:docname="node_type.svg"
+   inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     height="50mm"
+     inkscape:zoom="2.8792368"
+     inkscape:cx="199.87936"
+     inkscape:cy="82.834451"
+     inkscape:window-width="2400"
+     inkscape:window-height="1271"
+     inkscape:window-x="2391"
+     inkscape:window-y="-9"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" />
+  <defs
+     id="defs2">
+    <rect
+       x="233.39518"
+       y="106.27816"
+       width="72.58868"
+       height="70.852109"
+       id="rect5765" />
+    <rect
+       x="5.9043424"
+       y="-62.516567"
+       width="129.54822"
+       height="93.080222"
+       id="rect1915" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect914"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+    <rect
+       x="233.39519"
+       y="106.27816"
+       width="72.588676"
+       height="70.852112"
+       id="rect5765-0" />
+  </defs>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:#afdde9;stroke:#000000;stroke-width:0.725227;stroke-linecap:round"
+       id="rect1075"
+       width="47.274776"
+       height="47.274773"
+       x="1.3626134"
+       y="1.3626134" />
+    <text
+       xml:space="preserve"
+       transform="matrix(1.1114327,0,0,1.1568754,2.2944834,73.541197)"
+       id="text1913"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect1915);fill:#000000;fill-opacity:1;stroke:none"><tspan
+         x="5.9042969"
+         y="-27.125"
+         id="tspan10570">N</tspan></text>
+    <text
+       xml:space="preserve"
+       transform="matrix(0.8755191,0,0,0.743587,-179.01513,-58.386732)"
+       id="text5763"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect5765-0);fill:#6c5d53;fill-opacity:1;stroke:#000000;stroke-opacity:1"><tspan
+         x="233.39453"
+         y="141.66797"
+         id="tspan10572">T</tspan></text>
+  </g>
+</svg>

+ 76 - 0
graphics/object_node.svg

@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="50mm"
+   height="50mm"
+   viewBox="0 0 50 50"
+   version="1.1"
+   id="svg5"
+   inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+   sodipodi:docname="object_node.svg"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     height="50mm"
+     inkscape:zoom="2.8792368"
+     inkscape:cx="199.87936"
+     inkscape:cy="82.834451"
+     inkscape:window-width="2400"
+     inkscape:window-height="1271"
+     inkscape:window-x="2391"
+     inkscape:window-y="-9"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" />
+  <defs
+     id="defs2">
+    <rect
+       x="5.9043424"
+       y="-62.516567"
+       width="129.54822"
+       height="93.080222"
+       id="rect1915" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect914"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+  </defs>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:#8ea9db;stroke:#000000;stroke-width:0.725227;stroke-linecap:round"
+       id="rect1075"
+       width="47.274776"
+       height="47.274773"
+       x="1.3626134"
+       y="1.3626134" />
+    <text
+       xml:space="preserve"
+       transform="matrix(1.1114327,0,0,1.1568754,0.94138934,73.724984)"
+       id="text1913"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect1915);fill:#000000;fill-opacity:1;stroke:none"><tspan
+         x="5.9042969"
+         y="-27.125"
+         id="tspan3994">O</tspan></text>
+  </g>
+</svg>

+ 90 - 0
graphics/objecttype_node.svg

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="50mm"
+   height="50mm"
+   viewBox="0 0 50 50"
+   version="1.1"
+   id="svg5"
+   sodipodi:docname="objecttype_node.svg"
+   inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     height="50mm"
+     inkscape:zoom="2.8792368"
+     inkscape:cx="199.87936"
+     inkscape:cy="82.834451"
+     inkscape:window-width="2400"
+     inkscape:window-height="1271"
+     inkscape:window-x="2391"
+     inkscape:window-y="-9"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" />
+  <defs
+     id="defs2">
+    <rect
+       x="233.39518"
+       y="106.27816"
+       width="72.58868"
+       height="70.852109"
+       id="rect5765" />
+    <rect
+       x="5.9043424"
+       y="-62.516567"
+       width="129.54822"
+       height="93.080222"
+       id="rect1915" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect914"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+  </defs>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:#8ea9db;stroke:#000000;stroke-width:0.725227;stroke-linecap:round"
+       id="rect1075"
+       width="47.274776"
+       height="47.274773"
+       x="1.3626134"
+       y="1.3626134" />
+    <text
+       xml:space="preserve"
+       transform="matrix(1.1114327,0,0,1.1568754,0.94138934,73.724984)"
+       id="text1913"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect1915);fill:#000000;fill-opacity:1;stroke:none"><tspan
+         x="5.9042969"
+         y="-27.125"
+         id="tspan6573">O</tspan></text>
+    <text
+       xml:space="preserve"
+       transform="matrix(0.8755191,0,0,0.743587,-179.32241,-58.625731)"
+       id="text5763"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect5765);fill:#6c5d53;fill-opacity:1;stroke:#000000;stroke-opacity:1"><tspan
+         x="233.39453"
+         y="141.66797"
+         id="tspan6575">T</tspan></text>
+  </g>
+</svg>

+ 76 - 0
graphics/variable_node.svg

@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="50mm"
+   height="50mm"
+   viewBox="0 0 50 50"
+   version="1.1"
+   id="svg5"
+   inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+   sodipodi:docname="variable_node.svg"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     height="50mm"
+     inkscape:zoom="2.8792368"
+     inkscape:cx="199.87936"
+     inkscape:cy="82.834451"
+     inkscape:window-width="2400"
+     inkscape:window-height="1271"
+     inkscape:window-x="2391"
+     inkscape:window-y="-9"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" />
+  <defs
+     id="defs2">
+    <rect
+       x="5.9043424"
+       y="-62.516567"
+       width="129.54822"
+       height="93.080222"
+       id="rect1915" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect914"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+  </defs>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:#71c837;stroke:#000000;stroke-width:0.725227;stroke-linecap:round"
+       id="rect1075"
+       width="47.274776"
+       height="47.274773"
+       x="1.3626134"
+       y="1.3626134" />
+    <text
+       xml:space="preserve"
+       transform="matrix(1.1114327,0,0,1.1568754,3.0904487,73.63309)"
+       id="text1913"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect1915);fill:#000000;fill-opacity:1;stroke:none"><tspan
+         x="5.9042969"
+         y="-27.125"
+         id="tspan4977">V</tspan></text>
+  </g>
+</svg>

+ 90 - 0
graphics/variabletype_node.svg

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="50mm"
+   height="50mm"
+   viewBox="0 0 50 50"
+   version="1.1"
+   id="svg5"
+   inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+   sodipodi:docname="variabletype_node.svg"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     height="50mm"
+     inkscape:zoom="2.8792368"
+     inkscape:cx="125.90142"
+     inkscape:cy="82.834451"
+     inkscape:window-width="1920"
+     inkscape:window-height="1001"
+     inkscape:window-x="-9"
+     inkscape:window-y="-9"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1" />
+  <defs
+     id="defs2">
+    <rect
+       x="5.9043424"
+       y="-62.516567"
+       width="129.54822"
+       height="93.080222"
+       id="rect1915" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect914"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+    <rect
+       x="233.39519"
+       y="106.27816"
+       width="72.588676"
+       height="70.852112"
+       id="rect5765" />
+  </defs>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:#71c837;stroke:#000000;stroke-width:0.725227;stroke-linecap:round"
+       id="rect1075"
+       width="47.274776"
+       height="47.274773"
+       x="1.3626134"
+       y="1.3626134" />
+    <text
+       xml:space="preserve"
+       transform="matrix(1.1114327,0,0,1.1568754,3.0904487,73.63309)"
+       id="text1913"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect1915);fill:#000000;fill-opacity:1;stroke:none"><tspan
+         x="5.9042969"
+         y="-27.125"
+         id="tspan6688">V</tspan></text>
+    <text
+       xml:space="preserve"
+       transform="matrix(0.8755191,0,0,0.743587,-179.13234,-58.364538)"
+       id="text5763"
+       style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect5765);fill:#6c5d53;fill-opacity:1;stroke:#000000;stroke-opacity:1"><tspan
+         x="233.39453"
+         y="141.66797"
+         id="tspan6690">T</tspan></text>
+  </g>
+</svg>

+ 1 - 1
index.html

@@ -29,7 +29,7 @@
 				<tbody>
 					<tr>
 						<td>
-						<img class="nodeRoot" src="graphics/Gauge.svg" height="100" width="100"></img>
+						<img class="nodeRoot" src="graphics/node.svg" height="100" width="100"></img>
 						</td>
 					</tr>
 				</tbody>

+ 4 - 4
js/execParser.php

@@ -1,7 +1,7 @@
 <?php
-$file = 'C:\xampp\htdocs\SMF\sdsdssss.docx';
 
-$content = exec( 'ls', $output );
 
-var_dump( $output );
-?>
+echo exec( 'ls', $output );
+
+
+?>

+ 2 - 1
js/executeNodeSetParser.js

@@ -4,5 +4,6 @@ https://stackoverflow.com/questions/1880198/how-to-execute-shell-command-in-java
 */
 
 var fs = require('fs');
-var files = fs.readdirSync('js');
+console.log('woop');
+var files = fs.readdirSync('.');
 console.log('OK: ' + files);

+ 4 - 4
js/myEvents.js

@@ -1,16 +1,16 @@
 $(document).ready(function(){
 	function newElementaddressSpace(){
 		var $tr = $('<tr>');
-		$tr.append('<td><img src='+'graphics/Gauge.svg'+' height='+"100"+' width='+"100"+'></img></td></tr>');
+		$tr.append('<td><img src='+'graphics/node.svg'+' height='+"100"+' width='+"100"+'></img></td></tr>');
 		
 		$('#tree').append($tr);
 		console.log("this funct");
 	}
 	
 	function parseAll(){
-	$.getScript("executeNodeSetParser.js");
+	$.getScript("js/executeNodeSetParser.js");
 	console.log('OK1');
-	$.ajax({url: 'execParser.php'})
+	$.ajax({url: 'js/execParser.php'})
 	console.log('OK2');
 	}
 	
@@ -29,4 +29,4 @@ $(document).ready(function(){
 	
 	
 	
-});
+});

+ 21 - 0
nodesets/parse_server.py

@@ -0,0 +1,21 @@
+
+#import os
+import subprocess
+from flask import Flask, jsonify
+
+app = Flask(__name__)
+  
+cmd = ['./parserDemo', 'testNodeset.xml', 'testNodeset100nodes.xml']
+  
+@app.route('/parse', methods=['GET'])
+def get_parse():
+	with open('parser_output.txt', 'w') as out:
+		return_code = subprocess.call(cmd, stdout=out)
+	return jsonify({"success":"true"})
+	
+@app.route('/hello', methods=['GET'])
+def get_hello():
+	return jsonify({"success":"alive"})
+    
+if __name__ == '__main__':
+    app.run(debug=True,port=8001) 

BIN
nodesets/parserDemo


File diff suppressed because it is too large
+ 600001 - 0
nodesets/parser_output.txt


File diff suppressed because it is too large
+ 44 - 0
nodesets/testNodeset.xml


File diff suppressed because it is too large
+ 44 - 0
nodesets/testNodeset100nodes.xml