]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.ontology/graph/ProfilesView.pgraph
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / ProfilesView.pgraph
index 8f8b11f1c71b032d6d23e90d1bd1e72d0c7a2d84..ae326ca88b0144df4f50930c6c99f500bb846519 100644 (file)
-L0 = <http://www.simantics.org/Layer0-1.1>\r
-VP = <http://www.simantics.org/Viewpoint-1.2>\r
-DIA = <http://www.simantics.org/Diagram-2.2>\r
-BRO = <http://www.simantics.org/Browsing-1.1>\r
-VIEW = <http://www.simantics.org/Views-1.2>\r
-SG = <http://www.simantics.org/Scenegraph-1.1>\r
-\r
-BC = DIA.ProfilesBrowseContext : VP.BrowseContext\r
-\r
-// TODO: this .pgraph shouldn't be here, but in a separate "UI" ontology\r
-\r
-BC.Entry : VP.ResourceNodeType\r
-  VP.HasContentType "org.simantics.diagram.profile.view.ResourcePair"\r
-  VP.HasBundle "org.simantics.diagram.profile"\r
-BC.EntryLabelRule : VP.LabelRule\r
-BC.EntryImageRule : VP.ImageRule\r
-BC.EntryCheckRule : VP.CheckedStateRule\r
-\r
-// Viewpoint\r
-BC    \r
-    @VP.customLabelRule             BC.Entry                           BC.EntryLabelRule\r
-    @VP.customImageRule             BC.Entry                           BC.EntryImageRule\r
-    @VP.customCheckedStateRule      BC.Entry                           BC.EntryCheckRule\r
-    @VP.customChildRule L0.Entity \r
-        BC.DirectProfileRule : VP.ChildRule\r
-        BC.Entry\r
-    @VP.customChildRule BC.Entry \r
-        BC.EntryChildrenRule : VP.ChildRule\r
-        BC.Entry\r
-    VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution\r
-        VP.VisualsContribution.HasNodeType BC.Entry\r
-        VP.VisualsContribution.HasRule VP.PassThruSorterRule\r
-    VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution\r
-        VP.VisualsContribution.HasNodeType L0.Entity\r
-        VP.VisualsContribution.HasRule VP.PassThruSorterRule\r
-\r
-\r
-DIA.ProfilesView.AvailableProfiles : VIEW.ReadFactory\r
-DIA.ProfilesView.SelectedProfile : BRO.ReadFactory\r
-DIA.ProfilesView.ActiveProfileModifier : BRO.ModifyListener\r
-DIA.ProfilesView.ProfileEntrySelectionListener : BRO.Listener\r
-\r
-DIA.ProfilesView.ActiveRuntimeDiagramInputSource : BRO.InputSource\r
-\r
-DIA.ProfilesView.SelectedEntries : BRO.Parameter\r
-DIA.ProfilesView.SelectedAvailableEntries : BRO.Parameter\r
-\r
-DIA.ProfilesView.NewEntryGroup : BRO.Parameter\r
-DIA.ProfilesView.NewEntryStyle : BRO.Parameter\r
-\r
-DIA.ProfilesView : VIEW.TabFolder\r
-    VIEW.Control.layoutData _ : VIEW.GridLayout.GridData\r
-        VIEW.GridLayout.GridData.horizontalGrab true\r
-        VIEW.GridLayout.GridData.verticalGrab true\r
-    VIEW.HasInputSource DIA.ProfilesView.ActiveRuntimeDiagramInputSource \r
-    SG.Node.children _ : L0.List\r
-        @L0.list\r
-            DIA.ProfilesView.Active : VIEW.Composite\r
-                SG.Node.children _ : L0.List\r
-                    @L0.list\r
-                        DIA.ProfilesView.Active.Combo : VIEW.Combo\r
-                            @VIEW.Control.style1 VIEW.Control.Style.Constant.ReadOnly\r
-                            VIEW.Control.layoutData _ : VIEW.GridLayout.GridData\r
-                                VIEW.GridLayout.GridData.horizontalGrab true\r
-                            VIEW.Combo.available DIA.Profile.Functions.availableProfiles\r
-                            VIEW.Combo.selected DIA.Profile.Functions.selectedProfile\r
-                            VIEW.Combo.modifier DIA.Profile.Functions.activeProfileModifier\r
-                        DIA.ProfilesView.Active.Explorer : VIEW.Explorer\r
-                            @VIEW.Control.style2 VIEW.Control.Style.Constant.FullSelection VIEW.Control.Style.Constant.Check\r
-                            VIEW.Explorer.input DIA.Profile.Functions.singleResourceSelection\r
-                            VIEW.Control.layoutData _ : VIEW.GridLayout.GridData\r
-                                VIEW.GridLayout.GridData.horizontalGrab true\r
-                                VIEW.GridLayout.GridData.verticalGrab true\r
-                            VIEW.Explorer.columns _ : VIEW.Explorer.ColumnList\r
-                                @L0.list\r
-                                    VIEW.SingleColumn\r
-                            VIEW.Explorer.selectionListener DIA.Profile.Functions.profileEntrySelected\r
-                            VIEW.Explorer.browseContext _ : VIEW.ResourceURI\r
-                              VIEW.ResourceURI.HasResource BC\r
-                            VIEW.Explorer.columnsVisible false\r
-                            VIEW.Explorer.contextMenuId "#ProfilesPopup"\r
-        \r
-        \r
-            \r
-        \r
-                            /*\r
-BRO.Combo.SelectedItem DIA.ProfilesView.SelectedProfile\r
-BRO.Combo.Modifier DIA.ProfilesView.ActiveProfileModifier\r
-                \r
-                        _ : BRO.Button\r
-                            BRO.Button.Text "New profile"\r
-                            BRO.Button.Action DIA.ProfilesView.CreateProfileAction : BRO.Action\r
-                        _ : BRO.Button\r
-                            BRO.Button.Tooltip "Add entries"\r
-                            BRO.Button.Icon _ : BRO.BundleIcon\r
-                               BRO.BundleIcon.Bundle "com.famfamfam.silk"\r
-                               BRO.BundleIcon.Path "icons/bullet_add.png"\r
-                            BRO.Button.Action _ : BRO.Dialog\r
-                                BRO.Dialog.Title "Select from available entries"\r
-                                BRO.Dialog.Control _ : BRO.GraphExplorerComposite\r
-                                    BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Entries"\r
-                                    BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.SelectedAvailableEntries\r
-                                    BRO.GraphExplorerComposite.DisplayFilter true\r
-                                    BRO.Control.PreferredWidth 500\r
-                                    BRO.Control.PreferredHeight 500\r
-                                BRO.Dialog.FinishAction DIA.ProfilesView.AddEntriesAction : BRO.Action \r
-                        _ : BRO.Button\r
-                            BRO.Button.Tooltip "Remove entries"\r
-                            BRO.Button.Icon _ : BRO.BundleIcon\r
-                               BRO.BundleIcon.Bundle "com.famfamfam.silk"\r
-                               BRO.BundleIcon.Path "icons/bullet_delete.png"\r
-                            BRO.Button.Action DIA.ProfilesView.RemoveEntriesAction : BRO.Action\r
-                            */\r
-                            /*\r
-                        _ : BRO.GraphExplorerComposite\r
-                            BRO.GraphExplorerComposite.SelectionListener DIA.ProfilesView.ProfileEntrySelectionListener\r
-                            BRO.GraphExplorerComposite.BrowseContext BC\r
-                            BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.SelectedEntries\r
-                            BRO.GraphExplorerComposite.Check true\r
-                            BRO.Control.HorizontalSpan 4\r
-                            */\r
-                            /*\r
-            DIA.ProfilesView.Entries : BRO.Composite\r
-                BRO.Composite.Children _\r
-                    @L0.orderedSet\r
-                        _ : BRO.Button\r
-                            BRO.Button.Text "Create Entry"\r
-                            BRO.Button.Action _ : BRO.Wizard\r
-                                BRO.Wizard.Title "Create new profile entry"\r
-                                BRO.Wizard.FinishAction DIA.ProfilesView.CreateEntryAction : BRO.Action \r
-                                BRO.Wizard.Pages _\r
-                                    @L0.orderedSet\r
-                                        _ : BRO.WizardPage\r
-                                            BRO.WizardPage.Title "Select group"\r
-                                            BRO.WizardPage.Control _ : BRO.GraphExplorerComposite\r
-                                                BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Groups" \r
-                                                BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.NewEntryGroup\r
-                                        _ : BRO.WizardPage\r
-                                            BRO.WizardPage.Title "Select style"\r
-                                            BRO.WizardPage.Control _ : BRO.GraphExplorerComposite\r
-                                                BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Styles" \r
-                                                BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.NewEntryStyle\r
-                        _ : BRO.GraphExplorerComposite\r
-                            BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Entries"    \r
-            DIA.ProfilesView.Groups : BRO.Composite\r
-                BRO.Composite.Children _\r
-                    @L0.orderedSet\r
-                        _ : BRO.Button\r
-                            BRO.Button.Text "Create SCL group"\r
-                            BRO.Button.Action DIA.ProfilesView.CreateGroupAction : BRO.Action\r
-                        _ : BRO.GraphExplorerComposite\r
-                            BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Groups"    \r
-            DIA.ProfilesView.Styles : BRO.Composite\r
-                BRO.Composite.Children _\r
-                    @L0.orderedSet\r
-                        _ : BRO.Button\r
-                            BRO.Button.Text "Create SCL style"\r
-                            BRO.Button.Action DIA.ProfilesView.CreateStyleAction : BRO.Action\r
-                        _ : BRO.GraphExplorerComposite\r
-                            BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Styles"    \r
-\r
-                            */\r
+L0 = <http://www.simantics.org/Layer0-1.1>
+VP = <http://www.simantics.org/Viewpoint-1.2>
+DIA = <http://www.simantics.org/Diagram-2.2>
+BRO = <http://www.simantics.org/Browsing-1.1>
+VIEW = <http://www.simantics.org/Views-1.2>
+SG = <http://www.simantics.org/Scenegraph-1.1>
+
+BC = DIA.ProfilesBrowseContext : VP.BrowseContext
+
+// TODO: this .pgraph shouldn't be here, but in a separate "UI" ontology
+
+BC.Entry : VP.ResourceNodeType
+  VP.HasContentType "org.simantics.diagram.profile.view.ResourcePair"
+  VP.HasBundle "org.simantics.diagram.profile"
+BC.EntryLabelRule : VP.LabelRule
+BC.EntryImageRule : VP.ImageRule
+BC.EntryCheckRule : VP.CheckedStateRule
+
+// Viewpoint
+BC    
+    @VP.customLabelRule             BC.Entry                           BC.EntryLabelRule
+    @VP.customImageRule             BC.Entry                           BC.EntryImageRule
+    @VP.customCheckedStateRule      BC.Entry                           BC.EntryCheckRule
+    @VP.customChildRule L0.Entity 
+        BC.DirectProfileRule : VP.ChildRule
+        BC.Entry
+    @VP.customChildRule BC.Entry 
+        BC.EntryChildrenRule : VP.ChildRule
+        BC.Entry
+    VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
+        VP.VisualsContribution.HasNodeType BC.Entry
+        VP.VisualsContribution.HasRule VP.PassThruSorterRule
+    VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
+        VP.VisualsContribution.HasNodeType L0.Entity
+        VP.VisualsContribution.HasRule VP.PassThruSorterRule
+
+
+DIA.ProfilesView.AvailableProfiles : VIEW.ReadFactory
+DIA.ProfilesView.SelectedProfile : BRO.ReadFactory
+DIA.ProfilesView.ActiveProfileModifier : BRO.ModifyListener
+DIA.ProfilesView.ProfileEntrySelectionListener : BRO.Listener
+
+DIA.ProfilesView.ActiveRuntimeDiagramInputSource : BRO.InputSource
+
+DIA.ProfilesView.SelectedEntries : BRO.Parameter
+DIA.ProfilesView.SelectedAvailableEntries : BRO.Parameter
+
+DIA.ProfilesView.NewEntryGroup : BRO.Parameter
+DIA.ProfilesView.NewEntryStyle : BRO.Parameter
+
+DIA.ProfilesView : VIEW.TabFolder
+    VIEW.Control.layoutData _ : VIEW.GridLayout.GridData
+        VIEW.GridLayout.GridData.horizontalGrab true
+        VIEW.GridLayout.GridData.verticalGrab true
+    VIEW.HasInputSource DIA.ProfilesView.ActiveRuntimeDiagramInputSource 
+    SG.Node.children _ : L0.List
+        @L0.list
+            DIA.ProfilesView.Active : VIEW.Composite
+                SG.Node.children _ : L0.List
+                    @L0.list
+                        DIA.ProfilesView.Active.Combo : VIEW.Combo
+                            @VIEW.Control.style1 VIEW.Control.Style.Constant.ReadOnly
+                            VIEW.Control.layoutData _ : VIEW.GridLayout.GridData
+                                VIEW.GridLayout.GridData.horizontalGrab true
+                            VIEW.Combo.available DIA.Profile.Functions.availableProfiles
+                            VIEW.Combo.selected DIA.Profile.Functions.selectedProfile
+                            VIEW.Combo.modifier DIA.Profile.Functions.activeProfileModifier
+                        DIA.ProfilesView.Active.Explorer : VIEW.Explorer
+                            @VIEW.Control.style2 VIEW.Control.Style.Constant.FullSelection VIEW.Control.Style.Constant.Check
+                            VIEW.Explorer.input DIA.Profile.Functions.singleResourceSelection
+                            VIEW.Control.layoutData _ : VIEW.GridLayout.GridData
+                                VIEW.GridLayout.GridData.horizontalGrab true
+                                VIEW.GridLayout.GridData.verticalGrab true
+                            VIEW.Explorer.columns _ : VIEW.Explorer.ColumnList
+                                @L0.list
+                                    VIEW.SingleColumn
+                            VIEW.Explorer.selectionListener DIA.Profile.Functions.profileEntrySelected
+                            VIEW.Explorer.browseContext _ : VIEW.ResourceURI
+                              VIEW.ResourceURI.HasResource BC
+                            VIEW.Explorer.columnsVisible false
+                            VIEW.Explorer.contextMenuId "#ProfilesPopup"
+        
+        
+            
+        
+                            /*
+BRO.Combo.SelectedItem DIA.ProfilesView.SelectedProfile
+BRO.Combo.Modifier DIA.ProfilesView.ActiveProfileModifier
+                
+                        _ : BRO.Button
+                            BRO.Button.Text "New profile"
+                            BRO.Button.Action DIA.ProfilesView.CreateProfileAction : BRO.Action
+                        _ : BRO.Button
+                            BRO.Button.Tooltip "Add entries"
+                            BRO.Button.Icon _ : BRO.BundleIcon
+                               BRO.BundleIcon.Bundle "com.famfamfam.silk"
+                               BRO.BundleIcon.Path "icons/bullet_add.png"
+                            BRO.Button.Action _ : BRO.Dialog
+                                BRO.Dialog.Title "Select from available entries"
+                                BRO.Dialog.Control _ : BRO.GraphExplorerComposite
+                                    BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Entries"
+                                    BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.SelectedAvailableEntries
+                                    BRO.GraphExplorerComposite.DisplayFilter true
+                                    BRO.Control.PreferredWidth 500
+                                    BRO.Control.PreferredHeight 500
+                                BRO.Dialog.FinishAction DIA.ProfilesView.AddEntriesAction : BRO.Action 
+                        _ : BRO.Button
+                            BRO.Button.Tooltip "Remove entries"
+                            BRO.Button.Icon _ : BRO.BundleIcon
+                               BRO.BundleIcon.Bundle "com.famfamfam.silk"
+                               BRO.BundleIcon.Path "icons/bullet_delete.png"
+                            BRO.Button.Action DIA.ProfilesView.RemoveEntriesAction : BRO.Action
+                            */
+                            /*
+                        _ : BRO.GraphExplorerComposite
+                            BRO.GraphExplorerComposite.SelectionListener DIA.ProfilesView.ProfileEntrySelectionListener
+                            BRO.GraphExplorerComposite.BrowseContext BC
+                            BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.SelectedEntries
+                            BRO.GraphExplorerComposite.Check true
+                            BRO.Control.HorizontalSpan 4
+                            */
+                            /*
+            DIA.ProfilesView.Entries : BRO.Composite
+                BRO.Composite.Children _
+                    @L0.orderedSet
+                        _ : BRO.Button
+                            BRO.Button.Text "Create Entry"
+                            BRO.Button.Action _ : BRO.Wizard
+                                BRO.Wizard.Title "Create new profile entry"
+                                BRO.Wizard.FinishAction DIA.ProfilesView.CreateEntryAction : BRO.Action 
+                                BRO.Wizard.Pages _
+                                    @L0.orderedSet
+                                        _ : BRO.WizardPage
+                                            BRO.WizardPage.Title "Select group"
+                                            BRO.WizardPage.Control _ : BRO.GraphExplorerComposite
+                                                BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Groups" 
+                                                BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.NewEntryGroup
+                                        _ : BRO.WizardPage
+                                            BRO.WizardPage.Title "Select style"
+                                            BRO.WizardPage.Control _ : BRO.GraphExplorerComposite
+                                                BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Styles" 
+                                                BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.NewEntryStyle
+                        _ : BRO.GraphExplorerComposite
+                            BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Entries"    
+            DIA.ProfilesView.Groups : BRO.Composite
+                BRO.Composite.Children _
+                    @L0.orderedSet
+                        _ : BRO.Button
+                            BRO.Button.Text "Create SCL group"
+                            BRO.Button.Action DIA.ProfilesView.CreateGroupAction : BRO.Action
+                        _ : BRO.GraphExplorerComposite
+                            BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Groups"    
+            DIA.ProfilesView.Styles : BRO.Composite
+                BRO.Composite.Children _
+                    @L0.orderedSet
+                        _ : BRO.Button
+                            BRO.Button.Text "Create SCL style"
+                            BRO.Button.Action DIA.ProfilesView.CreateStyleAction : BRO.Action
+                        _ : BRO.GraphExplorerComposite
+                            BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Styles"    
+
+                            */
         
\ No newline at end of file