diff --git a/xprotolabinterface.cpp b/xprotolabinterface.cpp index 3aa314b..f94b3a4 100644 --- a/xprotolabinterface.cpp +++ b/xprotolabinterface.cpp @@ -5044,3 +5044,28 @@ void XprotolabInterface::on_radioPulse_clicked() sendMStatusControlsForMM(); m_mmTimer.start(100); } + +void XprotolabInterface::on_clearMosiButton_clicked() +{ + ui->mosiTextEdit->clear(); +} + +void XprotolabInterface::on_clearMisoButton_clicked() +{ + ui->misoTextEdit->clear(); +} + +void XprotolabInterface::on_i2cClearButton_clicked() +{ + ui->i2cTextEdit->clear(); +} + +void XprotolabInterface::on_clearRxButton_clicked() +{ + ui->rxTextEdit->clear(); +} + +void XprotolabInterface::on_clearTxButton_clicked() +{ + ui->txTextEdit->clear(); +} diff --git a/xprotolabinterface.h b/xprotolabinterface.h index 40e373e..ad8a612 100644 --- a/xprotolabinterface.h +++ b/xprotolabinterface.h @@ -339,6 +339,16 @@ private slots: void on_radioPulse_clicked(); + void on_clearMosiButton_clicked(); + + void on_clearMisoButton_clicked(); + + void on_i2cClearButton_clicked(); + + void on_clearRxButton_clicked(); + + void on_clearTxButton_clicked(); + private: Ui::XprotolabInterface *ui; int m_mainTimerDelay; diff --git a/xprotolabinterface.ui b/xprotolabinterface.ui index 3515f0b..268a9f5 100644 --- a/xprotolabinterface.ui +++ b/xprotolabinterface.ui @@ -282,7 +282,7 @@ - 0 + 3 Qt::ElideNone @@ -4036,7 +4036,7 @@ Frequency - 0 + 2 @@ -4178,9 +4178,9 @@ Frequency - - - + + + Courier @@ -4191,8 +4191,8 @@ Frequency - - + + Courier @@ -4203,6 +4203,20 @@ Frequency + + + + Clear + + + + + + + Clear + + + @@ -4298,6 +4312,13 @@ Frequency + + + + Clear + + + @@ -4465,8 +4486,8 @@ Frequency - - + + @@ -4478,7 +4499,7 @@ Frequency - + @@ -4490,6 +4511,20 @@ Frequency + + + + Clear + + + + + + + Clear + + +