viewer: the Help menu says what the mouse does and who is credited, and a spot can be hidden by what it is

The mouse bindings were only in the code and in one bullet of the viewer page: the wheel and its
four modifiers, the two ROI drags, and the hover and double-click behaviour of the grid scan, the
plots and the auxiliary views. They are now a window under Help, and the same table is a section of
docs/JFJOCH_VIEWER.md.

docs/ACKNOWLEDGEMENT.md is shipped in the viewer's resources and shown under Help beside the
third-party licenses, so the credit travels with the binary rather than only with the docs, and it
ends with a declaration of how generative AI was used in developing this code.

The image overlay draws every spot it has, which makes a frame with ice or with a large unindexed
population hard to read. The Inspector can now leave out the spots that were not assigned to a
lattice, and the spots that fall on an ice ring, independently of each other and of the ice-ring
highlight.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UdFBP5TjGsJ5Kvy2H8P9L9
This commit is contained in:
leonarski_fandClaude Opus 5 committed 2026-09-08 21:17:07 +02:00
1 parent aa13143209
commit dccc415a53
16 files changed
+279 -12

No files matched your search

+26
View File
@@ -18,6 +18,8 @@
#include "JFJochViewerWindow.h"
#include "windows/JFJochLicenseWindow.h"
#include "windows/JFJochMouseShortcutsWindow.h"
#include "windows/JFJochAcknowledgementWindow.h"
#include "../common/GitInfo.h"
#include "../common/CUDAWrapper.h"
@@ -81,6 +83,12 @@ JFJochViewerMenu::JFJochViewerMenu(QWidget *parent) : QMenuBar(parent) {
const QAction *aboutAction = helpMenu->addAction("About");
connect(aboutAction, &QAction::triggered, this, &JFJochViewerMenu::aboutSelected);
const QAction *mouseShortcutsAction = helpMenu->addAction("Mouse Shortcuts");
connect(mouseShortcutsAction, &QAction::triggered, this, &JFJochViewerMenu::mouseShortcutsSelected);
const QAction *acknowledgementAction = helpMenu->addAction("Acknowledgements");
connect(acknowledgementAction, &QAction::triggered, this, &JFJochViewerMenu::acknowledgementsSelected);
const QAction *licensesAction = helpMenu->addAction("Third-party Licenses");
connect(licensesAction, &QAction::triggered, this, &JFJochViewerMenu::licensesSelected);
}
@@ -148,6 +156,24 @@ void JFJochViewerMenu::licensesSelected() {
licenseWindow->activateWindow();
}
void JFJochViewerMenu::mouseShortcutsSelected() {
// Same pattern as the license window: modeless, created once, raised if already open.
if (mouseShortcutsWindow == nullptr)
mouseShortcutsWindow = new JFJochMouseShortcutsWindow(window());
mouseShortcutsWindow->show();
mouseShortcutsWindow->raise();
mouseShortcutsWindow->activateWindow();
}
void JFJochViewerMenu::acknowledgementsSelected() {
// Same pattern as the license window: modeless, created once, raised if already open.
if (acknowledgementWindow == nullptr)
acknowledgementWindow = new JFJochAcknowledgementWindow(window());
acknowledgementWindow->show();
acknowledgementWindow->raise();
acknowledgementWindow->activateWindow();
}
void JFJochViewerMenu::openSelected() {
QString fileName = QFileDialog::getOpenFileName(
this,