Files
Jungfraujoch/viewer/windows/JFJochAcknowledgementWindow.cpp
T
leonarski_fandClaude Opus 5 dccc415a53 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
2026-09-08 21:17:07 +02:00

24 lines
787 B
C++

// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#include "JFJochAcknowledgementWindow.h"
#include <QFile>
#include <QTextBrowser>
#include <QVBoxLayout>
JFJochAcknowledgementWindow::JFJochAcknowledgementWindow(QWidget *parent) : QDialog(parent) {
setWindowTitle("Acknowledgements");
resize(800, 600);
auto *browser = new QTextBrowser(this);
browser->setOpenExternalLinks(true); // DOI and repository links open in the system browser
QFile file(":/ACKNOWLEDGEMENT.md");
if (file.open(QIODevice::ReadOnly | QIODevice::Text))
browser->setMarkdown(QString::fromUtf8(file.readAll()));
auto *layout = new QVBoxLayout(this);
layout->addWidget(browser);
}