jfjoch_viewer: Add 3D image (WIP)
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 11m41s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m48s
Build Packages / Generate python client (push) Successful in 36s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m21s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 12m59s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 38s
Build Packages / build:rpm (rocky8) (push) Successful in 12m56s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 13m2s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 13m0s
Build Packages / build:rpm (rocky9) (push) Successful in 13m45s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 6m52s
Build Packages / Unit tests (push) Successful in 52m53s

This commit is contained in:
2025-11-01 18:41:01 +01:00
parent 963c7097bc
commit 563878dde5
6 changed files with 309 additions and 0 deletions
+17
View File
@@ -66,6 +66,12 @@ JFJochViewerMenu::JFJochViewerMenu(QWidget *parent) : QMenuBar(parent) {
connect(toggleProcessingWindowAction, &QAction::toggled,
this, &JFJochViewerMenu::processingWindowToggled);
toggleDiffractionWindowAction = windowMenu->addAction("3D diffraction geometry");
toggleDiffractionWindowAction->setCheckable(true);
toggleDiffractionWindowAction->setChecked(false);
connect(toggleDiffractionWindowAction, &QAction::toggled,
this, &JFJochViewerMenu::diffractionWindowToggled);
QMenu *helpMenu = addMenu("Help");
// Add "About" action
const QAction *aboutAction = helpMenu->addAction("About");
@@ -175,6 +181,17 @@ void JFJochViewerMenu::processingWindowClosing() {
toggleProcessingWindowAction->setChecked(false);
}
void JFJochViewerMenu::diffractionWindowToggled(bool checked) {
if (checked)
emit openDiffractionWindow();
else
emit closeDiffractionWindow();
}
void JFJochViewerMenu::diffractionWindowClosing() {
toggleDiffractionWindowAction->setChecked(false);
}
void JFJochViewerMenu::openHttpSelected() {
QDialog dialog(this);
dialog.setWindowTitle("Open HTTP Connection");