diff --git a/src/frontend/src/app/components/header-bar/header-bar.component.html b/src/frontend/src/app/components/header-bar/header-bar.component.html index ccf20135e54a0bf950cd72a7b119eb94a157fbfc..df963898d1476506673887da118cf8f9ac384a23 100644 --- a/src/frontend/src/app/components/header-bar/header-bar.component.html +++ b/src/frontend/src/app/components/header-bar/header-bar.component.html @@ -175,6 +175,30 @@ </div> </button> </li> + <li> + <button class="button align-bottom" (click)="openSuperVariantExplorer()"> + <div> + <i class="bi bi-map btn-icon"></i> + <span> <b>Open</b> Super Variant Explorer </span> + </div> + </button> + </li> + <li> + <button class="button align-bottom" (click)="openSuperVariantExplorer()"> + <div> + <i class="bi bi-compass btn-icon"></i> + <span> <b>Open</b> Super Variant Explorer </span> + </div> + </button> + </li> + <li> + <button class="button align-bottom" (click)="openSuperVariantExplorer()"> + <div> + <i class="bi bi-binoculars btn-icon"></i> + <span> <b>Open</b> Super Variant Explorer </span> + </div> + </button> + </li> </ul> </div> diff --git a/src/frontend/src/app/components/header-bar/header-bar.component.ts b/src/frontend/src/app/components/header-bar/header-bar.component.ts index f9b3b1ba3250fa98dce146880b20af670d97c539..ae1dfa4499a622cd06c510121cf84d6a901bafa6 100644 --- a/src/frontend/src/app/components/header-bar/header-bar.component.ts +++ b/src/frontend/src/app/components/header-bar/header-bar.component.ts @@ -247,6 +247,72 @@ export class HeaderBarComponent implements OnDestroy { ); } + //This is a copy of openVariantExplorer + openSuperVariantExplorer() { + const componentID = VariantMinerComponent.componentName; + const parentComponentID = ProcessTreeEditorComponent.componentName; + + const LocationSelectors: LayoutManager.LocationSelector[] = [ + { + typeId: LayoutManager.LocationSelector.TypeId.FocusedStack, + index: undefined, + }, + ]; + + const itemConfig: ComponentItemConfig = { + id: componentID, + type: 'component', + title: 'Super Variant Explorer', + isClosable: true, + reorderEnabled: true, + header: { + show: Side.left, + }, + componentType: componentID, + }; + + this.goldenLayoutComponentService.openWindow( + componentID, + parentComponentID, + LocationSelectors, + itemConfig + ); + } + + //TODO + /* + openSuperVariantExplorer() { + //const componentID = SuperVariantExplorerComponent.componentName; + const componentID = SuperVariantExplorerComponent.componentName; + const parentComponentID = ProcessTreeEditorComponent.componentName; + + const LocationSelectors: LayoutManager.LocationSelector[] = [ + { + typeId: LayoutManager.LocationSelector.TypeId.FocusedStack, + index: undefined, + }, + ]; + + const itemConfig: ComponentItemConfig = { + id: componentID, + type: 'component', + title: 'Super Variant Explorer', + isClosable: true, + reorderEnabled: true, + header: { + show: Side.left, + }, + componentType: componentID, + }; + console.log(componentID, parentComponentID, LocationSelectors, itemConfig) + this.goldenLayoutComponentService.openWindow( + componentID, + parentComponentID, + LocationSelectors, + itemConfig + ); + }*/ + openVariantModeler() { const componentID = VariantModelerComponent.componentName;