From e34cbfead711134a96bb90c37edf0f8cf9d4ffc7 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 11 Nov 2013 00:14:42 +0000 Subject: [PATCH] Desable the "Set Rx Freq" button when transmitting. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@3602 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 4 +++- widegraph.cpp | 5 +++++ widegraph.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index a4efc4595..85d04ce7f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//------------------------------------------------------------- MainWindow +//-------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" @@ -1455,6 +1455,7 @@ void MainWindow::guiUpdate() soundInThread.setMonitoring(false); btxok=true; m_transmitting=true; + g_pWideGraph->enableSetRxHardware(false); QFile f("map65_tx.log"); f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append); @@ -1473,6 +1474,7 @@ void MainWindow::guiUpdate() ptt_(&m_pttPort,&itx,&iptt); // Lower PTT if(!m_txMute) soundOutThread.quitExecution=true; m_transmitting=false; + g_pWideGraph->enableSetRxHardware(true); if(m_auto) { m_monitoring=true; soundInThread.setMonitoring(m_monitoring); diff --git a/widegraph.cpp b/widegraph.cpp index f71d1ef6b..13509434d 100644 --- a/widegraph.cpp +++ b/widegraph.cpp @@ -387,3 +387,8 @@ void WideGraph::updateFreqLabel() QString t2=t.mid(0,12) + "." + t.mid(12,3); ui->labFreq->setText(t1 + "\n" + t2); } + +void WideGraph::enableSetRxHardware(bool b) +{ + ui->pbSetRxHardware->setEnabled(b); +} diff --git a/widegraph.h b/widegraph.h index d27ad867f..88c48e86f 100644 --- a/widegraph.h +++ b/widegraph.h @@ -41,6 +41,7 @@ public: void rx570(); void tx570(); void updateFreqLabel(); + void enableSetRxHardware(bool b); qint32 m_qsoFreq;