]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.event.ontology/graph/EventView.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.event.ontology / graph / EventView.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 EVENT = <http://www.simantics.org/Event-1.2>
3 VP = <http://www.simantics.org/Viewpoint-1.2>
4 PROJECT = <http://www.simantics.org/Project-1.2>
5 COLOR = <http://www.simantics.org/Color-1.1>
6 SILK = <http://www.simantics.org/Silk-1.1>
7 EVENT = <http://www.simantics.org/Event-1.2>
8
9 VIEW = EVENT.View : L0.Library
10     L0.HasResourceClass "org.simantics.event.ontology.EventViewResource"
11
12 //--------------------------------------------------------------------------
13 // Preferences
14
15 VIEW.HideInfoEvents <R L0.HasProperty : L0.FunctionalRelation
16     L0.HasRange L0.Boolean
17
18 VIEW.HideWarningEvents <R L0.HasProperty : L0.FunctionalRelation
19     L0.HasRange L0.Boolean
20
21 VIEW.HideReturnEvents <R L0.HasProperty : L0.FunctionalRelation
22     L0.HasRange L0.Boolean
23
24 VIEW.ShowHiddenEvents <R L0.HasProperty : L0.FunctionalRelation
25     L0.HasRange L0.Boolean
26
27 VIEW.ShowOnlyMilestones <R L0.HasProperty : L0.FunctionalRelation
28     L0.HasRange L0.Boolean
29
30 VIEW.ShowOnlyActiveEvents <R L0.HasProperty : L0.FunctionalRelation
31     L0.HasRange L0.Boolean
32
33 //--------------------------------------------------------------------------
34 // Browse context
35
36 EBC = VIEW.EventBrowseContext : VP.BrowseContext
37
38 // Rules
39 EBC.EventLogsRule : VP.ChildRule
40 EBC.EventsRule : VP.ChildRule
41 EBC.ProjectEventsRule : VP.ChildRule
42 EBC.EventLogLabelRule : VP.LabelRule
43 EBC.EventLabelRule : VP.LabelRule
44 EBC.EventImageRule : VP.ImageRule
45 EBC.EventLogImageRule : VP.ImageRule
46 EBC.EventDecorationRule : VP.LabelDecorationRule
47
48 // Viewpoint
49 EBC
50     //@VP.customChildRule PROJECT.Project   EBC.EventLogsRule   EVENT.EventLog
51     //@VP.customChildRule EVENT.EventLog    EBC.EventsRule      EVENT.Event
52     @VP.customChildRule PROJECT.Project   EBC.ProjectEventsRule EVENT.Event
53
54 // Labels
55 EBC
56     //@VP.customLabelRule EVENT.EventLog EBC.EventLogLabelRule
57     @VP.customLabelRule EVENT.Event    EBC.EventLabelRule
58
59 // Images
60 EBC
61     //@VP.constantImageRule EVENT.EventLog SILK.script
62     @VP.customImageRule EVENT.Event    EBC.EventImageRule
63
64 // Decorations
65 EBC
66     //VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
67     //    VP.VisualsContribution.HasNodeType EVENT.EventLog
68     //    VP.VisualsContribution.HasCondition _ : VP.HasStatementTest
69     //        VP.HasStatementTest.HasRelation EVENT.Hidden
70     //    VP.VisualsContribution.HasRule _ : VP.ConstantLabelDecorationRule
71     //        VP.ConstantLabelDecorationRule.HasForegroundColor (0.6, 0.6, 0.6) : COLOR.RGB
72
73     @VP.customLabelDecorationRule EVENT.Event EBC.EventDecorationRule
74
75 // Sorting
76 EBC
77     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
78         VP.VisualsContribution.HasNodeType PROJECT.Project
79         VP.VisualsContribution.HasRule VP.PassThruSorterRule
80
81
82 VIEW.ManualEventType : EVENT.EventType
83     L0.HasLabel "Manual"
84     L0.HasDescription "Events added manually by the user."
85     EVENT.EventType.severity 500
86     VP.ConstantImageRule.HasImage SILK.user