Fixing some remnants related to modes logging

This commit is contained in:
Jordan Sherer 2018-08-06 16:30:28 -04:00
parent a81f9602a9
commit 085a81ca18
3 changed files with 46 additions and 42 deletions

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>530</width> <width>692</width>
<height>550</height> <height>701</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -1888,6 +1888,13 @@ QListView::item:hover {
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="verticalLayout_7">
<item> <item>
<layout class="QGridLayout" name="gridLayout_14"> <layout class="QGridLayout" name="gridLayout_14">
<item row="0" column="3">
<widget class="QLabel" name="label_13">
<property name="text">
<string>Op Call:</string>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QCheckBox" name="prompt_to_log_check_box"> <widget class="QCheckBox" name="prompt_to_log_check_box">
<property name="enabled"> <property name="enabled">
@ -1904,34 +1911,31 @@ QListView::item:hover {
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="2" column="1">
<spacer name="horizontalSpacer_6"> <widget class="QCheckBox" name="clear_DX_check_box">
<property name="orientation"> <property name="enabled">
<enum>Qt::Horizontal</enum> <bool>false</bool>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="visible">
<size> <bool>false</bool>
<width>40</width> </property>
<height>20</height> <property name="toolTip">
</size> <string>Check this option to force the clearing of the DX Call
and DX Grid fields when a 73 or free text message is sent.</string>
</property> </property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_13">
<property name="text"> <property name="text">
<string>Op Call:</string> <string>Clear &amp;DX call and grid after logging</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="3"> <item row="0" column="4">
<widget class="QLineEdit" name="opCallEntry"> <widget class="QLineEdit" name="opCallEntry">
<property name="toolTip"> <property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The callsign of the operator, if different from the station callsign.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The callsign of the operator, if different from the station callsign.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="0" column="1">
<widget class="QCheckBox" name="log_as_RTTY_check_box"> <widget class="QCheckBox" name="log_as_RTTY_check_box">
<property name="toolTip"> <property name="toolTip">
<string>Some logging programs will not accept JT-65 or JT9 as a recognized mode.</string> <string>Some logging programs will not accept JT-65 or JT9 as a recognized mode.</string>
@ -1941,11 +1945,14 @@ QListView::item:hover {
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="1" column="1">
<widget class="QCheckBox" name="report_in_comments_check_box"> <widget class="QCheckBox" name="report_in_comments_check_box">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="visible">
<bool>false</bool>
</property>
<property name="toolTip"> <property name="toolTip">
<string>Some logging programs will not accept the type of reports <string>Some logging programs will not accept the type of reports
saved by this program. saved by this program.
@ -1957,19 +1964,18 @@ comments field.</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="2"> <item row="0" column="2">
<widget class="QCheckBox" name="clear_DX_check_box"> <spacer name="horizontalSpacer">
<property name="enabled"> <property name="orientation">
<bool>false</bool> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="toolTip"> <property name="sizeHint" stdset="0">
<string>Check this option to force the clearing of the DX Call <size>
and DX Grid fields when a 73 or free text message is sent.</string> <width>40</width>
<height>20</height>
</size>
</property> </property>
<property name="text"> </spacer>
<string>Clear &amp;DX call and grid after logging</string>
</property>
</widget>
</item> </item>
</layout> </layout>
</item> </item>
@ -2797,7 +2803,7 @@ Right click for insert and delete options.</string>
<item row="8" column="0"> <item row="8" column="0">
<widget class="QCheckBox" name="cbx4ToneSpacing"> <widget class="QCheckBox" name="cbx4ToneSpacing">
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>false</bool>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Generate Tx audio with four times the normal tone spacing. Intended for special LF/MF transmitters that use a divide-by-4 before generating RF.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Generate Tx audio with four times the normal tone spacing. Intended for special LF/MF transmitters that use a divide-by-4 before generating RF.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
@ -3027,9 +3033,6 @@ soundcard changes</string>
<tabstop>delete_macro_push_button</tabstop> <tabstop>delete_macro_push_button</tabstop>
<tabstop>macros_list_view</tabstop> <tabstop>macros_list_view</tabstop>
<tabstop>prompt_to_log_check_box</tabstop> <tabstop>prompt_to_log_check_box</tabstop>
<tabstop>log_as_RTTY_check_box</tabstop>
<tabstop>report_in_comments_check_box</tabstop>
<tabstop>clear_DX_check_box</tabstop>
<tabstop>psk_reporter_check_box</tabstop> <tabstop>psk_reporter_check_box</tabstop>
<tabstop>udp_server_line_edit</tabstop> <tabstop>udp_server_line_edit</tabstop>
<tabstop>udp_server_port_spin_box</tabstop> <tabstop>udp_server_port_spin_box</tabstop>
@ -3122,12 +3125,12 @@ soundcard changes</string>
</connection> </connection>
</connections> </connections>
<buttongroups> <buttongroups>
<buttongroup name="CAT_data_bits_button_group"/>
<buttongroup name="split_mode_button_group"/>
<buttongroup name="TX_mode_button_group"/>
<buttongroup name="CAT_stop_bits_button_group"/>
<buttongroup name="PTT_method_button_group"/>
<buttongroup name="TX_audio_source_button_group"/> <buttongroup name="TX_audio_source_button_group"/>
<buttongroup name="TX_mode_button_group"/>
<buttongroup name="CAT_handshake_button_group"/> <buttongroup name="CAT_handshake_button_group"/>
<buttongroup name="split_mode_button_group"/>
<buttongroup name="PTT_method_button_group"/>
<buttongroup name="CAT_stop_bits_button_group"/>
<buttongroup name="CAT_data_bits_button_group"/>
</buttongroups> </buttongroups>
</ui> </ui>

View File

@ -75,8 +75,9 @@ void LogQSO::initLogQSO(QString const& hisCall, QString const& hisGrid, QString
if(rptRcvd!="") t+=" Rcvd: " + rptRcvd; if(rptRcvd!="") t+=" Rcvd: " + rptRcvd;
ui->comments->setText(t); ui->comments->setText(t);
} }
if(noSuffix and mode.mid(0,3)=="JT9") mode="JT9"; //if(noSuffix and mode.mid(0,3)=="JT9") mode="JT9";
if(toRTTY and mode.mid(0,3)=="JT9") mode="RTTY"; //if(toRTTY and mode.mid(0,3)=="JT9") mode="RTTY";
if(toRTTY) mode="RTTY";
ui->mode->setText(mode); ui->mode->setText(mode);
ui->sent->setText(rptSent); ui->sent->setText(rptSent);
ui->rcvd->setText(rptRcvd); ui->rcvd->setText(rptRcvd);

View File

@ -6264,7 +6264,7 @@ void MainWindow::on_logQSOButton_clicked() //Log QSO button
if (dateTimeQSOOff < m_dateTimeQSOOn) dateTimeQSOOff = m_dateTimeQSOOn; if (dateTimeQSOOff < m_dateTimeQSOOn) dateTimeQSOOff = m_dateTimeQSOOn;
QString grid=m_hisGrid; QString grid=m_hisGrid;
if(grid=="....") grid=""; if(grid=="....") grid="";
m_logDlg->initLogQSO (m_hisCall, grid, m_modeTx, m_rptSent, m_rptRcvd, m_logDlg->initLogQSO (m_hisCall, grid, m_modeTx == "FT8" ? "FT8CALL" : m_modeTx, m_rptSent, m_rptRcvd,
m_dateTimeQSOOn, dateTimeQSOOff, m_freqNominal + ui->TxFreqSpinBox->value(), m_dateTimeQSOOn, dateTimeQSOOff, m_freqNominal + ui->TxFreqSpinBox->value(),
m_config.my_callsign(), m_config.my_grid(), m_noSuffix, m_config.my_callsign(), m_config.my_grid(), m_noSuffix,
m_config.log_as_RTTY(), m_config.report_in_comments(), m_config.log_as_RTTY(), m_config.report_in_comments(),