]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.swt.ontology/graph/Properties.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.document.swt.ontology / graph / Properties.pgraph
diff --git a/bundles/org.simantics.document.swt.ontology/graph/Properties.pgraph b/bundles/org.simantics.document.swt.ontology/graph/Properties.pgraph
new file mode 100644 (file)
index 0000000..b4da827
--- /dev/null
@@ -0,0 +1,91 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+DATA = <http://www.simantics.org/Datatypes-1.1>
+SEL = <http://www.simantics.org/SelectionView-1.2>
+SWT = <http://www.simantics.org/SWT-1.0>
+DOC = <http://www.simantics.org/Documentation-1.2>
+FUNCTIONS = <http://www.simantics.org/SWT-1.0/Functions>
+LITERALS = <http://www.simantics.org/SWT-1.0/Literals>
+
+PROPERTIES = SWT.Properties : L0.Library
+
+defAttribute : L0.Template
+    @template %subject %range
+        %subject <R L0.HasProperty : DOC.Document.AttributeRelation : L0.FunctionalRelation
+            L0.HasRange %range
+
+defExtraAttribute : L0.Template
+    @template %subject %range 
+        %subject <R L0.HasProperty : L0.FunctionalRelation
+            L0.HasRange %range
+            
+PROPERTIES.ParameterType <T SEL.GenericParameterType
+  >-- PROPERTIES.ParameterType.sclValueProperty --> L0.String <R L0.HasProperty : L0.FunctionalRelation
+  @L0.assert SEL.HasDisplayValue
+    _ : L0.Value
+      L0.HasValueType "String"
+      SEL.HasDisplayColumn "HasDisplayValue"
+      L0.ConvertsToValueWith FUNCTIONS.propertyDisplayValue : L0.ExternalValue
+      SEL.HasCustomModifier FUNCTIONS.propertyDisplayValueModifier : L0.Function
+
+/*                  
+PROPERTIES.background : PROPERTIES.ParameterType
+    @defAttribute DATA.RGB.Integer
+    L0.RequiresValueType "(Integer,Integer,Integer)"
+
+PROPERTIES.foreground : PROPERTIES.ParameterType
+    @defAttribute DATA.RGB.Integer
+    L0.RequiresValueType "(Integer,Integer,Integer)"
+
+PROPERTIES.font : PROPERTIES.ParameterType
+    @defAttribute DATA.Font
+    L0.RequiresValueType "(String,Integer,String)"
+
+PROPERTIES.extendedMargins : PROPERTIES.ParameterType
+    @defAttribute LITERALS.Margins
+    L0.RequiresValueType "(Integer,Integer,Integer,Integer)"
+
+PROPERTIES.text : PROPERTIES.ParameterType
+    @defAttribute L0.String
+    L0.RequiresValueType "String"
+
+PROPERTIES.numColumns : PROPERTIES.ParameterType
+    @defAttribute L0.Integer
+    L0.RequiresValueType "Integer"
+
+PROPERTIES.grabVertical : PROPERTIES.ParameterType
+    @defAttribute L0.Boolean
+    L0.RequiresValueType "Boolean"
+
+PROPERTIES.grabHorizontal : PROPERTIES.ParameterType
+    @defAttribute L0.Boolean
+    L0.RequiresValueType "Boolean"
+
+PROPERTIES.browseContext : PROPERTIES.ParameterType
+    @defAttribute L0.String
+    L0.RequiresValueType "String"
+
+PROPERTIES.explorerInput : PROPERTIES.ParameterType <R L0.HasProperty : DOC.Document.AttributeRelation : L0.FunctionalRelation
+    L0.RequiresValueType "Variable"
+
+PROPERTIES.columns : PROPERTIES.ParameterType
+    @defAttribute LITERALS.Columns
+    L0.RequiresValueType "Columns"
+
+PROPERTIES.editingColumn : PROPERTIES.ParameterType
+    @defAttribute L0.String
+    L0.RequiresValueType "String"
+
+PROPERTIES.available : PROPERTIES.ParameterType <R L0.HasProperty : DOC.Document.AttributeRelation : L0.FunctionalRelation
+    L0.RequiresValueType "[String]"
+
+PROPERTIES.selected : PROPERTIES.ParameterType
+    @defAttribute L0.String
+    L0.RequiresValueType "String"
+
+PROPERTIES.onModify <R L0.HasProperty : PROPERTIES.ParameterType : DOC.Document.AttributeRelation : L0.FunctionalRelation
+    ==> "EventHandler"
+
+PROPERTIES.onPress <R L0.HasProperty : PROPERTIES.ParameterType : DOC.Document.AttributeRelation : L0.FunctionalRelation
+    ==> "EventHandler"
+*/
+            
\ No newline at end of file