v1.0.0-rc.72
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user