mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-23 02:24:27 -04:00
Improve encapsulation and reliability of the wide graph 60m behaviour
The wide graph class handles 60m band behaviour of the minimum decoded JT9 DF internally without leaking implementation details. On 60m the lowest JT9 DF is always zero and the spin box to set it is disabled. This reflects that 60m only has narrow channels and JT9 signals should share the same dial frequency as JT65 signals. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7668 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
@@ -1757,25 +1757,6 @@ void MainWindow::displayDialFrequency ()
|
||||
ui->bandComboBox->setCurrentText (band_name);
|
||||
m_wideGraph->setRxBand (band_name);
|
||||
m_lastBand = band_name;
|
||||
// For 60M we'll move the JT9 offset to zero and remember so we can restore
|
||||
static int saveRxRange = -1;
|
||||
if (saveRxRange < 0) {
|
||||
m_settings->beginGroup ("WideGraph");
|
||||
saveRxRange = m_settings->value ("FminSave", m_wideGraph->Fmin()).toInt ();
|
||||
m_settings->endGroup();
|
||||
}
|
||||
if (band_name == "60m") {
|
||||
saveRxRange = m_wideGraph->Fmin();
|
||||
// We need to remember our save value in case we restart on 60M
|
||||
m_settings->beginGroup ("WideGraph");
|
||||
m_settings->setValue ("FminSave", saveRxRange);
|
||||
m_settings->endGroup();
|
||||
m_wideGraph->setRxRangeAndSplitSpinBox(0);
|
||||
|
||||
}
|
||||
else {
|
||||
m_wideGraph->setRxRangeAndSplitSpinBox(saveRxRange);
|
||||
}
|
||||
}
|
||||
|
||||
// search working frequencies for one we are within 10kHz of (1 Mhz
|
||||
|
||||
Reference in New Issue
Block a user