]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.ontology/graph/DiagramPreferences.pgraph
Change L0.Value => L0.Property to fix variable exceptions
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / DiagramPreferences.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 G2D = <http://www.simantics.org/G2D-1.1>
3 DIA = <http://www.simantics.org/Diagram-2.2>
4
5 //// Diagram-specific settings
6
7 DIA.HasPageDescription <R L0.HasProperty : L0.FunctionalRelation
8     --> DIA.PageDescription
9
10 DIA.PageDescription <T L0.Property
11     @L0.singleProperty DIA.PageDescription.Size
12     @L0.singleProperty DIA.PageDescription.Orientation
13     @L0.singleProperty DIA.PageDescription.Margins
14     >-- DIA.PageDescription.Size --> G2D.Point2D <R L0.HasProperty : L0.FunctionalRelation
15         L0.HasLabel "Page Size"
16     >-- DIA.PageDescription.Orientation --> DIA.Orientation <R L0.IsRelatedTo : L0.FunctionalRelation
17         L0.HasLabel "Page Orientation"
18     >-- DIA.PageDescription.Margins --> DIA.Margins <R L0.HasProperty : L0.FunctionalRelation
19         L0.HasLabel "Margins"
20
21 DIA.Orientation <T L0.Value
22     @L0.tag L0.Enumeration
23 DIA.Orientation.Portrait : DIA.Orientation
24 DIA.Orientation.Landscape : DIA.Orientation
25
26 DIA.Margins <T L0.Value
27     @L0.singleProperty DIA.PageDescription.Margins.Top
28     @L0.singleProperty DIA.PageDescription.Margins.Bottom
29     @L0.singleProperty DIA.PageDescription.Margins.Left
30     @L0.singleProperty DIA.PageDescription.Margins.Right
31     >-- DIA.PageDescription.Margins.Top --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
32         L0.HasLabel "Top Margin"
33     >-- DIA.PageDescription.Margins.Bottom --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
34         L0.HasLabel "Bottom Margin"
35     >-- DIA.PageDescription.Margins.Left --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
36         L0.HasLabel "Left Margin"
37     >-- DIA.PageDescription.Margins.Right --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
38         L0.HasLabel "Right Margin"
39
40 DIA.DisplayPageSize
41     @L0.defTag 
42
43 DIA.DisplayMargins
44     @L0.defTag
45
46 DIA.DisplayGrid
47     @L0.defTag 
48
49 DIA.DisplayRuler
50     @L0.defTag 
51
52 DIA.HasGridSize <R L0.HasProperty : L0.FunctionalRelation
53     L0.HasLabel "Grid Size"
54     --> L0.Double
55
56 DIA.NavigationEnabled <R L0.HasProperty
57     L0.HasDescription "Boolean value indicating if navigation is enabled or not. Default is true."
58     --> L0.Boolean
59
60 //// Diagram editor state properties
61
62 DIA.HasEditorState <R L0.HasProperty : L0.FunctionalRelation
63     <-- DIA.Diagram
64     --> DIA.EditorState <T L0.Property
65         >-- DIA.EditorState.ViewTransform --> G2D.Transform <R L0.HasProperty : L0.FunctionalRelation
66             L0.HasDescription "For storing the current view transformation of a diagram editor." 
67         >-- DIA.EditorState.Selection --> DIA.Element <R L0.IsRelatedTo
68             L0.HasDescription "For storing the current selection of elements in a diagram editor." 
69         >-- DIA.EditorState.ToolMode --> L0.String <R L0.IsRelatedTo : L0.FunctionalRelation
70             L0.HasDescription "For storing the current tool mode of the diagram editor."