molmoda / data /src /Plugins /Core /Window /ViewerWindowPlugin.vue
introvoyz041's picture
Migrated from GitHub
71174bc verified
<template>
<PluginComponent v-model="open" :infoPayload="infoPayload" @onUserArgChanged="onUserArgChanged"
@onMolCountsChanged="onMolCountsChanged"></PluginComponent>
</template>
<script lang="ts">
import PluginComponent from "@/Plugins/Parents/PluginComponent/PluginComponent.vue";
import { PluginParentClass } from "@/Plugins/Parents/PluginParentClass/PluginParentClass";
import {
IContributorCredit,
ISoftwareCredit,
} from "@/Plugins/PluginInterfaces";
import { ITest } from "@/Testing/TestInterfaces";
import { UserArg } from "@/UI/Forms/FormFull/FormFullInterfaces";
import { Options } from "vue-class-component";
import { switchToGoldenLayoutPanel } from "./Common";
import { Tag } from "@/Plugins/Core/ActivityFocus/ActivityFocusUtils";
/**
* ViewerWindowPlugin
*/
@Options({
components: {
PluginComponent,
},
})
export default class ViewerWindowPlugin extends PluginParentClass {
menuPath = ["[8] Window", "Molecules", "[3] Viewer"];
title = "Viewer Panel";
softwareCredits: ISoftwareCredit[] = [];
contributorCredits: IContributorCredit[] = [
// {
// name: "Jacob D. Durrant",
// url: "http://durrantlab.com/",
// },
];
pluginId = "viewerwindow";
noPopup = true;
userArgDefaults: UserArg[] = [];
logJob = false;
intro = `Switch to the Viewer panel.`;
details = "This plugin brings the 3D molecular viewer panel into focus.";
tags = [Tag.All];
/**
* Every plugin runs some job. This is the function that does the job running.
*
* @returns {Promise<void>} A promise that resolves when the job is done.
*/
runJobInBrowser(): Promise<void> {
switchToGoldenLayoutPanel("Viewer");
return Promise.resolve();
}
/**
* Gets the test commands for the plugin. For advanced use.
*
* @gooddefault
* @document
* @returns {ITest[]} The selenium test commands.
*/
async getTests(): Promise<ITest[]> {
// This is a test! Nothing specific to do but click the menu items.
return [];
// {
// // afterPluginCloses: () => new TestCmdList().wait(3),
// };
}
}
</script>
<style scoped lang="scss"></style>