fix(i18n): Add and update i18n Translation for Toolbar Tool Names (#5392)
This commit is contained in:
parent
add69e5e4f
commit
7783d0f558
@ -518,8 +518,8 @@ function commandsModule({
|
||||
if (!labelConfig) {
|
||||
const label = await callInputDialog({
|
||||
uiDialogService,
|
||||
title: 'Edit Measurement Label',
|
||||
placeholder: measurement.label || 'Enter new label',
|
||||
title: i18n.t('Tools:Edit Measurement Label'),
|
||||
placeholder: measurement.label || i18n.t('Tools:Enter new label'),
|
||||
defaultValue: measurement.label,
|
||||
});
|
||||
|
||||
@ -733,8 +733,8 @@ function commandsModule({
|
||||
if (!labelConfig) {
|
||||
const label = await callInputDialog({
|
||||
uiDialogService,
|
||||
title: 'Edit Arrow Text',
|
||||
placeholder: data?.data?.label || 'Enter new text',
|
||||
title: i18n.t('Tools:Edit Arrow Text'),
|
||||
placeholder: data?.data?.label || i18n.t('Tools:Enter new text'),
|
||||
defaultValue: data?.data?.label || '',
|
||||
});
|
||||
|
||||
@ -978,8 +978,8 @@ function commandsModule({
|
||||
if (!cornerstoneViewportService.getCornerstoneViewport(activeViewportId)) {
|
||||
// Cannot download a non-cornerstone viewport (image).
|
||||
uiNotificationService.show({
|
||||
title: 'Download Image',
|
||||
message: 'Image cannot be downloaded',
|
||||
title: i18n.t('Tools:Download Image'),
|
||||
message: i18n.t('Tools:Image cannot be downloaded'),
|
||||
type: 'error',
|
||||
});
|
||||
return;
|
||||
@ -990,7 +990,7 @@ function commandsModule({
|
||||
if (uiModalService) {
|
||||
uiModalService.show({
|
||||
content: CornerstoneViewportDownloadForm,
|
||||
title: 'Download High Quality Image',
|
||||
title: i18n.t('Tools:Download High Quality Image'),
|
||||
contentProps: {
|
||||
activeViewportId,
|
||||
cornerstoneViewportService,
|
||||
@ -1454,7 +1454,7 @@ function commandsModule({
|
||||
|
||||
const segs = segmentationService.getSegmentations();
|
||||
|
||||
const label = options.label || `Segmentation ${segs.length + 1}`;
|
||||
const label = options.label || `${i18n.t('Tools:Segmentation')} ${segs.length + 1}`;
|
||||
const segmentationId = options.segmentationId || `${csUtils.uuidv4()}`;
|
||||
|
||||
const displaySet = displaySetService.getDisplaySetByUID(displaySetInstanceUID);
|
||||
@ -1468,7 +1468,7 @@ function commandsModule({
|
||||
segments: options.createInitialSegment
|
||||
? {
|
||||
1: {
|
||||
label: `${i18n.t('Segment')} 1`,
|
||||
label: `${i18n.t('Tools:Segment')} 1`,
|
||||
active: true,
|
||||
},
|
||||
}
|
||||
@ -1745,8 +1745,8 @@ function commandsModule({
|
||||
|
||||
callInputDialog({
|
||||
uiDialogService,
|
||||
title: 'Edit Segment Label',
|
||||
placeholder: 'Enter new label',
|
||||
title: i18n.t('Tools:Edit Segment Label'),
|
||||
placeholder: i18n.t('Tools:Enter new label'),
|
||||
defaultValue: segment.label,
|
||||
}).then(label => {
|
||||
segmentationService.setSegmentLabel(segmentationId, segmentIndex, label);
|
||||
@ -1765,8 +1765,8 @@ function commandsModule({
|
||||
|
||||
callInputDialog({
|
||||
uiDialogService,
|
||||
title: 'Edit Segmentation Label',
|
||||
placeholder: 'Enter new label',
|
||||
title: i18n.t('Tools:Edit Segmentation Label'),
|
||||
placeholder: i18n.t('Tools:Enter new label'),
|
||||
defaultValue: label,
|
||||
}).then(label => {
|
||||
segmentationService.addOrUpdateSegmentation({ segmentationId, label });
|
||||
@ -1788,7 +1788,7 @@ function commandsModule({
|
||||
|
||||
uiDialogService.show({
|
||||
content: colorPickerDialog,
|
||||
title: 'Segment Color',
|
||||
title: i18n.t('Tools:Segment Color'),
|
||||
contentProps: {
|
||||
value: rgbaColor,
|
||||
onSave: newRgbaColor => {
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
import React, { ReactElement, useCallback } from 'react';
|
||||
import { Switch } from '@ohif/ui-next';
|
||||
import { useViewportRendering } from '../../hooks/useViewportRendering';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export function Colorbar({ viewportId }: { viewportId?: string } = {}): ReactElement {
|
||||
const { hasColorbar, toggleColorbar } = useViewportRendering(viewportId);
|
||||
const { t } = useTranslation('WindowLevelActionMenu');
|
||||
|
||||
const handleToggle = useCallback(() => {
|
||||
toggleColorbar();
|
||||
@ -16,7 +18,7 @@ export function Colorbar({ viewportId }: { viewportId?: string } = {}): ReactEle
|
||||
className="flex-grow"
|
||||
onClick={handleToggle}
|
||||
>
|
||||
Display Color bar
|
||||
{t('Display Color bar')}
|
||||
</span>
|
||||
<Switch
|
||||
className="ml-2 flex-shrink-0"
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
import React, { ReactElement, useEffect, useRef, useState } from 'react';
|
||||
import { AllInOneMenu, ScrollArea, Switch, Tabs, TabsList, TabsTrigger } from '@ohif/ui-next';
|
||||
import { useViewportRendering } from '../../hooks/useViewportRendering';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export function Colormap({ viewportId }: { viewportId?: string } = {}): ReactElement {
|
||||
const { viewportDisplaySets } = useViewportRendering(viewportId);
|
||||
const { t } = useTranslation('WindowLevelActionMenu');
|
||||
|
||||
const [activeDisplaySetUID, setActiveDisplaySetUID] = useState<string | undefined>(
|
||||
viewportDisplaySets?.[0]?.displaySetInstanceUID
|
||||
@ -74,7 +76,7 @@ export function Colormap({ viewportId }: { viewportId?: string } = {}): ReactEle
|
||||
className="hover:bg-accent flex h-8 w-full flex-shrink-0 cursor-pointer items-center px-2 text-base hover:rounded"
|
||||
onClick={() => setShowPreview(!showPreview)}
|
||||
>
|
||||
<span className="flex-shrink-0">Preview in viewport</span>
|
||||
<span className="flex-shrink-0">{t('Preview in viewport')}</span>
|
||||
<Switch
|
||||
className="ml-auto flex-shrink-0"
|
||||
checked={showPreview}
|
||||
|
||||
@ -7,6 +7,7 @@ import { WindowLevel } from './WindowLevel';
|
||||
import { VolumeRenderingPresets } from './VolumeRenderingPresets';
|
||||
import { VolumeRenderingOptions } from './VolumeRenderingOptions';
|
||||
import { useViewportRendering } from '../../hooks/useViewportRendering';
|
||||
import i18n from 'i18next';
|
||||
|
||||
export type WindowLevelActionMenuProps = {
|
||||
viewportId: string;
|
||||
@ -58,6 +59,7 @@ export function WindowLevelActionMenuContent({
|
||||
isVisible={true}
|
||||
align={align}
|
||||
side={side}
|
||||
backLabel={i18n.t('WindowLevelActionMenu:Back to Display Options')}
|
||||
>
|
||||
<AllInOneMenu.ItemPanel>
|
||||
{!is3DVolume && <Colorbar viewportId={viewportId} />}
|
||||
@ -65,7 +67,7 @@ export function WindowLevelActionMenuContent({
|
||||
{colorbarProperties?.colormaps && !is3DVolume && (
|
||||
<AllInOneMenu.SubMenu
|
||||
key="colorLUTPresets"
|
||||
itemLabel="Color LUT"
|
||||
itemLabel={t('Color LUT')}
|
||||
itemIcon="icon-color-lut"
|
||||
className="flex h-[calc(100%-32px)] flex-col"
|
||||
>
|
||||
@ -86,7 +88,7 @@ export function WindowLevelActionMenuContent({
|
||||
{volumeRenderingPresets && is3DVolume && <VolumeRenderingPresets viewportId={viewportId} />}
|
||||
|
||||
{volumeRenderingQualityRange && is3DVolume && (
|
||||
<AllInOneMenu.SubMenu itemLabel="Rendering Options">
|
||||
<AllInOneMenu.SubMenu itemLabel={t('Rendering Options')}>
|
||||
<VolumeRenderingOptions viewportId={viewportId} />
|
||||
</AllInOneMenu.SubMenu>
|
||||
)}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { ImageModal, FooterAction } from '@ohif/ui-next';
|
||||
|
||||
import { useTranslation } from 'react-i18next';
|
||||
const MAX_TEXTURE_SIZE = 10000;
|
||||
const DEFAULT_FILENAME = 'image';
|
||||
|
||||
@ -37,6 +37,7 @@ function ViewportDownloadFormNew({
|
||||
const [showWarningMessage, setShowWarningMessage] = useState(true);
|
||||
const [filename, setFilename] = useState(DEFAULT_FILENAME);
|
||||
const [fileType, setFileType] = useState('jpg');
|
||||
const { t } = useTranslation('CaptureViewportModal');
|
||||
|
||||
useEffect(() => {
|
||||
if (!viewportElement) {
|
||||
@ -82,7 +83,7 @@ function ViewportDownloadFormNew({
|
||||
value={filename}
|
||||
onChange={e => setFilename(e.target.value)}
|
||||
>
|
||||
File name
|
||||
{t('File name')}
|
||||
</ImageModal.Filename>
|
||||
<ImageModal.Filetype
|
||||
selected={fileType}
|
||||
@ -109,7 +110,7 @@ function ViewportDownloadFormNew({
|
||||
maxWidth={MAX_TEXTURE_SIZE.toString()}
|
||||
maxHeight={MAX_TEXTURE_SIZE.toString()}
|
||||
>
|
||||
Image size <span className="text-muted-foreground">px</span>
|
||||
{t('Image size')} <span className="text-muted-foreground">px</span>
|
||||
</ImageModal.ImageSize>
|
||||
|
||||
<ImageModal.SwitchOption
|
||||
@ -117,7 +118,7 @@ function ViewportDownloadFormNew({
|
||||
checked={showAnnotations}
|
||||
onCheckedChange={onAnnotationsChange}
|
||||
>
|
||||
Include annotations
|
||||
{t('Include annotations')}
|
||||
</ImageModal.SwitchOption>
|
||||
{warningState.enabled && (
|
||||
<ImageModal.SwitchOption
|
||||
@ -125,19 +126,21 @@ function ViewportDownloadFormNew({
|
||||
checked={showWarningMessage}
|
||||
onCheckedChange={setShowWarningMessage}
|
||||
>
|
||||
Include warning message
|
||||
{t('Include warning message')}
|
||||
</ImageModal.SwitchOption>
|
||||
)}
|
||||
<FooterAction className="mt-2">
|
||||
<FooterAction.Right>
|
||||
<FooterAction.Secondary onClick={onClose}>Cancel</FooterAction.Secondary>
|
||||
<FooterAction.Secondary onClick={onClose}>
|
||||
{t('Common:Cancel')}
|
||||
</FooterAction.Secondary>
|
||||
<FooterAction.Primary
|
||||
onClick={() => {
|
||||
onDownload(filename || DEFAULT_FILENAME, fileType);
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
Save
|
||||
{t('Common:Save')}
|
||||
</FooterAction.Primary>
|
||||
</FooterAction.Right>
|
||||
</FooterAction>
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { HYDRATE_SEG_SYNC_GROUP, VOI_SYNC_GROUP } from './mpr';
|
||||
|
||||
import i18n from 'i18next';
|
||||
export const fourUp = {
|
||||
id: 'fourUp',
|
||||
locked: true,
|
||||
name: '3D four up',
|
||||
name: i18n.t('Hps:3D four up'),
|
||||
icon: 'layout-advanced-3d-four-up',
|
||||
isPreset: true,
|
||||
createdDate: '2023-03-15T10:29:44.894Z',
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { Types } from '@ohif/core';
|
||||
|
||||
import i18n from 'i18next';
|
||||
const frameView: Types.HangingProtocol.Protocol = {
|
||||
id: '@ohif/frameView',
|
||||
description: 'Frame view for the active series',
|
||||
name: 'Frame View',
|
||||
description: i18n.t('Hps:Frame view for the active series'),
|
||||
name: i18n.t('Hps:Frame View'),
|
||||
icon: 'tool-stack-scroll',
|
||||
isPreset: true,
|
||||
toolGroupIds: ['default'],
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { HYDRATE_SEG_SYNC_GROUP, VOI_SYNC_GROUP } from './mpr';
|
||||
|
||||
import i18n from 'i18next';
|
||||
export const main3D = {
|
||||
id: 'main3D',
|
||||
locked: true,
|
||||
name: '3D main',
|
||||
name: i18n.t('Hps:3D main'),
|
||||
icon: 'layout-advanced-3d-main',
|
||||
isPreset: true,
|
||||
createdDate: '2023-03-15T10:29:44.894Z',
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Types } from '@ohif/core';
|
||||
|
||||
import i18n from 'i18next';
|
||||
export const VOI_SYNC_GROUP = {
|
||||
type: 'voi',
|
||||
id: 'mpr',
|
||||
@ -22,7 +22,7 @@ export const HYDRATE_SEG_SYNC_GROUP = {
|
||||
|
||||
export const mpr: Types.HangingProtocol.Protocol = {
|
||||
id: 'mpr',
|
||||
name: 'MPR',
|
||||
name: i18n.t('Hps:MPR'),
|
||||
locked: true,
|
||||
icon: 'layout-advanced-mpr',
|
||||
isPreset: true,
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { HYDRATE_SEG_SYNC_GROUP, VOI_SYNC_GROUP } from './mpr';
|
||||
|
||||
import i18n from 'i18next';
|
||||
export const mprAnd3DVolumeViewport = {
|
||||
id: 'mprAnd3DVolumeViewport',
|
||||
locked: true,
|
||||
name: 'mpr',
|
||||
name: i18n.t('Hps:mpr'),
|
||||
createdDate: '2023-03-15T10:29:44.894Z',
|
||||
modifiedDate: '2023-03-15T10:29:44.894Z',
|
||||
availableTo: {},
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
import { HYDRATE_SEG_SYNC_GROUP, VOI_SYNC_GROUP } from './mpr';
|
||||
import i18n from 'i18next';
|
||||
|
||||
export const only3D = {
|
||||
id: 'only3D',
|
||||
locked: true,
|
||||
name: '3D only',
|
||||
name: i18n.t('Hps:3D only'),
|
||||
icon: 'layout-advanced-3d-only',
|
||||
isPreset: true,
|
||||
createdDate: '2023-03-15T10:29:44.894Z',
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { HYDRATE_SEG_SYNC_GROUP, VOI_SYNC_GROUP } from './mpr';
|
||||
|
||||
import i18n from 'i18next';
|
||||
export const primary3D = {
|
||||
id: 'primary3D',
|
||||
locked: true,
|
||||
name: '3D primary',
|
||||
name: i18n.t('Hps:3D primary'),
|
||||
icon: 'layout-advanced-3d-primary',
|
||||
isPreset: true,
|
||||
createdDate: '2023-03-15T10:29:44.894Z',
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { HYDRATE_SEG_SYNC_GROUP, VOI_SYNC_GROUP } from './mpr';
|
||||
|
||||
import i18n from 'i18next';
|
||||
export const primaryAxial = {
|
||||
id: 'primaryAxial',
|
||||
locked: true,
|
||||
name: 'Axial Primary',
|
||||
name: i18n.t('Hps:Axial Primary'),
|
||||
icon: 'layout-advanced-axial-primary',
|
||||
isPreset: true,
|
||||
createdDate: '2023-03-15T10:29:44.894Z',
|
||||
|
||||
@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
|
||||
import { CommandsManager } from '@ohif/core';
|
||||
|
||||
import { LayoutSelector } from '@ohif/ui-next';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
function ToolbarLayoutSelectorWithServices({
|
||||
commandsManager,
|
||||
@ -13,6 +14,7 @@ function ToolbarLayoutSelectorWithServices({
|
||||
...props
|
||||
}) {
|
||||
const { customizationService } = servicesManager.services;
|
||||
const { t } = useTranslation('ToolbarLayoutSelector');
|
||||
|
||||
// Get the presets from the customization service
|
||||
const commonPresets = customizationService?.getCustomization('layoutSelector.commonPresets') || [
|
||||
@ -135,14 +137,14 @@ function ToolbarLayoutSelectorWithServices({
|
||||
onSelectionChange={handleSelectionChange}
|
||||
{...props}
|
||||
>
|
||||
<LayoutSelector.Trigger tooltip="Change layout" />
|
||||
<LayoutSelector.Trigger tooltip={t('Change layout')} />
|
||||
<LayoutSelector.Content>
|
||||
{/* Left side - Presets */}
|
||||
{(commonPresets.length > 0 || advancedPresets.length > 0) && (
|
||||
<div className="bg-popover flex flex-col gap-2.5 rounded-lg p-2">
|
||||
{commonPresets.length > 0 && (
|
||||
<>
|
||||
<LayoutSelector.PresetSection title="Common">
|
||||
<LayoutSelector.PresetSection title={t('Common')}>
|
||||
{commonPresets.map((preset, index) => (
|
||||
<LayoutSelector.Preset
|
||||
key={`common-preset-${index}`}
|
||||
@ -157,7 +159,7 @@ function ToolbarLayoutSelectorWithServices({
|
||||
)}
|
||||
|
||||
{advancedPresets.length > 0 && (
|
||||
<LayoutSelector.PresetSection title="Advanced">
|
||||
<LayoutSelector.PresetSection title={t('Advanced')}>
|
||||
{advancedPresets.map((preset, index) => (
|
||||
<LayoutSelector.Preset
|
||||
key={`advanced-preset-${index}`}
|
||||
@ -175,14 +177,15 @@ function ToolbarLayoutSelectorWithServices({
|
||||
|
||||
{/* Right Side - Grid Layout */}
|
||||
<div className="bg-muted flex flex-col gap-2.5 border-l-2 border-solid border-black p-2">
|
||||
<div className="text-muted-foreground text-xs">Custom</div>
|
||||
<div className="text-muted-foreground text-xs">{t('Custom')}</div>
|
||||
<LayoutSelector.GridSelector
|
||||
rows={rows}
|
||||
columns={columns}
|
||||
/>
|
||||
<LayoutSelector.HelpText>
|
||||
Hover to select <br />
|
||||
rows and columns <br /> Click to apply
|
||||
{t('Hover to select')} <br />
|
||||
{t('rows and columns')} <br />
|
||||
{t('Click to apply')}
|
||||
</LayoutSelector.HelpText>
|
||||
</div>
|
||||
</LayoutSelector.Content>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { utils } from '@ohif/core';
|
||||
import i18n from '@ohif/i18n';
|
||||
const { formatDate } = utils;
|
||||
|
||||
export default {
|
||||
@ -6,7 +7,7 @@ export default {
|
||||
'studyBrowser.thumbnailMenuItems': [
|
||||
{
|
||||
id: 'tagBrowser',
|
||||
label: 'Tag Browser',
|
||||
label: i18n.t('StudyBrowser:Tag Browser'),
|
||||
iconName: 'DicomTagBrowser',
|
||||
onClick: ({ commandsManager, displaySetInstanceUID }: withAppTypes) => {
|
||||
commandsManager.runCommand('openDICOMTagViewer', {
|
||||
@ -16,7 +17,7 @@ export default {
|
||||
},
|
||||
{
|
||||
id: 'addAsLayer',
|
||||
label: 'Add as Layer',
|
||||
label: i18n.t('StudyBrowser:Add as Layer'),
|
||||
iconName: 'ViewportViews',
|
||||
onClick: ({ commandsManager, displaySetInstanceUID, servicesManager }: withAppTypes) => {
|
||||
const { viewportGridService } = servicesManager.services;
|
||||
@ -37,13 +38,13 @@ export default {
|
||||
],
|
||||
'studyBrowser.sortFunctions': [
|
||||
{
|
||||
label: 'Series Number',
|
||||
label: i18n.t('StudyBrowser:Series Number'),
|
||||
sortFunction: (a, b) => {
|
||||
return a?.SeriesNumber - b?.SeriesNumber;
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Series Date',
|
||||
label: i18n.t('StudyBrowser:Series Date'),
|
||||
sortFunction: (a, b) => {
|
||||
const dateA = new Date(formatDate(a?.SeriesDate));
|
||||
const dateB = new Date(formatDate(b?.SeriesDate));
|
||||
@ -81,8 +82,10 @@ export default {
|
||||
} catch (error) {
|
||||
console.warn(error);
|
||||
uiNotificationService.show({
|
||||
title: 'Thumbnail Double Click',
|
||||
message: 'The selected display sets could not be added to the viewport.',
|
||||
title: i18n.t('StudyBrowser:Thumbnail Double Click'),
|
||||
message: i18n.t(
|
||||
'StudyBrowser:The selected display sets could not be added to the viewport.'
|
||||
),
|
||||
type: 'error',
|
||||
duration: 3000,
|
||||
});
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import type { Button } from '@ohif/core/types';
|
||||
import i18n from 'i18next';
|
||||
|
||||
export const setToolActiveToolbar = {
|
||||
commandName: 'setToolActive',
|
||||
@ -31,8 +32,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-length',
|
||||
label: 'Length',
|
||||
tooltip: 'Length Tool',
|
||||
label: i18n.t('Buttons:Length'),
|
||||
tooltip: i18n.t('Buttons:Length Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
@ -48,8 +49,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-bidirectional',
|
||||
label: 'Bidirectional',
|
||||
tooltip: 'Bidirectional Tool',
|
||||
label: i18n.t('Buttons:Bidirectional'),
|
||||
tooltip: i18n.t('Buttons:Bidirectional Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
@ -65,8 +66,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-ellipse',
|
||||
label: 'Ellipse',
|
||||
tooltip: 'Ellipse ROI',
|
||||
label: i18n.t('Buttons:Ellipse'),
|
||||
tooltip: i18n.t('Buttons:Ellipse ROI'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
@ -82,8 +83,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-circle',
|
||||
label: 'Circle',
|
||||
tooltip: 'Circle Tool',
|
||||
label: i18n.t('Buttons:Circle'),
|
||||
tooltip: i18n.t('Buttons:Circle Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
@ -99,8 +100,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-zoom',
|
||||
label: 'Zoom',
|
||||
tooltip: 'Zoom',
|
||||
label: i18n.t('Buttons:Zoom'),
|
||||
tooltip: i18n.t('Buttons:Zoom'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
@ -116,8 +117,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
tooltip: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
tooltip: i18n.t('Buttons:Pan'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
@ -133,8 +134,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-capture',
|
||||
label: 'Capture',
|
||||
tooltip: 'Capture',
|
||||
label: i18n.t('Buttons:Capture'),
|
||||
tooltip: i18n.t('Buttons:Capture'),
|
||||
commands: 'showDownloadViewportModal',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -161,8 +162,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-reset',
|
||||
label: 'Reset View',
|
||||
tooltip: 'Reset View',
|
||||
label: i18n.t('Buttons:Reset View'),
|
||||
tooltip: i18n.t('Buttons:Reset View'),
|
||||
commands: 'resetViewport',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -172,8 +173,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rotate-right',
|
||||
label: 'Rotate Right',
|
||||
tooltip: 'Rotate Right +90',
|
||||
label: i18n.t('Buttons:Rotate Right'),
|
||||
tooltip: i18n.t('Buttons:Rotate Right +90'),
|
||||
commands: 'rotateViewportCW',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -183,8 +184,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-flip-horizontal',
|
||||
label: 'Flip Horizontally',
|
||||
tooltip: 'Flip Horizontally',
|
||||
label: i18n.t('Buttons:Flip Horizontally'),
|
||||
tooltip: i18n.t('Buttons:Flip Horizontally'),
|
||||
commands: 'flipViewportHorizontal',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -194,8 +195,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-stack-scroll',
|
||||
label: 'Stack Scroll',
|
||||
tooltip: 'Stack Scroll',
|
||||
label: i18n.t('Buttons:Stack Scroll'),
|
||||
tooltip: i18n.t('Buttons:Stack Scroll'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
@ -211,8 +212,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-invert',
|
||||
label: 'Invert Colors',
|
||||
tooltip: 'Invert Colors',
|
||||
label: i18n.t('Buttons:Invert Colors'),
|
||||
tooltip: i18n.t('Buttons:Invert Colors'),
|
||||
commands: 'invertViewport',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -222,8 +223,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-calibration',
|
||||
label: 'Calibration Line',
|
||||
tooltip: 'Calibration Line',
|
||||
label: i18n.t('Buttons:Calibration Line'),
|
||||
tooltip: i18n.t('Buttons:Calibration Line'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: {
|
||||
|
||||
@ -5,6 +5,8 @@ import { EVENTS } from '@cornerstonejs/core';
|
||||
import { ViewportGridService } from '@ohif/core';
|
||||
|
||||
import { defaults } from '@ohif/core';
|
||||
import i18n from 'i18next';
|
||||
|
||||
const { windowLevelPresets } = defaults;
|
||||
|
||||
/**
|
||||
@ -79,8 +81,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.modalityLoadBadge',
|
||||
props: {
|
||||
icon: 'Status',
|
||||
label: 'Status',
|
||||
tooltip: 'Status',
|
||||
label: i18n.t('Buttons:Status'),
|
||||
tooltip: i18n.t('Buttons:Status'),
|
||||
evaluate: {
|
||||
name: 'evaluate.modalityLoadBadge',
|
||||
hideWhenDisabled: true,
|
||||
@ -92,8 +94,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.navigationComponent',
|
||||
props: {
|
||||
icon: 'Navigation',
|
||||
label: 'Navigation',
|
||||
tooltip: 'Navigate between segments/measurements and manage their visibility',
|
||||
label: i18n.t('Buttons:Navigation'),
|
||||
tooltip: i18n.t('Buttons:Navigate between segments/measurements and manage their visibility'),
|
||||
evaluate: {
|
||||
name: 'evaluate.navigationComponent',
|
||||
hideWhenDisabled: true,
|
||||
@ -105,8 +107,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.trackingStatus',
|
||||
props: {
|
||||
icon: 'TrackingStatus',
|
||||
label: 'Tracking Status',
|
||||
tooltip: 'View and manage tracking status of measurements and annotations',
|
||||
label: i18n.t('Buttons:Tracking Status'),
|
||||
tooltip: i18n.t('Buttons:View and manage tracking status of measurements and annotations'),
|
||||
evaluate: {
|
||||
name: 'evaluate.trackingStatus',
|
||||
hideWhenDisabled: true,
|
||||
@ -118,8 +120,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.dataOverlayMenu',
|
||||
props: {
|
||||
icon: 'ViewportViews',
|
||||
label: 'Data Overlay',
|
||||
tooltip: 'Configure data overlay options and manage foreground/background display sets',
|
||||
label: i18n.t('Buttons:Data Overlay'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Configure data overlay options and manage foreground/background display sets'
|
||||
),
|
||||
evaluate: 'evaluate.dataOverlayMenu',
|
||||
},
|
||||
},
|
||||
@ -128,8 +132,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.orientationMenu',
|
||||
props: {
|
||||
icon: 'OrientationSwitch',
|
||||
label: 'Orientation',
|
||||
tooltip: 'Change viewport orientation between axial, sagittal, coronal and reformat planes',
|
||||
label: i18n.t('Buttons:Orientation'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.orientationMenu',
|
||||
},
|
||||
@ -140,8 +146,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.windowLevelMenu',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: 'evaluate.windowLevelMenu',
|
||||
},
|
||||
},
|
||||
@ -150,8 +156,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.voiManualControlMenu',
|
||||
props: {
|
||||
icon: 'WindowLevelAdvanced',
|
||||
label: 'Advanced Window Level',
|
||||
tooltip: 'Advanced window/level settings with manual controls and presets',
|
||||
label: i18n.t('Buttons:Advanced Window Level'),
|
||||
tooltip: i18n.t('Buttons:Advanced window/level settings with manual controls and presets'),
|
||||
evaluate: 'evaluate.voiManualControlMenu',
|
||||
},
|
||||
},
|
||||
@ -160,8 +166,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.thresholdMenu',
|
||||
props: {
|
||||
icon: 'Threshold',
|
||||
label: 'Threshold',
|
||||
tooltip: 'Image threshold settings',
|
||||
label: i18n.t('Buttons:Threshold'),
|
||||
tooltip: i18n.t('Buttons:Image threshold settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.thresholdMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -173,8 +179,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.opacityMenu',
|
||||
props: {
|
||||
icon: 'Opacity',
|
||||
label: 'Opacity',
|
||||
tooltip: 'Image opacity settings',
|
||||
label: i18n.t('Buttons:Opacity'),
|
||||
tooltip: i18n.t('Buttons:Image opacity settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.opacityMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -186,7 +192,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.colorbar',
|
||||
props: {
|
||||
type: 'tool',
|
||||
label: 'Colorbar',
|
||||
label: i18n.t('Buttons:Colorbar'),
|
||||
},
|
||||
},
|
||||
_createWwwcPreset(1, 'Soft tissue', '400 / 40'),
|
||||
@ -199,8 +205,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-window-level',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Window Level',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Window Level'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -210,8 +216,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-length',
|
||||
label: 'Length',
|
||||
tooltip: 'Length Tool',
|
||||
label: i18n.t('Buttons:Length'),
|
||||
tooltip: i18n.t('Buttons:Length Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -221,8 +227,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-bidirectional',
|
||||
label: 'Bidirectional',
|
||||
tooltip: 'Bidirectional Tool',
|
||||
label: i18n.t('Buttons:Bidirectional'),
|
||||
tooltip: i18n.t('Buttons:Bidirectional Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -232,8 +238,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-annotate',
|
||||
label: 'Annotation',
|
||||
tooltip: 'Arrow Annotate',
|
||||
label: i18n.t('Buttons:Annotation'),
|
||||
tooltip: i18n.t('Buttons:Arrow Annotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -243,8 +249,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-ellipse',
|
||||
label: 'Ellipse',
|
||||
tooltip: 'Ellipse ROI',
|
||||
label: i18n.t('Buttons:Ellipse'),
|
||||
tooltip: i18n.t('Buttons:Ellipse ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -254,8 +260,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-circle',
|
||||
label: 'Circle',
|
||||
tooltip: 'Circle Tool',
|
||||
label: i18n.t('Buttons:Circle'),
|
||||
tooltip: i18n.t('Buttons:Circle Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -265,8 +271,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-freehand-roi',
|
||||
label: 'Freehand ROI',
|
||||
tooltip: 'Freehand ROI',
|
||||
label: i18n.t('Buttons:Freehand ROI'),
|
||||
tooltip: i18n.t('Buttons:Freehand ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -276,8 +282,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-spline-roi',
|
||||
label: 'Spline ROI',
|
||||
tooltip: 'Spline ROI',
|
||||
label: i18n.t('Buttons:Spline ROI'),
|
||||
tooltip: i18n.t('Buttons:Spline ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -287,8 +293,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-livewire',
|
||||
label: 'Livewire tool',
|
||||
tooltip: 'Livewire tool',
|
||||
label: i18n.t('Buttons:Livewire tool'),
|
||||
tooltip: i18n.t('Buttons:Livewire tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -298,8 +304,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-zoom',
|
||||
label: 'Zoom',
|
||||
tooltip: 'Zoom',
|
||||
label: i18n.t('Buttons:Zoom'),
|
||||
tooltip: i18n.t('Buttons:Zoom'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -310,8 +316,8 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
tooltip: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
tooltip: i18n.t('Buttons:Pan'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -321,8 +327,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-mpr',
|
||||
label: 'MPR',
|
||||
tooltip: 'MPR',
|
||||
label: i18n.t('Buttons:MPR'),
|
||||
tooltip: i18n.t('Buttons:MPR'),
|
||||
commands: {
|
||||
commandName: 'toggleHangingProtocol',
|
||||
commandOptions: {
|
||||
@ -338,8 +344,8 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-3d-rotate',
|
||||
label: '3D Rotate',
|
||||
tooltip: '3D Rotate',
|
||||
label: i18n.t('Buttons:3D Rotate'),
|
||||
tooltip: i18n.t('Buttons:3D Rotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
},
|
||||
},
|
||||
@ -348,8 +354,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-capture',
|
||||
label: 'Capture',
|
||||
tooltip: 'Capture',
|
||||
label: i18n.t('Buttons:Capture'),
|
||||
tooltip: i18n.t('Buttons:Capture'),
|
||||
commands: 'showDownloadViewportModal',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -376,8 +382,8 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-crosshair',
|
||||
label: 'Crosshairs',
|
||||
tooltip: 'Crosshairs',
|
||||
label: i18n.t('Buttons:Crosshairs'),
|
||||
tooltip: i18n.t('Buttons:Crosshairs'),
|
||||
commands: {
|
||||
commandName: 'setToolActiveToolbar',
|
||||
commandOptions: {
|
||||
@ -393,8 +399,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-reset',
|
||||
label: 'Reset View',
|
||||
tooltip: 'Reset View',
|
||||
label: i18n.t('Buttons:Reset View'),
|
||||
tooltip: i18n.t('Buttons:Reset View'),
|
||||
commands: 'resetViewport',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -404,8 +410,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rotate-right',
|
||||
label: 'Rotate Right',
|
||||
tooltip: 'Rotate +90',
|
||||
label: i18n.t('Buttons:Rotate Right'),
|
||||
tooltip: i18n.t('Buttons:Rotate +90'),
|
||||
commands: 'rotateViewportCW',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -415,8 +421,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-flip-horizontal',
|
||||
label: 'Flip Horizontal',
|
||||
tooltip: 'Flip Horizontally',
|
||||
label: i18n.t('Buttons:Flip Horizontal'),
|
||||
tooltip: i18n.t('Buttons:Flip Horizontally'),
|
||||
commands: 'flipViewportHorizontal',
|
||||
evaluate: 'evaluate.viewportProperties.toggle',
|
||||
},
|
||||
@ -426,8 +432,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'link',
|
||||
label: 'Image Slice Sync',
|
||||
tooltip: 'Enable position synchronization on stack viewports',
|
||||
label: i18n.t('Buttons:Image Slice Sync'),
|
||||
tooltip: i18n.t('Buttons:Enable position synchronization on stack viewports'),
|
||||
commands: {
|
||||
commandName: 'toggleSynchronizer',
|
||||
commandOptions: {
|
||||
@ -448,8 +454,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-referenceLines',
|
||||
label: 'Reference Lines',
|
||||
tooltip: 'Show Reference Lines',
|
||||
label: i18n.t('Buttons:Reference Lines'),
|
||||
tooltip: i18n.t('Buttons:Show Reference Lines'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
evaluate: 'evaluate.cornerstoneTool.toggle',
|
||||
},
|
||||
@ -459,8 +465,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'toggle-dicom-overlay',
|
||||
label: 'Image Overlay',
|
||||
tooltip: 'Toggle Image Overlay',
|
||||
label: i18n.t('Buttons:Image Overlay'),
|
||||
tooltip: i18n.t('Buttons:Toggle Image Overlay'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
evaluate: 'evaluate.cornerstoneTool.toggle',
|
||||
},
|
||||
@ -470,8 +476,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-stack-scroll',
|
||||
label: 'Stack Scroll',
|
||||
tooltip: 'Stack Scroll',
|
||||
label: i18n.t('Buttons:Stack Scroll'),
|
||||
tooltip: i18n.t('Buttons:Stack Scroll'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -481,8 +487,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-invert',
|
||||
label: 'Invert',
|
||||
tooltip: 'Invert Colors',
|
||||
label: i18n.t('Buttons:Invert'),
|
||||
tooltip: i18n.t('Buttons:Invert Colors'),
|
||||
commands: 'invertViewport',
|
||||
evaluate: 'evaluate.viewportProperties.toggle',
|
||||
},
|
||||
@ -492,8 +498,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-probe',
|
||||
label: 'Probe',
|
||||
tooltip: 'Probe',
|
||||
label: i18n.t('Buttons:Probe'),
|
||||
tooltip: i18n.t('Buttons:Probe'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -503,8 +509,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-cine',
|
||||
label: 'Cine',
|
||||
tooltip: 'Cine',
|
||||
label: i18n.t('Buttons:Cine'),
|
||||
tooltip: i18n.t('Buttons:Cine'),
|
||||
commands: 'toggleCine',
|
||||
evaluate: 'evaluate.cine',
|
||||
},
|
||||
@ -514,8 +520,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-angle',
|
||||
label: 'Angle',
|
||||
tooltip: 'Angle',
|
||||
label: i18n.t('Buttons:Angle'),
|
||||
tooltip: i18n.t('Buttons:Angle'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -525,8 +531,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-cobb-angle',
|
||||
label: 'Cobb Angle',
|
||||
tooltip: 'Cobb Angle',
|
||||
label: i18n.t('Buttons:Cobb Angle'),
|
||||
tooltip: i18n.t('Buttons:Cobb Angle'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -536,8 +542,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-magnify',
|
||||
label: 'Zoom-in',
|
||||
tooltip: 'Zoom-in',
|
||||
label: i18n.t('Buttons:Zoom-in'),
|
||||
tooltip: i18n.t('Buttons:Zoom-in'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -547,8 +553,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rectangle',
|
||||
label: 'Rectangle',
|
||||
tooltip: 'Rectangle',
|
||||
label: i18n.t('Buttons:Rectangle'),
|
||||
tooltip: i18n.t('Buttons:Rectangle'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -558,8 +564,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-calibration',
|
||||
label: 'Calibration',
|
||||
tooltip: 'Calibration Line',
|
||||
label: i18n.t('Buttons:Calibration'),
|
||||
tooltip: i18n.t('Buttons:Calibration Line'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -569,8 +575,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'dicom-tag-browser',
|
||||
label: 'Dicom Tag Browser',
|
||||
tooltip: 'Dicom Tag Browser',
|
||||
label: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
tooltip: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
commands: 'openDICOMTagViewer',
|
||||
},
|
||||
},
|
||||
@ -579,8 +585,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-loupe',
|
||||
label: 'Magnify Probe',
|
||||
tooltip: 'Magnify Probe',
|
||||
label: i18n.t('Buttons:Magnify Probe'),
|
||||
tooltip: i18n.t('Buttons:Magnify Probe'),
|
||||
commands: 'toggleActiveDisabledToolbar',
|
||||
evaluate: 'evaluate.cornerstoneTool.toggle.ifStrictlyDisabled',
|
||||
},
|
||||
@ -590,8 +596,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-ultrasound-bidirectional',
|
||||
label: 'Ultrasound Directional',
|
||||
tooltip: 'Ultrasound Directional',
|
||||
label: i18n.t('Buttons:Ultrasound Directional'),
|
||||
tooltip: i18n.t('Buttons:Ultrasound Directional'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -607,8 +613,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-window-region',
|
||||
label: 'Window Level Region',
|
||||
tooltip: 'Window Level Region',
|
||||
label: i18n.t('Buttons:Window Level Region'),
|
||||
tooltip: i18n.t('Buttons:Window Level Region'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
|
||||
@ -2,6 +2,7 @@ import type { Button } from '@ohif/core/types';
|
||||
|
||||
import { EVENTS } from '@cornerstonejs/core';
|
||||
import { ViewportGridService } from '@ohif/core';
|
||||
import i18n from 'i18next';
|
||||
|
||||
const callbacks = (toolName: string) => [
|
||||
{
|
||||
@ -48,8 +49,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.modalityLoadBadge',
|
||||
props: {
|
||||
icon: 'Status',
|
||||
label: 'Status',
|
||||
tooltip: 'Status',
|
||||
label: i18n.t('Buttons:Status'),
|
||||
tooltip: i18n.t('Buttons:Status'),
|
||||
evaluate: {
|
||||
name: 'evaluate.modalityLoadBadge',
|
||||
hideWhenDisabled: true,
|
||||
@ -61,8 +62,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.navigationComponent',
|
||||
props: {
|
||||
icon: 'Navigation',
|
||||
label: 'Navigation',
|
||||
tooltip: 'Navigate between segments/measurements and manage their visibility',
|
||||
label: i18n.t('Buttons:Navigation'),
|
||||
tooltip: i18n.t('Buttons:Navigate between segments/measurements and manage their visibility'),
|
||||
evaluate: {
|
||||
name: 'evaluate.navigationComponent',
|
||||
hideWhenDisabled: true,
|
||||
@ -74,8 +75,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.trackingStatus',
|
||||
props: {
|
||||
icon: 'TrackingStatus',
|
||||
label: 'Tracking Status',
|
||||
tooltip: 'View and manage tracking status of measurements and annotations',
|
||||
label: i18n.t('Buttons:Tracking Status'),
|
||||
tooltip: i18n.t('Buttons:View and manage tracking status of measurements and annotations'),
|
||||
evaluate: {
|
||||
name: 'evaluate.trackingStatus',
|
||||
hideWhenDisabled: true,
|
||||
@ -87,8 +88,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.dataOverlayMenu',
|
||||
props: {
|
||||
icon: 'ViewportViews',
|
||||
label: 'Data Overlay',
|
||||
tooltip: 'Configure data overlay options and manage foreground/background display sets',
|
||||
label: i18n.t('Buttons:Data Overlay'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Configure data overlay options and manage foreground/background display sets'
|
||||
),
|
||||
evaluate: 'evaluate.dataOverlayMenu',
|
||||
},
|
||||
},
|
||||
@ -97,8 +100,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.orientationMenu',
|
||||
props: {
|
||||
icon: 'OrientationSwitch',
|
||||
label: 'Orientation',
|
||||
tooltip: 'Change viewport orientation between axial, sagittal, coronal and reformat planes',
|
||||
label: i18n.t('Buttons:Orientation'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.orientationMenu',
|
||||
// hideWhenDisabled: true,
|
||||
@ -110,8 +115,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.windowLevelMenuEmbedded',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.windowLevelMenuEmbedded',
|
||||
hideWhenDisabled: true,
|
||||
@ -123,8 +128,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.windowLevelMenu',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.windowLevelMenu',
|
||||
},
|
||||
@ -135,8 +140,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.voiManualControlMenu',
|
||||
props: {
|
||||
icon: 'WindowLevelAdvanced',
|
||||
label: 'Advanced Window Level',
|
||||
tooltip: 'Advanced window/level settings with manual controls and presets',
|
||||
label: i18n.t('Buttons:Advanced Window Level'),
|
||||
tooltip: i18n.t('Buttons:Advanced window/level settings with manual controls and presets'),
|
||||
evaluate: 'evaluate.voiManualControlMenu',
|
||||
},
|
||||
},
|
||||
@ -145,8 +150,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.thresholdMenu',
|
||||
props: {
|
||||
icon: 'Threshold',
|
||||
label: 'Threshold',
|
||||
tooltip: 'Image threshold settings',
|
||||
label: i18n.t('Buttons:Threshold'),
|
||||
tooltip: i18n.t('Buttons:Image threshold settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.thresholdMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -158,8 +163,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.opacityMenu',
|
||||
props: {
|
||||
icon: 'Opacity',
|
||||
label: 'Opacity',
|
||||
tooltip: 'Image opacity settings',
|
||||
label: i18n.t('Buttons:Opacity'),
|
||||
tooltip: i18n.t('Buttons:Image opacity settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.opacityMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -171,7 +176,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.colorbar',
|
||||
props: {
|
||||
type: 'tool',
|
||||
label: 'Colorbar',
|
||||
label: i18n.t('Buttons:Colorbar'),
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -179,8 +184,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-reset',
|
||||
label: 'Reset View',
|
||||
tooltip: 'Reset View',
|
||||
label: i18n.t('Buttons:Reset View'),
|
||||
tooltip: i18n.t('Buttons:Reset View'),
|
||||
commands: 'resetViewport',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -190,8 +195,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rotate-right',
|
||||
label: 'Rotate Right',
|
||||
tooltip: 'Rotate +90',
|
||||
label: i18n.t('Buttons:Rotate Right'),
|
||||
tooltip: i18n.t('Buttons:Rotate +90'),
|
||||
commands: 'rotateViewportCW',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -207,8 +212,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-flip-horizontal',
|
||||
label: 'Flip Horizontal',
|
||||
tooltip: 'Flip Horizontally',
|
||||
label: i18n.t('Buttons:Flip Horizontal'),
|
||||
tooltip: i18n.t('Buttons:Flip Horizontally'),
|
||||
commands: 'flipViewportHorizontal',
|
||||
evaluate: [
|
||||
'evaluate.viewportProperties.toggle',
|
||||
@ -224,8 +229,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'link',
|
||||
label: 'Image Slice Sync',
|
||||
tooltip: 'Enable position synchronization on stack viewports',
|
||||
label: i18n.t('Buttons:Image Slice Sync'),
|
||||
tooltip: i18n.t('Buttons:Enable position synchronization on stack viewports'),
|
||||
commands: {
|
||||
commandName: 'toggleSynchronizer',
|
||||
commandOptions: {
|
||||
@ -252,8 +257,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-referenceLines',
|
||||
label: 'Reference Lines',
|
||||
tooltip: 'Show Reference Lines',
|
||||
label: i18n.t('Buttons:Reference Lines'),
|
||||
tooltip: i18n.t('Buttons:Show Reference Lines'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
listeners: {
|
||||
[ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: callbacks('ReferenceLines'),
|
||||
@ -273,8 +278,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'toggle-dicom-overlay',
|
||||
label: 'Image Overlay',
|
||||
tooltip: 'Toggle Image Overlay',
|
||||
label: i18n.t('Buttons:Image Overlay'),
|
||||
tooltip: i18n.t('Buttons:Toggle Image Overlay'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool.toggle',
|
||||
@ -290,8 +295,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-stack-scroll',
|
||||
label: 'Stack Scroll',
|
||||
tooltip: 'Stack Scroll',
|
||||
label: i18n.t('Buttons:Stack Scroll'),
|
||||
tooltip: i18n.t('Buttons:Stack Scroll'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -301,8 +306,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-invert',
|
||||
label: 'Invert',
|
||||
tooltip: 'Invert Colors',
|
||||
label: i18n.t('Buttons:Invert'),
|
||||
tooltip: i18n.t('Buttons:Invert Colors'),
|
||||
commands: 'invertViewport',
|
||||
evaluate: [
|
||||
'evaluate.viewportProperties.toggle',
|
||||
@ -318,8 +323,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-probe',
|
||||
label: 'Probe',
|
||||
tooltip: 'Probe',
|
||||
label: i18n.t('Buttons:Probe'),
|
||||
tooltip: i18n.t('Buttons:Probe'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -329,8 +334,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-cine',
|
||||
label: 'Cine',
|
||||
tooltip: 'Cine',
|
||||
label: i18n.t('Buttons:Cine'),
|
||||
tooltip: i18n.t('Buttons:Cine'),
|
||||
commands: 'toggleCine',
|
||||
evaluate: [
|
||||
'evaluate.cine',
|
||||
@ -346,8 +351,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-angle',
|
||||
label: 'Angle',
|
||||
tooltip: 'Angle',
|
||||
label: i18n.t('Buttons:Angle'),
|
||||
tooltip: i18n.t('Buttons:Angle'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -357,8 +362,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-cobb-angle',
|
||||
label: 'Cobb Angle',
|
||||
tooltip: 'Cobb Angle',
|
||||
label: i18n.t('Buttons:Cobb Angle'),
|
||||
tooltip: i18n.t('Buttons:Cobb Angle'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -368,8 +373,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-magnify',
|
||||
label: 'Zoom-in',
|
||||
tooltip: 'Zoom-in',
|
||||
label: i18n.t('Buttons:Zoom-in'),
|
||||
tooltip: i18n.t('Buttons:Zoom-in'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -385,8 +390,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-calibration',
|
||||
label: 'Calibration',
|
||||
tooltip: 'Calibration Line',
|
||||
label: i18n.t('Buttons:Calibration'),
|
||||
tooltip: i18n.t('Buttons:Calibration Line'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -402,8 +407,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'dicom-tag-browser',
|
||||
label: 'Dicom Tag Browser',
|
||||
tooltip: 'Dicom Tag Browser',
|
||||
label: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
tooltip: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
commands: 'openDICOMTagViewer',
|
||||
},
|
||||
},
|
||||
@ -412,8 +417,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-loupe',
|
||||
label: 'Magnify Probe',
|
||||
tooltip: 'Magnify Probe',
|
||||
label: i18n.t('Buttons:Magnify Probe'),
|
||||
tooltip: i18n.t('Buttons:Magnify Probe'),
|
||||
commands: 'toggleActiveDisabledToolbar',
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool.toggle.ifStrictlyDisabled',
|
||||
@ -429,8 +434,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-ultrasound-bidirectional',
|
||||
label: 'Ultrasound Directional',
|
||||
tooltip: 'Ultrasound Directional',
|
||||
label: i18n.t('Buttons:Ultrasound Directional'),
|
||||
tooltip: i18n.t('Buttons:Ultrasound Directional'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -446,8 +451,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-window-region',
|
||||
label: 'Window Level Region',
|
||||
tooltip: 'Window Level Region',
|
||||
label: i18n.t('Buttons:Window Level Region'),
|
||||
tooltip: i18n.t('Buttons:Window Level Region'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -463,8 +468,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-length',
|
||||
label: 'Length',
|
||||
tooltip: 'Length Tool',
|
||||
label: i18n.t('Buttons:Length'),
|
||||
tooltip: i18n.t('Buttons:Length Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -474,8 +479,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-bidirectional',
|
||||
label: 'Bidirectional',
|
||||
tooltip: 'Bidirectional Tool',
|
||||
label: i18n.t('Buttons:Bidirectional'),
|
||||
tooltip: i18n.t('Buttons:Bidirectional Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -485,8 +490,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-annotate',
|
||||
label: 'Annotation',
|
||||
tooltip: 'Arrow Annotate',
|
||||
label: i18n.t('Buttons:Annotation'),
|
||||
tooltip: i18n.t('Buttons:Arrow Annotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -496,8 +501,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-ellipse',
|
||||
label: 'Ellipse',
|
||||
tooltip: 'Ellipse ROI',
|
||||
label: i18n.t('Buttons:Ellipse'),
|
||||
tooltip: i18n.t('Buttons:Ellipse ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -507,8 +512,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rectangle',
|
||||
label: 'Rectangle',
|
||||
tooltip: 'Rectangle ROI',
|
||||
label: i18n.t('Buttons:Rectangle'),
|
||||
tooltip: i18n.t('Buttons:Rectangle ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -518,8 +523,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-circle',
|
||||
label: 'Circle',
|
||||
tooltip: 'Circle Tool',
|
||||
label: i18n.t('Buttons:Circle'),
|
||||
tooltip: i18n.t('Buttons:Circle Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -529,8 +534,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-freehand-roi',
|
||||
label: 'Freehand ROI',
|
||||
tooltip: 'Freehand ROI',
|
||||
label: i18n.t('Buttons:Freehand ROI'),
|
||||
tooltip: i18n.t('Buttons:Freehand ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -540,8 +545,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-spline-roi',
|
||||
label: 'Spline ROI',
|
||||
tooltip: 'Spline ROI',
|
||||
label: i18n.t('Buttons:Spline ROI'),
|
||||
tooltip: i18n.t('Buttons:Spline ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -551,8 +556,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-livewire',
|
||||
label: 'Livewire tool',
|
||||
tooltip: 'Livewire tool',
|
||||
label: i18n.t('Buttons:Livewire tool'),
|
||||
tooltip: i18n.t('Buttons:Livewire tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -563,7 +568,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-window-level',
|
||||
label: 'Window Level',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -580,7 +585,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -591,7 +596,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-zoom',
|
||||
label: 'Zoom',
|
||||
label: i18n.t('Buttons:Zoom'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -602,7 +607,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-3d-rotate',
|
||||
label: '3D Rotate',
|
||||
label: i18n.t('Buttons:3D Rotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstoneTool',
|
||||
@ -615,7 +620,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-capture',
|
||||
label: 'Capture',
|
||||
label: i18n.t('Buttons:Capture'),
|
||||
commands: 'showDownloadViewportModal',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -641,7 +646,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-crosshair',
|
||||
label: 'Crosshairs',
|
||||
label: i18n.t('Buttons:Crosshairs'),
|
||||
commands: {
|
||||
commandName: 'setToolActiveToolbar',
|
||||
commandOptions: {
|
||||
@ -667,8 +672,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'tool-segment-label',
|
||||
label: 'Segment Label Display',
|
||||
tooltip: 'Click to show or hide segment labels when hovering with your mouse.',
|
||||
label: i18n.t('Buttons:Segment Label Display'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Click to show or hide segment labels when hovering with your mouse.'
|
||||
),
|
||||
commands: { commandName: 'toggleSegmentLabel' },
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool.toggle',
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import type { Button } from '@ohif/core/types';
|
||||
import i18n from 'i18next';
|
||||
|
||||
export const setToolActiveToolbar = {
|
||||
commandName: 'setToolActive',
|
||||
@ -21,8 +22,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-length',
|
||||
label: 'Line',
|
||||
tooltip: 'Line',
|
||||
label: i18n.t('Buttons:Line'),
|
||||
tooltip: i18n.t('Buttons:Line Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.microscopyTool',
|
||||
},
|
||||
@ -32,8 +33,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-point',
|
||||
label: 'Point',
|
||||
tooltip: 'Point Tool',
|
||||
label: i18n.t('Buttons:Point'),
|
||||
tooltip: i18n.t('Buttons:Point Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: { toolName: 'point' },
|
||||
@ -46,8 +47,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-polygon',
|
||||
label: 'Polygon',
|
||||
tooltip: 'Polygon Tool',
|
||||
label: i18n.t('Buttons:Polygon'),
|
||||
tooltip: i18n.t('Buttons:Polygon Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: { toolName: 'polygon' },
|
||||
@ -60,8 +61,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-circle',
|
||||
label: 'Circle',
|
||||
tooltip: 'Circle Tool',
|
||||
label: i18n.t('Buttons:Circle'),
|
||||
tooltip: i18n.t('Buttons:Circle Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: { toolName: 'circle' },
|
||||
@ -74,8 +75,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rectangle',
|
||||
label: 'Box',
|
||||
tooltip: 'Box Tool',
|
||||
label: i18n.t('Buttons:Box'),
|
||||
tooltip: i18n.t('Buttons:Box Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: { toolName: 'box' },
|
||||
@ -88,8 +89,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-freehand-polygon',
|
||||
label: 'Freehand Polygon',
|
||||
tooltip: 'Freehand Polygon Tool',
|
||||
label: i18n.t('Buttons:Freehand Polygon'),
|
||||
tooltip: i18n.t('Buttons:Freehand Polygon Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: { toolName: 'freehandpolygon' },
|
||||
@ -102,8 +103,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-freehand-line',
|
||||
label: 'Freehand Line',
|
||||
tooltip: 'Freehand Line Tool',
|
||||
label: i18n.t('Buttons:Freehand Line'),
|
||||
tooltip: i18n.t('Buttons:Freehand Line Tool'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: { toolName: 'freehandline' },
|
||||
@ -116,7 +117,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
commands: {
|
||||
...setToolActiveToolbar,
|
||||
commandOptions: { toolName: 'dragPan' },
|
||||
@ -129,8 +130,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'dicom-tag-browser',
|
||||
label: 'Dicom Tag Browser',
|
||||
tooltip: 'Dicom Tag Browser',
|
||||
label: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
tooltip: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
commands: 'openDICOMTagViewer',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { toolGroupIds } from './initToolGroups';
|
||||
import { ViewportGridService } from '@ohif/core';
|
||||
import i18n from 'i18next';
|
||||
|
||||
const setToolActiveToolbar = {
|
||||
commandName: 'setToolActiveToolbar',
|
||||
@ -51,8 +52,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.modalityLoadBadge',
|
||||
props: {
|
||||
icon: 'Status',
|
||||
label: 'Status',
|
||||
tooltip: 'Status',
|
||||
label: i18n.t('Buttons:Status'),
|
||||
tooltip: i18n.t('Buttons:Status'),
|
||||
evaluate: {
|
||||
name: 'evaluate.modalityLoadBadge',
|
||||
hideWhenDisabled: true,
|
||||
@ -64,8 +65,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.navigationComponent',
|
||||
props: {
|
||||
icon: 'Navigation',
|
||||
label: 'Navigation',
|
||||
tooltip: 'Navigate between segments/measurements and manage their visibility',
|
||||
label: i18n.t('Buttons:Navigation'),
|
||||
tooltip: i18n.t('Buttons:Navigate between segments/measurements and manage their visibility'),
|
||||
evaluate: {
|
||||
name: 'evaluate.navigationComponent',
|
||||
hideWhenDisabled: true,
|
||||
@ -77,8 +78,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.windowLevelMenuEmbedded',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.windowLevelMenuEmbedded',
|
||||
hideWhenDisabled: true,
|
||||
@ -90,8 +91,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.trackingStatus',
|
||||
props: {
|
||||
icon: 'TrackingStatus',
|
||||
label: 'Tracking Status',
|
||||
tooltip: 'View and manage tracking status of measurements and annotations',
|
||||
label: i18n.t('Buttons:Tracking Status'),
|
||||
tooltip: i18n.t('Buttons:View and manage tracking status of measurements and annotations'),
|
||||
evaluate: {
|
||||
name: 'evaluate.trackingStatus',
|
||||
hideWhenDisabled: true,
|
||||
@ -103,8 +104,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-length',
|
||||
label: 'Length',
|
||||
tooltip: 'Length Tool',
|
||||
label: i18n.t('Buttons:Length'),
|
||||
tooltip: i18n.t('Buttons:Length Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -114,8 +115,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-bidirectional',
|
||||
label: 'Bidirectional',
|
||||
tooltip: 'Bidirectional Tool',
|
||||
label: i18n.t('Buttons:Bidirectional'),
|
||||
tooltip: i18n.t('Buttons:Bidirectional Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -125,8 +126,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-annotate',
|
||||
label: 'Annotation',
|
||||
tooltip: 'Arrow Annotate',
|
||||
label: i18n.t('Buttons:Annotation'),
|
||||
tooltip: i18n.t('Buttons:Arrow Annotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -136,8 +137,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-ellipse',
|
||||
label: 'Ellipse',
|
||||
tooltip: 'Ellipse ROI',
|
||||
label: i18n.t('Buttons:Ellipse'),
|
||||
tooltip: i18n.t('Buttons:Ellipse ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -147,7 +148,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-zoom',
|
||||
label: 'Zoom',
|
||||
label: i18n.t('Buttons:Zoom'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -157,7 +158,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-window-level',
|
||||
label: 'Window Level',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -168,7 +169,7 @@ const toolbarButtons = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -179,7 +180,7 @@ const toolbarButtons = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-3d-rotate',
|
||||
label: '3D Rotate',
|
||||
label: i18n.t('Buttons:3D Rotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -189,7 +190,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-capture',
|
||||
label: 'Capture',
|
||||
label: i18n.t('Buttons:Capture'),
|
||||
commands: 'showDownloadViewportModal',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -216,7 +217,7 @@ const toolbarButtons = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-crosshair',
|
||||
label: 'Crosshairs',
|
||||
label: i18n.t('Buttons:Crosshairs'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -230,7 +231,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'tool-create-threshold',
|
||||
label: 'Rectangle ROI Threshold',
|
||||
label: i18n.t('Buttons:Rectangle ROI Threshold'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
@ -244,7 +245,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-brush',
|
||||
label: 'Brush',
|
||||
label: i18n.t('Buttons:Brush'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['CircularBrush', 'SphereBrush'],
|
||||
@ -282,7 +283,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-eraser',
|
||||
label: 'Eraser',
|
||||
label: i18n.t('Buttons:Eraser'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['CircularEraser', 'SphereEraser'],
|
||||
@ -320,7 +321,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-threshold',
|
||||
label: 'Threshold',
|
||||
label: i18n.t('Buttons:Threshold'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'],
|
||||
@ -401,8 +402,10 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.dataOverlayMenu',
|
||||
props: {
|
||||
icon: 'ViewportViews',
|
||||
label: 'Data Overlay',
|
||||
tooltip: 'Configure data overlay options and manage foreground/background display sets',
|
||||
label: i18n.t('Buttons:Data Overlay'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Configure data overlay options and manage foreground/background display sets'
|
||||
),
|
||||
evaluate: 'evaluate.dataOverlayMenu',
|
||||
},
|
||||
},
|
||||
@ -411,8 +414,10 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.orientationMenu',
|
||||
props: {
|
||||
icon: 'OrientationSwitch',
|
||||
label: 'Orientation',
|
||||
tooltip: 'Change viewport orientation between axial, sagittal, coronal and reformat planes',
|
||||
label: i18n.t('Buttons:Orientation'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.orientationMenu',
|
||||
// hideWhenDisabled: true,
|
||||
@ -424,8 +429,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.windowLevelMenu',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: 'evaluate.windowLevelMenu',
|
||||
},
|
||||
},
|
||||
@ -434,8 +439,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.voiManualControlMenu',
|
||||
props: {
|
||||
icon: 'WindowLevelAdvanced',
|
||||
label: 'Advanced Window Level',
|
||||
tooltip: 'Advanced window/level settings with manual controls and presets',
|
||||
label: i18n.t('Buttons:Advanced Window Level'),
|
||||
tooltip: i18n.t('Buttons:Advanced window/level settings with manual controls and presets'),
|
||||
evaluate: 'evaluate.voiManualControlMenu',
|
||||
},
|
||||
},
|
||||
@ -444,8 +449,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.thresholdMenu',
|
||||
props: {
|
||||
icon: 'Threshold',
|
||||
label: 'Threshold',
|
||||
tooltip: 'Image threshold settings',
|
||||
label: i18n.t('Buttons:Threshold'),
|
||||
tooltip: i18n.t('Buttons:Image threshold settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.thresholdMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -457,8 +462,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.opacityMenu',
|
||||
props: {
|
||||
icon: 'Opacity',
|
||||
label: 'Opacity',
|
||||
tooltip: 'Image opacity settings',
|
||||
label: i18n.t('Buttons:Opacity'),
|
||||
tooltip: i18n.t('Buttons:Image opacity settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.opacityMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -470,7 +475,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.colorbar',
|
||||
props: {
|
||||
type: 'tool',
|
||||
label: 'Colorbar',
|
||||
label: i18n.t('Buttons:Colorbar'),
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@ -39,6 +39,12 @@ const config = {
|
||||
amd: '@ohif/ui',
|
||||
root: '@ohif/ui',
|
||||
},
|
||||
i18next: {
|
||||
commonjs2: 'i18next',
|
||||
commonjs: 'i18next',
|
||||
amd: 'i18next',
|
||||
root: 'i18next',
|
||||
},
|
||||
},
|
||||
],
|
||||
module: {
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import type { Button } from '@ohif/core/types';
|
||||
import { ViewportGridService } from '@ohif/core';
|
||||
import i18n from 'i18next';
|
||||
|
||||
const setToolActiveToolbar = {
|
||||
commandName: 'setToolActiveToolbar',
|
||||
@ -30,8 +31,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.modalityLoadBadge',
|
||||
props: {
|
||||
icon: 'Status',
|
||||
label: 'Status',
|
||||
tooltip: 'Status',
|
||||
label: i18n.t('Buttons:Status'),
|
||||
tooltip: i18n.t('Buttons:Status'),
|
||||
evaluate: {
|
||||
name: 'evaluate.modalityLoadBadge',
|
||||
hideWhenDisabled: true,
|
||||
@ -43,8 +44,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.navigationComponent',
|
||||
props: {
|
||||
icon: 'Navigation',
|
||||
label: 'Navigation',
|
||||
tooltip: 'Navigate between segments/measurements and manage their visibility',
|
||||
label: i18n.t('Buttons:Navigation'),
|
||||
tooltip: i18n.t('Buttons:Navigate between segments/measurements and manage their visibility'),
|
||||
evaluate: {
|
||||
name: 'evaluate.navigationComponent',
|
||||
hideWhenDisabled: true,
|
||||
@ -56,8 +57,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.trackingStatus',
|
||||
props: {
|
||||
icon: 'TrackingStatus',
|
||||
label: 'Tracking Status',
|
||||
tooltip: 'View and manage tracking status of measurements and annotations',
|
||||
label: i18n.t('Buttons:Tracking Status'),
|
||||
tooltip: i18n.t('Buttons:View and manage tracking status of measurements and annotations'),
|
||||
evaluate: {
|
||||
name: 'evaluate.trackingStatus',
|
||||
hideWhenDisabled: true,
|
||||
@ -69,8 +70,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.dataOverlayMenu',
|
||||
props: {
|
||||
icon: 'ViewportViews',
|
||||
label: 'Data Overlay',
|
||||
tooltip: 'Configure data overlay options and manage foreground/background display sets',
|
||||
label: i18n.t('Buttons:Data Overlay'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Configure data overlay options and manage foreground/background display sets'
|
||||
),
|
||||
evaluate: 'evaluate.dataOverlayMenu',
|
||||
},
|
||||
},
|
||||
@ -79,8 +82,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.orientationMenu',
|
||||
props: {
|
||||
icon: 'OrientationSwitch',
|
||||
label: 'Orientation',
|
||||
tooltip: 'Change viewport orientation between axial, sagittal, coronal and reformat planes',
|
||||
label: i18n.t('Buttons:Orientation'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.orientationMenu',
|
||||
// hideWhenDisabled: true,
|
||||
@ -92,8 +97,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.windowLevelMenuEmbedded',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.windowLevelMenuEmbedded',
|
||||
hideWhenDisabled: true,
|
||||
@ -105,8 +110,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.windowLevelMenu',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: 'evaluate.windowLevelMenu',
|
||||
},
|
||||
},
|
||||
@ -115,8 +120,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.voiManualControlMenu',
|
||||
props: {
|
||||
icon: 'WindowLevelAdvanced',
|
||||
label: 'Advanced Window Level',
|
||||
tooltip: 'Advanced window/level settings with manual controls and presets',
|
||||
label: i18n.t('Buttons:Advanced Window Level'),
|
||||
tooltip: i18n.t('Buttons:Advanced window/level settings with manual controls and presets'),
|
||||
evaluate: 'evaluate.voiManualControlMenu',
|
||||
},
|
||||
},
|
||||
@ -125,8 +130,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.thresholdMenu',
|
||||
props: {
|
||||
icon: 'Threshold',
|
||||
label: 'Threshold',
|
||||
tooltip: 'Image threshold settings',
|
||||
label: i18n.t('Buttons:Threshold'),
|
||||
tooltip: i18n.t('Buttons:Image threshold settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.thresholdMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -138,8 +143,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.opacityMenu',
|
||||
props: {
|
||||
icon: 'Opacity',
|
||||
label: 'Opacity',
|
||||
tooltip: 'Image opacity settings',
|
||||
label: i18n.t('Buttons:Opacity'),
|
||||
tooltip: i18n.t('Buttons:Image opacity settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.opacityMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -151,7 +156,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.colorbar',
|
||||
props: {
|
||||
type: 'tool',
|
||||
label: 'Colorbar',
|
||||
label: i18n.t('Buttons:Colorbar'),
|
||||
},
|
||||
},
|
||||
// sections
|
||||
@ -190,7 +195,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-zoom',
|
||||
label: 'Zoom',
|
||||
label: i18n.t('Buttons:Zoom'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -200,7 +205,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-window-level',
|
||||
label: 'Window Level',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -210,7 +215,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -221,11 +226,11 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-3d-rotate',
|
||||
label: '3D Rotate',
|
||||
label: i18n.t('Buttons:3D Rotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstoneTool',
|
||||
disabledText: 'Select a 3D viewport to enable this tool',
|
||||
disabledText: i18n.t('Buttons:Select a 3D viewport to enable this tool'),
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -234,7 +239,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-capture',
|
||||
label: 'Capture',
|
||||
label: i18n.t('Buttons:Capture'),
|
||||
commands: 'showDownloadViewportModal',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -260,7 +265,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-crosshair',
|
||||
label: 'Crosshairs',
|
||||
label: i18n.t('Buttons:Crosshairs'),
|
||||
commands: {
|
||||
commandName: 'setToolActiveToolbar',
|
||||
commandOptions: {
|
||||
@ -269,7 +274,7 @@ const toolbarButtons: Button[] = [
|
||||
},
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstoneTool',
|
||||
disabledText: 'Select an MPR viewport to enable this tool',
|
||||
disabledText: i18n.t('Buttons:Select an MPR viewport to enable this tool'),
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -278,8 +283,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-reset',
|
||||
label: 'Reset View',
|
||||
tooltip: 'Reset View',
|
||||
label: i18n.t('Buttons:Reset View'),
|
||||
tooltip: i18n.t('Buttons:Reset View'),
|
||||
commands: 'resetViewport',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -289,8 +294,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rotate-right',
|
||||
label: 'Rotate Right',
|
||||
tooltip: 'Rotate +90',
|
||||
label: i18n.t('Buttons:Rotate Right'),
|
||||
tooltip: i18n.t('Buttons:Rotate +90'),
|
||||
commands: 'rotateViewportCW',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -300,8 +305,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-flip-horizontal',
|
||||
label: 'Flip Horizontal',
|
||||
tooltip: 'Flip Horizontally',
|
||||
label: i18n.t('Buttons:Flip Horizontal'),
|
||||
tooltip: i18n.t('Buttons:Flip Horizontally'),
|
||||
commands: 'flipViewportHorizontal',
|
||||
evaluate: [
|
||||
'evaluate.viewportProperties.toggle',
|
||||
@ -317,8 +322,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-referenceLines',
|
||||
label: 'Reference Lines',
|
||||
tooltip: 'Show Reference Lines',
|
||||
label: i18n.t('Buttons:Reference Lines'),
|
||||
tooltip: i18n.t('Buttons:Show Reference Lines'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
evaluate: 'evaluate.cornerstoneTool.toggle',
|
||||
},
|
||||
@ -328,8 +333,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'toggle-dicom-overlay',
|
||||
label: 'Image Overlay',
|
||||
tooltip: 'Toggle Image Overlay',
|
||||
label: i18n.t('Buttons:Image Overlay'),
|
||||
tooltip: i18n.t('Buttons:Toggle Image Overlay'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
evaluate: 'evaluate.cornerstoneTool.toggle',
|
||||
},
|
||||
@ -339,8 +344,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-stack-scroll',
|
||||
label: 'Stack Scroll',
|
||||
tooltip: 'Stack Scroll',
|
||||
label: i18n.t('Buttons:Stack Scroll'),
|
||||
tooltip: i18n.t('Buttons:Stack Scroll'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -350,8 +355,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-invert',
|
||||
label: 'Invert',
|
||||
tooltip: 'Invert Colors',
|
||||
label: i18n.t('Buttons:Invert'),
|
||||
tooltip: i18n.t('Buttons:Invert Colors'),
|
||||
commands: 'invertViewport',
|
||||
evaluate: 'evaluate.viewportProperties.toggle',
|
||||
},
|
||||
@ -361,8 +366,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-cine',
|
||||
label: 'Cine',
|
||||
tooltip: 'Cine',
|
||||
label: i18n.t('Buttons:Cine'),
|
||||
tooltip: i18n.t('Buttons:Cine'),
|
||||
commands: 'toggleCine',
|
||||
evaluate: [
|
||||
'evaluate.cine',
|
||||
@ -378,8 +383,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-magnify',
|
||||
label: 'Zoom-in',
|
||||
tooltip: 'Zoom-in',
|
||||
label: i18n.t('Buttons:Zoom-in'),
|
||||
tooltip: i18n.t('Buttons:Zoom-in'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -389,8 +394,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'dicom-tag-browser',
|
||||
label: 'Dicom Tag Browser',
|
||||
tooltip: 'Dicom Tag Browser',
|
||||
label: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
tooltip: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
commands: 'openDICOMTagViewer',
|
||||
},
|
||||
},
|
||||
@ -400,11 +405,11 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-tool-brush',
|
||||
label: 'Brush',
|
||||
label: i18n.t('Buttons:Brush'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['CircularBrush', 'SphereBrush'],
|
||||
disabledText: 'Create new segmentation to enable this tool.',
|
||||
disabledText: i18n.t('Buttons:Create new segmentation to enable this tool.'),
|
||||
},
|
||||
options: [
|
||||
{
|
||||
@ -439,14 +444,15 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-tool-interpolation',
|
||||
label: 'Interpolate Labelmap',
|
||||
tooltip:
|
||||
'Automatically fill in missing slices between drawn segments. Use brush or threshold tools on at least two slices, then click to interpolate across slices. Works in any direction. Volume must be reconstructable.',
|
||||
label: i18n.t('Buttons:Interpolate Labelmap'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Automatically fill in missing slices between drawn segments. Use brush or threshold tools on at least two slices, then click to interpolate across slices. Works in any direction. Volume must be reconstructable.'
|
||||
),
|
||||
evaluate: [
|
||||
'evaluate.cornerstone.segmentation',
|
||||
{
|
||||
name: 'evaluate.displaySetIsReconstructable',
|
||||
disabledText: 'The current viewport cannot handle interpolation.',
|
||||
disabledText: i18n.t('Buttons:The current viewport cannot handle interpolation.'),
|
||||
},
|
||||
],
|
||||
commands: 'interpolateLabelmap',
|
||||
@ -457,12 +463,13 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-tool-bidirectional-segment',
|
||||
label: 'Segment Bidirectional',
|
||||
tooltip:
|
||||
'Automatically detects the largest length and width across slices for the selected segment and displays a bidirectional measurement.',
|
||||
label: i18n.t('Buttons:Segment Bidirectional'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Automatically detects the largest length and width across slices for the selected segment and displays a bidirectional measurement.'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
disabledText: 'Create new segmentation to enable this tool.',
|
||||
disabledText: i18n.t('Buttons:Create new segmentation to enable this tool.'),
|
||||
},
|
||||
commands: 'runSegmentBidirectional',
|
||||
},
|
||||
@ -472,13 +479,14 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-tool-click-segment',
|
||||
label: 'One Click Segment',
|
||||
tooltip:
|
||||
'Detects segmentable regions with one click. Hover for visual feedback—click when a plus sign appears to auto-segment the lesion.',
|
||||
label: i18n.t('Buttons:One Click Segment'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Detects segmentable regions with one click. Hover for visual feedback—click when a plus sign appears to auto-segment the lesion.'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['RegionSegmentPlus'],
|
||||
disabledText: 'Create new segmentation to enable this tool.',
|
||||
disabledText: i18n.t('Buttons:Create new segmentation to enable this tool.'),
|
||||
},
|
||||
commands: 'setToolActiveToolbar',
|
||||
},
|
||||
@ -488,9 +496,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-labelmap-slice-propagation',
|
||||
label: 'Labelmap Assist',
|
||||
tooltip:
|
||||
'Toggle AI assistance for segmenting nearby slices. After drawing on a slice, scroll to preview predictions. Press Enter to accept or Esc to skip.',
|
||||
label: i18n.t('Buttons:Labelmap Assist'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Toggle AI assistance for segmenting nearby slices. After drawing on a slice, scroll to preview predictions. Press Enter to accept or Esc to skip.'
|
||||
),
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool.toggle',
|
||||
{
|
||||
@ -511,9 +520,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-marker-labelmap',
|
||||
label: 'Marker Guided Labelmap',
|
||||
tooltip:
|
||||
'Use include/exclude markers to guide AI (SAM) segmentation. Click to place markers, Enter to accept results, Esc to reject, and N to go to the next slice while keeping markers.',
|
||||
label: i18n.t('Buttons:Marker Guided Labelmap'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Use include/exclude markers to guide AI (SAM) segmentation. Click to place markers, Enter to accept results, Esc to reject, and N to go to the next slice while keeping markers.'
|
||||
),
|
||||
evaluate: [
|
||||
{
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
@ -562,7 +572,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-tool-eraser',
|
||||
label: 'Eraser',
|
||||
label: i18n.t('Buttons:Eraser'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['CircularEraser', 'SphereEraser'],
|
||||
@ -717,11 +727,11 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'icon-tool-shape',
|
||||
label: 'Shapes',
|
||||
label: i18n.t('Buttons:Shapes'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['CircleScissor', 'SphereScissor', 'RectangleScissor'],
|
||||
disabledText: 'Create new segmentation to enable shapes tool.',
|
||||
disabledText: i18n.t('Buttons:Create new segmentation to enable shapes tool.'),
|
||||
},
|
||||
options: [
|
||||
{
|
||||
@ -744,8 +754,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'tool-segment-label',
|
||||
label: 'Segment Label Display',
|
||||
tooltip: 'Click to show or hide segment labels when hovering with your mouse.',
|
||||
label: i18n.t('Buttons:Segment Label Display'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Click to show or hide segment labels when hovering with your mouse.'
|
||||
),
|
||||
commands: { commandName: 'toggleSegmentLabel' },
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool.toggle',
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { toolGroupIds } from './initToolGroups';
|
||||
import i18n from 'i18next';
|
||||
|
||||
const setToolActiveToolbar = {
|
||||
commandName: 'setToolActiveToolbar',
|
||||
@ -41,8 +42,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.modalityLoadBadge',
|
||||
props: {
|
||||
icon: 'Status',
|
||||
label: 'Status',
|
||||
tooltip: 'Status',
|
||||
label: i18n.t('Buttons:Status'),
|
||||
tooltip: i18n.t('Buttons:Status'),
|
||||
evaluate: {
|
||||
name: 'evaluate.modalityLoadBadge',
|
||||
hideWhenDisabled: true,
|
||||
@ -54,7 +55,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.colorbar',
|
||||
props: {
|
||||
type: 'tool',
|
||||
label: 'Colorbar',
|
||||
label: i18n.t('Buttons:Colorbar'),
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -62,8 +63,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.navigationComponent',
|
||||
props: {
|
||||
icon: 'Navigation',
|
||||
label: 'Navigation',
|
||||
tooltip: 'Navigate between segments/measurements and manage their visibility',
|
||||
label: i18n.t('Buttons:Navigation'),
|
||||
tooltip: i18n.t('Buttons:Navigate between segments/measurements and manage their visibility'),
|
||||
evaluate: {
|
||||
name: 'evaluate.navigationComponent',
|
||||
hideWhenDisabled: true,
|
||||
@ -75,8 +76,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.windowLevelMenuEmbedded',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.windowLevelMenuEmbedded',
|
||||
hideWhenDisabled: true,
|
||||
@ -88,8 +89,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.trackingStatus',
|
||||
props: {
|
||||
icon: 'TrackingStatus',
|
||||
label: 'Tracking Status',
|
||||
tooltip: 'View and manage tracking status of measurements and annotations',
|
||||
label: i18n.t('Buttons:Tracking Status'),
|
||||
tooltip: i18n.t('Buttons:View and manage tracking status of measurements and annotations'),
|
||||
evaluate: {
|
||||
name: 'evaluate.trackingStatus',
|
||||
hideWhenDisabled: true,
|
||||
@ -101,8 +102,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-length',
|
||||
label: 'Length',
|
||||
tooltip: 'Length Tool',
|
||||
label: i18n.t('Buttons:Length'),
|
||||
tooltip: i18n.t('Buttons:Length Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -112,8 +113,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-bidirectional',
|
||||
label: 'Bidirectional',
|
||||
tooltip: 'Bidirectional Tool',
|
||||
label: i18n.t('Buttons:Bidirectional'),
|
||||
tooltip: i18n.t('Buttons:Bidirectional Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -123,8 +124,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-annotate',
|
||||
label: 'Arrow Annotate',
|
||||
tooltip: 'Arrow Annotate Tool',
|
||||
label: i18n.t('Buttons:Arrow Annotate'),
|
||||
tooltip: i18n.t('Buttons:Arrow Annotate Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -134,8 +135,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-ellipse',
|
||||
label: 'Ellipse',
|
||||
tooltip: 'Ellipse Tool',
|
||||
label: i18n.t('Buttons:Ellipse'),
|
||||
tooltip: i18n.t('Buttons:Ellipse Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -145,7 +146,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-zoom',
|
||||
label: 'Zoom',
|
||||
label: i18n.t('Buttons:Zoom'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -155,7 +156,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-window-level',
|
||||
label: 'Window Level',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -165,7 +166,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-crosshair',
|
||||
label: 'Crosshairs',
|
||||
label: i18n.t('Buttons:Crosshairs'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -175,7 +176,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -185,13 +186,13 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolBoxButton',
|
||||
props: {
|
||||
icon: 'tool-create-threshold',
|
||||
label: 'Rectangle ROI Threshold',
|
||||
label: i18n.t('Buttons:Rectangle ROI Threshold'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstone.segmentation',
|
||||
{
|
||||
name: 'evaluate.cornerstoneTool',
|
||||
disabledText: 'Select the PT Axial to enable this tool',
|
||||
disabledText: i18n.t('Buttons:Select the PT Axial to enable this tool'),
|
||||
},
|
||||
],
|
||||
options: 'tmtv.RectangleROIThresholdOptions',
|
||||
@ -203,11 +204,11 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-brush',
|
||||
label: 'Brush',
|
||||
label: i18n.t('Buttons:Brush'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['CircularBrush', 'SphereBrush'],
|
||||
disabledText: 'Create new segmentation to enable this tool.',
|
||||
disabledText: i18n.t('Buttons:Create new segmentation to enable this tool.'),
|
||||
},
|
||||
options: [
|
||||
{
|
||||
@ -242,7 +243,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-eraser',
|
||||
label: 'Eraser',
|
||||
label: i18n.t('Buttons:Eraser'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['CircularEraser', 'SphereEraser'],
|
||||
@ -280,7 +281,7 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-threshold',
|
||||
label: 'Threshold Tool',
|
||||
label: i18n.t('Buttons:Threshold Tool'),
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstone.segmentation',
|
||||
toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'],
|
||||
@ -364,8 +365,10 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.dataOverlayMenu',
|
||||
props: {
|
||||
icon: 'ViewportViews',
|
||||
label: 'Data Overlay',
|
||||
tooltip: 'Configure data overlay options and manage foreground/background display sets',
|
||||
label: i18n.t('Buttons:Data Overlay'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Configure data overlay options and manage foreground/background display sets'
|
||||
),
|
||||
evaluate: 'evaluate.dataOverlayMenu',
|
||||
},
|
||||
},
|
||||
@ -374,8 +377,10 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.orientationMenu',
|
||||
props: {
|
||||
icon: 'OrientationSwitch',
|
||||
label: 'Orientation',
|
||||
tooltip: 'Change viewport orientation between axial, sagittal, coronal and reformat planes',
|
||||
label: i18n.t('Buttons:Orientation'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.orientationMenu',
|
||||
// hideWhenDisabled: true,
|
||||
@ -387,8 +392,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.windowLevelMenu',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: 'evaluate.windowLevelMenu',
|
||||
},
|
||||
},
|
||||
@ -397,8 +402,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.voiManualControlMenu',
|
||||
props: {
|
||||
icon: 'WindowLevelAdvanced',
|
||||
label: 'Advanced Window Level',
|
||||
tooltip: 'Advanced window/level settings with manual controls and presets',
|
||||
label: i18n.t('Buttons:Advanced Window Level'),
|
||||
tooltip: i18n.t('Buttons:Advanced window/level settings with manual controls and presets'),
|
||||
evaluate: 'evaluate.voiManualControlMenu',
|
||||
},
|
||||
},
|
||||
@ -407,8 +412,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.thresholdMenu',
|
||||
props: {
|
||||
icon: 'Threshold',
|
||||
label: 'Threshold',
|
||||
tooltip: 'Image threshold settings',
|
||||
label: i18n.t('Buttons:Threshold'),
|
||||
tooltip: i18n.t('Buttons:Image threshold settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.thresholdMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -420,8 +425,8 @@ const toolbarButtons = [
|
||||
uiType: 'ohif.opacityMenu',
|
||||
props: {
|
||||
icon: 'Opacity',
|
||||
label: 'Opacity',
|
||||
tooltip: 'Image opacity settings',
|
||||
label: i18n.t('Buttons:Opacity'),
|
||||
tooltip: i18n.t('Buttons:Image opacity settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.opacityMenu',
|
||||
hideWhenDisabled: true,
|
||||
|
||||
@ -2,6 +2,7 @@ import type { Button } from '@ohif/core/types';
|
||||
|
||||
import { EVENTS } from '@cornerstonejs/core';
|
||||
import { ViewportGridService } from '@ohif/core';
|
||||
import i18n from 'i18next';
|
||||
|
||||
const callbacks = (toolName: string) => [
|
||||
{
|
||||
@ -48,8 +49,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.modalityLoadBadge',
|
||||
props: {
|
||||
icon: 'Status',
|
||||
label: 'Status',
|
||||
tooltip: 'Status',
|
||||
label: i18n.t('Buttons:Status'),
|
||||
tooltip: i18n.t('Buttons:Status'),
|
||||
evaluate: {
|
||||
name: 'evaluate.modalityLoadBadge',
|
||||
hideWhenDisabled: true,
|
||||
@ -61,8 +62,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.navigationComponent',
|
||||
props: {
|
||||
icon: 'Navigation',
|
||||
label: 'Navigation',
|
||||
tooltip: 'Navigate between segments/measurements and manage their visibility',
|
||||
label: i18n.t('Buttons:Navigation'),
|
||||
tooltip: i18n.t('Buttons:Navigate between segments/measurements and manage their visibility'),
|
||||
evaluate: {
|
||||
name: 'evaluate.navigationComponent',
|
||||
hideWhenDisabled: true,
|
||||
@ -74,8 +75,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.trackingStatus',
|
||||
props: {
|
||||
icon: 'TrackingStatus',
|
||||
label: 'Tracking Status',
|
||||
tooltip: 'View and manage tracking status of measurements and annotations',
|
||||
label: i18n.t('Buttons:Tracking Status'),
|
||||
tooltip: i18n.t('Buttons:View and manage tracking status of measurements and annotations'),
|
||||
evaluate: {
|
||||
name: 'evaluate.trackingStatus',
|
||||
hideWhenDisabled: true,
|
||||
@ -87,8 +88,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.dataOverlayMenu',
|
||||
props: {
|
||||
icon: 'ViewportViews',
|
||||
label: 'Data Overlay',
|
||||
tooltip: 'Configure data overlay options and manage foreground/background display sets',
|
||||
label: i18n.t('Buttons:Data Overlay'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Configure data overlay options and manage foreground/background display sets'
|
||||
),
|
||||
evaluate: 'evaluate.dataOverlayMenu',
|
||||
},
|
||||
},
|
||||
@ -97,8 +100,10 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.orientationMenu',
|
||||
props: {
|
||||
icon: 'OrientationSwitch',
|
||||
label: 'Orientation',
|
||||
tooltip: 'Change viewport orientation between axial, sagittal, coronal and reformat planes',
|
||||
label: i18n.t('Buttons:Orientation'),
|
||||
tooltip: i18n.t(
|
||||
'Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'
|
||||
),
|
||||
evaluate: {
|
||||
name: 'evaluate.orientationMenu',
|
||||
// hideWhenDisabled: true,
|
||||
@ -110,8 +115,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.windowLevelMenuEmbedded',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.windowLevelMenuEmbedded',
|
||||
hideWhenDisabled: true,
|
||||
@ -123,8 +128,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.windowLevelMenu',
|
||||
props: {
|
||||
icon: 'WindowLevel',
|
||||
label: 'Window Level',
|
||||
tooltip: 'Adjust window/level presets and customize image contrast settings',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
tooltip: i18n.t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.windowLevelMenu',
|
||||
},
|
||||
@ -135,8 +140,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.voiManualControlMenu',
|
||||
props: {
|
||||
icon: 'WindowLevelAdvanced',
|
||||
label: 'Advanced Window Level',
|
||||
tooltip: 'Advanced window/level settings with manual controls and presets',
|
||||
label: i18n.t('Buttons:Advanced Window Level'),
|
||||
tooltip: i18n.t('Buttons:Advanced window/level settings with manual controls and presets'),
|
||||
evaluate: 'evaluate.voiManualControlMenu',
|
||||
},
|
||||
},
|
||||
@ -145,8 +150,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.thresholdMenu',
|
||||
props: {
|
||||
icon: 'Threshold',
|
||||
label: 'Threshold',
|
||||
tooltip: 'Image threshold settings',
|
||||
label: i18n.t('Buttons:Threshold'),
|
||||
tooltip: i18n.t('Buttons:Image threshold settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.thresholdMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -158,8 +163,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.opacityMenu',
|
||||
props: {
|
||||
icon: 'Opacity',
|
||||
label: 'Opacity',
|
||||
tooltip: 'Image opacity settings',
|
||||
label: i18n.t('Buttons:Opacity'),
|
||||
tooltip: i18n.t('Buttons:Image opacity settings'),
|
||||
evaluate: {
|
||||
name: 'evaluate.opacityMenu',
|
||||
hideWhenDisabled: true,
|
||||
@ -171,7 +176,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.colorbar',
|
||||
props: {
|
||||
type: 'tool',
|
||||
label: 'Colorbar',
|
||||
label: i18n.t('Buttons:Colorbar'),
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -179,8 +184,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-reset',
|
||||
label: 'Reset View',
|
||||
tooltip: 'Reset View',
|
||||
label: i18n.t('Buttons:Reset View'),
|
||||
tooltip: i18n.t('Buttons:Reset View'),
|
||||
commands: 'resetViewport',
|
||||
evaluate: 'evaluate.action',
|
||||
},
|
||||
@ -190,8 +195,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rotate-right',
|
||||
label: 'Rotate Right',
|
||||
tooltip: 'Rotate +90',
|
||||
label: i18n.t('Buttons:Rotate Right'),
|
||||
tooltip: i18n.t('Buttons:Rotate +90'),
|
||||
commands: 'rotateViewportCW',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -207,8 +212,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-flip-horizontal',
|
||||
label: 'Flip Horizontal',
|
||||
tooltip: 'Flip Horizontally',
|
||||
label: i18n.t('Buttons:Flip Horizontal'),
|
||||
tooltip: i18n.t('Buttons:Flip Horizontally'),
|
||||
commands: 'flipViewportHorizontal',
|
||||
evaluate: [
|
||||
'evaluate.viewportProperties.toggle',
|
||||
@ -224,8 +229,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'link',
|
||||
label: 'Image Slice Sync',
|
||||
tooltip: 'Enable position synchronization on stack viewports',
|
||||
label: i18n.t('Buttons:Image Slice Sync'),
|
||||
tooltip: i18n.t('Buttons:Enable position synchronization on stack viewports'),
|
||||
commands: {
|
||||
commandName: 'toggleSynchronizer',
|
||||
commandOptions: {
|
||||
@ -252,8 +257,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-referenceLines',
|
||||
label: 'Reference Lines',
|
||||
tooltip: 'Show Reference Lines',
|
||||
label: i18n.t('Buttons:Reference Lines'),
|
||||
tooltip: i18n.t('Buttons:Show Reference Lines'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
listeners: {
|
||||
[ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: callbacks('ReferenceLines'),
|
||||
@ -273,8 +278,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'toggle-dicom-overlay',
|
||||
label: 'Image Overlay',
|
||||
tooltip: 'Toggle Image Overlay',
|
||||
label: i18n.t('Buttons:Image Overlay'),
|
||||
tooltip: i18n.t('Buttons:Toggle Image Overlay'),
|
||||
commands: 'toggleEnabledDisabledToolbar',
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool.toggle',
|
||||
@ -290,8 +295,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-stack-scroll',
|
||||
label: 'Stack Scroll',
|
||||
tooltip: 'Stack Scroll',
|
||||
label: i18n.t('Buttons:Stack Scroll'),
|
||||
tooltip: i18n.t('Buttons:Stack Scroll'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -301,8 +306,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-invert',
|
||||
label: 'Invert',
|
||||
tooltip: 'Invert Colors',
|
||||
label: i18n.t('Buttons:Invert'),
|
||||
tooltip: i18n.t('Buttons:Invert Colors'),
|
||||
commands: 'invertViewport',
|
||||
evaluate: [
|
||||
'evaluate.viewportProperties.toggle',
|
||||
@ -318,8 +323,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-probe',
|
||||
label: 'Probe',
|
||||
tooltip: 'Probe',
|
||||
label: i18n.t('Buttons:Probe'),
|
||||
tooltip: i18n.t('Buttons:Probe'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -329,8 +334,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-cine',
|
||||
label: 'Cine',
|
||||
tooltip: 'Cine',
|
||||
label: i18n.t('Buttons:Cine'),
|
||||
tooltip: i18n.t('Buttons:Cine'),
|
||||
commands: 'toggleCine',
|
||||
evaluate: [
|
||||
'evaluate.cine',
|
||||
@ -346,8 +351,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-angle',
|
||||
label: 'Angle',
|
||||
tooltip: 'Angle',
|
||||
label: i18n.t('Buttons:Angle'),
|
||||
tooltip: i18n.t('Buttons:Angle'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -357,8 +362,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-cobb-angle',
|
||||
label: 'Cobb Angle',
|
||||
tooltip: 'Cobb Angle',
|
||||
label: i18n.t('Buttons:Cobb Angle'),
|
||||
tooltip: i18n.t('Buttons:Cobb Angle'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -368,8 +373,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-magnify',
|
||||
label: 'Zoom-in',
|
||||
tooltip: 'Zoom-in',
|
||||
label: i18n.t('Buttons:Zoom-in'),
|
||||
tooltip: i18n.t('Buttons:Zoom-in'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -385,8 +390,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-calibration',
|
||||
label: 'Calibration',
|
||||
tooltip: 'Calibration Line',
|
||||
label: i18n.t('Buttons:Calibration'),
|
||||
tooltip: i18n.t('Buttons:Calibration Line'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -402,8 +407,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'dicom-tag-browser',
|
||||
label: 'Dicom Tag Browser',
|
||||
tooltip: 'Dicom Tag Browser',
|
||||
label: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
tooltip: i18n.t('Buttons:Dicom Tag Browser'),
|
||||
commands: 'openDICOMTagViewer',
|
||||
},
|
||||
},
|
||||
@ -412,8 +417,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-loupe',
|
||||
label: 'Magnify Probe',
|
||||
tooltip: 'Magnify Probe',
|
||||
label: i18n.t('Buttons:Magnify Probe'),
|
||||
tooltip: i18n.t('Buttons:Magnify Probe'),
|
||||
commands: 'toggleActiveDisabledToolbar',
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool.toggle.ifStrictlyDisabled',
|
||||
@ -429,8 +434,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-ultrasound-bidirectional',
|
||||
label: 'Ultrasound Directional',
|
||||
tooltip: 'Ultrasound Directional',
|
||||
label: i18n.t('Buttons:Ultrasound Directional'),
|
||||
tooltip: i18n.t('Buttons:Ultrasound Directional'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -446,8 +451,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-ultrasound-bidirectional',
|
||||
label: 'US Pleura B-line Annotation',
|
||||
tooltip: 'US Pleura B-line Annotation',
|
||||
label: i18n.t('Buttons:US Pleura B-line Annotation'),
|
||||
tooltip: i18n.t('Buttons:US Pleura B-line Annotation'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -463,8 +468,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-window-region',
|
||||
label: 'Window Level Region',
|
||||
tooltip: 'Window Level Region',
|
||||
label: i18n.t('Buttons:Window Level Region'),
|
||||
tooltip: i18n.t('Buttons:Window Level Region'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -480,8 +485,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-length',
|
||||
label: 'Length',
|
||||
tooltip: 'Length Tool',
|
||||
label: i18n.t('Buttons:Length'),
|
||||
tooltip: i18n.t('Buttons:Length Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -491,8 +496,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-bidirectional',
|
||||
label: 'Bidirectional',
|
||||
tooltip: 'Bidirectional Tool',
|
||||
label: i18n.t('Buttons:Bidirectional'),
|
||||
tooltip: i18n.t('Buttons:Bidirectional Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -502,8 +507,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-annotate',
|
||||
label: 'Annotation',
|
||||
tooltip: 'Arrow Annotate',
|
||||
label: i18n.t('Buttons:Annotation'),
|
||||
tooltip: i18n.t('Buttons:Arrow Annotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -513,8 +518,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-ellipse',
|
||||
label: 'Ellipse',
|
||||
tooltip: 'Ellipse ROI',
|
||||
label: i18n.t('Buttons:Ellipse'),
|
||||
tooltip: i18n.t('Buttons:Ellipse ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -524,8 +529,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-rectangle',
|
||||
label: 'Rectangle',
|
||||
tooltip: 'Rectangle ROI',
|
||||
label: i18n.t('Buttons:Rectangle'),
|
||||
tooltip: i18n.t('Buttons:Rectangle ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -535,8 +540,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-circle',
|
||||
label: 'Circle',
|
||||
tooltip: 'Circle Tool',
|
||||
label: i18n.t('Buttons:Circle'),
|
||||
tooltip: i18n.t('Buttons:Circle Tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -546,8 +551,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-freehand-roi',
|
||||
label: 'Freehand ROI',
|
||||
tooltip: 'Freehand ROI',
|
||||
label: i18n.t('Buttons:Freehand ROI'),
|
||||
tooltip: i18n.t('Buttons:Freehand ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -557,8 +562,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-spline-roi',
|
||||
label: 'Spline ROI',
|
||||
tooltip: 'Spline ROI',
|
||||
label: i18n.t('Buttons:Spline ROI'),
|
||||
tooltip: i18n.t('Buttons:Spline ROI'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -568,8 +573,8 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'icon-tool-livewire',
|
||||
label: 'Livewire tool',
|
||||
tooltip: 'Livewire tool',
|
||||
label: i18n.t('Buttons:Livewire tool'),
|
||||
tooltip: i18n.t('Buttons:Livewire tool'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -580,7 +585,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-window-level',
|
||||
label: 'Window Level',
|
||||
label: i18n.t('Buttons:Window Level'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: [
|
||||
'evaluate.cornerstoneTool',
|
||||
@ -597,7 +602,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-move',
|
||||
label: 'Pan',
|
||||
label: i18n.t('Buttons:Pan'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -608,7 +613,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-zoom',
|
||||
label: 'Zoom',
|
||||
label: i18n.t('Buttons:Zoom'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: 'evaluate.cornerstoneTool',
|
||||
},
|
||||
@ -619,7 +624,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-3d-rotate',
|
||||
label: '3D Rotate',
|
||||
label: i18n.t('Buttons:3D Rotate'),
|
||||
commands: setToolActiveToolbar,
|
||||
evaluate: {
|
||||
name: 'evaluate.cornerstoneTool',
|
||||
@ -632,7 +637,7 @@ const toolbarButtons: Button[] = [
|
||||
uiType: 'ohif.toolButton',
|
||||
props: {
|
||||
icon: 'tool-capture',
|
||||
label: 'Capture',
|
||||
label: i18n.t('Buttons:Capture'),
|
||||
commands: 'showDownloadViewportModal',
|
||||
evaluate: [
|
||||
'evaluate.action',
|
||||
@ -658,7 +663,7 @@ const toolbarButtons: Button[] = [
|
||||
props: {
|
||||
type: 'tool',
|
||||
icon: 'tool-crosshair',
|
||||
label: 'Crosshairs',
|
||||
label: i18n.t('Buttons:Crosshairs'),
|
||||
commands: {
|
||||
commandName: 'setToolActiveToolbar',
|
||||
commandOptions: {
|
||||
|
||||
@ -6,7 +6,6 @@
|
||||
"Bidirectional": "Bidirectional",
|
||||
"Brush": "Brush",
|
||||
"Cine": "Cine",
|
||||
"CINE": "CINE",
|
||||
"Cancel": "Cancel",
|
||||
"Capture": "Capture",
|
||||
"Circle": "Circle",
|
||||
@ -39,7 +38,7 @@
|
||||
"Rectangle": "Rectangle",
|
||||
"Reference Lines": "Reference Lines",
|
||||
"Reset": "$t(Common:Reset)",
|
||||
"Reset to defaults": "$t(Common:Reset) to Defaults",
|
||||
"Reset to defaults": "Reset to Defaults",
|
||||
"Rotate Right": "Rotate Right",
|
||||
"Sagittal": "Sagittal",
|
||||
"Save": "Save",
|
||||
@ -47,5 +46,91 @@
|
||||
"Stack Image Sync": "Stack Image Sync",
|
||||
"Stop": "$t(Common:Stop)",
|
||||
"Themes": "Themes",
|
||||
"Zoom": "Zoom"
|
||||
"Zoom": "Zoom",
|
||||
"Adjust window/level presets and customize image contrast settings": "修改窗宽窗位预设并自定义图像对比度设置",
|
||||
"Zoom-in": "Zoom-in",
|
||||
"Cobb Angle": "Cobb Angle",
|
||||
"Calibration": "Calibration",
|
||||
"Dicom Tag Browser": "DICOM Tag Browser",
|
||||
"Magnify Probe": "Magnify Probe",
|
||||
"Ultrasound Directional": "Ultrasound Directional",
|
||||
"Window Level Region": "Window Level Region",
|
||||
"Image Overlay": "Image Overlay",
|
||||
"Image Slice Sync": "Image Slice Sync",
|
||||
"Freehand ROI": "Freehand ROI",
|
||||
"Spline ROI": "Spline ROI",
|
||||
"Livewire tool": "Livewire tool",
|
||||
"Segment Label Display": "Segment Label Display",
|
||||
"Data Overlay": "Data Overlay",
|
||||
"Configure data overlay options and manage foreground/background display sets": "Configure data overlay options and manage foreground/background display sets",
|
||||
"Orientation": "Orientation",
|
||||
"Change viewport orientation between axial, sagittal, coronal and reformat planes": "Change viewport orientation between axial, sagittal, coronal and reformat planes",
|
||||
"Status": "Status",
|
||||
"Navigation": "Navigation",
|
||||
"Navigate between segments/measurements and manage their visibility": "Navigate between segments/measurements and manage their visibility",
|
||||
"Tracking Status": "Tracking Status",
|
||||
"View and manage tracking status of measurements and annotations": "View and manage tracking status of measurements and annotations",
|
||||
"Advanced Window Level": "Advanced Window Level",
|
||||
"Advanced window/level settings with manual controls and presets": "Advanced window/level settings with manual controls and presets",
|
||||
"Threshold": "Threshold",
|
||||
"Image threshold settings": "Image threshold settings",
|
||||
"Opacity": "Opacity",
|
||||
"Image opacity settings": "Image opacity settings",
|
||||
"Colorbar": "Colorbar",
|
||||
"Enable position synchronization on stack viewports": "Enable position synchronization on stack viewports",
|
||||
"Show Reference Lines": "Show Reference Lines",
|
||||
"Toggle Image Overlay": "Toggle Image Overlay",
|
||||
"Calibration Line": "Calibration Line",
|
||||
"Ellipse ROI": "Ellipse ROI",
|
||||
"Rectangle ROI": "Rectangle ROI",
|
||||
"Circle Tool": "Circle Tool",
|
||||
"Click to show or hide segment labels when hovering with your mouse.": "Click to show or hide segment labels when hovering with your mouse.",
|
||||
"Arrow Annotate": "Arrow Annotate",
|
||||
"Bidirectional Tool": "Bidirectional Tool",
|
||||
"Bone": "Bone",
|
||||
"Brain": "Brain",
|
||||
"Dismiss Aspect": "Dismiss Aspect",
|
||||
"Ellipse Tool": "Ellipse Tool",
|
||||
"Flip Horizontal": "Flip Horizontal",
|
||||
"Invert Colors": "Invert Colors",
|
||||
"Keep Aspect": "Keep Aspect",
|
||||
"Length Tool": "Length Tool",
|
||||
"Liver": "Liver",
|
||||
"Lung": "Lung",
|
||||
"More Measure Tools": "More Measure Tools",
|
||||
"Reset View": "Reset View",
|
||||
"Rotate +90": "Rotate +90",
|
||||
"Soft tissue": "Soft tissue",
|
||||
"W/L Presets": "W/L Presets",
|
||||
"Window Level": "Window Level",
|
||||
"Point": "Point",
|
||||
"Point Tool": "Point Tool",
|
||||
"Polygon": "Polygon",
|
||||
"Polygon Tool": "Polygon Tool",
|
||||
"Box": "Box",
|
||||
"Box Tool": "Box Tool",
|
||||
"Freehand Polygon": "Freehand Polygon",
|
||||
"Freehand Polygon Tool": "Freehand Polygon Tool",
|
||||
"Freehand Line": "Freehand Line",
|
||||
"Freehand Line Tool": "Freehand Line Tool",
|
||||
"Line": "Line",
|
||||
"Line Tool": "Line Tool",
|
||||
"3D Rotate": "3D Rotate",
|
||||
"MPR": "MPR",
|
||||
"Rectangle ROI Threshold": "Rectangle ROI Threshold",
|
||||
"Select the PT Axial to enable this tool": "Select the PT Axial to enable this tool",
|
||||
"Create new segmentation to enable this tool.": "Create new segmentation to enable this tool.",
|
||||
"Threshold Tool": "Threshold Tool",
|
||||
"Select a 3D viewport to enable this tool": "Select a 3D viewport to enable this tool",
|
||||
"Select an MPR viewport to enable this tool": "Select an MPR viewport to enable this tool",
|
||||
"Interpolate Labelmap": "Interpolate Labelmap",
|
||||
"Segment Bidirectional": "Segment Bidirectional",
|
||||
"One Click Segment": "One Click Segment",
|
||||
"Labelmap Assist": "Labelmap Assist",
|
||||
"Marker Guided Labelmap": "Marker Guided Labelmap",
|
||||
"Eraser": "Eraser",
|
||||
"Shapes": "Shapes",
|
||||
"Create new segmentation to enable shapes tool.": "Create new segmentation to enable shapes tool.",
|
||||
"US Pleura B-line Annotation": "US Pleura B-line Annotation",
|
||||
"Arrow Annotate Tool": "Arrow Annotate Tool"
|
||||
}
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"File name": "File name",
|
||||
"Image size": "Image size",
|
||||
"Include annotations": "Include annotations",
|
||||
"Include warning message": "Include warning message"
|
||||
}
|
||||
@ -18,5 +18,9 @@
|
||||
"Show": "Show",
|
||||
"Stop": "Stop",
|
||||
"StudyDate": "Study Date",
|
||||
"Yes": "Yes"
|
||||
"Yes": "Yes",
|
||||
"Cancel": "Cancel",
|
||||
"Save": "Save",
|
||||
"localDateFormat": "DD-MMM-YYYY",
|
||||
"Back": "Back"
|
||||
}
|
||||
|
||||
11
platform/i18n/src/locales/en-US/Hps.json
Normal file
11
platform/i18n/src/locales/en-US/Hps.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"MPR": "MPR",
|
||||
"3D four up": "3D four up",
|
||||
"Frame View": "Frame View",
|
||||
"Frame view for the active series": "Frame view for the active series",
|
||||
"3D main": "3D main",
|
||||
"mpr": "mpr",
|
||||
"3D only": "3D only",
|
||||
"3D primary": "3D primary",
|
||||
"Axial Primary": "Axial Primary"
|
||||
}
|
||||
@ -1,5 +1,12 @@
|
||||
{
|
||||
"Primary": "Primary",
|
||||
"Recent": "Recent",
|
||||
"All": "All"
|
||||
"All": "All",
|
||||
"Tracked Series": "Tracked Series",
|
||||
"Tag Browser": "Tag Browser",
|
||||
"Add as Layer": "Add as Layer",
|
||||
"Series Number": "Series Number",
|
||||
"Series Date": "Series Date",
|
||||
"Thumbnail Double Click": "Thumbnail Double Click",
|
||||
"The selected display sets could not be added to the viewport.": "The selected display sets could not be added to the viewport."
|
||||
}
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
{
|
||||
"Change layout": "Change layout",
|
||||
"Common": "Common",
|
||||
"Advanced": "Advanced",
|
||||
"Custom": "Custom",
|
||||
"Hover to select": "Hover to select",
|
||||
"rows and columns": "rows and columns",
|
||||
"Click to apply": "Click to apply"
|
||||
}
|
||||
13
platform/i18n/src/locales/en-US/Tools.json
Normal file
13
platform/i18n/src/locales/en-US/Tools.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"Segmentation": "Segmentation",
|
||||
"Segment": "Segment",
|
||||
"Download High Quality Image": "Download High Quality Image",
|
||||
"Edit Segment Label": "Edit Segment Label",
|
||||
"Enter new label": "Enter new label",
|
||||
"Segment Color": "Segment Color",
|
||||
"Edit Measurement Label": "Edit Measurement Label",
|
||||
"Edit Arrow Text": "Edit Arrow Text",
|
||||
"Enter new text": "Enter new text",
|
||||
"Download Image": "Download Image",
|
||||
"Image cannot be downloaded": "Image cannot be downloaded"
|
||||
}
|
||||
@ -1,5 +1,10 @@
|
||||
{
|
||||
"Back to Display Options": "Back to Display Options",
|
||||
"Modality Presets": "{{modality}} Presets",
|
||||
"Modality Window Presets": "{{modality}} Window Presets"
|
||||
"Modality Presets": "Modality Presets",
|
||||
"Modality Window Presets": "Modality Window Presets",
|
||||
"Display Color bar": "Display Color bar",
|
||||
"Color LUT": "Color LUT",
|
||||
"Preview in viewport": "Preview in viewport",
|
||||
"Grayscale": "Grayscale",
|
||||
"Rendering Options": "Rendering Options"
|
||||
}
|
||||
|
||||
@ -21,6 +21,10 @@ import UserPreferencesModal from './UserPreferencesModal.json';
|
||||
import ViewportDownloadForm from './ViewportDownloadForm.json';
|
||||
import Messages from './Messages.json';
|
||||
import WindowLevelActionMenu from './WindowLevelActionMenu.json';
|
||||
import CaptureViewportModal from './CaptureViewportModal.json';
|
||||
import Hps from './Hps.json';
|
||||
import ToolbarLayoutSelector from './ToolbarLayoutSelector.json';
|
||||
import Tools from './Tools.json';
|
||||
|
||||
export default {
|
||||
'en-US': {
|
||||
@ -47,5 +51,9 @@ export default {
|
||||
ViewportDownloadForm,
|
||||
Messages,
|
||||
WindowLevelActionMenu,
|
||||
CaptureViewportModal,
|
||||
Hps,
|
||||
ToolbarLayoutSelector,
|
||||
Tools,
|
||||
},
|
||||
};
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
{
|
||||
"Acquired": "Test Acquired",
|
||||
"Angle": "Test Angle",
|
||||
"Annotation": "Test Annotation",
|
||||
"Axial": "Test Axial",
|
||||
"Bidirectional": "Test Bidirectional",
|
||||
"Brush": "Test Brush",
|
||||
"CINE": "Test CINE",
|
||||
"Cine": "Test Cine",
|
||||
"Cancel": "Test Cancel",
|
||||
"Capture": "Test Capture",
|
||||
"Circle": "Test Circle",
|
||||
"Clear": "Test Clear",
|
||||
"Coronal": "Test Coronal",
|
||||
@ -14,8 +16,10 @@
|
||||
"Ellipse": "Test Ellipse",
|
||||
"Elliptical": "Test Elliptical",
|
||||
"Flip H": "Test Flip H",
|
||||
"Flip Horizontally": "Test Flip Horizontally",
|
||||
"Flip V": "Test Flip V",
|
||||
"Freehand": "Test Freehand",
|
||||
"Grid Layout": "Test Grid Layout",
|
||||
"Invert": "Test Invert",
|
||||
"Layout": "Test $t(Common:Layout)",
|
||||
"Length": "Test Length",
|
||||
@ -24,6 +28,7 @@
|
||||
"Manual": "Test Manual",
|
||||
"Measurements": "Test Measurements",
|
||||
"More": "Test $t(Common:More)",
|
||||
"More Tools": "Test More Tools",
|
||||
"Next": "Test $t(Common:Next)",
|
||||
"Pan": "Test Pan",
|
||||
"Play": "Test $t(Common:Play)",
|
||||
@ -31,24 +36,101 @@
|
||||
"Probe": "Test Probe",
|
||||
"ROI Window": "Test ROI Window",
|
||||
"Rectangle": "Test Rectangle",
|
||||
"Reference Lines": "Test Reference Lines",
|
||||
"Reset": "Test $t(Common:Reset)",
|
||||
"Reset to defaults": "Test $t(Common:Reset) to Defaults",
|
||||
"Reset to defaults": "Test Reset to defaults",
|
||||
"Rotate Right": "Test Rotate Right",
|
||||
"Sagittal": "Test Sagittal",
|
||||
"Save": "Test Save",
|
||||
"Stack Scroll": "Test Stack Scroll",
|
||||
"Stack Image Sync": "Test Stack Image Sync",
|
||||
"Stop": "Test $t(Common:Stop)",
|
||||
"Themes": "Test Themes",
|
||||
"Zoom": "Test Zoom",
|
||||
"Grid Layout": "Test Grid Layout",
|
||||
"W/L Presets": "Test W/L Presets",
|
||||
"More Measure Tools": "Test More Measure Tools",
|
||||
"More Tools": "Test More Tools",
|
||||
"Capture": "Test Capture",
|
||||
"Annotation": "Test Annotation",
|
||||
"Soft Tissue": "Test Soft Tissue",
|
||||
"Lung": "Test Lung",
|
||||
"Liver": "Test Liver",
|
||||
"Adjust window/level presets and customize image contrast settings": "Test Adjust window/level presets and customize image contrast settings",
|
||||
"Zoom-in": "Test Zoom-in",
|
||||
"Cobb Angle": "Test Cobb Angle",
|
||||
"Calibration": "Test Calibration",
|
||||
"Dicom Tag Browser": "Test Dicom Tag Browser",
|
||||
"Magnify Probe": "Test Magnify Probe",
|
||||
"Ultrasound Directional": "Test Ultrasound Directional",
|
||||
"Window Level Region": "Test Window Level Region",
|
||||
"Image Overlay": "Test Image Overlay",
|
||||
"Image Slice Sync": "Test Image Slice Sync",
|
||||
"Freehand ROI": "Test Freehand ROI",
|
||||
"Spline ROI": "Test Spline ROI",
|
||||
"Livewire tool": "Test Livewire tool",
|
||||
"Segment Label Display": "Test Segment Label Display",
|
||||
"Data Overlay": "Test Data Overlay",
|
||||
"Configure data overlay options and manage foreground/background display sets": "Test Configure data overlay options and manage foreground/background display sets",
|
||||
"Orientation": "Test Orientation",
|
||||
"Change viewport orientation between axial, sagittal, coronal and reformat planes": "Test Change viewport orientation between axial, sagittal, coronal and reformat planes",
|
||||
"Status": "Test Status",
|
||||
"Navigation": "Test Navigation",
|
||||
"Navigate between segments/measurements and manage their visibility": "Test Navigate between segments/measurements and manage their visibility",
|
||||
"Tracking Status": "Test Tracking Status",
|
||||
"View and manage tracking status of measurements and annotations": "Test View and manage tracking status of measurements and annotations",
|
||||
"Advanced Window Level": "Test Advanced Window Level",
|
||||
"Advanced window/level settings with manual controls and presets": "Test Advanced window/level settings with manual controls and presets",
|
||||
"Threshold": "Test Threshold",
|
||||
"Image threshold settings": "Test Image threshold settings",
|
||||
"Opacity": "Test Opacity",
|
||||
"Image opacity settings": "Test Image opacity settings",
|
||||
"Colorbar": "Test Colorbar",
|
||||
"Enable position synchronization on stack viewports": "Test Enable position synchronization on stack viewports",
|
||||
"Show Reference Lines": "Test Show Reference Lines",
|
||||
"Toggle Image Overlay": "Test Toggle Image Overlay",
|
||||
"Calibration Line": "Test Calibration Line",
|
||||
"Ellipse ROI": "Test Ellipse ROI",
|
||||
"Rectangle ROI": "Test Rectangle ROI",
|
||||
"Circle Tool": "Test Circle Tool",
|
||||
"Click to show or hide segment labels when hovering with your mouse.": "Test Click to show or hide segment labels when hovering with your mouse.",
|
||||
"Arrow Annotate": "Test Arrow Annotate",
|
||||
"Bidirectional Tool": "Test Bidirectional Tool",
|
||||
"Bone": "Test Bone",
|
||||
"Cine": "Test Cine"
|
||||
"Brain": "Test Brain",
|
||||
"Dismiss Aspect": "Test Dismiss Aspect",
|
||||
"Ellipse Tool": "Test Ellipse Tool",
|
||||
"Flip Horizontal": "Test Flip Horizontal",
|
||||
"Invert Colors": "Test Invert Colors",
|
||||
"Keep Aspect": "Test Keep Aspect",
|
||||
"Length Tool": "Test Length Tool",
|
||||
"Liver": "Test Liver",
|
||||
"Lung": "Test Lung",
|
||||
"More Measure Tools": "Test More Measure Tools",
|
||||
"Reset View": "Test Reset View",
|
||||
"Rotate +90": "Test Rotate +90",
|
||||
"Soft tissue": "Test Soft tissue",
|
||||
"W/L Presets": "Test W/L Presets",
|
||||
"Window Level": "Test Window Level",
|
||||
"Point": "Test Point",
|
||||
"Point Tool": "Test Point Tool",
|
||||
"Polygon": "Test Polygon",
|
||||
"Polygon Tool": "Test Polygon Tool",
|
||||
"Box": "Test Box",
|
||||
"Box Tool": "Test Box Tool",
|
||||
"Freehand Polygon": "Test Freehand Polygon",
|
||||
"Freehand Polygon Tool": "Test Freehand Polygon Tool",
|
||||
"Freehand Line": "Test Freehand Line",
|
||||
"Freehand Line Tool": "Test Freehand Line Tool",
|
||||
"Line": "Test Line",
|
||||
"Line Tool": "Test Line Tool",
|
||||
"3D Rotate": "Test 3D Rotate",
|
||||
"MPR": "Test MPR",
|
||||
"Rectangle ROI Threshold": "Test Rectangle ROI Threshold",
|
||||
"Select the PT Axial to enable this tool": "Test Select the PT Axial to enable this tool",
|
||||
"Create new segmentation to enable this tool.": "Test Create new segmentation to enable this tool.",
|
||||
"Threshold Tool": "Test Threshold Tool",
|
||||
"Select a 3D viewport to enable this tool": "Test Select a 3D viewport to enable this tool",
|
||||
"Select an MPR viewport to enable this tool": "Test Select an MPR viewport to enable this tool",
|
||||
"Interpolate Labelmap": "Test Interpolate Labelmap",
|
||||
"Segment Bidirectional": "Test Segment Bidirectional",
|
||||
"One Click Segment": "Test One Click Segment",
|
||||
"Labelmap Assist": "Test Labelmap Assist",
|
||||
"Marker Guided Labelmap": "Test Marker Guided Labelmap",
|
||||
"Eraser": "Test Eraser",
|
||||
"Shapes": "Test Shapes",
|
||||
"Create new segmentation to enable shapes tool.": "Test Create new segmentation to enable shapes tool.",
|
||||
"US Pleura B-line Annotation": "Test US Pleura B-line Annotation",
|
||||
"Arrow Annotate Tool": "Test Arrow Annotate Tool"
|
||||
}
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"File name": "Test File name",
|
||||
"Image size": "Test Image size",
|
||||
"Include annotations": "Test Include annotations",
|
||||
"Include warning message": "Test Include warning message"
|
||||
}
|
||||
@ -15,5 +15,12 @@
|
||||
"Show": "Test Show",
|
||||
"Stop": "Test Stop",
|
||||
"StudyDate": "Test Study Date",
|
||||
"Yes": "Test Yes"
|
||||
"Yes": "Test Yes",
|
||||
"Cancel": "Test Cancel",
|
||||
"Save": "Test Save",
|
||||
"Back to": "Test Back to {{location}}",
|
||||
"LOAD": "Test LOAD",
|
||||
"NoStudyDate": "Test No Study Date",
|
||||
"localDateFormat": "\\T\\e\\s\\t MM/DD/YYYY",
|
||||
"Back": "Test Back"
|
||||
}
|
||||
|
||||
11
platform/i18n/src/locales/test-LNG/Hps.json
Normal file
11
platform/i18n/src/locales/test-LNG/Hps.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"MPR": "Test MPR",
|
||||
"3D four up": "Test 3D four up",
|
||||
"Frame View": "Test Frame View",
|
||||
"Frame view for the active series": "Test Frame view for the active series",
|
||||
"3D main": "Test 3D main",
|
||||
"mpr": "Test mpr",
|
||||
"3D only": "Test 3D only",
|
||||
"3D primary": "Test 3D primary",
|
||||
"Axial Primary": "Test Axial Primary"
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
{
|
||||
"Change layout": "Test Change layout",
|
||||
"Common": "Test Common",
|
||||
"Advanced": "Test Advanced",
|
||||
"Custom": "Test Custom",
|
||||
"Hover to select": "Test Hover to select",
|
||||
"rows and columns": "Test rows and columns",
|
||||
"Click to apply": "Test Click to apply"
|
||||
}
|
||||
13
platform/i18n/src/locales/test-LNG/Tools.json
Normal file
13
platform/i18n/src/locales/test-LNG/Tools.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"Segmentation": " Test Segmentation",
|
||||
"Segment": " Test Segment",
|
||||
"Download High Quality Image": " Test Download High Quality Image",
|
||||
"Edit Segment Label": " Test Edit Segment Label",
|
||||
"Enter new label": " Test Enter new label",
|
||||
"Segment Color": " Test Segment Color",
|
||||
"Edit Measurement Label": " Test Edit Measurement Label",
|
||||
"Edit Arrow Text": " Test Edit Arrow Text",
|
||||
"Enter new text": " Test Enter new text",
|
||||
"Download Image": " Test Download Image",
|
||||
"Image cannot be downloaded": " Test Image cannot be downloaded"
|
||||
}
|
||||
@ -1,5 +1,10 @@
|
||||
{
|
||||
"Back to Display Options": "Test Back to Display Options",
|
||||
"Modality Presets": "Test {{modality}} Presets",
|
||||
"Modality Window Presets": "Test {{modality}} Window Presets"
|
||||
"Modality Presets": "Test Modality Presets",
|
||||
"Modality Window Presets": "Test Modality Window Presets",
|
||||
"Display Color bar": "Test Display Color bar",
|
||||
"Color LUT": "Test Color LUT",
|
||||
"Preview in viewport": "Test Preview in viewport",
|
||||
"Grayscale": "Test Grayscale",
|
||||
"Rendering Options": "Test Rendering Options"
|
||||
}
|
||||
|
||||
@ -23,6 +23,10 @@ import TrackedCornerstoneViewport from './TrackedCornerstoneViewport.json';
|
||||
import UserPreferencesModal from './UserPreferencesModal.json';
|
||||
import ViewportDownloadForm from './ViewportDownloadForm.json';
|
||||
import WindowLevelActionMenu from './WindowLevelActionMenu.json';
|
||||
import CaptureViewportModal from './CaptureViewportModal.json';
|
||||
import Tools from './Tools.json';
|
||||
import Hps from './Hps.json';
|
||||
import ToolbarLayoutSelector from './ToolbarLayoutSelector.json';
|
||||
|
||||
export default {
|
||||
'test-LNG': {
|
||||
@ -51,5 +55,9 @@ export default {
|
||||
UserPreferencesModal,
|
||||
ViewportDownloadForm,
|
||||
WindowLevelActionMenu,
|
||||
CaptureViewportModal,
|
||||
Tools,
|
||||
Hps,
|
||||
ToolbarLayoutSelector,
|
||||
},
|
||||
};
|
||||
|
||||
@ -2,38 +2,37 @@
|
||||
"Acquired": "已获取",
|
||||
"Angle": "角度",
|
||||
"Annotation": "注释",
|
||||
"Arrow Annotate": "标注",
|
||||
"Arrow Annotate": "箭头标注",
|
||||
"Axial": "轴状面",
|
||||
"Bidirectional Tool": "双向",
|
||||
"Bidirectional": "双向",
|
||||
"Bidirectional Tool": "双向测量",
|
||||
"Bidirectional": "双向测量",
|
||||
"Bone": "骨窗",
|
||||
"Brain": "脑窗",
|
||||
"Brush": "橡皮擦",
|
||||
"Brush": "勾画工具",
|
||||
"Cancel": "取消",
|
||||
"Capture": "下载",
|
||||
"CINE": "播放动画",
|
||||
"Cine": "连续播放",
|
||||
"Capture": "图像捕获",
|
||||
"Cine": "动态播放",
|
||||
"Circle": "圆",
|
||||
"Clear": "清除",
|
||||
"Coronal": "冠状面",
|
||||
"Crosshairs": "十字线",
|
||||
"Dismiss Aspect": "解除Aspect",
|
||||
"Ellipse Tool": "椭圆",
|
||||
"Dismiss Aspect": "自由缩放",
|
||||
"Ellipse Tool": "椭圆工具",
|
||||
"Ellipse": "椭圆",
|
||||
"Elliptical": "椭圆的",
|
||||
"Flip H": "左右翻转",
|
||||
"Elliptical": "椭圆形",
|
||||
"Flip H": "水平翻转",
|
||||
"Flip Horizontal": "水平翻转",
|
||||
"Flip Horizontally": "左右翻转",
|
||||
"Flip Horizontally": "水平翻转",
|
||||
"Flip V": "上下翻转",
|
||||
"Freehand": "自由画线",
|
||||
"Grid Layout": "窗口布局",
|
||||
"Invert Colors": "灰度反转",
|
||||
"Invert": "灰度反转",
|
||||
"Keep Aspect": "保持Aspect",
|
||||
"Layout": "显示窗口",
|
||||
"Length Tool": "长度",
|
||||
"Keep Aspect": "保持宽高比",
|
||||
"Layout": "$t(Common:Layout)",
|
||||
"Length Tool": "长度工具",
|
||||
"Length": "长度",
|
||||
"Levels": "层级",
|
||||
"Levels": "窗宽窗位",
|
||||
"Liver": "肝窗",
|
||||
"Lung": "肺窗",
|
||||
"Magnify": "放大镜",
|
||||
@ -41,28 +40,97 @@
|
||||
"Measurements": "测量",
|
||||
"More Measure Tools": "更多测量工具",
|
||||
"More Tools": "更多工具",
|
||||
"More": "更多",
|
||||
"Next": "下一个",
|
||||
"More": "$t(Common:More)",
|
||||
"Next": "$t(Common:Next)",
|
||||
"Pan": "移动",
|
||||
"Play": "播放",
|
||||
"Previous": "上一个",
|
||||
"Play": "$t(Common:Play)",
|
||||
"Previous": "$t(Common:Previous)",
|
||||
"Probe": "探针",
|
||||
"Rectangle": "矩形",
|
||||
"Reference Lines": "参考线",
|
||||
"Reset to defaults": "返回默认",
|
||||
"Reset View": "复原",
|
||||
"Reset": "复原",
|
||||
"ROI Window": "选择对比度",
|
||||
"Rotate +90": "顺时针旋转",
|
||||
"Reset to defaults": "恢复默认设置",
|
||||
"Reset View": "重置视图",
|
||||
"Reset": "$t(Common:Reset)",
|
||||
"ROI Window": "ROI窗口",
|
||||
"Rotate +90": "顺时针旋转90°",
|
||||
"Rotate Right": "顺时针旋转",
|
||||
"Sagittal": "矢状面",
|
||||
"Save": "保存",
|
||||
"Soft tissue": "软组织窗",
|
||||
"Stack Image Sync": "影像联动",
|
||||
"Stack Scroll": "滑动切换图层",
|
||||
"Stop": "停止",
|
||||
"Stack Image Sync": "图像切片同步",
|
||||
"Stack Scroll": "切片滚动",
|
||||
"Stop": "$t(Common:Stop)",
|
||||
"Themes": "主题",
|
||||
"W/L Presets": "窗位预设",
|
||||
"W/L Presets": "窗宽/窗位预设",
|
||||
"Window Level": "窗位",
|
||||
"Zoom": "放大"
|
||||
"Zoom": "放大",
|
||||
"Adjust window/level presets and customize image contrast settings": "调整窗宽/窗位预设并自定义图像对比度",
|
||||
"Zoom-in": "放大",
|
||||
"Cobb Angle": "Cobb 角",
|
||||
"Calibration": "定标",
|
||||
"Dicom Tag Browser": "DICOM 标签浏览器",
|
||||
"Magnify Probe": "放大探针",
|
||||
"Ultrasound Directional": "超声方向标注",
|
||||
"Window Level Region": "局部窗位",
|
||||
"Image Overlay": "图像叠加",
|
||||
"Image Slice Sync": "图像切片同步",
|
||||
"Freehand ROI": "手绘ROI",
|
||||
"Spline ROI": "样条ROI",
|
||||
"Livewire tool": "智能边缘工具",
|
||||
"Segment Label Display": "分段标签显示",
|
||||
"Data Overlay": "数据叠加",
|
||||
"Configure data overlay options and manage foreground/background display sets": "配置数据叠加选项并管理前景/背景显示集",
|
||||
"Orientation": "方向",
|
||||
"Change viewport orientation between axial, sagittal, coronal and reformat planes": "在轴状面、矢状面、冠状面和重组平面之间切换视图方向",
|
||||
"Status": "状态",
|
||||
"Navigation": "导航",
|
||||
"Navigate between segments/measurements and manage their visibility": "在分段/测量之间导航并管理其可见性",
|
||||
"Tracking Status": "跟踪状态",
|
||||
"View and manage tracking status of measurements and annotations": "查看和管理测量和注释的跟踪状态",
|
||||
"Advanced Window Level": "高级窗位",
|
||||
"Advanced window/level settings with manual controls and presets": "高级窗宽/窗位设置,手动控制和预设",
|
||||
"Threshold": "阈值",
|
||||
"Image threshold settings": "图像阈值设置",
|
||||
"Opacity": "不透明度",
|
||||
"Image opacity settings": "图像不透明度设置",
|
||||
"Colorbar": "颜色条",
|
||||
"Enable position synchronization on stack viewports": "启用堆栈视图端口的位置同步",
|
||||
"Show Reference Lines": "显示参考线",
|
||||
"Toggle Image Overlay": "切换图像叠加",
|
||||
"Calibration Line": "定标线",
|
||||
"Ellipse ROI": "椭圆ROI",
|
||||
"Rectangle ROI": "矩形ROI",
|
||||
"Circle Tool": "圆工具",
|
||||
"Click to show or hide segment labels when hovering with your mouse.": "点击以在鼠标悬停时显示或隐藏分段标签",
|
||||
"Download": "下载",
|
||||
"Point": "点",
|
||||
"Point Tool": "点工具",
|
||||
"Polygon": "多边形",
|
||||
"Polygon Tool": "多边形工具",
|
||||
"Box": "框",
|
||||
"Box Tool": "框工具",
|
||||
"Freehand Polygon": "手绘多边形",
|
||||
"Freehand Polygon Tool": "手绘多边形工具",
|
||||
"Freehand Line": "手绘线",
|
||||
"Freehand Line Tool": "手绘线工具",
|
||||
"Line": "线",
|
||||
"Line Tool": "线工具",
|
||||
"3D Rotate": "3D旋转",
|
||||
"MPR": "MPR",
|
||||
"Rectangle ROI Threshold": "矩形ROI阈值",
|
||||
"Select the PT Axial to enable this tool": "选择PT轴向以启用此工具",
|
||||
"Create new segmentation to enable this tool.": "创建新分割以启用此工具。",
|
||||
"Threshold Tool": "阈值工具",
|
||||
"Select a 3D viewport to enable this tool": "选择3D视口以启用此工具",
|
||||
"Select an MPR viewport to enable this tool": "选择MPR视口以启用此工具",
|
||||
"Interpolate Labelmap": "插值标签图",
|
||||
"Segment Bidirectional": "分割双向",
|
||||
"One Click Segment": "一键分割",
|
||||
"Labelmap Assist": "标签图辅助",
|
||||
"Marker Guided Labelmap": "标记引导标签图",
|
||||
"Eraser": "橡皮擦",
|
||||
"Shapes": "形状",
|
||||
"Create new segmentation to enable shapes tool.": "创建新分割以启用形状工具。",
|
||||
"US Pleura B-line Annotation": "US胸膜B线注释",
|
||||
"Arrow Annotate Tool": "箭头注释工具"
|
||||
}
|
||||
|
||||
6
platform/i18n/src/locales/zh/CaptureViewportModal.json
Normal file
6
platform/i18n/src/locales/zh/CaptureViewportModal.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"File name": "文件名",
|
||||
"Image size": "图片大小",
|
||||
"Include annotations": "包含注释",
|
||||
"Include warning message": "包含警告信息"
|
||||
}
|
||||
@ -11,5 +11,16 @@
|
||||
"Series": "序列",
|
||||
"Show": "显示",
|
||||
"Stop": "停止",
|
||||
"StudyDate": "时间"
|
||||
"StudyDate": "时间",
|
||||
"localDateFormat": "YYYY-MM-DD",
|
||||
"Yes": "是",
|
||||
"No": "否",
|
||||
"Cancel": "取消",
|
||||
"Save": "保存",
|
||||
"Back to": "返回 {{location}}",
|
||||
"Close": "关闭",
|
||||
"LOAD": "加载",
|
||||
"mm": "mm",
|
||||
"NoStudyDate": "无时间",
|
||||
"Back": "返回"
|
||||
}
|
||||
|
||||
11
platform/i18n/src/locales/zh/Hps.json
Normal file
11
platform/i18n/src/locales/zh/Hps.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"MPR": "多平面重建",
|
||||
"3D four up": "三维四窗",
|
||||
"Frame View": "单帧视图",
|
||||
"Frame view for the active series": "当前序列的单帧视图",
|
||||
"3D main": "三维主视图",
|
||||
"mpr": "多平面重建",
|
||||
"3D only": "仅三维视图",
|
||||
"3D primary": "三维主视图",
|
||||
"Axial Primary": "轴状面主视图"
|
||||
}
|
||||
@ -2,5 +2,11 @@
|
||||
"Primary": "当前",
|
||||
"Recent": "最近",
|
||||
"All": "全部",
|
||||
"Tracked Series": "个跟踪序列"
|
||||
"Tracked Series": "跟踪序列",
|
||||
"Tag Browser": "标签浏览",
|
||||
"Add as Layer": "添加为图层",
|
||||
"Series Number": "序列编号",
|
||||
"Series Date": "序列时间",
|
||||
"Thumbnail Double Click": "缩略图双击",
|
||||
"The selected display sets could not be added to the viewport.": "所选显示集无法添加到视图端口。"
|
||||
}
|
||||
|
||||
9
platform/i18n/src/locales/zh/ToolbarLayoutSelector.json
Normal file
9
platform/i18n/src/locales/zh/ToolbarLayoutSelector.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"Change layout": "改变布局",
|
||||
"Common": "通用",
|
||||
"Advanced": "高级",
|
||||
"Custom": "自定义",
|
||||
"Hover to select": "悬停以选择",
|
||||
"rows and columns": "行和列",
|
||||
"Click to apply": "点击应用"
|
||||
}
|
||||
13
platform/i18n/src/locales/zh/Tools.json
Normal file
13
platform/i18n/src/locales/zh/Tools.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"Segmentation": "分割",
|
||||
"Segment": "分割",
|
||||
"Download High Quality Image": "下载高清图像",
|
||||
"Edit Segment Label": "编辑分割标签",
|
||||
"Enter new label": "输入新标签",
|
||||
"Segment Color": "分割颜色",
|
||||
"Edit Measurement Label": "编辑测量标签",
|
||||
"Edit Arrow Text": "编辑箭头文本",
|
||||
"Enter new text": "输入新文本",
|
||||
"Download Image": "下载图片",
|
||||
"Image cannot be downloaded": "图片无法下载"
|
||||
}
|
||||
10
platform/i18n/src/locales/zh/WindowLevelActionMenu.json
Normal file
10
platform/i18n/src/locales/zh/WindowLevelActionMenu.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"Display Color bar": "显示颜色条",
|
||||
"Color LUT": "颜色查找表",
|
||||
"Modality Window Presets": "模态窗口预设",
|
||||
"Rendering Options": "渲染选项",
|
||||
"Preview in viewport": "在视图中预览",
|
||||
"Grayscale": "灰度",
|
||||
"Back to Display Options": "返回显示选项",
|
||||
"Modality Presets": "模态预设"
|
||||
}
|
||||
@ -18,9 +18,14 @@ import Dialog from './Dialog.json';
|
||||
import Modals from './Modals.json';
|
||||
import Local from './Local.json';
|
||||
import ErrorBoundary from './ErrorBoundary.json';
|
||||
import WindowLevelActionMenu from './WindowLevelActionMenu.json';
|
||||
import CaptureViewportModal from './CaptureViewportModal.json';
|
||||
import Hps from './Hps.json';
|
||||
import ToolbarLayoutSelector from './ToolbarLayoutSelector.json';
|
||||
import Tools from './Tools.json';
|
||||
|
||||
export default {
|
||||
'zh': {
|
||||
zh: {
|
||||
AboutModal,
|
||||
Buttons,
|
||||
CineDialog,
|
||||
@ -41,5 +46,10 @@ export default {
|
||||
Modals,
|
||||
Local,
|
||||
ErrorBoundary,
|
||||
WindowLevelActionMenu,
|
||||
CaptureViewportModal,
|
||||
Hps,
|
||||
ToolbarLayoutSelector,
|
||||
Tools,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@ -2,6 +2,7 @@ import React from 'react';
|
||||
|
||||
import { Icons } from '@ohif/ui-next';
|
||||
import DividerItem from './DividerItem';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
type BackItemProps = {
|
||||
backLabel?: string;
|
||||
@ -9,6 +10,8 @@ type BackItemProps = {
|
||||
};
|
||||
|
||||
const BackItem = ({ backLabel, onBackClick }: BackItemProps) => {
|
||||
const { t } = useTranslation('Common');
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
@ -19,7 +22,7 @@ const BackItem = ({ backLabel, onBackClick }: BackItemProps) => {
|
||||
name="content-prev"
|
||||
className="ml-2 mr-2"
|
||||
/>
|
||||
<span>{backLabel || 'Back to Display Options'}</span>
|
||||
<span>{backLabel || t('Back')}</span>
|
||||
</div>
|
||||
<DividerItem></DividerItem>
|
||||
</>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user