Added menu for decode depth. Removed some WSPR.
This commit is contained in:
parent
20a44171e4
commit
71ed0c1f10
@ -666,6 +666,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
QActionGroup* DepthGroup = new QActionGroup(this);
|
||||
ui->actionQuickDecode->setActionGroup(DepthGroup);
|
||||
ui->actionMediumDecode->setActionGroup(DepthGroup);
|
||||
ui->actionDeepDecode->setActionGroup(DepthGroup);
|
||||
ui->actionDeepestDecode->setActionGroup(DepthGroup);
|
||||
|
||||
connect (ui->view_phase_response_action, &QAction::triggered, [this] () {
|
||||
@ -1016,7 +1017,8 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
ui->cbUploadWSPR_Spots->setChecked(m_uploadSpots);
|
||||
if((m_ndepth&7)==1) ui->actionQuickDecode->setChecked(true);
|
||||
if((m_ndepth&7)==2) ui->actionMediumDecode->setChecked(true);
|
||||
if((m_ndepth&7)==3) ui->actionDeepestDecode->setChecked(true);
|
||||
if((m_ndepth&7)==3) ui->actionDeepDecode->setChecked(true);
|
||||
if((m_ndepth&7)==4) ui->actionDeepestDecode->setChecked(true);
|
||||
ui->actionInclude_averaging->setChecked(m_ndepth&16);
|
||||
ui->actionInclude_correlation->setChecked(m_ndepth&32);
|
||||
ui->actionEnable_AP_DXcall->setChecked(m_ndepth&64);
|
||||
@ -1094,7 +1096,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
//UI Customizations
|
||||
m_wideGraph.data()->installEventFilter(new EscapeKeyPressEater());
|
||||
ui->mdiArea->addSubWindow(m_wideGraph.data(), Qt::Dialog | Qt::FramelessWindowHint | Qt::CustomizeWindowHint | Qt::Tool)->showMaximized();
|
||||
ui->menuDecode->setEnabled(false);
|
||||
//ui->menuDecode->setEnabled(true);
|
||||
ui->menuMode->setVisible(false);
|
||||
ui->menuSave->setEnabled(true);
|
||||
ui->menuTools->setEnabled(false);
|
||||
@ -1102,7 +1104,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
foreach(auto action, ui->menuBar->actions()){
|
||||
if(action->text() == "View") ui->menuBar->removeAction(action);
|
||||
if(action->text() == "Mode") ui->menuBar->removeAction(action);
|
||||
if(action->text() == "Decode") ui->menuBar->removeAction(action);
|
||||
//if(action->text() == "Decode") ui->menuBar->removeAction(action);
|
||||
if(action->text() == "Tools") ui->menuBar->removeAction(action);
|
||||
}
|
||||
ui->dxCallEntry->clear();
|
||||
@ -2092,55 +2094,8 @@ void MainWindow::dataSink(qint64 frames)
|
||||
this, m_fnameWE, &dec_data.d2[0], m_TRperiod, m_config.my_callsign(),
|
||||
m_config.my_grid(), m_mode, m_nSubMode, m_freqNominal, m_hisCall, m_hisGrid)));
|
||||
}
|
||||
|
||||
if (m_mode=="WSPR") {
|
||||
QString c2name_string {m_fnameWE + ".c2"};
|
||||
int len1=c2name_string.length();
|
||||
char c2name[80];
|
||||
strcpy(c2name,c2name_string.toLatin1 ().constData ());
|
||||
int nsec=120;
|
||||
int nbfo=1500;
|
||||
double f0m1500=m_freqNominal/1000000.0 + nbfo - 1500;
|
||||
int err = savec2_(c2name,&nsec,&f0m1500,len1);
|
||||
if (err!=0) MessageBox::warning_message (this, tr ("Error saving c2 file"), c2name);
|
||||
}
|
||||
}
|
||||
|
||||
if(m_mode.startsWith ("WSPR")) {
|
||||
QString t2,cmnd,depth_string;
|
||||
double f0m1500=m_dialFreqRxWSPR/1000000.0; // + 0.000001*(m_BFO - 1500);
|
||||
t2.sprintf(" -f %.6f ",f0m1500);
|
||||
if((m_ndepth&7)==1) depth_string=" -qB "; //2 pass w subtract, no Block detection, no shift jittering
|
||||
if((m_ndepth&7)==2) depth_string=" -B "; //2 pass w subtract, no Block detection
|
||||
if((m_ndepth&7)==3) depth_string=" "; //2 pass w subtract, Block detection
|
||||
QString degrade;
|
||||
degrade.sprintf("-d %4.1f ",m_config.degrade());
|
||||
|
||||
if(m_diskData) {
|
||||
cmnd='"' + m_appDir + '"' + "/wsprd " + depth_string + " -a \"" +
|
||||
QDir::toNativeSeparators(m_config.writeable_data_dir ().absolutePath()) + "\" \"" + m_path + "\"";
|
||||
} else {
|
||||
if(m_mode=="WSPR-LF") {
|
||||
cmnd='"' + m_appDir + '"' + "/wspr_fsk8d " + degrade + t2 +" -a \"" +
|
||||
QDir::toNativeSeparators(m_config.writeable_data_dir ().absolutePath()) + "\" " +
|
||||
'"' + m_fnameWE + ".wav\"";
|
||||
} else {
|
||||
cmnd='"' + m_appDir + '"' + "/wsprd " + depth_string + " -a \"" +
|
||||
QDir::toNativeSeparators(m_config.writeable_data_dir ().absolutePath()) + "\" " +
|
||||
t2 + '"' + m_fnameWE + ".wav\"";
|
||||
}
|
||||
}
|
||||
QString t3=cmnd;
|
||||
int i1=cmnd.indexOf("/wsprd ");
|
||||
cmnd=t3.mid(0,i1+7) + t3.mid(i1+7);
|
||||
|
||||
if(m_mode=="WSPR-LF") cmnd=cmnd.replace("/wsprd ","/wspr_fsk8d "+degrade+t2);
|
||||
if (ui) ui->DecodeButton->setChecked (true);
|
||||
m_cmndP1=QDir::toNativeSeparators(cmnd);
|
||||
p1Timer.start(1000);
|
||||
m_decoderBusy = true;
|
||||
statusUpdate ();
|
||||
}
|
||||
m_rxDone=true;
|
||||
}
|
||||
}
|
||||
@ -5808,6 +5763,7 @@ void MainWindow::displayWidgets(qint64 n)
|
||||
//if(i==18) ui->ClrAvgButton->setVisible(b);
|
||||
if(i==19) ui->actionQuickDecode->setEnabled(b);
|
||||
if(i==19) ui->actionMediumDecode->setEnabled(b);
|
||||
if(i==19) ui->actionDeepDecode->setEnabled(b);
|
||||
if(i==19) ui->actionDeepestDecode->setEnabled(b);
|
||||
if(i==20) ui->actionInclude_averaging->setVisible (b);
|
||||
if(i==21) ui->actionInclude_correlation->setVisible (b);
|
||||
@ -5815,9 +5771,9 @@ void MainWindow::displayWidgets(qint64 n)
|
||||
if(!b && m_echoGraph->isVisible()) m_echoGraph->hide();
|
||||
}
|
||||
if(i==23) ui->cbSWL->setVisible(b);
|
||||
if(i==24) ui->actionEnable_AP_FT8->setVisible (b);
|
||||
if(i==25) ui->actionEnable_AP_JT65->setVisible (b);
|
||||
if(i==26) ui->actionEnable_AP_DXcall->setVisible (b);
|
||||
//if(i==24) ui->actionEnable_AP_FT8->setVisible (b);
|
||||
//if(i==25) ui->actionEnable_AP_JT65->setVisible (b);
|
||||
//if(i==26) ui->actionEnable_AP_DXcall->setVisible (b);
|
||||
if(i==27) ui->cbFirst->setVisible(b);
|
||||
if(i==28) ui->cbVHFcontest->setVisible(b);
|
||||
if(i==29) ui->measure_check_box->setVisible(b);
|
||||
@ -5995,11 +5951,16 @@ void MainWindow::on_actionMediumDecode_toggled (bool checked)
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000002;
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDeepestDecode_toggled (bool checked)
|
||||
void MainWindow::on_actionDeepDecode_toggled (bool checked)
|
||||
{
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000003;
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDeepestDecode_toggled (bool checked)
|
||||
{
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000004;
|
||||
}
|
||||
|
||||
void MainWindow::on_actionInclude_averaging_toggled (bool checked)
|
||||
{
|
||||
m_ndepth ^= (-checked ^ m_ndepth) & 0x00000010;
|
||||
|
@ -244,6 +244,7 @@ private slots:
|
||||
void on_actionSave_decoded_triggered();
|
||||
void on_actionQuickDecode_toggled (bool);
|
||||
void on_actionMediumDecode_toggled (bool);
|
||||
void on_actionDeepDecode_toggled (bool);
|
||||
void on_actionDeepestDecode_toggled (bool);
|
||||
void bumpFqso(int n);
|
||||
void on_actionErase_ALL_TXT_triggered();
|
||||
|
@ -4656,10 +4656,11 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Decode</string>
|
||||
<string>&Decode</string>
|
||||
</property>
|
||||
<addaction name="actionQuickDecode"/>
|
||||
<addaction name="actionMediumDecode"/>
|
||||
<addaction name="actionDeepDecode"/>
|
||||
<addaction name="actionDeepestDecode"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionInclude_averaging"/>
|
||||
@ -4863,10 +4864,10 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Fast</string>
|
||||
<string>Fast (1x)</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionNone">
|
||||
@ -4903,9 +4904,6 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionKeyboard_shortcuts">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -4915,11 +4913,11 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="shortcut">
|
||||
<string>F3</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSpecial_mouse_commands">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -4929,6 +4927,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="shortcut">
|
||||
<string>F5</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionJT9">
|
||||
<property name="checkable">
|
||||
@ -4960,7 +4961,7 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Normal</string>
|
||||
<string>Normal (2x)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDeepestDecode">
|
||||
@ -4968,10 +4969,10 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Deep</string>
|
||||
<string>Deepest (4x)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMonitor_OFF_at_startup">
|
||||
@ -5189,6 +5190,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Enable averaging</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInclude_correlation">
|
||||
<property name="checkable">
|
||||
@ -5197,6 +5201,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Enable deep search</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWSPR">
|
||||
<property name="checkable">
|
||||
@ -5242,9 +5249,6 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="download_samples_action">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -5254,6 +5258,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="whatsThis">
|
||||
<string><html><head/><body><p>Download sample audio files demonstrating the various modes.</p></body></html></string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMSK144">
|
||||
<property name="checkable">
|
||||
@ -5272,15 +5279,15 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRelease_Notes">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Release Notes</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionEnable_AP_DXcall">
|
||||
<property name="checkable">
|
||||
@ -5289,6 +5296,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Enable AP for DX Call</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFreqCal">
|
||||
<property name="checkable">
|
||||
@ -5367,6 +5377,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Enable AP</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionEnable_AP_JT65">
|
||||
<property name="checkable">
|
||||
@ -5375,6 +5388,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Enable AP</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSolve_FreqCal">
|
||||
<property name="text">
|
||||
@ -5515,6 +5531,17 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<string>Open Save Directory...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDeepDecode">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Deep (3x)</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
Loading…
Reference in New Issue
Block a user