mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	No longer any need for the checkbox labeled "Rx frequency offset with CQ nnn" on the Settings -> General tab.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7343 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									8dccbbb337
								
							
						
					
					
						commit
						b22b5250ce
					
				@ -541,7 +541,6 @@ private:
 | 
				
			|||||||
  bool x2ToneSpacing_;
 | 
					  bool x2ToneSpacing_;
 | 
				
			||||||
  bool contestMode_;
 | 
					  bool contestMode_;
 | 
				
			||||||
  bool realTimeDecode_;
 | 
					  bool realTimeDecode_;
 | 
				
			||||||
  bool offsetRxFreq_;
 | 
					 | 
				
			||||||
  QString udp_server_name_;
 | 
					  QString udp_server_name_;
 | 
				
			||||||
  port_type udp_server_port_;
 | 
					  port_type udp_server_port_;
 | 
				
			||||||
  bool accept_udp_requests_;
 | 
					  bool accept_udp_requests_;
 | 
				
			||||||
@ -630,7 +629,6 @@ bool Configuration::twoPass() const {return m_->twoPass_;}
 | 
				
			|||||||
bool Configuration::x2ToneSpacing() const {return m_->x2ToneSpacing_;}
 | 
					bool Configuration::x2ToneSpacing() const {return m_->x2ToneSpacing_;}
 | 
				
			||||||
bool Configuration::contestMode() const {return m_->contestMode_;}
 | 
					bool Configuration::contestMode() const {return m_->contestMode_;}
 | 
				
			||||||
bool Configuration::realTimeDecode() const {return m_->realTimeDecode_;}
 | 
					bool Configuration::realTimeDecode() const {return m_->realTimeDecode_;}
 | 
				
			||||||
bool Configuration::offsetRxFreq () const {return m_->offsetRxFreq_;}
 | 
					 | 
				
			||||||
bool Configuration::split_mode () const {return m_->split_mode ();}
 | 
					bool Configuration::split_mode () const {return m_->split_mode ();}
 | 
				
			||||||
QString Configuration::udp_server_name () const {return m_->udp_server_name_;}
 | 
					QString Configuration::udp_server_name () const {return m_->udp_server_name_;}
 | 
				
			||||||
auto Configuration::udp_server_port () const -> port_type {return m_->udp_server_port_;}
 | 
					auto Configuration::udp_server_port () const -> port_type {return m_->udp_server_port_;}
 | 
				
			||||||
@ -1061,7 +1059,6 @@ void Configuration::impl::initialize_models ()
 | 
				
			|||||||
  ui_->cbContestMode->setChecked(contestMode_);
 | 
					  ui_->cbContestMode->setChecked(contestMode_);
 | 
				
			||||||
  ui_->cbRealTime->setChecked(realTimeDecode_);
 | 
					  ui_->cbRealTime->setChecked(realTimeDecode_);
 | 
				
			||||||
  ui_->cbRealTime->setVisible(false);                    //Tempoary -- probably will remove this control
 | 
					  ui_->cbRealTime->setVisible(false);                    //Tempoary -- probably will remove this control
 | 
				
			||||||
  ui_->offset_Rx_freq_check_box->setChecked(offsetRxFreq_);
 | 
					 | 
				
			||||||
  ui_->type_2_msg_gen_combo_box->setCurrentIndex (type_2_msg_gen_);
 | 
					  ui_->type_2_msg_gen_combo_box->setCurrentIndex (type_2_msg_gen_);
 | 
				
			||||||
  ui_->rig_combo_box->setCurrentText (rig_params_.rig_name);
 | 
					  ui_->rig_combo_box->setCurrentText (rig_params_.rig_name);
 | 
				
			||||||
  ui_->TX_mode_button_group->button (data_mode_)->setChecked (true);
 | 
					  ui_->TX_mode_button_group->button (data_mode_)->setChecked (true);
 | 
				
			||||||
@ -1289,7 +1286,6 @@ void Configuration::impl::read_settings ()
 | 
				
			|||||||
  x2ToneSpacing_ = settings_->value("x2ToneSpacing",false).toBool ();
 | 
					  x2ToneSpacing_ = settings_->value("x2ToneSpacing",false).toBool ();
 | 
				
			||||||
  contestMode_ = settings_->value("ContestMode",false).toBool ();
 | 
					  contestMode_ = settings_->value("ContestMode",false).toBool ();
 | 
				
			||||||
  realTimeDecode_ = settings_->value("RealTimeDecode",false).toBool ();
 | 
					  realTimeDecode_ = settings_->value("RealTimeDecode",false).toBool ();
 | 
				
			||||||
  offsetRxFreq_ = settings_->value("OffsetRx",false).toBool();
 | 
					 | 
				
			||||||
  rig_params_.poll_interval = settings_->value ("Polling", 0).toInt ();
 | 
					  rig_params_.poll_interval = settings_->value ("Polling", 0).toInt ();
 | 
				
			||||||
  rig_params_.split_mode = settings_->value ("SplitMode", QVariant::fromValue (TransceiverFactory::split_mode_none)).value<TransceiverFactory::SplitMode> ();
 | 
					  rig_params_.split_mode = settings_->value ("SplitMode", QVariant::fromValue (TransceiverFactory::split_mode_none)).value<TransceiverFactory::SplitMode> ();
 | 
				
			||||||
  udp_server_name_ = settings_->value ("UDPServer", "127.0.0.1").toString ();
 | 
					  udp_server_name_ = settings_->value ("UDPServer", "127.0.0.1").toString ();
 | 
				
			||||||
@ -1389,7 +1385,6 @@ void Configuration::impl::write_settings ()
 | 
				
			|||||||
  settings_->setValue ("x2ToneSpacing", x2ToneSpacing_);
 | 
					  settings_->setValue ("x2ToneSpacing", x2ToneSpacing_);
 | 
				
			||||||
  settings_->setValue ("ContestMode", contestMode_);
 | 
					  settings_->setValue ("ContestMode", contestMode_);
 | 
				
			||||||
  settings_->setValue ("RealTimeDecode", realTimeDecode_);
 | 
					  settings_->setValue ("RealTimeDecode", realTimeDecode_);
 | 
				
			||||||
  settings_->setValue("OffsetRx",offsetRxFreq_);
 | 
					 | 
				
			||||||
  settings_->setValue ("UDPServer", udp_server_name_);
 | 
					  settings_->setValue ("UDPServer", udp_server_name_);
 | 
				
			||||||
  settings_->setValue ("UDPServerPort", udp_server_port_);
 | 
					  settings_->setValue ("UDPServerPort", udp_server_port_);
 | 
				
			||||||
  settings_->setValue ("AcceptUDPRequests", accept_udp_requests_);
 | 
					  settings_->setValue ("AcceptUDPRequests", accept_udp_requests_);
 | 
				
			||||||
@ -1785,7 +1780,6 @@ void Configuration::impl::accept ()
 | 
				
			|||||||
  x2ToneSpacing_ = ui_->cbx2ToneSpacing->isChecked ();
 | 
					  x2ToneSpacing_ = ui_->cbx2ToneSpacing->isChecked ();
 | 
				
			||||||
  contestMode_ = ui_->cbContestMode->isChecked ();
 | 
					  contestMode_ = ui_->cbContestMode->isChecked ();
 | 
				
			||||||
  realTimeDecode_ = ui_->cbRealTime->isChecked ();
 | 
					  realTimeDecode_ = ui_->cbRealTime->isChecked ();
 | 
				
			||||||
  offsetRxFreq_ = ui_->offset_Rx_freq_check_box->isChecked();
 | 
					 | 
				
			||||||
  frequency_calibration_intercept_ = ui_->calibration_intercept_spin_box->value ();
 | 
					  frequency_calibration_intercept_ = ui_->calibration_intercept_spin_box->value ();
 | 
				
			||||||
  frequency_calibration_slope_ppm_ = ui_->calibration_slope_ppm_spin_box->value ();
 | 
					  frequency_calibration_slope_ppm_ = ui_->calibration_slope_ppm_spin_box->value ();
 | 
				
			||||||
  pwrBandTxMemory_ = ui_->checkBoxPwrBandTxMemory->isChecked ();
 | 
					  pwrBandTxMemory_ = ui_->checkBoxPwrBandTxMemory->isChecked ();
 | 
				
			||||||
 | 
				
			|||||||
@ -2,6 +2,14 @@
 | 
				
			|||||||
<ui version="4.0">
 | 
					<ui version="4.0">
 | 
				
			||||||
 <class>configuration_dialog</class>
 | 
					 <class>configuration_dialog</class>
 | 
				
			||||||
 <widget class="QDialog" name="configuration_dialog">
 | 
					 <widget class="QDialog" name="configuration_dialog">
 | 
				
			||||||
 | 
					  <property name="geometry">
 | 
				
			||||||
 | 
					   <rect>
 | 
				
			||||||
 | 
					    <x>0</x>
 | 
				
			||||||
 | 
					    <y>0</y>
 | 
				
			||||||
 | 
					    <width>545</width>
 | 
				
			||||||
 | 
					    <height>591</height>
 | 
				
			||||||
 | 
					   </rect>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
  <property name="windowTitle">
 | 
					  <property name="windowTitle">
 | 
				
			||||||
   <string>Settings</string>
 | 
					   <string>Settings</string>
 | 
				
			||||||
  </property>
 | 
					  </property>
 | 
				
			||||||
@ -248,13 +256,6 @@
 | 
				
			|||||||
            </property>
 | 
					            </property>
 | 
				
			||||||
           </widget>
 | 
					           </widget>
 | 
				
			||||||
          </item>
 | 
					          </item>
 | 
				
			||||||
          <item row="4" column="1">
 | 
					 | 
				
			||||||
           <widget class="QCheckBox" name="offset_Rx_freq_check_box">
 | 
					 | 
				
			||||||
            <property name="text">
 | 
					 | 
				
			||||||
             <string>Rx frequency offset with "CQ nnn ..."</string>
 | 
					 | 
				
			||||||
            </property>
 | 
					 | 
				
			||||||
           </widget>
 | 
					 | 
				
			||||||
          </item>
 | 
					 | 
				
			||||||
          <item row="0" column="0">
 | 
					          <item row="0" column="0">
 | 
				
			||||||
           <widget class="QCheckBox" name="monitor_off_check_box">
 | 
					           <widget class="QCheckBox" name="monitor_off_check_box">
 | 
				
			||||||
            <property name="toolTip">
 | 
					            <property name="toolTip">
 | 
				
			||||||
@ -2442,7 +2443,6 @@ soundcard changes</string>
 | 
				
			|||||||
  <tabstop>tx_QSY_check_box</tabstop>
 | 
					  <tabstop>tx_QSY_check_box</tabstop>
 | 
				
			||||||
  <tabstop>single_decode_check_box</tabstop>
 | 
					  <tabstop>single_decode_check_box</tabstop>
 | 
				
			||||||
  <tabstop>decode_at_52s_check_box</tabstop>
 | 
					  <tabstop>decode_at_52s_check_box</tabstop>
 | 
				
			||||||
  <tabstop>offset_Rx_freq_check_box</tabstop>
 | 
					 | 
				
			||||||
  <tabstop>CW_id_interval_spin_box</tabstop>
 | 
					  <tabstop>CW_id_interval_spin_box</tabstop>
 | 
				
			||||||
  <tabstop>rig_combo_box</tabstop>
 | 
					  <tabstop>rig_combo_box</tabstop>
 | 
				
			||||||
  <tabstop>CAT_poll_interval_spin_box</tabstop>
 | 
					  <tabstop>CAT_poll_interval_spin_box</tabstop>
 | 
				
			||||||
@ -2582,12 +2582,12 @@ soundcard changes</string>
 | 
				
			|||||||
  </connection>
 | 
					  </connection>
 | 
				
			||||||
 </connections>
 | 
					 </connections>
 | 
				
			||||||
 <buttongroups>
 | 
					 <buttongroups>
 | 
				
			||||||
  <buttongroup name="TX_mode_button_group"/>
 | 
					  <buttongroup name="CAT_handshake_button_group"/>
 | 
				
			||||||
 | 
					  <buttongroup name="CAT_stop_bits_button_group"/>
 | 
				
			||||||
  <buttongroup name="PTT_method_button_group"/>
 | 
					  <buttongroup name="PTT_method_button_group"/>
 | 
				
			||||||
  <buttongroup name="split_mode_button_group"/>
 | 
					  <buttongroup name="split_mode_button_group"/>
 | 
				
			||||||
  <buttongroup name="CAT_handshake_button_group"/>
 | 
					  <buttongroup name="TX_mode_button_group"/>
 | 
				
			||||||
  <buttongroup name="CAT_data_bits_button_group"/>
 | 
					 | 
				
			||||||
  <buttongroup name="CAT_stop_bits_button_group"/>
 | 
					 | 
				
			||||||
  <buttongroup name="TX_audio_source_button_group"/>
 | 
					  <buttongroup name="TX_audio_source_button_group"/>
 | 
				
			||||||
 | 
					  <buttongroup name="CAT_data_bits_button_group"/>
 | 
				
			||||||
 </buttongroups>
 | 
					 </buttongroups>
 | 
				
			||||||
</ui>
 | 
					</ui>
 | 
				
			||||||
 | 
				
			|||||||
@ -3472,8 +3472,7 @@ void MainWindow::genCQMsg ()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  if(m_config.my_callsign().size () && m_config.my_grid().size ())
 | 
					  if(m_config.my_callsign().size () && m_config.my_grid().size ())
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      if (m_config.offsetRxFreq ()
 | 
					      if (ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () && ui->cbCQTx->isChecked ())
 | 
				
			||||||
          && ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () && ui->cbCQTx->isChecked ())
 | 
					 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          msgtype (
 | 
					          msgtype (
 | 
				
			||||||
                   QString {"CQ %1 %2 %3"}
 | 
					                   QString {"CQ %1 %2 %3"}
 | 
				
			||||||
@ -3553,8 +3552,7 @@ void MainWindow::genStdMsgs(QString rpt)
 | 
				
			|||||||
      t=hisBase + " " + m_config.my_callsign ();
 | 
					      t=hisBase + " " + m_config.my_callsign ();
 | 
				
			||||||
      msgtype(t, ui->tx1);
 | 
					      msgtype(t, ui->tx1);
 | 
				
			||||||
      t="CQ " + m_config.my_callsign ();
 | 
					      t="CQ " + m_config.my_callsign ();
 | 
				
			||||||
      if(m_config.offsetRxFreq()
 | 
					      if(ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () && ui->cbCQTx->isChecked()) {
 | 
				
			||||||
         && ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () && ui->cbCQTx->isChecked()) {
 | 
					 | 
				
			||||||
        msgtype (
 | 
					        msgtype (
 | 
				
			||||||
                 QString {"CQ %1 %2"}
 | 
					                 QString {"CQ %1 %2"}
 | 
				
			||||||
                    .arg (m_freqNominal / 1000 - m_freqNominal / 1000000 * 1000, 3, 10, QChar {'0'})
 | 
					                    .arg (m_freqNominal / 1000 - m_freqNominal / 1000000 * 1000, 3, 10, QChar {'0'})
 | 
				
			||||||
@ -4799,8 +4797,8 @@ void MainWindow::setXIT(int n, Frequency base)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  if (m_transmitting && !m_config.tx_QSY_allowed ()) return;
 | 
					  if (m_transmitting && !m_config.tx_QSY_allowed ()) return;
 | 
				
			||||||
  // If "CQ nnn ..." feature is active, set the proper Tx frequency
 | 
					  // If "CQ nnn ..." feature is active, set the proper Tx frequency
 | 
				
			||||||
  if(m_config.split_mode () && m_config.offsetRxFreq()
 | 
					  if(m_config.split_mode () && ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () &&
 | 
				
			||||||
     && ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () && ui->cbCQTx->isChecked())
 | 
					     ui->cbCQTx->isChecked())
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      if (6 == m_ntx)
 | 
					      if (6 == m_ntx)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user