]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.ontology/graph/ProfilesView.pgraph
Fix document update / even better optimization of document requests
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / ProfilesView.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 VP = <http://www.simantics.org/Viewpoint-1.2>
3 DIA = <http://www.simantics.org/Diagram-2.2>
4 BRO = <http://www.simantics.org/Browsing-1.1>
5 VIEW = <http://www.simantics.org/Views-1.2>
6 SG = <http://www.simantics.org/Scenegraph-1.1>
7
8 BC = DIA.ProfilesBrowseContext : VP.BrowseContext
9
10 // TODO: this .pgraph shouldn't be here, but in a separate "UI" ontology
11
12 BC.Entry : VP.ResourceNodeType
13   VP.HasContentType "org.simantics.diagram.profile.view.ProfileTuple"
14   VP.HasBundle "org.simantics.diagram.profile"
15 BC.EntryLabelRule : VP.LabelRule
16 BC.EntryImageRule : VP.ImageRule
17 BC.EntryCheckRule : VP.CheckedStateRule
18
19 // Viewpoint
20 BC    
21     @VP.customLabelRule             BC.Entry                           BC.EntryLabelRule
22     @VP.customImageRule             BC.Entry                           BC.EntryImageRule
23     @VP.customCheckedStateRule      BC.Entry                           BC.EntryCheckRule
24     @VP.customChildRule L0.Entity 
25         BC.DirectProfileRule : VP.ChildRule
26         BC.Entry
27     @VP.customChildRule BC.Entry 
28         BC.EntryChildrenRule : VP.ChildRule
29         BC.Entry
30     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
31         VP.VisualsContribution.HasNodeType BC.Entry
32         VP.VisualsContribution.HasRule VP.PassThruSorterRule
33     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
34         VP.VisualsContribution.HasNodeType L0.Entity
35         VP.VisualsContribution.HasRule VP.PassThruSorterRule
36
37
38 DIA.ProfilesView.AvailableProfiles : VIEW.ReadFactory
39 DIA.ProfilesView.SelectedProfile : BRO.ReadFactory
40 DIA.ProfilesView.ActiveProfileModifier : BRO.ModifyListener
41 DIA.ProfilesView.ProfileEntrySelectionListener : BRO.Listener
42
43 DIA.ProfilesView.ActiveRuntimeDiagramInputSource : BRO.InputSource
44
45 DIA.ProfilesView.SelectedEntries : BRO.Parameter
46 DIA.ProfilesView.SelectedAvailableEntries : BRO.Parameter
47
48 DIA.ProfilesView.NewEntryGroup : BRO.Parameter
49 DIA.ProfilesView.NewEntryStyle : BRO.Parameter
50
51 DIA.ProfilesView : VIEW.TabFolder
52     VIEW.Control.layoutData _ : VIEW.GridLayout.GridData
53         VIEW.GridLayout.GridData.horizontalGrab true
54         VIEW.GridLayout.GridData.verticalGrab true
55     VIEW.HasInputSource DIA.ProfilesView.ActiveRuntimeDiagramInputSource 
56     SG.Node.children _ : L0.List
57         @L0.list
58             DIA.ProfilesView.Active : VIEW.Composite
59                 SG.Node.children _ : L0.List
60                     @L0.list
61                         DIA.ProfilesView.Active.Combo : VIEW.Combo
62                             @VIEW.Control.style1 VIEW.Control.Style.Constant.ReadOnly
63                             VIEW.Control.layoutData _ : VIEW.GridLayout.GridData
64                                 VIEW.GridLayout.GridData.horizontalGrab true
65                             VIEW.Combo.available DIA.Profile.Functions.availableProfiles
66                             VIEW.Combo.selected DIA.Profile.Functions.selectedProfile
67                             VIEW.Combo.modifier DIA.Profile.Functions.activeProfileModifier
68                         DIA.ProfilesView.Active.Explorer : VIEW.Explorer
69                             @VIEW.Control.style2 VIEW.Control.Style.Constant.FullSelection VIEW.Control.Style.Constant.Check
70                             VIEW.Explorer.input DIA.Profile.Functions.singleResourceSelection
71                             VIEW.Control.layoutData _ : VIEW.GridLayout.GridData
72                                 VIEW.GridLayout.GridData.horizontalGrab true
73                                 VIEW.GridLayout.GridData.verticalGrab true
74                             VIEW.Explorer.columns _ : VIEW.Explorer.ColumnList
75                                 @L0.list
76                                     VIEW.SingleColumn
77                             VIEW.Explorer.selectionListener DIA.Profile.Functions.profileEntrySelected
78                             VIEW.Explorer.browseContext _ : VIEW.ResourceURI
79                               VIEW.ResourceURI.HasResource BC
80                             VIEW.Explorer.columnsVisible false
81                             VIEW.Explorer.contextMenuId "#ProfilesPopup"
82         
83         
84             
85         
86                             /*
87 BRO.Combo.SelectedItem DIA.ProfilesView.SelectedProfile
88 BRO.Combo.Modifier DIA.ProfilesView.ActiveProfileModifier
89                 
90                         _ : BRO.Button
91                             BRO.Button.Text "New profile"
92                             BRO.Button.Action DIA.ProfilesView.CreateProfileAction : BRO.Action
93                         _ : BRO.Button
94                             BRO.Button.Tooltip "Add entries"
95                             BRO.Button.Icon _ : BRO.BundleIcon
96                                BRO.BundleIcon.Bundle "com.famfamfam.silk"
97                                BRO.BundleIcon.Path "icons/bullet_add.png"
98                             BRO.Button.Action _ : BRO.Dialog
99                                 BRO.Dialog.Title "Select from available entries"
100                                 BRO.Dialog.Control _ : BRO.GraphExplorerComposite
101                                     BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Entries"
102                                     BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.SelectedAvailableEntries
103                                     BRO.GraphExplorerComposite.DisplayFilter true
104                                     BRO.Control.PreferredWidth 500
105                                     BRO.Control.PreferredHeight 500
106                                 BRO.Dialog.FinishAction DIA.ProfilesView.AddEntriesAction : BRO.Action 
107                         _ : BRO.Button
108                             BRO.Button.Tooltip "Remove entries"
109                             BRO.Button.Icon _ : BRO.BundleIcon
110                                BRO.BundleIcon.Bundle "com.famfamfam.silk"
111                                BRO.BundleIcon.Path "icons/bullet_delete.png"
112                             BRO.Button.Action DIA.ProfilesView.RemoveEntriesAction : BRO.Action
113                             */
114                             /*
115                         _ : BRO.GraphExplorerComposite
116                             BRO.GraphExplorerComposite.SelectionListener DIA.ProfilesView.ProfileEntrySelectionListener
117                             BRO.GraphExplorerComposite.BrowseContext BC
118                             BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.SelectedEntries
119                             BRO.GraphExplorerComposite.Check true
120                             BRO.Control.HorizontalSpan 4
121                             */
122                             /*
123             DIA.ProfilesView.Entries : BRO.Composite
124                 BRO.Composite.Children _
125                     @L0.orderedSet
126                         _ : BRO.Button
127                             BRO.Button.Text "Create Entry"
128                             BRO.Button.Action _ : BRO.Wizard
129                                 BRO.Wizard.Title "Create new profile entry"
130                                 BRO.Wizard.FinishAction DIA.ProfilesView.CreateEntryAction : BRO.Action 
131                                 BRO.Wizard.Pages _
132                                     @L0.orderedSet
133                                         _ : BRO.WizardPage
134                                             BRO.WizardPage.Title "Select group"
135                                             BRO.WizardPage.Control _ : BRO.GraphExplorerComposite
136                                                 BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Groups" 
137                                                 BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.NewEntryGroup
138                                         _ : BRO.WizardPage
139                                             BRO.WizardPage.Title "Select style"
140                                             BRO.WizardPage.Control _ : BRO.GraphExplorerComposite
141                                                 BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Styles" 
142                                                 BRO.GraphExplorerComposite.SelectionParameter DIA.ProfilesView.NewEntryStyle
143                         _ : BRO.GraphExplorerComposite
144                             BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Entries"    
145             DIA.ProfilesView.Groups : BRO.Composite
146                 BRO.Composite.Children _
147                     @L0.orderedSet
148                         _ : BRO.Button
149                             BRO.Button.Text "Create SCL group"
150                             BRO.Button.Action DIA.ProfilesView.CreateGroupAction : BRO.Action
151                         _ : BRO.GraphExplorerComposite
152                             BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Groups"    
153             DIA.ProfilesView.Styles : BRO.Composite
154                 BRO.Composite.Children _
155                     @L0.orderedSet
156                         _ : BRO.Button
157                             BRO.Button.Text "Create SCL style"
158                             BRO.Button.Action DIA.ProfilesView.CreateStyleAction : BRO.Action
159                         _ : BRO.GraphExplorerComposite
160                             BRO.GraphExplorerComposite.BrowseContextURI "http://www.simantics.org/Diagram-0.0/ProfilesView/Styles"    
161
162                             */
163