mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-25 11:34:26 -04:00
Better handling of compound callsigns
Option to control standard message generation for type 2 compound callsign holders. Process decoded messages based on either base or full callsign for both DE and DX callsigns. Change CW id when callsign changed in settings. Merged from wsjtx-1.4 branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5000 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
@@ -181,6 +181,8 @@ namespace
|
||||
{
|
||||
qRegisterMetaType<Configuration::DataMode> ("Configuration::DataMode");
|
||||
qRegisterMetaTypeStreamOperators<Configuration::DataMode> ("Configuration::DataMode");
|
||||
qRegisterMetaType<Configuration::Type2MsgGen> ("Configuration::Type2MsgGen");
|
||||
qRegisterMetaTypeStreamOperators<Configuration::Type2MsgGen> ("Configuration::Type2MsgGen");
|
||||
}
|
||||
} static_initializer;
|
||||
|
||||
@@ -475,6 +477,8 @@ private:
|
||||
float jt9w_min_dt_;
|
||||
float jt9w_max_dt_;
|
||||
|
||||
Type2MsgGen type_2_msg_gen_;
|
||||
|
||||
QStringListModel macros_;
|
||||
RearrangableMacrosModel next_macros_;
|
||||
QAction * macro_delete_action_;
|
||||
@@ -587,6 +591,7 @@ bool Configuration::restart_audio_output () const {return m_->restart_sound_outp
|
||||
unsigned Configuration::jt9w_bw_mult () const {return m_->jt9w_bw_mult_;}
|
||||
float Configuration::jt9w_min_dt () const {return m_->jt9w_min_dt_;}
|
||||
float Configuration::jt9w_max_dt () const {return m_->jt9w_max_dt_;}
|
||||
auto Configuration::type_2_msg_gen () const -> Type2MsgGen {return m_->type_2_msg_gen_;}
|
||||
QString Configuration::my_callsign () const {return m_->my_callsign_;}
|
||||
QString Configuration::my_grid () const {return m_->my_grid_;}
|
||||
QColor Configuration::color_CQ () const {return m_->color_CQ_;}
|
||||
@@ -1025,6 +1030,7 @@ void Configuration::impl::initialise_models ()
|
||||
ui_->jt9w_bandwidth_mult_combo_box->setCurrentText (QString::number (jt9w_bw_mult_));
|
||||
ui_->jt9w_min_dt_double_spin_box->setValue (jt9w_min_dt_);
|
||||
ui_->jt9w_max_dt_double_spin_box->setValue (jt9w_max_dt_);
|
||||
ui_->type_2_msg_gen_combo_box->setCurrentIndex (type_2_msg_gen_);
|
||||
ui_->rig_combo_box->setCurrentText (rig_params_.rig_name_);
|
||||
ui_->TX_mode_button_group->button (data_mode_)->setChecked (true);
|
||||
ui_->split_mode_button_group->button (rig_params_.split_mode_)->setChecked (true);
|
||||
@@ -1167,6 +1173,8 @@ void Configuration::impl::read_settings ()
|
||||
jt9w_min_dt_ = settings_->value ("DTmin", -2.5).toFloat ();
|
||||
jt9w_max_dt_ = settings_->value ("DTmax", 5.).toFloat ();
|
||||
|
||||
type_2_msg_gen_ = settings_->value ("Type2MsgGen", QVariant::fromValue (Configuration::type_2_msg_3_full)).value<Configuration::Type2MsgGen> ();
|
||||
|
||||
monitor_off_at_startup_ = settings_->value ("MonitorOFF", false).toBool ();
|
||||
monitor_last_used_ = settings_->value ("MonitorLastUsed", false).toBool ();
|
||||
spot_to_psk_reporter_ = settings_->value ("PSKReporter", false).toBool ();
|
||||
@@ -1252,6 +1260,7 @@ void Configuration::impl::write_settings ()
|
||||
settings_->setValue ("ToneMult", jt9w_bw_mult_);
|
||||
settings_->setValue ("DTmin", jt9w_min_dt_);
|
||||
settings_->setValue ("DTmax", jt9w_max_dt_);
|
||||
settings_->setValue ("Type2MsgGen", QVariant::fromValue (type_2_msg_gen_));
|
||||
settings_->setValue ("MonitorOFF", monitor_off_at_startup_);
|
||||
settings_->setValue ("MonitorLastUsed", monitor_last_used_);
|
||||
settings_->setValue ("PSKReporter", spot_to_psk_reporter_);
|
||||
@@ -1605,6 +1614,7 @@ void Configuration::impl::accept ()
|
||||
jt9w_bw_mult_ = ui_->jt9w_bandwidth_mult_combo_box->currentText ().toUInt ();
|
||||
jt9w_min_dt_ = static_cast<float> (ui_->jt9w_min_dt_double_spin_box->value ());
|
||||
jt9w_max_dt_ = static_cast<float> (ui_->jt9w_max_dt_double_spin_box->value ());
|
||||
type_2_msg_gen_ = static_cast<Type2MsgGen> (ui_->type_2_msg_gen_combo_box->currentIndex ());
|
||||
log_as_RTTY_ = ui_->log_as_RTTY_check_box->isChecked ();
|
||||
report_in_comments_ = ui_->report_in_comments_check_box->isChecked ();
|
||||
prompt_to_log_ = ui_->prompt_to_log_check_box->isChecked ();
|
||||
@@ -2420,8 +2430,11 @@ bool operator != (RigParams const& lhs, RigParams const& rhs)
|
||||
|
||||
#if !defined (QT_NO_DEBUG_STREAM)
|
||||
ENUM_QDEBUG_OPS_IMPL (Configuration, DataMode);
|
||||
ENUM_QDEBUG_OPS_IMPL (Configuration, Type2MsgGen);
|
||||
#endif
|
||||
|
||||
ENUM_QDATASTREAM_OPS_IMPL (Configuration, DataMode);
|
||||
ENUM_QDATASTREAM_OPS_IMPL (Configuration, Type2MsgGen);
|
||||
|
||||
ENUM_CONVERSION_OPS_IMPL (Configuration, DataMode);
|
||||
ENUM_CONVERSION_OPS_IMPL (Configuration, Type2MsgGen);
|
||||
|
||||
Reference in New Issue
Block a user