]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Merge "ResourceSCLTextGridStyle for creating Resource-based monitors with SCL"
authorJani Simomaa <jani.simomaa@semantum.fi>
Mon, 30 Jul 2018 05:27:38 +0000 (05:27 +0000)
committerGerrit Code Review <gerrit2@simantics>
Mon, 30 Jul 2018 05:27:38 +0000 (05:27 +0000)
bundles/org.simantics.g2d/src/org/simantics/g2d/participant/PanZoomRotateHandler.java
bundles/org.simantics.silk.ontology/graph/Silk.pgraph
bundles/org.simantics.silk.ontology/graph/images/text_italic_f.png [new file with mode: 0644]
bundles/org.simantics.silk.ontology/graph/images/time_rainbow.png [new file with mode: 0644]
bundles/org.simantics.viewpoint.ontology/graph/ViewpointActions.pgraph

index eeab18069717aaa250ffe5ffb5d0e06320b47871..371ecbf1586bb22910410a728ddf8325deb4bbb9 100644 (file)
@@ -185,18 +185,22 @@ public class PanZoomRotateHandler extends AbstractCanvasParticipant {
         super.removedFromContext(ctx);
     }
 
+    protected Class<? extends NavigationNode> getNavigationNodeClass() {
+        return NavigationNode.class;
+    }
+
     @SGInit
     public void initSG(G2DParentNode parent) {
         // Replace old NAVIGATION_NODE with a new one
         INode oldnav = NodeUtil.getRootNode(parent).getNode(SceneGraphConstants.NAVIGATION_NODE_NAME);
         if(oldnav != null) {
-            node = oldnav.appendParent(SceneGraphConstants.NAVIGATION_NODE_NAME, NavigationNode.class);
+            node = oldnav.appendParent(SceneGraphConstants.NAVIGATION_NODE_NAME, getNavigationNodeClass());
             // FIXME : oldnav seems to be the same node as parent (most of the cases).
             // Deleting it will cause plenty of code to fail, since they refer to the node directly.
             // The bug was not shown, since deleting() a Node did not actually wipe its structures (until now).             
             // oldnav.delete();
         } else {
-            node = parent.addNode(SceneGraphConstants.NAVIGATION_NODE_NAME, NavigationNode.class);
+            node = parent.addNode(SceneGraphConstants.NAVIGATION_NODE_NAME, getNavigationNodeClass());
         }
         node.setLookupId(SceneGraphConstants.NAVIGATION_NODE_NAME);
         node.setZIndex(0);
index e6fd51b317b2eac7800232fcbfcb833364e18e5d..b27c7f39bab8b68eab5ead2a929eb8428ed9eec7 100644 (file)
@@ -2683,6 +2683,8 @@ Silk."text_inverse" : IMAGE.PngImage
   @L0.loadBytes "images/text_inverse.png"
 Silk."text_italic" : IMAGE.PngImage
   @L0.loadBytes "images/text_italic.png"
+Silk."text_italic_f" : IMAGE.PngImage
+  @L0.loadBytes "images/text_italic_f.png"
 Silk."text_kerning" : IMAGE.PngImage
   @L0.loadBytes "images/text_kerning.png"
 Silk."text_left_to_right" : IMAGE.PngImage
@@ -2765,6 +2767,8 @@ Silk."time_go" : IMAGE.PngImage
   @L0.loadBytes "images/time_go.png"
 Silk."time_green" : IMAGE.PngImage
   @L0.loadBytes "images/time_green.png"
+Silk."time_rainbow" : IMAGE.PngImage
+  @L0.loadBytes "images/time_rainbow.png"
 Silk."time_red" : IMAGE.PngImage
   @L0.loadBytes "images/time_red.png"
 Silk."transmit" : IMAGE.PngImage
diff --git a/bundles/org.simantics.silk.ontology/graph/images/text_italic_f.png b/bundles/org.simantics.silk.ontology/graph/images/text_italic_f.png
new file mode 100644 (file)
index 0000000..946f47f
Binary files /dev/null and b/bundles/org.simantics.silk.ontology/graph/images/text_italic_f.png differ
diff --git a/bundles/org.simantics.silk.ontology/graph/images/time_rainbow.png b/bundles/org.simantics.silk.ontology/graph/images/time_rainbow.png
new file mode 100644 (file)
index 0000000..372c337
Binary files /dev/null and b/bundles/org.simantics.silk.ontology/graph/images/time_rainbow.png differ
index f0b11d63a6ea009579f8e739fdebfc5ee4227b90..704ccf46b3eb022281fd7f50df95fb6ff965b403 100644 (file)
@@ -36,6 +36,9 @@ VP.NewActionCategory : VP.ActionCategory
 VP.ImportActionCategory : VP.ActionCategory
     L0.HasLabel "Import"
     VP.ActionCategory.IsSubmenu L0.True
+VP.ExportActionCategory : VP.ActionCategory
+    L0.HasLabel "Export"
+    VP.ActionCategory.IsSubmenu L0.True
 VP.EditActionCategory : VP.ActionCategory
     L0.HasLabel "Edit"
     VP.ActionCategory.IsSubmenu L0.False