diff --git a/Desktop_Interface/mainwindow.cpp b/Desktop_Interface/mainwindow.cpp index 371b64ab..b88db7c9 100644 --- a/Desktop_Interface/mainwindow.cpp +++ b/Desktop_Interface/mainwindow.cpp @@ -2403,3 +2403,34 @@ void MainWindow::cursorGroupEnabled(bool enabled) } } + +void MainWindow::on_actionHide_Widget_Oscilloscope_triggered(bool checked) +{ + ui->scopeGroup_CH1->setVisible(!checked); + ui->scopeGroup_CH2->setVisible(!checked); + ui->cursorGroup->setVisible(!checked); + ui->triggerGroup->setVisible(!checked); +} + +void MainWindow::on_actionHide_Widget_SignalGen_triggered(bool checked) +{ + ui->signalGenGroup_CH1->setVisible(!checked); + ui->signalGenGroup_CH2->setVisible(!checked); +} + +void MainWindow::on_actionHide_Widget_Multimeter_triggered(bool checked) +{ + ui->multimeterGroup->setVisible(!checked); +} + +void MainWindow::on_actionHide_Widget_PowerSupply_triggered(bool checked) +{ + ui->psuGroup->setVisible(!checked); +} + +void MainWindow::on_actionHide_Widget_LogicAnalyzer_triggered(bool checked) +{ + ui->busSifferGroup_CH1->setVisible(!checked); + ui->busSnifferGroup_CH2->setVisible(!checked); + ui->digitalOutputGroup->setVisible(!checked); +} diff --git a/Desktop_Interface/mainwindow.h b/Desktop_Interface/mainwindow.h index 57540516..0b089480 100644 --- a/Desktop_Interface/mainwindow.h +++ b/Desktop_Interface/mainwindow.h @@ -215,6 +215,16 @@ private slots: void cursorGroupEnabled(bool enabled); + void on_actionHide_Widget_Oscilloscope_triggered(bool checked); + + void on_actionHide_Widget_SignalGen_triggered(bool checked); + + void on_actionHide_Widget_Multimeter_triggered(bool checked); + + void on_actionHide_Widget_PowerSupply_triggered(bool checked); + + void on_actionHide_Widget_LogicAnalyzer_triggered(bool checked); + private: //Generic Vars Ui::MainWindow *ui; diff --git a/Desktop_Interface/ui_files_desktop/mainwindow.ui b/Desktop_Interface/ui_files_desktop/mainwindow.ui index b1125a29..942d78ea 100644 --- a/Desktop_Interface/ui_files_desktop/mainwindow.ui +++ b/Desktop_Interface/ui_files_desktop/mainwindow.ui @@ -1507,7 +1507,7 @@ 0 0 1493 - 36 + 20 @@ -1602,6 +1602,8 @@ + + @@ -1612,8 +1614,8 @@ 0 0 - 173 - 150 + 170 + 115 @@ -1652,6 +1654,8 @@ + + @@ -1747,6 +1751,8 @@ + + @@ -1754,6 +1760,8 @@ + + @@ -1785,6 +1793,8 @@ + + @@ -2573,6 +2583,46 @@ Hex Display + + + true + + + Hide Widget + + + + + true + + + Hide Widget + + + + + true + + + Hide Widget + + + + + true + + + Hide Widget + + + + + true + + + Hide Widget + +