mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-24 21:28:41 -05:00
Revert to pre r8430 behaviour except when hound using FT8
The "Hold Tx Freq" check box allows one's Tx frequency to be fixed when replying by double-clicking a decode. When in FT8 hound mode one's Tx frequency is always held when double-clicking a decode unless directed by internal logic to change. Direct Tx offset changes are still allowed in hound mode, as are the normal waterfall clicks. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8490 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
de2e6e1a2c
commit
8d7b9bba56
@ -261,7 +261,6 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
m_sentFirst73 {false},
|
m_sentFirst73 {false},
|
||||||
m_currentMessageType {-1},
|
m_currentMessageType {-1},
|
||||||
m_lastMessageType {-1},
|
m_lastMessageType {-1},
|
||||||
m_holdTxFreq {false},
|
|
||||||
m_bShMsgs {false},
|
m_bShMsgs {false},
|
||||||
m_bSWL {false},
|
m_bSWL {false},
|
||||||
m_uploading {false},
|
m_uploading {false},
|
||||||
@ -854,7 +853,6 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
ui->sbTxPercent->setValue(m_pctx);
|
ui->sbTxPercent->setValue(m_pctx);
|
||||||
ui->TxPowerComboBox->setCurrentIndex(int(0.3*(m_dBm + 30.0)+0.2));
|
ui->TxPowerComboBox->setCurrentIndex(int(0.3*(m_dBm + 30.0)+0.2));
|
||||||
ui->cbUploadWSPR_Spots->setChecked(m_uploadSpots);
|
ui->cbUploadWSPR_Spots->setChecked(m_uploadSpots);
|
||||||
ui->cbHoldTxFreq->setChecked(m_holdTxFreq);
|
|
||||||
if((m_ndepth&7)==1) ui->actionQuickDecode->setChecked(true);
|
if((m_ndepth&7)==1) ui->actionQuickDecode->setChecked(true);
|
||||||
if((m_ndepth&7)==2) ui->actionMediumDecode->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->actionDeepestDecode->setChecked(true);
|
||||||
@ -1035,7 +1033,7 @@ void MainWindow::writeSettings()
|
|||||||
m_settings->setValue("NoSuffix",m_noSuffix);
|
m_settings->setValue("NoSuffix",m_noSuffix);
|
||||||
m_settings->setValue("GUItab",ui->tabWidget->currentIndex());
|
m_settings->setValue("GUItab",ui->tabWidget->currentIndex());
|
||||||
m_settings->setValue("OutBufSize",outBufSize);
|
m_settings->setValue("OutBufSize",outBufSize);
|
||||||
m_settings->setValue("HoldTxFreq",m_holdTxFreq);
|
m_settings->setValue ("HoldTxFreq", ui->cbHoldTxFreq->isChecked ());
|
||||||
m_settings->setValue("PctTx",m_pctx);
|
m_settings->setValue("PctTx",m_pctx);
|
||||||
m_settings->setValue("dBm",m_dBm);
|
m_settings->setValue("dBm",m_dBm);
|
||||||
m_settings->setValue ("WSPRPreferType1", ui->WSPR_prefer_type_1_check_box->isChecked ());
|
m_settings->setValue ("WSPRPreferType1", ui->WSPR_prefer_type_1_check_box->isChecked ());
|
||||||
@ -1132,7 +1130,7 @@ void MainWindow::readSettings()
|
|||||||
int n=m_settings->value("GUItab",0).toInt();
|
int n=m_settings->value("GUItab",0).toInt();
|
||||||
ui->tabWidget->setCurrentIndex(n);
|
ui->tabWidget->setCurrentIndex(n);
|
||||||
outBufSize=m_settings->value("OutBufSize",4096).toInt();
|
outBufSize=m_settings->value("OutBufSize",4096).toInt();
|
||||||
m_holdTxFreq=m_settings->value("HoldTxFreq",false).toBool();
|
ui->cbHoldTxFreq->setChecked (m_settings->value ("HoldTxFreq", false).toBool ());
|
||||||
m_pwrBandTxMemory=m_settings->value("pwrBandTxMemory").toHash();
|
m_pwrBandTxMemory=m_settings->value("pwrBandTxMemory").toHash();
|
||||||
m_pwrBandTuneMemory=m_settings->value("pwrBandTuneMemory").toHash();
|
m_pwrBandTuneMemory=m_settings->value("pwrBandTuneMemory").toHash();
|
||||||
ui->actionEnable_AP_FT8->setChecked (m_settings->value ("FT8AP", false).toBool());
|
ui->actionEnable_AP_FT8->setChecked (m_settings->value ("FT8AP", false).toBool());
|
||||||
@ -4012,7 +4010,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
|||||||
if (message.isTX()) {
|
if (message.isTX()) {
|
||||||
if (!m_config.enable_VHF_features()) {
|
if (!m_config.enable_VHF_features()) {
|
||||||
if(!shift) ui->RxFreqSpinBox->setValue(frequency); //Set Rx freq
|
if(!shift) ui->RxFreqSpinBox->setValue(frequency); //Set Rx freq
|
||||||
if((ctrl or shift) and !m_holdTxFreq) {
|
if((ctrl or shift) and !ui->cbHoldTxFreq->isChecked ()) {
|
||||||
ui->TxFreqSpinBox->setValue(frequency); //Set Tx freq
|
ui->TxFreqSpinBox->setValue(frequency); //Set Tx freq
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4102,7 +4100,8 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
|||||||
&& firstcall != m_config.my_callsign () && firstcall != m_baseCall
|
&& firstcall != m_config.my_callsign () && firstcall != m_baseCall
|
||||||
&& firstcall != "DE")
|
&& firstcall != "DE")
|
||||||
|| "CQ" == firstcall || "QRZ" == firstcall || ctrl || shift) {
|
|| "CQ" == firstcall || "QRZ" == firstcall || ctrl || shift) {
|
||||||
if (!m_holdTxFreq and (shift or ctrl)) {
|
if ((!m_config.bHound () || m_mode != "FT8")
|
||||||
|
&& (!ui->cbHoldTxFreq->isChecked () || shift || ctrl)) {
|
||||||
ui->TxFreqSpinBox->setValue(frequency);
|
ui->TxFreqSpinBox->setValue(frequency);
|
||||||
}
|
}
|
||||||
if(m_mode != "JT4" && m_mode != "JT65" && !m_mode.startsWith ("JT9") &&
|
if(m_mode != "JT4" && m_mode != "JT65" && !m_mode.startsWith ("JT9") &&
|
||||||
@ -5500,7 +5499,7 @@ void MainWindow::fast_config(bool b)
|
|||||||
void MainWindow::on_TxFreqSpinBox_valueChanged(int n)
|
void MainWindow::on_TxFreqSpinBox_valueChanged(int n)
|
||||||
{
|
{
|
||||||
m_wideGraph->setTxFreq(n);
|
m_wideGraph->setTxFreq(n);
|
||||||
// if(m_holdTxFreq) ui->RxFreqSpinBox->setValue(n);
|
// if (ui->cbHoldTxFreq->isChecked ()) ui->RxFreqSpinBox->setValue(n);
|
||||||
if(m_mode!="MSK144") {
|
if(m_mode!="MSK144") {
|
||||||
Q_EMIT transmitFrequency (n - m_XIT);
|
Q_EMIT transmitFrequency (n - m_XIT);
|
||||||
}
|
}
|
||||||
@ -5971,11 +5970,6 @@ void MainWindow::setFreq4(int rxFreq, int txFreq)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_cbHoldTxFreq_clicked(bool checked)
|
|
||||||
{
|
|
||||||
m_holdTxFreq=checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const& s)
|
void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const& s)
|
||||||
{
|
{
|
||||||
// qDebug () << "MainWindow::handle_transceiver_update:" << s;
|
// qDebug () << "MainWindow::handle_transceiver_update:" << s;
|
||||||
|
@ -229,7 +229,6 @@ private slots:
|
|||||||
void on_readFreq_clicked();
|
void on_readFreq_clicked();
|
||||||
void on_pbTxMode_clicked();
|
void on_pbTxMode_clicked();
|
||||||
void on_RxFreqSpinBox_valueChanged(int n);
|
void on_RxFreqSpinBox_valueChanged(int n);
|
||||||
void on_cbHoldTxFreq_clicked(bool checked);
|
|
||||||
void on_outAttenuation_valueChanged (int);
|
void on_outAttenuation_valueChanged (int);
|
||||||
void rigOpen ();
|
void rigOpen ();
|
||||||
void handle_transceiver_update (Transceiver::TransceiverState const&);
|
void handle_transceiver_update (Transceiver::TransceiverState const&);
|
||||||
@ -453,7 +452,6 @@ private:
|
|||||||
QString m_currentMessage;
|
QString m_currentMessage;
|
||||||
int m_lastMessageType;
|
int m_lastMessageType;
|
||||||
QString m_lastMessageSent;
|
QString m_lastMessageSent;
|
||||||
bool m_holdTxFreq;
|
|
||||||
bool m_bShMsgs;
|
bool m_bShMsgs;
|
||||||
bool m_bSWL;
|
bool m_bSWL;
|
||||||
bool m_uploadSpots;
|
bool m_uploadSpots;
|
||||||
|
@ -13,12 +13,13 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right">Decoded text:</td>
|
<td align="right">Decoded text:</td>
|
||||||
<td><b>Double-click</b> to copy second callsign to DX Call,<br/>
|
<td><b>Double-click</b> to copy second callsign to Dx Call,<br/>
|
||||||
locator to DX Grid, change Rx frequency to decoded<br/>
|
locator to Dx Grid, change Rx and Tx frequency to<br/>
|
||||||
signal's frequency, and generate standard<br/>
|
decoded signal's frequency, and generate standard<br/>
|
||||||
messages.<br/>
|
messages.<br/>
|
||||||
If <b>Ctrl</b> is held down and <b>Hold Tx Freq</b> is not<br/>
|
If <b>Hold Tx Freq</b> is checked or first callsign in message<br/>
|
||||||
checked, also move Tx frequency.<br/>
|
is your own call, Tx frequency is not changed unless <br/>
|
||||||
|
<b>Ctrl</b> is held down.<br/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user