]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.template2d.ontology/graph/Profiles.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ontology / graph / Profiles.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>\r
2 L0X = <http://www.simantics.org/Layer0X-1.1>\r
3 DIA = <http://www.simantics.org/Diagram-2.2>\r
4 TEMPLATE2D = <http://www.simantics.org/ModelingTemplate2d-1.0>\r
5 G2D = <http://www.simantics.org/G2D-1.1>\r
6 SEL = <http://www.simantics.org/SelectionView-1.2>\r
7 \r
8 UIFUNC = <http://www.simantics.org/Template2dFunctions-1.0> : L0.Library\r
9     @L0.new\r
10 \r
11 TEMPLATE2D.Profiles : L0.Library\r
12 \r
13 \r
14 TEMPLATE2D.Profiles.VariableReference <T L0.Value\r
15   >-- TEMPLATE2D.Profiles.VariableReference.path --> L0.String <R L0.HasProperty : L0.FunctionalRelation\r
16   @L0.assert\r
17     L0.ConvertsToValueWith \r
18     UIFUNC.variableReference : L0.ExternalValue\r
19   @L0.assert\r
20     SEL.HasDisplayValue\r
21     _ : L0.Value\r
22       SEL.HasDisplayColumn "HasDisplayValue"\r
23       L0.HasValueType "String"\r
24       L0.ConvertsToValueWith UIFUNC.variableReferencePath : L0.ExternalValue\r
25       SEL.HasCustomModifier UIFUNC.variableReferenceModifier : L0.Function\r
26 \r
27 \r
28 groupStyleEntry : L0.Template\r
29     @template %subject %style %group\r
30         %subject : DIA.GroupStyleProfileEntry\r
31             DIA.ProfileEntry.HasStyle %style\r
32             DIA.ProfileEntry.HasGroup %group\r
33 \r
34 //-------------------------------------------------------------------------------\r
35 // Standard entries\r
36 \r
37 \r
38 TEMPLATE2D.DrawingFlagTableStyle : DIA.Style\r
39 TEMPLATE2D.DrawingTemplateStyle : DIA.Style\r
40 TEMPLATE2D.DrawingBorderStyle : DIA.Style\r
41 \r
42 TEMPLATE2D.DiagramGroup : DIA.Group\r
43 \r
44 \r
45 TEMPLATE2D.Profiles.DrawingBorder\r
46     L0.HasLabel "Diagram border"\r
47     @groupStyleEntry TEMPLATE2D.DrawingBorderStyle TEMPLATE2D.DiagramGroup\r
48 TEMPLATE2D.Profiles.DrawingFlagTables\r
49     L0.HasLabel "Diagram flag tables"\r
50     @groupStyleEntry TEMPLATE2D.DrawingFlagTableStyle TEMPLATE2D.DiagramGroup\r
51 TEMPLATE2D.Profiles.DrawingTemplate\r
52     L0.HasLabel "Diagram template"\r
53     @groupStyleEntry TEMPLATE2D.DrawingTemplateStyle TEMPLATE2D.DiagramGroup\r
54    \r
55   \r
56  \r