mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-22 15:48:50 -04:00
Here's a start on GUI changes to support FST240W as well as FST240.
This commit is contained in:
@@ -953,6 +953,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
ui->actionInclude_averaging->setChecked(m_ndepth&16);
|
||||
ui->actionInclude_correlation->setChecked(m_ndepth&32);
|
||||
ui->actionEnable_AP_DXcall->setChecked(m_ndepth&64);
|
||||
ui->actionAlso_FST240W->setChecked(m_ndepth&128);
|
||||
|
||||
m_UTCdisk=-1;
|
||||
m_fCPUmskrtd=0.0;
|
||||
@@ -2927,6 +2928,7 @@ void MainWindow::decode() //decode()
|
||||
if (!ui->actionInclude_averaging->isVisible ()) depth &= ~16;
|
||||
if (!ui->actionInclude_correlation->isVisible ()) depth &= ~32;
|
||||
if (!ui->actionEnable_AP_DXcall->isVisible ()) depth &= ~64;
|
||||
if (!ui->actionAlso_FST240W->isVisible ()) depth &= ~128;
|
||||
dec_data.params.ndepth=depth;
|
||||
dec_data.params.n2pass=1;
|
||||
if(m_config.twoPass()) dec_data.params.n2pass=2;
|
||||
@@ -5833,6 +5835,7 @@ void MainWindow::on_actionFST240_triggered()
|
||||
m_wideGraph->setMode(m_mode);
|
||||
m_wideGraph->setModeTx(m_modeTx);
|
||||
switch_mode (Modes::FST240);
|
||||
m_wideGraph->setMode(m_mode);
|
||||
statusChanged();
|
||||
}
|
||||
|
||||
@@ -6443,6 +6446,7 @@ void MainWindow::switch_mode (Mode mode)
|
||||
ui->label_6->setVisible(false);
|
||||
ui->label_7->setVisible(false);
|
||||
}
|
||||
ui->actionAlso_FST240W->setVisible(m_mode.startsWith("FST240"));
|
||||
}
|
||||
|
||||
void MainWindow::WSPR_config(bool b)
|
||||
@@ -6527,6 +6531,8 @@ void MainWindow::on_actionInclude_averaging_toggled (bool checked)
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000010;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void MainWindow::on_actionInclude_correlation_toggled (bool checked)
|
||||
{
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000020;
|
||||
@@ -6537,6 +6543,11 @@ void MainWindow::on_actionEnable_AP_DXcall_toggled (bool checked)
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000040;
|
||||
}
|
||||
|
||||
void MainWindow::on_actionAlso_FST240W_toggled (bool checked)
|
||||
{
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000080;
|
||||
}
|
||||
|
||||
void MainWindow::on_actionErase_ALL_TXT_triggered() //Erase ALL.TXT
|
||||
{
|
||||
int ret = MessageBox::query_message (this, tr ("Confirm Erase"),
|
||||
|
||||
Reference in New Issue
Block a user