]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.selectionview.ui.ontology/graph/SelectionViewUi.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.selectionview.ui.ontology / graph / SelectionViewUi.pgraph
diff --git a/bundles/org.simantics.selectionview.ui.ontology/graph/SelectionViewUi.pgraph b/bundles/org.simantics.selectionview.ui.ontology/graph/SelectionViewUi.pgraph
new file mode 100644 (file)
index 0000000..0fb82a9
--- /dev/null
@@ -0,0 +1,118 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+L0X = <http://www.simantics.org/Layer0X-1.1>
+VP = <http://www.simantics.org/Viewpoint-1.2>
+VIEW = <http://www.simantics.org/Views-1.2>
+MOD = <http://www.simantics.org/Modeling-1.2>
+
+SEL_BASE = <http://www.simantics.org/SelectionView-1.2> : L0.Ontology
+
+SEL = <http://www.simantics.org/SelectionViewUI-1.1> : L0.Ontology
+    @L0.new
+    L0.HasResourceClass "org.simantics.selectionview.ui.ontology.SelectionViewUIResources"
+
+SEL.CategoryNode : VP.NodeType
+  VP.HasContentType "org.simantics.selectionview.CategoryNode"
+  VP.HasBundle "org.simantics.selectionview"
+
+SEL.CategoryNodeLabelRule : VP.LabelRule
+SEL.CategoryDecorationRule : VP.ConstantLabelDecorationRule
+    VP.ConstantLabelDecorationRule.HasStyle "B"
+
+SEL.VariableDecorationRule : VP.ConstantLabelDecorationRule
+    VP.ConstantLabelDecorationRule.HasFormat " %s"
+
+SEL.VariableColoringDecorationRule : VP.LabelDecorationRule
+
+SEL.VariablePropertyCategoryRule <T VP.ChildRule
+SEL.VariablePropertyLabelRule : VP.LabelRule
+SEL.VariablePropertyModifierRule : VP.ModifierRule
+    L0.HasDescription """Modifier rule based on variable."""
+
+SEL.StandardPropertySorterRuleType <T VP.SorterRule
+  >-- SEL_BASE.getSpecialCategory
+
+SEL.StandardPropertySorterRule : SEL.StandardPropertySorterRuleType
+
+SEL.PropertyColumn 
+  @VIEW.Explorer.Column.full "HasDisplayProperty" "Property" "LEFT" 150 "The name of the property" true 1
+SEL.ValueColumn
+  @VIEW.Explorer.Column.full "HasDisplayValue" "Value" "RIGHT" 60 "The representation of the property value" true 1
+SEL.UnitColumn
+  @VIEW.Explorer.Column.full "HasDisplayUnit" "Unit" "LEFT" 60 "The selected unit for the value" false 0
+
+SEL.StandardPropertiesBase <T VIEW.Explorer
+  @L0.assert VIEW.Control.layoutData
+    _ : VIEW.GridLayout.GridData
+      VIEW.GridLayout.GridData.horizontalGrab true
+      VIEW.GridLayout.GridData.verticalGrab true
+  @L0.assert VIEW.Control.style 
+    _ : VIEW.Control.Style
+      VIEW.Control.Style.HasConstant VIEW.Control.Style.Constant.Multi
+      VIEW.Control.Style.HasConstant VIEW.Control.Style.Constant.FullSelection
+  @L0.assert VIEW.Explorer.columns 
+    _ : VIEW.Explorer.ColumnList
+      @L0.list
+        SEL.PropertyColumn
+        SEL.ValueColumn
+        SEL.UnitColumn
+  @L0.assert VIEW.Explorer.editingColumns 
+    _ : VIEW.Explorer.ColumnList
+      @L0.list
+        SEL.ValueColumn
+  @L0.assert VIEW.Explorer.input MOD.Functions.singleVariableSelection
+  @L0.assert VIEW.Explorer.browseContext
+    _ : VIEW.ResourceURI
+      VIEW.ResourceURI.HasResource SEL.StandardPropertiesBase.BrowseContext : SEL.StandardProperties.BrowseContextStandardChildren
+  @L0.assert VIEW.Explorer.uiContext "org.simantics.modeling.ui.properties"
+  @L0.assert VIEW.Explorer.useNodeBrowseContexts true
+  @L0.assert VIEW.Explorer.useNodeActionContexts true
+
+SEL.StandardProperties : SEL.StandardPropertiesBase
+
+SEL.StandardProperties.BrowseContextStandardChildren <T SEL.StandardProperties.BrowseContextWithoutChildren
+  @L0.assert VP.BrowseContext.HasChildContribution 
+    _ : VP.ChildContribution
+      VP.ChildContribution.HasParentNodeType MOD.ModelingBrowseContext.Variable
+      VP.ChildContribution.HasChildNodeType MOD.ModelingBrowseContext.Variable
+      VP.ChildContribution.HasRule 
+        SEL.StandardProperties.BrowseContextStandardChildren.Var : MOD.ModelingBrowseContext.VariablePropertyRule
+          MOD.ModelingBrowseContext.VariablePropertyRule.RequireProperty "HasStandardPropertyInfo"
+  @L0.assert VP.BrowseContext.HasChildContribution 
+    _ : VP.ChildContribution
+      VP.ChildContribution.HasParentNodeType MOD.ModelingBrowseContext.Variable
+      VP.ChildContribution.HasChildNodeType SEL.CategoryNode
+      VP.ChildContribution.HasRule 
+        SEL.StandardProperties.BrowseContextStandardChildren.Cat : SEL.VariablePropertyCategoryRule
+  @L0.assert VP.BrowseContext.HasVisualsContribution
+    _ : VP.VisualsContribution
+      VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
+      VP.VisualsContribution.HasRule
+        SEL.StandardProperties.BrowseContextStandardChildren.Sorter : SEL.StandardPropertySorterRuleType
+
+SEL.StandardProperties.BrowseContextWithoutChildren <T VP.BrowseContext
+  @L0.assert VP.BrowseContext.HasVisualsContribution
+    _ : VP.VisualsContribution
+      VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
+      VP.VisualsContribution.HasRule SEL.VariablePropertyLabelRule
+  @L0.assert VP.BrowseContext.HasVisualsContribution
+    _ : VP.VisualsContribution
+      VP.VisualsContribution.HasNodeType SEL.CategoryNode
+      VP.VisualsContribution.HasRule SEL.CategoryNodeLabelRule
+  @L0.assert VP.BrowseContext.HasVisualsContribution
+    _ : VP.VisualsContribution
+      VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
+      VP.VisualsContribution.HasRule SEL.VariablePropertyModifierRule
+  @L0.assert VP.BrowseContext.HasVisualsContribution
+    _ : VP.VisualsContribution
+      VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
+      VP.VisualsContribution.HasRule SEL.VariableDecorationRule
+  @L0.assert VP.BrowseContext.HasVisualsContribution
+    _ : VP.VisualsContribution
+      VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
+      VP.VisualsContribution.HasRule SEL.VariableColoringDecorationRule
+  @L0.assert VP.BrowseContext.HasVisualsContribution
+    _ : VP.VisualsContribution
+      VP.VisualsContribution.HasNodeType SEL.CategoryNode
+      VP.VisualsContribution.HasRule SEL.CategoryDecorationRule
+
+