summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2021-11-05 07:29:09 -0700
committertony mancill <tmancill@debian.org>2021-11-05 07:29:09 -0700
commite05d4def60e25e7fed87ff67ce5a97df24fc945b (patch)
treec266fd15dab6c7914a1f6f27feee35be80c6b8ab /widgets
parent27d0d660257d9dcdab5c5ca8addd01cc10552902 (diff)
New upstream version 2.5.2+repackupstream/2.5.2+repack
Diffstat (limited to 'widgets')
-rw-r--r--widgets/mainwindow.cpp92
-rw-r--r--widgets/mainwindow.ui53
2 files changed, 69 insertions, 76 deletions
diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp
index 305d18d1..a56318f4 100644
--- a/widgets/mainwindow.cpp
+++ b/widgets/mainwindow.cpp
@@ -3643,7 +3643,7 @@ void MainWindow::auto_sequence (DecodedText const& message, unsigned start_toler
auto is_73 = message_words.filter (QRegularExpression {"^(73|RR73)$"}).size();
bool is_OK=false;
if(m_mode=="MSK144" and message.clean_string ().indexOf(ui->dxCallEntry->text()+" R ")>0) is_OK=true;
- if (message_words.size () > 2 && (message.isStandardMessage() || (is_73 or is_OK))) {
+ if (message_words.size () > 3 && (message.isStandardMessage() || (is_73 or is_OK))) {
auto df = message.frequencyOffset ();
auto within_tolerance = (qAbs (ui->RxFreqSpinBox->value () - df) <= int (start_tolerance)
|| qAbs (ui->TxFreqSpinBox->value () - df) <= int (start_tolerance));
@@ -3675,27 +3675,29 @@ void MainWindow::auto_sequence (DecodedText const& message, unsigned start_toler
if (m_auto
&& (m_QSOProgress==REPLYING or (!ui->tx1->isEnabled () and m_QSOProgress==REPORT))
&& qAbs (ui->TxFreqSpinBox->value () - df) <= int (stop_tolerance)
- && message_words.at (1) != "DE"
- && !message_words.at (1).contains (QRegularExpression {"(^(CQ|QRZ))|" + m_baseCall})
- && message_words.at (2).contains (Radio::base_callsign (ui->dxCallEntry->text ()))) {
+ && message_words.at (2) != "DE"
+ && !message_words.at (2).contains (QRegularExpression {"(^(CQ|QRZ))|" + m_baseCall})
+ && message_words.at (3).contains (Radio::base_callsign (ui->dxCallEntry->text ()))) {
// auto stop to avoid accidental QRM
ui->stopTxButton->click (); // halt any transmission
} else if (m_auto // transmit allowed
- && ui->cbAutoSeq->isVisible () && ui->cbAutoSeq->isEnabled () && ui->cbAutoSeq->isChecked () // auto-sequencing allowed
- && ((!m_bCallingCQ // not calling CQ/QRZ
- && !m_sentFirst73 // not finished QSO
- && ((message_words.at (1).contains (m_baseCall)
- // being called and not already in a QSO
- && (message_words.at(2).contains(Radio::base_callsign(ui->dxCallEntry->text())) or bEU_VHF))
- // type 2 compound replies
- || (within_tolerance &&
- (acceptable_73 ||
- ("DE" == message_words.at (1) &&
- w2.contains(Radio::base_callsign (m_hisCall)))))))
- || (m_bCallingCQ && m_bAutoReply
- // look for type 2 compound call replies on our Tx and Rx offsets
- && ((within_tolerance && "DE" == message_words.at (1))
- || message_words.at (1).contains (m_baseCall))))) {
+ && ui->cbAutoSeq->isVisible () && ui->cbAutoSeq->isEnabled () && ui->cbAutoSeq->isChecked () // auto-sequencing allowed
+ && ((!m_bCallingCQ // not calling CQ/QRZ
+ && !m_sentFirst73 // not finished QSO
+ && ((message_words.at (2).contains (m_baseCall)
+ // being called and not already in a QSO
+ && (message_words.at(3).contains(Radio::base_callsign(ui->dxCallEntry->text()))
+ or bEU_VHF))
+ || message_words.at(1) == m_baseCall // <de-call> RR73; ...
+ // type 2 compound replies
+ || (within_tolerance &&
+ (acceptable_73 ||
+ ("DE" == message_words.at (2) &&
+ w2.contains(Radio::base_callsign (m_hisCall)))))))
+ || (m_bCallingCQ && m_bAutoReply
+ // look for type 2 compound call replies on our Tx and Rx offsets
+ && ((within_tolerance && "DE" == message_words.at (2))
+ || message_words.at (2).contains (m_baseCall))))) {
if(SpecOp::FOX != m_config.special_op_id()) processMessage (message);
}
}
@@ -4806,7 +4808,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
ui->txFirstCheckBox->setChecked(m_txFirst);
auto const& message_words = message.messageWords ();
- if (message_words.size () < 2) return;
+ if (message_words.size () < 3) return;
QString hiscall;
QString hisgrid;
@@ -4824,7 +4826,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
QStringList w=message.clean_string ().mid(22).remove("<").remove(">").split(" ",SkipEmptyParts);
int nw=w.size();
if(nw>=4) {
- if(message_words.size()<3) return;
+ if(message_words.size()<4) return;
int n=w.at(nw-2).toInt();
if(n>=520001 and n<=592047) {
hiscall=w.at(1);
@@ -4847,7 +4849,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
// ignore calls by other hounds
if (SpecOp::HOUND == m_config.special_op_id()
- && message.messageWords ().indexOf (QRegularExpression {R"(R\+-[0-9]+)"}) >= 0)
+ && message.messageWords ().indexOf (QRegularExpression {R"(R\+-[0-9]+)"}) >= 1)
{
return;
}
@@ -4926,22 +4928,22 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
MessageBox::information_message (this, tr ("Should you switch to RTTY contest mode?"));
}
- if(SpecOp::EU_VHF==m_config.special_op_id() and message_words.at(1).contains(m_baseCall) and
- (!message_words.at(2).contains(qso_partner_base_call)) and (!m_bDoubleClicked)) {
+ if(SpecOp::EU_VHF==m_config.special_op_id() and message_words.at(2).contains(m_baseCall) and
+ (!message_words.at(3).contains(qso_partner_base_call)) and (!m_bDoubleClicked)) {
return;
}
bool bContestOK=(m_mode=="FT4" or m_mode=="FT8" or m_mode=="Q65" or m_mode=="MSK144");
- if(message_words.size () > 3 // enough fields for a normal message
- && (message_words.at(1).contains(m_baseCall) || "DE" == message_words.at(1))
- && (message_words.at(2).contains(qso_partner_base_call) or m_bDoubleClicked
+ if(message_words.size () > 4 // enough fields for a normal message
+ && (message_words.at(2).contains(m_baseCall) || "DE" == message_words.at(2))
+ && (message_words.at(3).contains(qso_partner_base_call) or m_bDoubleClicked
or bEU_VHF_w2 or (m_QSOProgress==CALLING))) {
- if(message_words.at(3).contains(grid_regexp) and SpecOp::EU_VHF!=m_config.special_op_id()) {
+ if(message_words.at(4).contains(grid_regexp) and SpecOp::EU_VHF!=m_config.special_op_id()) {
if((SpecOp::NA_VHF==m_config.special_op_id() or SpecOp::WW_DIGI==m_config.special_op_id()) and bContestOK){
setTxMsg(3);
m_QSOProgress=ROGER_REPORT;
} else {
- if(m_mode=="JT65" and message_words.size()>4 and message_words.at(4)=="OOO") {
+ if(m_mode=="JT65" and message_words.size()>5 and message_words.at(5)=="OOO") {
setTxMsg(3);
m_QSOProgress=ROGER_REPORT;
} else {
@@ -4981,7 +4983,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
m_QSOProgress=ROGER_REPORT;
}
} else { // no grid on end of msg
- auto const& word_3 = message_words.at (3);
+ auto const& word_3 = message_words.at (4);
auto word_3_as_number = word_3.toInt ();
if (("RRR" == word_3
|| (word_3_as_number == 73 && ROGERS == m_QSOProgress)
@@ -5103,17 +5105,29 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
}
}
}
+ else if (5 == message_words.size ()
+ && m_baseCall == message_words.at (1)) {
+ // dual Fox style message, possibly from MSHV
+ if (m_config.prompt_to_log() || m_config.autoLog()) {
+ logQSOTimer.start(0);
+ }
+ else {
+ cease_auto_Tx_after_QSO ();
+ }
+ m_ntx=6;
+ ui->txrb6->setChecked(true);
+ }
else if (m_QSOProgress >= ROGERS
- && message_words.size () > 2 && message_words.at (1).contains (m_baseCall)
- && message_words.at (2) == "73") {
+ && message_words.size () > 3 && message_words.at (2).contains (m_baseCall)
+ && message_words.at (3) == "73") {
// 73 back to compound call holder
m_ntx=5;
ui->txrb5->setChecked(true);
m_QSOProgress = SIGNOFF;
}
else if (!(m_bAutoReply && (m_QSOProgress > CALLING))) {
- if ((message_words.size () > 4 && message_words.at (1).contains (m_baseCall)
- && message_words.at (4) == "OOO")) {
+ if ((message_words.size () > 5 && message_words.at (2).contains (m_baseCall)
+ && message_words.at (5) == "OOO")) {
// EME short code report or MSK144/FT8 contest mode reply, send back Tx3
m_ntx=3;
m_QSOProgress = ROGER_REPORT;
@@ -5136,7 +5150,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
return;
}
}
- else if (firstcall == "DE" && message_words.size () > 3 && message_words.at (3) == "73") {
+ else if (firstcall == "DE" && message_words.size () > 4 && message_words.at (4) == "73") {
if (m_QSOProgress >= ROGERS && base_call == qso_partner_base_call && m_currentMessageType) {
// 73 back to compound call holder
m_ntx=5;
@@ -5204,6 +5218,12 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
lookup();
m_hisGrid = ui->dxGridEntry->text();
+ if (m_bDoubleClicked)
+ {
+ // extract our report if present
+ message.report (m_baseCall, Radio::base_callsign(ui->dxCallEntry->text()), m_rptRcvd);
+ }
+
if (!m_bSentReport || base_call != qso_partner_base_call) // Don't change report within a QSO
{
auto n = message.report ().toInt ();
@@ -6445,7 +6465,7 @@ void MainWindow::on_actionQ65_triggered()
fast_config(false);
WSPR_config(false);
setup_status_bar(true);
- ui->actionQuickDecode->setChecked(true);
+// ui->actionQuickDecode->setChecked(true);
m_nsps=6912; //For symspec only
m_FFTSize = m_nsps / 2;
Q_EMIT FFTSize(m_FFTSize);
diff --git a/widgets/mainwindow.ui b/widgets/mainwindow.ui
index ef9c32bd..bb9b22b7 100644
--- a/widgets/mainwindow.ui
+++ b/widgets/mainwindow.ui
@@ -552,7 +552,7 @@
</layout>
</item>
<item>
- <layout class="QGridLayout" name="gridLayout_5" rowstretch="1,0,0" columnstretch="0,0,1,5,0">
+ <layout class="QGridLayout" name="gridLayout_5" rowstretch="1,0,0" columnstretch="0,0,1,4,0">
<item row="0" column="1" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QPushButton" name="readFreq">
<property name="enabled">
@@ -1276,23 +1276,17 @@ When not checked you can view the calibration results.</string>
<item>
<widget class="QPushButton" name="pbR2T">
<property name="sizePolicy">
- <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <sizepolicy hsizetype="Ignored" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
- <width>20</width>
+ <width>35</width>
<height>0</height>
</size>
</property>
- <property name="maximumSize">
- <size>
- <width>50</width>
- <height>20</height>
- </size>
- </property>
<property name="toolTip">
<string>Set Tx frequency to Rx Frequency</string>
</property>
@@ -1329,23 +1323,17 @@ When not checked you can view the calibration results.</string>
<item>
<widget class="QPushButton" name="pbT2R">
<property name="sizePolicy">
- <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <sizepolicy hsizetype="Ignored" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
- <width>20</width>
+ <width>35</width>
<height>0</height>
</size>
</property>
- <property name="maximumSize">
- <size>
- <width>50</width>
- <height>20</height>
- </size>
- </property>
<property name="toolTip">
<string>Set Rx frequency to Tx Frequency</string>
</property>
@@ -1713,9 +1701,6 @@ When not checked you can view the calibration results.</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maxLength">
- <number>30</number>
- </property>
</widget>
</item>
<item row="4" column="1">
@@ -1767,9 +1752,6 @@ Double click to toggle the use of the Tx1 message to start a QSO with a station
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maxLength">
- <number>30</number>
- </property>
</widget>
</item>
<item row="5" column="2">
@@ -1816,9 +1798,6 @@ Double-click to reset to the standard 73 message</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maxLength">
- <number>30</number>
- </property>
</widget>
</item>
<item row="0" column="2">
@@ -1858,9 +1837,6 @@ Double-click to reset to the standard 73 message</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maxLength">
- <number>30</number>
- </property>
</widget>
</item>
<item row="3" column="0">
@@ -1871,9 +1847,6 @@ Double-click to reset to the standard 73 message</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maxLength">
- <number>30</number>
- </property>
</widget>
</item>
<item row="0" column="0">
@@ -1980,12 +1953,6 @@ Double click to toggle the use of the Tx1 message to start a QSO with a station
</item>
<item row="5" column="0">
<widget class="QComboBox" name="tx5">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
<property name="toolTip">
<string>Enter a free text message (maximum 13 characters)
or select a predefined macro from the dropdown list.
@@ -1998,6 +1965,9 @@ list. The list can be maintained in Settings (F2).</string>
<property name="insertPolicy">
<enum>QComboBox::InsertAtBottom</enum>
</property>
+ <property name="sizeAdjustPolicy">
+ <enum>QComboBox::AdjustToMinimumContentsLength</enum>
+ </property>
</widget>
</item>
<item row="5" column="1">
@@ -2028,7 +1998,7 @@ Double-click to reset to the standard 73 message</string>
<attribute name="title">
<string>2</string>
</attribute>
- <layout class="QGridLayout" name="gridLayout_11">
+ <layout class="QGridLayout" name="gridLayout_11" columnstretch="1,0">
<item row="0" column="1" rowspan="2">
<layout class="QGridLayout" name="gridLayout_10">
<item row="2" column="0">
@@ -2308,6 +2278,9 @@ Double-click to reset to the standard 73 message</string>
<height>16777215</height>
</size>
</property>
+ <property name="sizeAdjustPolicy">
+ <enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
+ </property>
</widget>
</item>
</layout>
@@ -2879,7 +2852,7 @@ Yellow when too low</string>
<rect>
<x>0</x>
<y>0</y>
- <width>968</width>
+ <width>842</width>
<height>21</height>
</rect>
</property>