]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.views.ontology/graph/Views.pgraph
c91515096fb6bc15d53440f4aa6fab826c882a84
[simantics/platform.git] / bundles / org.simantics.views.ontology / graph / Views.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 L0X = <http://www.simantics.org/Layer0X-1.1>
3 SG = <http://www.simantics.org/Scenegraph-1.1>
4 SEL = <http://www.simantics.org/SelectionView-1.2>
5
6 Views = <http://www.simantics.org/Views-1.2> : L0.Ontology
7     @L0.new
8     L0.HasResourceClass "org.simantics.views.ontology.ViewsResources"
9
10 Views.ParameterType <T L0.FunctionalRelation
11   @L0.assert SEL.HasDisplayProperty
12     _ : SEL.DisplayProperty
13   @L0.assert SEL.HasDisplayValue
14     _ : SEL.DisplayValue
15   @L0.assert SEL.HasDisplayUnit
16     _ : SEL.DisplayUnit
17   @L0.assert SEL.HasStandardPropertyInfo
18     Views.CategoryHidden : SEL.StandardPropertyInfo
19       SEL.StandardPropertyInfo.CategoryName ""
20       SEL.StandardPropertyInfo.CategorySortingName ""
21       SEL.StandardPropertyInfo.IsHidden true
22   
23 Views.View <T L0.Entity    
24
25 Views.Action <T L0.Entity
26
27 Views.Parameter <T L0.Value
28     @L0.assert 
29         L0.ConvertsToValueWith 
30         Views.Functions.parameterValue : L0.ExternalValue
31
32 Views.HasInputSource <R L0.DependsOn : L0.FunctionalRelation
33 Views.WorkbenchSelectionInputSource : L0.Entity
34
35 Views.onLoaded ==> "WriteGraph => Variable -> Variable -> Boolean" <R L0.HasProperty : L0.FunctionalRelation
36 Views.onInputChanged ==> "Variable -> Boolean" <R L0.HasProperty : L0.FunctionalRelation
37
38 Views.Wizard <T Views.Action
39 Views.Wizard.Title <R L0.HasProperty : L0.FunctionalRelation
40 Views.Wizard.Pages <R L0.DependsOn
41 Views.Wizard.FinishAction <R L0.DependsOn
42
43 Views.Wizard.Page <T L0.Entity
44 Views.Wizard.Page.Title <R L0.HasProperty : L0.FunctionalRelation
45 Views.Wizard.Page.Control <R L0.DependsOn
46
47 Views.ReadFactory <T L0.Entity
48
49 Views.Functions : L0.Library
50
51 Views.Functions.singleResourceSelection : L0.Function
52   L0.HasValueType "a"
53
54 Views.ResourceURI <T L0.Value
55     @L0.assert L0.HasValueType "String"
56     @L0.assert 
57         L0.ConvertsToValueWith 
58         Views.Functions.resourceURI : L0.ExternalValue
59 Views.ResourceURI.HasResource <R L0.DependsOn : L0.FunctionalRelation
60
61 // Controls
62
63 Views.Control <T SG.Node
64   >-- Views.Control.layoutData ==> "GridData" <R SG.Node.HasProperty : L0.FunctionalRelation
65   >-- Views.Control.background ==> "(Integer,Integer,Integer)" <R SG.Node.HasProperty : L0.FunctionalRelation
66   >-- Views.Control.foreground ==> "(Integer,Integer,Integer)" <R SG.Node.HasProperty : L0.FunctionalRelation
67   >-- Views.Control.font ==> "(String,Integer,String)" <R SG.Node.HasProperty : L0.FunctionalRelation
68   >-- Views.Control.style ==> "Integer" <R SG.Node.HasProperty : L0.FunctionalRelation
69   @L0.assert Views.Control.layoutData
70     _ : Views.GridLayout.GridData
71
72 Views.Control.Style <T L0.Value
73   @L0.assert L0.HasValueType "Integer" 
74   @L0.assert 
75     L0.ConvertsToValueWith 
76     Views.Functions.style : L0.ExternalValue
77   >-- Views.Control.Style.HasConstant --> Views.Control.Style.Constant <R L0.HasProperty
78   
79 Views.Control.Style.Constant <T L0.Integer
80
81 Views.Control.Style.Constant.None = 0 : L0.Integer
82 Views.Control.Style.Constant.Multi = 2 : L0.Integer
83 Views.Control.Style.Constant.Push = 8 : L0.Integer
84 Views.Control.Style.Constant.ReadOnly = 8 : L0.Integer
85 Views.Control.Style.Constant.Check = 32 : L0.Integer
86 Views.Control.Style.Constant.Wrap = 64 : L0.Integer
87 Views.Control.Style.Constant.HScroll = 256 : L0.Integer
88 Views.Control.Style.Constant.VScroll = 512 : L0.Integer
89 Views.Control.Style.Constant.Border = 2048 : L0.Integer
90 Views.Control.Style.Constant.FullSelection = 65536 : L0.Integer
91 Views.Control.Style.Constant.NoFocus = 524288 : L0.Integer
92
93 Views.Control.style1 : L0.Template
94     @template %control %constant1
95         %control
96             Views.Control.style _ : Views.Control.Style
97                 Views.Control.Style.HasConstant %constant1
98
99 Views.Control.style2 : L0.Template
100     @template %control %constant1 %constant2
101         %control
102             Views.Control.style _ : Views.Control.Style
103                 Views.Control.Style.HasConstant %constant1
104                 Views.Control.Style.HasConstant %constant2
105
106 Views.Control.style3 : L0.Template
107     @template %control %constant1 %constant2 %constant3
108         %control
109             Views.Control.style _ : Views.Control.Style
110                 Views.Control.Style.HasConstant %constant1
111                 Views.Control.Style.HasConstant %constant2
112                 Views.Control.Style.HasConstant %constant3
113
114 Views.Control.style4 : L0.Template
115     @template %control %constant1 %constant2 %constant3 %constant4
116         %control
117             Views.Control.style _ : Views.Control.Style
118                 Views.Control.Style.HasConstant %constant1
119                 Views.Control.Style.HasConstant %constant2
120                 Views.Control.Style.HasConstant %constant3
121                 Views.Control.Style.HasConstant %constant4
122
123 Views.Control.style5 : L0.Template
124     @template %control %constant1 %constant2 %constant3 %constant4 %constant5
125         %control
126             Views.Control.style _ : Views.Control.Style
127                 Views.Control.Style.HasConstant %constant1
128                 Views.Control.Style.HasConstant %constant2
129                 Views.Control.Style.HasConstant %constant3
130                 Views.Control.Style.HasConstant %constant4
131                 Views.Control.Style.HasConstant %constant5
132
133 Views.Control.gridData : L0.Template
134     @template %control %hgrab %vgrab %hspan
135         %control
136           Views.Control.layoutData _ : Views.GridLayout.GridData
137             Views.GridLayout.GridData.horizontalGrab %hgrab
138             Views.GridLayout.GridData.verticalGrab %vgrab
139             Views.GridLayout.GridData.horizontalSpan %hspan
140
141 Views.Alternative <T Views.Control
142     >-- Views.Alternative.condition ==> "Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
143     @L0.assert Views.Control.layoutData
144         _ : Views.GridLayout.GridData
145             Views.GridLayout.GridData.horizontalGrab true
146             Views.GridLayout.GridData.verticalGrab true
147     
148
149 Views.Composite <T Views.Control
150   >-- Views.Composite.layout ==> "GridLayout" <R SG.Node.HasProperty : L0.FunctionalRelation
151   @L0.assert Views.Composite.layout 
152     _ : Views.GridLayout
153
154 Views.Composite.children1 : L0.Template
155     @template %control %c1
156         %control
157             SG.Node.children _ : L0.List
158                 @L0.list
159                     %c1
160
161 Views.Composite.children2 : L0.Template
162     @template %control %c1 %c2
163         %control
164             SG.Node.children _ : L0.List
165               @L0.list %c1 %c2
166
167 Views.Composite.children3 : L0.Template
168     @template %control %c1 %c2 %c3
169         %control
170             SG.Node.children _ : L0.List
171               @L0.list %c1 %c2 %c3
172
173
174 Views.ScrolledComposite <T Views.Composite
175 Views.TabFolder <T Views.Composite
176   >-- Views.TabFolder.childNames ==> "[String]" <R SG.Node.HasProperty : L0.FunctionalRelation
177   @L0.assert Views.TabFolder.childNames
178     Views.Functions.tabChildNames : L0.Function
179       L0.HasValueType "[String]"
180     
181 Views.SashForm <T Views.Composite
182   >-- Views.SashForm.weights ==> "Vector Integer" <R SG.Node.HasProperty : L0.FunctionalRelation
183   >-- Views.SashForm.orientation ==> "Integer" <R SG.Node.HasProperty : L0.FunctionalRelation
184   @L0.assert Views.SashForm.orientation Views.SashForm.Horizontal
185
186 Views.SashForm.Horizontal = 256 : L0.Integer
187 Views.SashForm.Vertical = 512 : L0.Integer
188
189 Views.Combo <T Views.Control
190   >-- Views.Combo.available ==> "[(String, Resource)]" <R SG.Node.HasProperty : L0.FunctionalRelation
191   >-- Views.Combo.selected ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
192   >-- Views.Combo.modifier ==> "String -> String" <R SG.Node.HasProperty : L0.FunctionalRelation
193
194 Views.CCombo <T Views.Combo
195
196 Views.TextContainer <T Views.Control
197   >-- Views.TextContainer.text ==> "String" <R SG.Node.HasProperty : Views.ParameterType
198
199 Views.TextReceiver <T Views.Control
200   >-- Views.TextReceiver.modifier ==> "String -> String" <R SG.Node.HasProperty : L0.FunctionalRelation
201   >-- Views.TextReceiver.validator ==> "String -> String" <R SG.Node.HasProperty : L0.FunctionalRelation
202
203 Views.Label <T Views.TextContainer
204 Views.Text <T Views.TextContainer <T Views.TextReceiver
205 Views.StyledText <T Views.Text
206 Views.TrackedText <T Views.TextContainer <T Views.TextReceiver
207   >-- Views.TrackedText.invalidBackground ==> "(Integer,Integer,Integer)" <R SG.Node.HasProperty : L0.FunctionalRelation
208   >-- Views.TrackedText.inactiveBackground ==> "(Integer,Integer,Integer)" <R SG.Node.HasProperty : L0.FunctionalRelation
209   >-- Views.TrackedText.hoverBackground ==> "(Integer,Integer,Integer)" <R SG.Node.HasProperty : L0.FunctionalRelation
210   >-- Views.TrackedText.editingBackground ==> "(Integer,Integer,Integer)" <R SG.Node.HasProperty : L0.FunctionalRelation
211
212 Views.TrackedStyledText <T Views.TrackedText
213
214 Views.Button <T Views.TextContainer
215   >-- Views.Button.text ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
216   >-- Views.Button.tooltip ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
217   >-- Views.Button.modifier --> L0.Value <R SG.Node.HasProperty : L0.FunctionalRelation
218   >-- Views.Button.image ==> "ByteArray" <R SG.Node.HasProperty : L0.FunctionalRelation
219
220 Views.Browser <T Views.Control
221   >-- Views.Browser.document ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
222   >-- Views.Browser.variable ==> "Variable" <R SG.Node.HasProperty : L0.FunctionalRelation
223
224 Views.WikiBrowser <T Views.Control
225   >-- Views.WikiBrowser.document ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
226   >-- Views.WikiBrowser.variable ==> "Variable" <R SG.Node.HasProperty : L0.FunctionalRelation
227   >-- Views.WikiBrowser.navigate ==> "String -> Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
228
229 Views.Explorer <T Views.Composite
230   >-- Views.Explorer.input ==> "a" <R SG.Node.HasProperty : L0.FunctionalRelation
231   >-- Views.Explorer.selectionListener ==> "a -> Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
232   >-- Views.Explorer.browseContext ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
233   >-- Views.Explorer.contextMenuId ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
234   >-- Views.Explorer.uiContext ==> "String" <R SG.Node.HasProperty : L0.FunctionalRelation
235   >-- Views.Explorer.useNodeBrowseContexts ==> "Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
236   >-- Views.Explorer.useNodeActionContexts ==> "Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
237   >-- Views.Explorer.columns ==> "[ColumnBean]" <R SG.Node.HasProperty : L0.FunctionalRelation
238   >-- Views.Explorer.editingColumns ==> "[ColumnBean]" <R SG.Node.HasProperty : L0.FunctionalRelation
239   >-- Views.Explorer.columnsVisible ==> "Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
240   >-- Views.Explorer.displayFilter ==> "Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
241   >-- Views.Explorer.publishSelection ==> "Boolean" <R SG.Node.HasProperty : L0.FunctionalRelation
242   >-- Views.Explorer.persistor ==> "StatePersistor" <R SG.Node.HasProperty : L0.FunctionalRelation
243
244 Views.Explorer.ColumnList <T L0.List
245   @L0.assert L0.HasValueType "[ColumnBean]"
246   @L0.assert L0.ConvertsToValueWith
247     Views.Functions.columnList : L0.ExternalValue
248   
249 Views.Explorer.Column <T L0.Value
250   >-- Views.Explorer.Column.HasKey ==> "String" <R L0.HasProperty : L0.FunctionalRelation
251   >-- Views.Explorer.Column.HasLabel ==> "String" <R L0.HasProperty : L0.FunctionalRelation
252   >-- Views.Explorer.Column.HasAlignment ==> "String" <R L0.HasProperty : L0.FunctionalRelation
253   >-- Views.Explorer.Column.HasWidth ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
254   >-- Views.Explorer.Column.HasTooltip ==> "String" <R L0.HasProperty : L0.FunctionalRelation
255   >-- Views.Explorer.Column.HasGrab ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
256   >-- Views.Explorer.Column.HasWeight ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
257
258 Views.Explorer.Column.full : L0.Template
259     @template %explorer %key %label %alignment %width %tooltip %grab %weight
260         %explorer : Views.Explorer.Column
261             Views.Explorer.Column.HasKey %key
262             Views.Explorer.Column.HasLabel %label
263             Views.Explorer.Column.HasAlignment %alignment
264             Views.Explorer.Column.HasWidth %width
265             Views.Explorer.Column.HasTooltip %tooltip
266             Views.Explorer.Column.HasGrab %grab
267             Views.Explorer.Column.HasWeight %weight
268
269 //Views.Explorer.Selection : Views.ParameterDefinition
270
271 Views.Layout <T L0.Value
272 Views.GridLayout <T Views.Layout
273   @L0.assert L0.HasValueType "GridLayout"
274   @L0.assert
275     L0.ConvertsToValueWith
276     Views.Functions.gridLayout : L0.ExternalValue
277   >-- Views.GridLayout.columnCount ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
278   >-- Views.GridLayout.horizontalSpacing ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
279   >-- Views.GridLayout.verticalSpacing ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
280   >-- Views.GridLayout.extendedMargins ==> "a" <R L0.HasProperty : L0.FunctionalRelation
281   @L0.assert Views.GridLayout.columnCount 1
282   @L0.assert Views.GridLayout.horizontalSpacing 0
283   @L0.assert Views.GridLayout.verticalSpacing 0
284   @L0.assert Views.GridLayout.extendedMargins 
285     (2,2,2,2) : Views.GridLayout.ExtendedMargins
286
287 Views.GridLayout.ExtendedMargins <T L0.Literal
288     @L0.assert L0.HasDataType $(Integer,Integer,Integer,Integer)
289     
290 Views.GridLayout.GridData <T L0.Value
291   @L0.assert L0.HasValueType "GridData"
292   @L0.assert
293     L0.ConvertsToValueWith
294     Views.Functions.gridData : L0.ExternalValue
295   >-- Views.GridLayout.GridData.horizontalSpan ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
296   >-- Views.GridLayout.GridData.horizontalGrab ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
297   >-- Views.GridLayout.GridData.verticalGrab ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
298   >-- Views.GridLayout.GridData.preferredWidth ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
299   >-- Views.GridLayout.GridData.preferredHeight ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
300   >-- Views.GridLayout.GridData.horizontalAlignment ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
301   >-- Views.GridLayout.GridData.verticalAlignment ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
302   @L0.assert Views.GridLayout.GridData.horizontalSpan 1
303   @L0.assert Views.GridLayout.GridData.horizontalGrab false
304   @L0.assert Views.GridLayout.GridData.verticalGrab false
305   @L0.assert Views.GridLayout.GridData.preferredWidth -1
306   @L0.assert Views.GridLayout.GridData.preferredHeight -1
307   @L0.assert Views.GridLayout.GridData.horizontalAlignment Views.GridLayout.GridData.FILL
308   @L0.assert Views.GridLayout.GridData.verticalAlignment Views.GridLayout.GridData.FILL
309
310 Views.GridLayout.GridData.BEGINNING = 1 : L0.Integer
311 Views.GridLayout.GridData.CENTER = 2 : L0.Integer
312 Views.GridLayout.GridData.END = 3 : L0.Integer
313 Views.GridLayout.GridData.FILL = 4 : L0.Integer
314
315 Views.SingleColumn 
316   @Views.Explorer.Column.full "single" "Entries" "LEFT" 150 "Entries" true 1
317
318 Views.BundleImage <T L0.Value
319   @L0.assert L0.HasValueType "ByteArray"
320   @L0.assert
321     L0.ConvertsToValueWith
322     Views.Functions.bundleImage : L0.ExternalValue
323   >-- Views.BundleImage.HasReference --> L0.String <R L0.HasProperty : L0.FunctionalRelation
324
325 Views.MessageDialog <T L0.Entity
326   >-- Views.MessageDialog.HasType --> Views.MessageDialog.Type <R L0.DependsOn : L0.FunctionalRelation
327   >-- Views.MessageDialog.HasCustomArea --> Views.Control <R L0.DependsOn : L0.FunctionalRelation
328   >-- Views.MessageDialog.title ==> "String" <R L0.HasProperty : L0.FunctionalRelation
329   >-- Views.MessageDialog.message ==> "String" <R L0.HasProperty : L0.FunctionalRelation
330   >-- Views.MessageDialog.buttonLabels ==> "Vector String" <R L0.HasProperty : L0.FunctionalRelation
331   >-- Views.MessageDialog.defaultButton ==> "Integer" <R L0.HasProperty : L0.FunctionalRelation
332   
333 Views.MessageDialog.Type <T L0.Value
334     @L0.tag L0.Enumeration
335     
336 Views.MessageDialog.Type.Error : Views.MessageDialog.Type
337 Views.MessageDialog.Type.Information : Views.MessageDialog.Type
338 Views.MessageDialog.Type.Warning : Views.MessageDialog.Type
339 Views.MessageDialog.Type.Confirm : Views.MessageDialog.Type
340 Views.MessageDialog.Type.Question : Views.MessageDialog.Type
341 Views.MessageDialog.Type.QuestionWithCancel : Views.MessageDialog.Type
342
343 Views.ErrorDialog <T Views.MessageDialog
344   @L0.assert Views.MessageDialog.HasType Views.MessageDialog.Type.Error
345   @L0.assert Views.MessageDialog.buttonLabels ["OK"]
346   @L0.assert Views.MessageDialog.defaultButton 0
347   
348 Views.QuestionDialog <T Views.ErrorDialog
349   @L0.assert Views.MessageDialog.HasType Views.MessageDialog.Type.Confirm
350   @L0.assert Views.MessageDialog.buttonLabels ["OK","Cancel"]
351   @L0.assert Views.MessageDialog.defaultButton 0
352