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
This commit is contained in:
Joe Taylor 2013-11-11 00:14:42 +00:00
parent 89bc78fe54
commit e34cbfead7
3 changed files with 9 additions and 1 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -41,6 +41,7 @@ public:
void rx570();
void tx570();
void updateFreqLabel();
void enableSetRxHardware(bool b);
qint32 m_qsoFreq;