v1.0.0-rc.72

This commit is contained in:
2025-09-08 20:28:59 +02:00
parent 6c88c6902e
commit c67337cfe1
275 changed files with 7525 additions and 1039 deletions
+34
View File
@@ -47,6 +47,18 @@ JFJochViewerMenu::JFJochViewerMenu(QWidget *parent) : QMenuBar(parent) {
connect(toggleMetadataWindowAction, &QAction::toggled,
this, &JFJochViewerMenu::metadataWindowToggled);
toggleSpotWindowAction = windowMenu->addAction("Spot list");
toggleSpotWindowAction->setCheckable(true);
toggleSpotWindowAction->setChecked(false);
connect(toggleSpotWindowAction, &QAction::toggled,
this, &JFJochViewerMenu::spotListWindowToggled);
toggleReflectionWindowAction = windowMenu->addAction("Reflection list");
toggleReflectionWindowAction->setCheckable(true);
toggleReflectionWindowAction->setChecked(false);
connect(toggleReflectionWindowAction, &QAction::toggled,
this, &JFJochViewerMenu::reflectionListWindowToggled);
QMenu *helpMenu = addMenu("Help");
// Add "About" action
const QAction *aboutAction = helpMenu->addAction("About");
@@ -124,6 +136,28 @@ void JFJochViewerMenu::metadataWindowClosing() {
toggleMetadataWindowAction->setChecked(false);
}
void JFJochViewerMenu::spotListWindowToggled(bool checked) {
if (checked)
emit openSpotListWindow();
else
emit closeSpotListWindow();
}
void JFJochViewerMenu::spotListWindowClosing() {
toggleSpotWindowAction->setChecked(false);
}
void JFJochViewerMenu::reflectionListWindowToggled(bool checked) {
if (checked)
emit openReflectionListWindow();
else
emit closeReflectionListWindow();
}
void JFJochViewerMenu::reflectionListWindowClosing() {
toggleReflectionWindowAction->setChecked(false);
}
void JFJochViewerMenu::openHttpSelected() {
QDialog dialog(this);
dialog.setWindowTitle("Open HTTP Connection");