Remove the Decode menu and its options.

This commit is contained in:
Joe Taylor 2023-01-24 12:04:13 -05:00
parent f976d32013
commit 1f438e6ba1
3 changed files with 2 additions and 71 deletions

View File

@ -62,11 +62,6 @@ MainWindow::MainWindow(QWidget *parent) :
ui->actionSave_all->setActionGroup(saveGroup);
ui->actionNone->setActionGroup(saveGroup);
QActionGroup* DepthGroup = new QActionGroup(this);
ui->actionNo_Deep_Search->setActionGroup(DepthGroup);
ui->actionNormal_Deep_Search->setActionGroup(DepthGroup);
ui->actionAggressive_Deep_Search->setActionGroup(DepthGroup);
setWindowTitle (program_title ());
connect(&soundInThread, SIGNAL(readyForFFT(int)), this, SLOT(dataSink(int)));
@ -244,7 +239,6 @@ void MainWindow::writeSettings()
settings.setValue("nModeQ65",m_modeQ65);
settings.setValue("SaveNone",ui->actionNone->isChecked());
settings.setValue("SaveAll",ui->actionSave_all->isChecked());
settings.setValue("NDepth",m_ndepth);
settings.setValue("NEME",m_onlyEME);
settings.setValue("KB8RQ",m_kb8rq);
settings.setValue("NB",m_NB);
@ -300,7 +294,6 @@ void MainWindow::readSettings()
ui->actionNone->setChecked(settings.value("SaveNone",true).toBool());
ui->actionSave_all->setChecked(settings.value("SaveAll",false).toBool());
m_saveAll=ui->actionSave_all->isChecked();
m_ndepth=settings.value("NDepth",2).toInt();
m_onlyEME=settings.value("NEME",false).toBool();
ui->actionOnly_EME_calls->setChecked(m_onlyEME);
m_kb8rq=settings.value("KB8RQ",false).toBool();
@ -319,9 +312,6 @@ void MainWindow::readSettings()
on_actionLinrad_triggered();
ui->actionLinrad->setChecked(true);
}
if(m_ndepth==0) ui->actionNo_Deep_Search->setChecked(true);
if(m_ndepth==1) ui->actionNormal_Deep_Search->setChecked(true);
if(m_ndepth==2) ui->actionAggressive_Deep_Search->setChecked(true);
}
//-------------------------------------------------------------- dataSink()
@ -782,21 +772,6 @@ void MainWindow::on_actionDelete_all_iq_files_in_SaveDir_triggered()
}
}
void MainWindow::on_actionNo_Deep_Search_triggered()
{
m_ndepth=0;
}
void MainWindow::on_actionNormal_Deep_Search_triggered()
{
m_ndepth=1;
}
void MainWindow::on_actionAggressive_Deep_Search_triggered()
{
m_ndepth=2;
}
void MainWindow::on_actionNone_triggered() //Save None
{
m_saveAll=false;
@ -855,7 +830,6 @@ void MainWindow::decode() //decode()
datcom_.mousedf=m_wide_graph_window->DF();
datcom_.mousefqso=m_wide_graph_window->QSOfreq();
datcom_.fselected=datcom_.mousefqso + 0.001*datcom_.mousedf;
datcom_.ndepth=m_ndepth+1;
datcom_.ndiskdat=0;
if(m_diskData) {
datcom_.ndiskdat=1;
@ -903,6 +877,8 @@ void MainWindow::decode() //decode()
datcom_.nmode=10*m_modeQ65;
datcom_.nsave=m_nsave;
datcom_.max_drift=ui->sbMaxDrift->value();
datcom_.ndepth=1;
if(datcom_.nagain==1) datcom_.ndepth=3;
QString mcall=(m_myCall+" ").mid(0,12);
QString mgrid=(m_myGrid+" ").mid(0,6);

View File

@ -64,9 +64,6 @@ private slots:
void on_actionOpen_next_in_directory_triggered();
void on_actionDecode_remaining_files_in_directory_triggered();
void on_actionDelete_all_iq_files_in_SaveDir_triggered();
void on_actionNo_Deep_Search_triggered();
void on_actionNormal_Deep_Search_triggered();
void on_actionAggressive_Deep_Search_triggered();
void on_actionNone_triggered();
void on_actionSave_all_triggered();
void on_DecodeButton_clicked();
@ -106,7 +103,6 @@ private:
qint32 m_fCal;
qint32 m_txFreq;
qint32 m_setftx;
qint32 m_ndepth;
qint32 m_sec0;
qint32 m_nutc0;
qint32 m_nrx;

View File

@ -649,16 +649,6 @@ p, li { white-space: pre-wrap; }
<addaction name="separator"/>
<addaction name="menuWaterfall_palette"/>
</widget>
<widget class="QMenu" name="menuDecode">
<property name="title">
<string>Decode</string>
</property>
<addaction name="separator"/>
<addaction name="actionNo_Deep_Search"/>
<addaction name="actionNormal_Deep_Search"/>
<addaction name="actionAggressive_Deep_Search"/>
<addaction name="separator"/>
</widget>
<widget class="QMenu" name="menuSave">
<property name="title">
<string>Save</string>
@ -687,7 +677,6 @@ p, li { white-space: pre-wrap; }
<addaction name="menuFile"/>
<addaction name="menuView"/>
<addaction name="menuMode"/>
<addaction name="menuDecode"/>
<addaction name="menuSave"/>
<addaction name="menuHelp"/>
</widget>
@ -818,36 +807,6 @@ p, li { white-space: pre-wrap; }
<string>No shorthand decodes if Tx1</string>
</property>
</action>
<action name="actionNo_Deep_Search">
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="text">
<string>Fast</string>
</property>
</action>
<action name="actionNormal_Deep_Search">
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="text">
<string>Normal</string>
</property>
</action>
<action name="actionAggressive_Deep_Search">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Deep</string>
</property>
</action>
<action name="actionNone">
<property name="checkable">
<bool>true</bool>