|
@@ -9,9 +9,32 @@ import { PluginUIComponent } from 'molstar/lib/mol-plugin-ui/base';
|
|
|
import { StructureViewerState } from '../types';
|
|
|
import { Viewport, ViewportControls } from 'molstar/lib/mol-plugin-ui/viewport';
|
|
|
import { BackgroundTaskProgress } from 'molstar/lib/mol-plugin-ui/task';
|
|
|
-import { LociLabels, DefaultStructureTools } from 'molstar/lib/mol-plugin-ui/controls';
|
|
|
+import { LociLabels, CustomStructureControls } from 'molstar/lib/mol-plugin-ui/controls';
|
|
|
import { Toasts } from 'molstar/lib/mol-plugin-ui/toast';
|
|
|
import { OpenFile } from './open';
|
|
|
+import { Icon } from 'molstar/lib/mol-plugin-ui/controls/icons';
|
|
|
+import { StructureSourceControls } from 'molstar/lib/mol-plugin-ui/structure/source';
|
|
|
+import { StructureSelectionControls } from 'molstar/lib/mol-plugin-ui/structure/selection';
|
|
|
+import { StructureMeasurementsControls } from 'molstar/lib/mol-plugin-ui/structure/measurements';
|
|
|
+import { StructureComponentControls } from 'molstar/lib/mol-plugin-ui/structure/components';
|
|
|
+import { VolumeStreamingControls } from 'molstar/lib/mol-plugin-ui/structure/volume';
|
|
|
+
|
|
|
+
|
|
|
+export class StructureTools extends PluginUIComponent {
|
|
|
+ render() {
|
|
|
+ return <>
|
|
|
+ <div className='msp-section-header'><Icon name='tools' />Structure Tools</div>
|
|
|
+
|
|
|
+ <StructureSourceControls />
|
|
|
+ <StructureSelectionControls initiallyCollapsed />
|
|
|
+ <StructureMeasurementsControls initiallyCollapsed />
|
|
|
+ <StructureComponentControls initiallyCollapsed />
|
|
|
+ <VolumeStreamingControls initiallyCollapsed />
|
|
|
+
|
|
|
+ <CustomStructureControls initiallyCollapsed />
|
|
|
+ </>;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
export class ControlsWrapper extends PluginUIComponent {
|
|
|
get customState() {
|
|
@@ -22,7 +45,7 @@ export class ControlsWrapper extends PluginUIComponent {
|
|
|
const { showOpenFileControls } = this.customState.props
|
|
|
return <div className='msp-scrollable-container'>
|
|
|
{showOpenFileControls && <OpenFile initiallyCollapsed={false} />}
|
|
|
- <DefaultStructureTools />
|
|
|
+ <StructureTools />
|
|
|
</div>;
|
|
|
}
|
|
|
}
|