From fade5fd8b90fedccf939eb0d180cfcfe6b21e332 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 17 Dec 2024 15:52:02 -0500 Subject: [PATCH] feat(ControlsModal): list mouse view controls --- src/components/AboutBox.vue | 15 ++++++++++ src/components/App.vue | 6 ++-- ...eyboardShortcuts.vue => ControlsModal.vue} | 30 +++++++++++++------ src/components/Settings.vue | 19 ++++++------ src/constants.ts | 2 +- 5 files changed, 49 insertions(+), 23 deletions(-) rename src/components/{KeyboardShortcuts.vue => ControlsModal.vue} (62%) diff --git a/src/components/AboutBox.vue b/src/components/AboutBox.vue index 34893863a..6073fdc59 100644 --- a/src/components/AboutBox.vue +++ b/src/components/AboutBox.vue @@ -7,6 +7,14 @@ For investigational use only + + Keyboard Shortcuts and View Controls +

About VolView

@@ -198,6 +206,7 @@ import { defineComponent } from 'vue'; import { useDisplay } from 'vuetify'; import VolViewFullLogo from './icons/VolViewFullLogo.vue'; +import { useKeyboardShortcutsStore } from '../store/keyboard-shortcuts'; export default defineComponent({ name: 'AboutBox', @@ -207,7 +216,13 @@ export default defineComponent({ setup() { const display = useDisplay(); + const keyboardStore = useKeyboardShortcutsStore(); + const openKeyboardShortcuts = () => { + keyboardStore.settingsOpen = true; + }; + return { + openKeyboardShortcuts, mobile: display.xs, versions: { volview: __VERSIONS__.volview, diff --git a/src/components/App.vue b/src/components/App.vue index 8414e41fc..43dc32b99 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -28,7 +28,7 @@ - + - - - Keyboard Shortcuts - - - - Command - Keybinding - + +

View Controls
+ + + + Scroll Slices + Mouse wheel or 2 finger vertical scroll + + + Zoom + Right mouse button + move vertically + + + Pan + Shift + left mouse button + move + + + + +
Keyboard Shortcuts
+ {{ action }} diff --git a/src/components/Settings.vue b/src/components/Settings.vue index dea3e2288..48c9cd686 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -2,6 +2,14 @@ Settings + + Keyboard Shortcuts and View Controls + - - Keyboard Shortcuts - - @@ -52,6 +51,7 @@ import { useTheme } from 'vuetify'; import { useLocalStorage } from '@vueuse/core'; import { useKeyboardShortcutsStore } from '@/src/store/keyboard-shortcuts'; +import { useViewCameraStore } from '@/src/store/view-configs/camera'; import DicomWebSettings from './dicom-web/DicomWebSettings.vue'; import ServerSettings from './ServerSettings.vue'; import { DarkTheme, LightTheme, ThemeStorageKey } from '../constants'; @@ -59,7 +59,6 @@ import { useErrorReporting, errorReportingConfigured, } from '../utils/errorReporting'; -import { useViewCameraStore } from '@/src/store/view-configs/camera'; export default defineComponent({ setup() { diff --git a/src/constants.ts b/src/constants.ts index ebc62ce11..81ebe8987 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -61,7 +61,7 @@ export const ACTIONS = { }, mergeNewPolygon: { - readable: 'Hold down to merge new polygons with overlapping polygons', + readable: 'Hold to merge new polygons with overlapping polygons', }, showKeyboardShortcuts: {