diff --git a/wfmain.cpp b/wfmain.cpp index fadd945..adf7c1d 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -6939,16 +6939,18 @@ void wfmain::setColorLineEditOperations(QColor *colorStore, void wfmain::on_colorPopOutBtn_clicked() { - if(settingsTabisAttached) + if (settingsTabisAttached) { settingsTab = ui->tabWidget->currentWidget(); ui->tabWidget->removeTab(ui->tabWidget->indexOf(settingsTab)); settingsWidgetTab->addTab(settingsTab, "Settings"); settingsWidgetWindow->show(); ui->colorPopOutBtn->setText("Re-attach"); + ui->clusterPopOutBtn->setText("Re-attach"); ui->tabWidget->setCurrentIndex(0); settingsTabisAttached = false; - } else { + } + else { settingsTab = settingsWidgetTab->currentWidget(); settingsWidgetTab->removeTab(settingsWidgetTab->indexOf(settingsTab)); @@ -6956,6 +6958,7 @@ void wfmain::on_colorPopOutBtn_clicked() settingsWidgetWindow->close(); ui->colorPopOutBtn->setText("Pop-Out"); + ui->clusterPopOutBtn->setText("Pop-Out"); ui->tabWidget->setCurrentIndex(3); settingsTabisAttached = true; } @@ -7777,3 +7780,30 @@ void wfmain::receiveSpots(QList spots) qDebug(logCluster()) << "Processing took" << timer.nsecsElapsed() / 1000 << "us"; } +void wfmain::on_clusterPopOutBtn_clicked() +{ + + if (settingsTabisAttached) + { + settingsTab = ui->tabWidget->currentWidget(); + ui->tabWidget->removeTab(ui->tabWidget->indexOf(settingsTab)); + settingsWidgetTab->addTab(settingsTab, "Settings"); + settingsWidgetWindow->show(); + ui->clusterPopOutBtn->setText("Re-attach"); + ui->colorPopOutBtn->setText("Re-attach"); + ui->tabWidget->setCurrentIndex(0); + settingsTabisAttached = false; + } + else { + settingsTab = settingsWidgetTab->currentWidget(); + + settingsWidgetTab->removeTab(settingsWidgetTab->indexOf(settingsTab)); + ui->tabWidget->addTab(settingsTab, "Settings"); + settingsWidgetWindow->close(); + + ui->clusterPopOutBtn->setText("Pop-Out"); + ui->colorPopOutBtn->setText("Pop-Out"); + ui->tabWidget->setCurrentIndex(3); + settingsTabisAttached = true; + } +} diff --git a/wfmain.h b/wfmain.h index 4adc43f..bf9097e 100644 --- a/wfmain.h +++ b/wfmain.h @@ -675,6 +675,8 @@ private slots: void on_clusterUsernameLineEdit_editingFinished(); void on_clusterPasswordLineEdit_editingFinished(); void on_clusterTimeoutLineEdit_editingFinished(); + void on_clusterPopOutBtn_clicked(); + void receiveClusterOutput(QString text); void receiveSpots(QList spots); diff --git a/wfmain.ui b/wfmain.ui index fdd0d9c..5c56f88 100644 --- a/wfmain.ui +++ b/wfmain.ui @@ -2223,7 +2223,7 @@ - 1 + 5 @@ -5067,10 +5067,27 @@ QAbstractScrollArea::AdjustIgnored + + + + 10 + 280 + 75 + 23 + + + + <html><head/><body><p>Pop out (or pop back in) the entire Settings tab. </p><p>NOTE: Press this button again to re-insert the tab when finished. </p></body></html> + + + Pop-Out + + groupBox_9 horizontalLayoutWidget groupBox_10 clusterOutputTextEdit + clusterPopOutBtn