From 58df97be5f49a3eabee6e5fcdbe28be3936df562 Mon Sep 17 00:00:00 2001 From: Chris Esposito Date: Mon, 18 Oct 2021 17:23:31 +1100 Subject: [PATCH] Fixed build --- Desktop_Interface/mainwindow.cpp | 60 +------ Desktop_Interface/mainwindow.h | 2 - .../ui_files_desktop/mainwindow.ui | 155 +++++++++--------- .../ui_files_mobile/mainwindow.ui | 13 -- 4 files changed, 77 insertions(+), 153 deletions(-) diff --git a/Desktop_Interface/mainwindow.cpp b/Desktop_Interface/mainwindow.cpp index bdef3707..e8c3f695 100644 --- a/Desktop_Interface/mainwindow.cpp +++ b/Desktop_Interface/mainwindow.cpp @@ -1349,64 +1349,6 @@ void MainWindow::readSettingsFile(){ } } -void MainWindow::on_actionRecord_triggered(bool checked) -{ - /* - if(!checked){ - ui->controller_iso->internalBuffer375_CH1->disableFileIO(); - ui->controller_iso->internalBuffer375_CH2->disableFileIO(); - ui->controller_iso->internalBuffer750->disableFileIO(); - - delete(output375_CH1); - delete(output375_CH2); - delete(output750); - return; - } - QDateTime now = QDateTime::currentDateTime(); - QString dateString = now.toString("yyyyMMddhhmmsszzz"); - qDebug() << dateString; - - qDebug() << "QStandardPaths::DocumentsLocation" << QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); - outputDir = new QDir(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); - outputDir->mkdir("EspoTek"); - outputDir->cd("EspoTek"); - outputDir->mkdir("recordings"); - outputDir->cd("recordings"); - outputDir->mkdir(dateString); - outputDir->cd(dateString); - - qDebug() << outputDir->absolutePath(); - - output375_CH1 = new QFile(outputDir->filePath("375_CH1.csv")); - output375_CH2 = new QFile(outputDir->filePath("375_CH2.csv")); - output750 = new QFile(outputDir->filePath("750.csv")); - - ui->controller_iso->internalBuffer375_CH1->enableFileIO(output375_CH1); - ui->controller_iso->internalBuffer375_CH2->enableFileIO(output375_CH2); - ui->controller_iso->internalBuffer750->enableFileIO(output750); - - delete(outputDir); - return; - */ -} - -void MainWindow::on_actionTake_Snapshot_triggered() -{ - /* - QString fileName; - showFileDialog(&fileName); - qDebug() << fileName; - int len = fileName.length(); - - if(len==0) return; //User cancelled - - qDebug() << len; - fileName.remove(len-4, 4); - qDebug() << fileName; - ui->controller_iso->takeSnapshot(&fileName); - */ -} - void MainWindow::reinitUsb(void){ ui->controller_iso->doNotTouchGraph = true; ui->controller_iso->driver->saveState(&reinitdeviceMode, &reinitScopeGain, &reinitCurrentPsuVoltage, &reinitDigitalPinState); @@ -2618,6 +2560,8 @@ void MainWindow::on_actionDark_Mode_triggered(bool checked) void MainWindow::on_actionShow_Debug_Console_triggered(bool checked) { enableLabradorDebugging(checked); +} + void MainWindow::on_actionFrequency_Spectrum_triggered(bool checked) { ui->controller_iso->spectrum = checked; diff --git a/Desktop_Interface/mainwindow.h b/Desktop_Interface/mainwindow.h index 09c8f995..603aade0 100644 --- a/Desktop_Interface/mainwindow.h +++ b/Desktop_Interface/mainwindow.h @@ -123,8 +123,6 @@ private slots: void on_actionAuto_Lock_toggled(bool arg1); //File/other - void on_actionRecord_triggered(bool checked); - void on_actionTake_Snapshot_triggered(); void reinitUsb(void); void reinitUsbStage2(void); void resetUsbState(void); diff --git a/Desktop_Interface/ui_files_desktop/mainwindow.ui b/Desktop_Interface/ui_files_desktop/mainwindow.ui index 4b972403..92bed354 100644 --- a/Desktop_Interface/ui_files_desktop/mainwindow.ui +++ b/Desktop_Interface/ui_files_desktop/mainwindow.ui @@ -1507,7 +1507,7 @@ 0 0 1493 - 23 + 21 @@ -1535,6 +1535,78 @@ + + + Oscilloscope + + + + &Gain + + + + + + + + + + + + + + &CH1 Stats + + + + + + + + + C&H2 Stats + + + + + + + + + &Frame rate + + + + + + + + + + + &Range + + + + + + + + + + + + + + + + + + + + + + &Multimeter @@ -1544,8 +1616,8 @@ 0 0 - 172 - 130 + 160 + 120 @@ -1731,77 +1803,6 @@ Accessibility - - - Oscilloscope - - - - &Gain - - - - - - - - - - - - - - &CH1 Stats - - - - - - - - - C&H2 Stats - - - - - - - - - &Frame rate - - - - - - - - - - - &Range - - - - - - - - - - - - - - - - - - - - - @@ -2645,18 +2646,12 @@ Dark Mode - - - Hide Widget true - - false - Frequency Spectrum diff --git a/Desktop_Interface/ui_files_mobile/mainwindow.ui b/Desktop_Interface/ui_files_mobile/mainwindow.ui index 3a6dc41d..f95289f4 100644 --- a/Desktop_Interface/ui_files_mobile/mainwindow.ui +++ b/Desktop_Interface/ui_files_mobile/mainwindow.ui @@ -2427,14 +2427,6 @@ None - - - true - - - Record - - true @@ -2526,11 +2518,6 @@ Enter Manually - - - Take Snapshot - - true