Update decodes widgets when entering and leaving WSPR modes

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5674 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-07-03 17:33:20 +00:00
parent 2c3a258800
commit e0d4a2b2fb
2 changed files with 2 additions and 14 deletions

View File

@ -94,7 +94,6 @@ MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdme
m_uploading {false}, m_uploading {false},
m_tuneup {false}, m_tuneup {false},
m_bSimplex {false}, m_bSimplex {false},
m_nonWSPRTab {-1},
m_appDir {QApplication::applicationDirPath ()}, m_appDir {QApplication::applicationDirPath ()},
mem_jt9 {shdmem}, mem_jt9 {shdmem},
m_msAudioOutputBuffered (0u), m_msAudioOutputBuffered (0u),
@ -3129,7 +3128,6 @@ void MainWindow::on_actionEcho_triggered()
WSPR_config(true); //Make some irrelevant controls invisible WSPR_config(true); //Make some irrelevant controls invisible
ui->decodedTextLabel->setText(" UTC N Level Sig DF Width Q"); ui->decodedTextLabel->setText(" UTC N Level Sig DF Width Q");
auto_tx_label->setText(""); auto_tx_label->setText("");
ui->tabWidget->setCurrentIndex(0);
} }
void MainWindow::switch_mode (Mode mode) void MainWindow::switch_mode (Mode mode)
@ -3160,16 +3158,14 @@ void MainWindow::WSPR_config(bool b)
ui->decodedTextLabel->setText( ui->decodedTextLabel->setText(
"UTC dB DT Freq Drift Call Grid dBm Dist"); "UTC dB DT Freq Drift Call Grid dBm Dist");
auto_tx_label->setText(""); auto_tx_label->setText("");
ui->tabWidget->setCurrentIndex (2);
Q_EMIT m_config.transceiver_tx_frequency (0); // turn off split Q_EMIT m_config.transceiver_tx_frequency (0); // turn off split
m_bSimplex = true; m_bSimplex = true;
} else { } else {
ui->decodedTextLabel->setText("UTC dB DT Freq Message"); ui->decodedTextLabel->setText("UTC dB DT Freq Message");
auto_tx_label->setText (m_config.quick_call () ? "Tx-Enable Armed" : "Tx-Enable Disarmed"); auto_tx_label->setText (m_config.quick_call () ? "Tx-Enable Armed" : "Tx-Enable Disarmed");
ui->tabWidget->setCurrentIndex (m_nonWSPRTab >= 0 ? m_nonWSPRTab : 1);
m_bSimplex = false; m_bSimplex = false;
} }
updateGeometry (); enable_DXCC_entity (m_config.DXCC ()); // sets text window proportions and (re)inits the logbook
} }
void MainWindow::on_TxFreqSpinBox_valueChanged(int n) void MainWindow::on_TxFreqSpinBox_valueChanged(int n)
@ -3329,6 +3325,7 @@ void MainWindow::enable_DXCC_entity (bool on)
ui->gridLayout->setColumnStretch(0,0); ui->gridLayout->setColumnStretch(0,0);
ui->gridLayout->setColumnStretch(1,0); ui->gridLayout->setColumnStretch(1,0);
} }
updateGeometry ();
} }
void MainWindow::on_pbCallCQ_clicked() void MainWindow::on_pbCallCQ_clicked()
@ -4268,13 +4265,6 @@ void MainWindow::WSPR_scheduling ()
} }
} }
void MainWindow::on_tabWidget_currentChanged (int new_value)
{
if (2 != new_value) { // WSPR
m_nonWSPRTab = new_value;
}
}
void MainWindow::DopplerTracking_toggled (bool enabled) void MainWindow::DopplerTracking_toggled (bool enabled)
{ {
if (!enabled) { if (!enabled) {

View File

@ -228,7 +228,6 @@ private slots:
void p3Error(QProcess::ProcessError e); void p3Error(QProcess::ProcessError e);
void on_WSPRfreqSpinBox_valueChanged(int n); void on_WSPRfreqSpinBox_valueChanged(int n);
void on_pbTxNext_clicked(bool b); void on_pbTxNext_clicked(bool b);
void on_tabWidget_currentChanged (int);
void on_actionEcho_Graph_triggered(); void on_actionEcho_Graph_triggered();
@ -381,7 +380,6 @@ private:
bool m_bTxTime; bool m_bTxTime;
bool m_rxDone; bool m_rxDone;
bool m_bSimplex; // not using split even if it is available bool m_bSimplex; // not using split even if it is available
int m_nonWSPRTab;
bool m_bEchoTxOK; bool m_bEchoTxOK;
bool m_bTransmittedEcho; bool m_bTransmittedEcho;
bool m_bEchoTxed; bool m_bEchoTxed;