X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram.ontology%2Fgraph%2FProfilesView.pgraph;fp=bundles%2Forg.simantics.diagram.ontology%2Fgraph%2FProfilesView.pgraph;h=ac767e644cb4ba0624c4208f7a851b364d628ba1;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram.ontology/graph/ProfilesView.pgraph b/bundles/org.simantics.diagram.ontology/graph/ProfilesView.pgraph new file mode 100644 index 000000000..ac767e644 --- /dev/null +++ b/bundles/org.simantics.diagram.ontology/graph/ProfilesView.pgraph @@ -0,0 +1,163 @@ +L0 = +VP = +DIA = +BRO = +VIEW = +SG = + +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 _