Remove the "Weak" checkbox from GUI, it's not implemented.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7994 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-08-03 14:48:59 +00:00
parent 0bc966c554
commit 79e63d782d
3 changed files with 3 additions and 24 deletions

View File

@ -956,7 +956,6 @@ void MainWindow::writeSettings()
m_settings->setValue ("FreeText", ui->freeTextMsg->currentText ()); m_settings->setValue ("FreeText", ui->freeTextMsg->currentText ());
m_settings->setValue("ShowMenus",ui->cbMenus->isChecked()); m_settings->setValue("ShowMenus",ui->cbMenus->isChecked());
m_settings->setValue("CallFirst",ui->cbFirst->isChecked()); m_settings->setValue("CallFirst",ui->cbFirst->isChecked());
m_settings->setValue("CallWeak",ui->cbWeak->isChecked());
m_settings->endGroup(); m_settings->endGroup();
m_settings->beginGroup("Common"); m_settings->beginGroup("Common");
@ -1022,7 +1021,6 @@ void MainWindow::readSettings()
m_settings->value ("FreeText").toString ()); m_settings->value ("FreeText").toString ());
ui->cbMenus->setChecked(m_settings->value("ShowMenus",true).toBool()); ui->cbMenus->setChecked(m_settings->value("ShowMenus",true).toBool());
ui->cbFirst->setChecked(m_settings->value("CallFirst",true).toBool()); ui->cbFirst->setChecked(m_settings->value("CallFirst",true).toBool());
ui->cbWeak->setChecked(m_settings->value("CallWeak",true).toBool());
m_settings->endGroup(); m_settings->endGroup();
// do this outside of settings group because it uses groups internally // do this outside of settings group because it uses groups internally
@ -4554,7 +4552,6 @@ void MainWindow::displayWidgets(int n)
} }
ui->cbFirst->setVisible ("FT8" == m_mode); ui->cbFirst->setVisible ("FT8" == m_mode);
ui->actionEnable_AP->setVisible ("FT8" == m_mode); ui->actionEnable_AP->setVisible ("FT8" == m_mode);
ui->cbWeak->setVisible(false);
m_lastCallsign.clear (); // ensures Tx5 is updated for new modes m_lastCallsign.clear (); // ensures Tx5 is updated for new modes
genStdMsgs (m_rpt, true); genStdMsgs (m_rpt, true);
} }
@ -6718,21 +6715,14 @@ void MainWindow::on_cbMenus_toggled(bool b)
void MainWindow::on_cbFirst_toggled(bool b) void MainWindow::on_cbFirst_toggled(bool b)
{ {
if (b) { if (b) {
ui->cbWeak->setChecked (!b);
if (m_auto && CALLING == m_QSOProgress) { if (m_auto && CALLING == m_QSOProgress) {
ui->cbFirst->setStyleSheet ("QCheckBox{color:red}"); ui->cbFirst->setStyleSheet ("QCheckBox{color:red}");
} }
} } else {
else {
ui->cbFirst->setStyleSheet (""); ui->cbFirst->setStyleSheet ("");
} }
} }
void MainWindow::on_cbWeak_toggled(bool b)
{
if(b) ui->cbFirst->setChecked(!b);
}
void MainWindow::on_cbAutoSeq_toggled(bool b) void MainWindow::on_cbAutoSeq_toggled(bool b)
{ {
if(!b) ui->cbFirst->setChecked(false); if(!b) ui->cbFirst->setChecked(false);

View File

@ -244,7 +244,6 @@ private slots:
void on_cbTx6_toggled(bool b); void on_cbTx6_toggled(bool b);
void on_cbMenus_toggled(bool b); void on_cbMenus_toggled(bool b);
void on_cbFirst_toggled(bool b); void on_cbFirst_toggled(bool b);
void on_cbWeak_toggled(bool b);
void on_cbAutoSeq_toggled(bool b); void on_cbAutoSeq_toggled(bool b);
void networkError (QString const&); void networkError (QString const&);
void on_ClrAvgButton_clicked(); void on_ClrAvgButton_clicked();

View File

@ -761,16 +761,6 @@ QLabel[oob="true"] {
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="cbWeak">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Call the weakest decoded responder to my CQ.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Weak</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="cbTx6"> <widget class="QCheckBox" name="cbTx6">
<property name="enabled"> <property name="enabled">
@ -975,7 +965,7 @@ QLabel[oob=&quot;true&quot;] {
<item row="1" column="0"> <item row="1" column="0">
<widget class="QCheckBox" name="txFirstCheckBox"> <widget class="QCheckBox" name="txFirstCheckBox">
<property name="toolTip"> <property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Check to Tx in even periods, uncheck for odd periods&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Check to Tx in even-numbered minutes or sequences, starting at 0; uncheck for odd sequences.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="text"> <property name="text">
<string>Tx even/1st</string> <string>Tx even/1st</string>