v1.0.0-rc.81
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QSpinBox>
|
||||
#include <QDialogButtonBox>
|
||||
|
||||
#include "../common/GitInfo.h"
|
||||
|
||||
@@ -59,6 +60,12 @@ JFJochViewerMenu::JFJochViewerMenu(QWidget *parent) : QMenuBar(parent) {
|
||||
connect(toggleReflectionWindowAction, &QAction::toggled,
|
||||
this, &JFJochViewerMenu::reflectionListWindowToggled);
|
||||
|
||||
toggleProcessingWindowAction = windowMenu->addAction("Processing");
|
||||
toggleProcessingWindowAction->setCheckable(true);
|
||||
toggleProcessingWindowAction->setChecked(false);
|
||||
connect(toggleProcessingWindowAction, &QAction::toggled,
|
||||
this, &JFJochViewerMenu::processingWindowToggled);
|
||||
|
||||
QMenu *helpMenu = addMenu("Help");
|
||||
// Add "About" action
|
||||
const QAction *aboutAction = helpMenu->addAction("About");
|
||||
@@ -158,6 +165,16 @@ void JFJochViewerMenu::reflectionListWindowClosing() {
|
||||
toggleReflectionWindowAction->setChecked(false);
|
||||
}
|
||||
|
||||
void JFJochViewerMenu::processingWindowToggled(bool checked) {
|
||||
if (checked)
|
||||
emit openProcessingWindow();
|
||||
else
|
||||
emit closeProcessingWindow();
|
||||
}
|
||||
void JFJochViewerMenu::processingWindowClosing() {
|
||||
toggleProcessingWindowAction->setChecked(false);
|
||||
}
|
||||
|
||||
void JFJochViewerMenu::openHttpSelected() {
|
||||
QDialog dialog(this);
|
||||
dialog.setWindowTitle("Open HTTP Connection");
|
||||
|
||||
Reference in New Issue
Block a user