]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - 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
diff --git a/bundles/org.simantics.event.ontology/graph/EventView.pgraph b/bundles/org.simantics.event.ontology/graph/EventView.pgraph
new file mode 100644 (file)
index 0000000..6b07903
--- /dev/null
@@ -0,0 +1,86 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+EVENT = <http://www.simantics.org/Event-1.2>
+VP = <http://www.simantics.org/Viewpoint-1.2>
+PROJECT = <http://www.simantics.org/Project-1.2>
+COLOR = <http://www.simantics.org/Color-1.1>
+SILK = <http://www.simantics.org/Silk-1.1>
+EVENT = <http://www.simantics.org/Event-1.2>
+
+VIEW = EVENT.View : L0.Library
+    L0.HasResourceClass "org.simantics.event.ontology.EventViewResource"
+
+//--------------------------------------------------------------------------
+// Preferences
+
+VIEW.HideInfoEvents <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+VIEW.HideWarningEvents <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+VIEW.HideReturnEvents <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+VIEW.ShowHiddenEvents <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+VIEW.ShowOnlyMilestones <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+VIEW.ShowOnlyActiveEvents <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+//--------------------------------------------------------------------------
+// Browse context
+
+EBC = VIEW.EventBrowseContext : VP.BrowseContext
+
+// Rules
+EBC.EventLogsRule : VP.ChildRule
+EBC.EventsRule : VP.ChildRule
+EBC.ProjectEventsRule : VP.ChildRule
+EBC.EventLogLabelRule : VP.LabelRule
+EBC.EventLabelRule : VP.LabelRule
+EBC.EventImageRule : VP.ImageRule
+EBC.EventLogImageRule : VP.ImageRule
+EBC.EventDecorationRule : VP.LabelDecorationRule
+
+// Viewpoint
+EBC
+    //@VP.customChildRule PROJECT.Project   EBC.EventLogsRule   EVENT.EventLog
+    //@VP.customChildRule EVENT.EventLog    EBC.EventsRule      EVENT.Event
+    @VP.customChildRule PROJECT.Project   EBC.ProjectEventsRule EVENT.Event
+
+// Labels
+EBC
+    //@VP.customLabelRule EVENT.EventLog EBC.EventLogLabelRule
+    @VP.customLabelRule EVENT.Event    EBC.EventLabelRule
+
+// Images
+EBC
+    //@VP.constantImageRule EVENT.EventLog SILK.script
+    @VP.customImageRule EVENT.Event    EBC.EventImageRule
+
+// Decorations
+EBC
+    //VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
+    //    VP.VisualsContribution.HasNodeType EVENT.EventLog
+    //    VP.VisualsContribution.HasCondition _ : VP.HasStatementTest
+    //        VP.HasStatementTest.HasRelation EVENT.Hidden
+    //    VP.VisualsContribution.HasRule _ : VP.ConstantLabelDecorationRule
+    //        VP.ConstantLabelDecorationRule.HasForegroundColor (0.6, 0.6, 0.6) : COLOR.RGB
+
+    @VP.customLabelDecorationRule EVENT.Event EBC.EventDecorationRule
+
+// Sorting
+EBC
+    VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
+        VP.VisualsContribution.HasNodeType PROJECT.Project
+        VP.VisualsContribution.HasRule VP.PassThruSorterRule
+
+
+VIEW.ManualEventType : EVENT.EventType
+    L0.HasLabel "Manual"
+    L0.HasDescription "Events added manually by the user."
+    EVENT.EventType.severity 500
+    VP.ConstantImageRule.HasImage SILK.user