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