]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DATA = <http://www.simantics.org/Datatypes-1.1>
3 SEL = <http://www.simantics.org/SelectionView-1.2>
4 SWT = <http://www.simantics.org/SWT-1.0>
5 DOC = <http://www.simantics.org/Documentation-1.2>
6 FUNCTIONS = <http://www.simantics.org/SWT-1.0/Functions>
7 LITERALS = <http://www.simantics.org/SWT-1.0/Literals>
8
9 PROPERTIES = SWT.Properties : L0.Library
10
11 defAttribute : L0.Template
12     @template %subject %range
13         %subject <R L0.HasProperty : DOC.Document.AttributeRelation : L0.FunctionalRelation
14             L0.HasRange %range
15
16 defExtraAttribute : L0.Template
17     @template %subject %range 
18         %subject <R L0.HasProperty : L0.FunctionalRelation
19             L0.HasRange %range
20             
21 PROPERTIES.ParameterType <T SEL.GenericParameterType
22   >-- PROPERTIES.ParameterType.sclValueProperty --> L0.String <R L0.HasProperty : L0.FunctionalRelation
23   @L0.assert SEL.HasDisplayValue
24     _ : L0.Value
25       L0.HasValueType "String"
26       SEL.HasDisplayColumn "HasDisplayValue"
27       L0.ConvertsToValueWith FUNCTIONS.propertyDisplayValue : L0.ExternalValue
28       SEL.HasCustomModifier FUNCTIONS.propertyDisplayValueModifier : L0.Function
29
30 /*                  
31 PROPERTIES.background : PROPERTIES.ParameterType
32     @defAttribute DATA.RGB.Integer
33     L0.RequiresValueType "(Integer,Integer,Integer)"
34
35 PROPERTIES.foreground : PROPERTIES.ParameterType
36     @defAttribute DATA.RGB.Integer
37     L0.RequiresValueType "(Integer,Integer,Integer)"
38
39 PROPERTIES.font : PROPERTIES.ParameterType
40     @defAttribute DATA.Font
41     L0.RequiresValueType "(String,Integer,String)"
42
43 PROPERTIES.extendedMargins : PROPERTIES.ParameterType
44     @defAttribute LITERALS.Margins
45     L0.RequiresValueType "(Integer,Integer,Integer,Integer)"
46
47 PROPERTIES.text : PROPERTIES.ParameterType
48     @defAttribute L0.String
49     L0.RequiresValueType "String"
50
51 PROPERTIES.numColumns : PROPERTIES.ParameterType
52     @defAttribute L0.Integer
53     L0.RequiresValueType "Integer"
54
55 PROPERTIES.grabVertical : PROPERTIES.ParameterType
56     @defAttribute L0.Boolean
57     L0.RequiresValueType "Boolean"
58
59 PROPERTIES.grabHorizontal : PROPERTIES.ParameterType
60     @defAttribute L0.Boolean
61     L0.RequiresValueType "Boolean"
62
63 PROPERTIES.browseContext : PROPERTIES.ParameterType
64     @defAttribute L0.String
65     L0.RequiresValueType "String"
66
67 PROPERTIES.explorerInput : PROPERTIES.ParameterType <R L0.HasProperty : DOC.Document.AttributeRelation : L0.FunctionalRelation
68     L0.RequiresValueType "Variable"
69
70 PROPERTIES.columns : PROPERTIES.ParameterType
71     @defAttribute LITERALS.Columns
72     L0.RequiresValueType "Columns"
73
74 PROPERTIES.editingColumn : PROPERTIES.ParameterType
75     @defAttribute L0.String
76     L0.RequiresValueType "String"
77
78 PROPERTIES.available : PROPERTIES.ParameterType <R L0.HasProperty : DOC.Document.AttributeRelation : L0.FunctionalRelation
79     L0.RequiresValueType "[String]"
80
81 PROPERTIES.selected : PROPERTIES.ParameterType
82     @defAttribute L0.String
83     L0.RequiresValueType "String"
84
85 PROPERTIES.onModify <R L0.HasProperty : PROPERTIES.ParameterType : DOC.Document.AttributeRelation : L0.FunctionalRelation
86     ==> "EventHandler"
87
88 PROPERTIES.onPress <R L0.HasProperty : PROPERTIES.ParameterType : DOC.Document.AttributeRelation : L0.FunctionalRelation
89     ==> "EventHandler"
90 */
91