Add beacon option to transmit anywhere
This commit is contained in:
		
							parent
							
								
									cb682748c7
								
							
						
					
					
						commit
						383f5d0943
					
				| @ -626,6 +626,7 @@ private: | ||||
|   bool spot_to_reporting_networks_; | ||||
|   bool transmit_directed_; | ||||
|   bool autoreply_off_at_startup_; | ||||
|   bool beacon_anywhere_; | ||||
|   bool relay_disabled_; | ||||
|   bool monitor_off_at_startup_; | ||||
|   bool monitor_last_used_; | ||||
| @ -756,6 +757,7 @@ void Configuration::set_spot_to_reporting_networks (bool spot) | ||||
| 
 | ||||
| bool Configuration::transmit_directed() const { return m_->transmit_directed_; } | ||||
| bool Configuration::autoreply_off_at_startup () const {return m_->autoreply_off_at_startup_;} | ||||
| bool Configuration::beacon_anywhere() const { return m_->beacon_anywhere_;} | ||||
| bool Configuration::relay_off() const { return m_->relay_disabled_; } | ||||
| bool Configuration::monitor_off_at_startup () const {return m_->monitor_off_at_startup_;} | ||||
| bool Configuration::monitor_last_used () const {return m_->rig_is_dummy_ || m_->monitor_last_used_;} | ||||
| @ -1329,6 +1331,7 @@ void Configuration::impl::initialize_models () | ||||
|   ui_->psk_reporter_check_box->setChecked (spot_to_reporting_networks_); | ||||
|   ui_->transmit_directed_check_box->setChecked(transmit_directed_); | ||||
|   ui_->autoreply_off_check_box->setChecked (autoreply_off_at_startup_); | ||||
|   ui_->beacon_anywhere_check_box->setChecked(beacon_anywhere_); | ||||
|   ui_->relay_disabled_check_box->setChecked(relay_disabled_); | ||||
|   ui_->monitor_off_check_box->setChecked (monitor_off_at_startup_); | ||||
|   ui_->monitor_last_used_check_box->setChecked (monitor_last_used_); | ||||
| @ -1336,16 +1339,12 @@ void Configuration::impl::initialize_models () | ||||
|   ui_->stations_table_view->setEnabled(ui_->auto_switch_bands_check_box->isChecked()); | ||||
|   ui_->report_in_comments_check_box->setChecked (report_in_comments_); | ||||
|   ui_->prompt_to_log_check_box->setChecked (prompt_to_log_); | ||||
|   ui_->insert_blank_check_box->setChecked (insert_blank_); | ||||
|   ui_->DXCC_check_box->setChecked (DXCC_); | ||||
|   ui_->ppfx_check_box->setChecked (ppfx_); | ||||
|   ui_->clear_DX_check_box->setChecked (clear_DX_); | ||||
|   ui_->miles_check_box->setChecked (miles_); | ||||
|   ui_->quick_call_check_box->setChecked (quick_call_); | ||||
|   ui_->disable_TX_on_73_check_box->setChecked (disable_TX_on_73_); | ||||
|   ui_->beacon_spin_box->setValue (beacon_); | ||||
|   ui_->tx_watchdog_spin_box->setValue (watchdog_); | ||||
|   ui_->TX_messages_check_box->setChecked (TX_messages_); | ||||
|   ui_->enable_VHF_features_check_box->setChecked(enable_VHF_features_); | ||||
|   ui_->decode_at_52s_check_box->setChecked(decode_at_52s_); | ||||
|   ui_->single_decode_check_box->setChecked(single_decode_); | ||||
| @ -1589,6 +1588,7 @@ void Configuration::impl::read_settings () | ||||
| 
 | ||||
|   transmit_directed_ = settings_->value ("TransmitDirected", true).toBool(); | ||||
|   autoreply_off_at_startup_ = settings_->value ("AutoreplyOFF", false).toBool (); | ||||
|   beacon_anywhere_ = settings_->value("BeaconAnywhere", false).toBool(); | ||||
|   relay_disabled_ = settings_->value ("RelayOFF", false).toBool (); | ||||
|   monitor_off_at_startup_ = settings_->value ("MonitorOFF", false).toBool (); | ||||
|   monitor_last_used_ = settings_->value ("MonitorLastUsed", false).toBool (); | ||||
| @ -1753,6 +1753,7 @@ void Configuration::impl::write_settings () | ||||
|   settings_->setValue ("Type2MsgGen", QVariant::fromValue (type_2_msg_gen_)); | ||||
|   settings_->setValue ("TransmitDirected", transmit_directed_); | ||||
|   settings_->setValue ("AutoreplyOFF", autoreply_off_at_startup_); | ||||
|   settings_->setValue ("BeaconAnywhere", beacon_anywhere_); | ||||
|   settings_->setValue ("RelayOFF", relay_disabled_); | ||||
|   settings_->setValue ("MonitorOFF", monitor_off_at_startup_); | ||||
|   settings_->setValue ("MonitorLastUsed", monitor_last_used_); | ||||
| @ -2216,6 +2217,7 @@ void Configuration::impl::accept () | ||||
|   tx_qsy_allowed_ = ui_->tx_qsy_check_box->isChecked (); | ||||
|   transmit_directed_ = ui_->transmit_directed_check_box->isChecked(); | ||||
|   autoreply_off_at_startup_ = ui_->autoreply_off_check_box->isChecked (); | ||||
|   beacon_anywhere_ = ui_->beacon_anywhere_check_box->isChecked(); | ||||
|   relay_disabled_ = ui_->relay_disabled_check_box->isChecked(); | ||||
|   monitor_off_at_startup_ = ui_->monitor_off_check_box->isChecked (); | ||||
|   monitor_last_used_ = ui_->monitor_last_used_check_box->isChecked (); | ||||
| @ -2223,16 +2225,12 @@ void Configuration::impl::accept () | ||||
|   log_as_DATA_ = 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 (); | ||||
|   insert_blank_ = ui_->insert_blank_check_box->isChecked (); | ||||
|   DXCC_ = ui_->DXCC_check_box->isChecked (); | ||||
|   ppfx_ = ui_->ppfx_check_box->isChecked (); | ||||
|   clear_DX_ = ui_->clear_DX_check_box->isChecked (); | ||||
|   miles_ = ui_->miles_check_box->isChecked (); | ||||
|   quick_call_ = ui_->quick_call_check_box->isChecked (); | ||||
|   disable_TX_on_73_ = ui_->disable_TX_on_73_check_box->isChecked (); | ||||
|   beacon_ = ui_->beacon_spin_box->value (); | ||||
|   watchdog_ = ui_->tx_watchdog_spin_box->value (); | ||||
|   TX_messages_ = ui_->TX_messages_check_box->isChecked (); | ||||
|   data_mode_ = static_cast<DataMode> (ui_->TX_mode_button_group->checkedId ()); | ||||
|   save_directory_ = ui_->save_path_display_label->text (); | ||||
|   azel_directory_ = ui_->azel_path_display_label->text (); | ||||
|  | ||||
| @ -120,6 +120,7 @@ public: | ||||
|   void set_spot_to_reporting_networks (bool); | ||||
|   bool transmit_directed() const; | ||||
|   bool autoreply_off_at_startup () const; | ||||
|   bool beacon_anywhere() const; | ||||
|   bool relay_off() const; | ||||
|   bool monitor_off_at_startup () const; | ||||
|   bool monitor_last_used () const; | ||||
|  | ||||
							
								
								
									
										109
									
								
								Configuration.ui
									
									
									
									
									
								
							
							
						
						
									
										109
									
								
								Configuration.ui
									
									
									
									
									
								
							| @ -251,31 +251,12 @@ | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item> | ||||
|         <widget class="QGroupBox" name="display_group_box"> | ||||
|         <widget class="QGroupBox" name="behaviour_group_box"> | ||||
|          <property name="title"> | ||||
|           <string>Display</string> | ||||
|           <string>Behavior</string> | ||||
|          </property> | ||||
|          <layout class="QGridLayout" name="gridLayout_4"> | ||||
|           <item row="4" column="0"> | ||||
|            <widget class="QCheckBox" name="DXCC_check_box"> | ||||
|             <property name="enabled"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="visible"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="toolTip"> | ||||
|              <string>Show if decoded stations are new DXCC entities or worked before.</string> | ||||
|             </property> | ||||
|             <property name="text"> | ||||
|              <string>Show &DXCC entity and worked before status</string> | ||||
|             </property> | ||||
|             <property name="checked"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item row="1" column="0"> | ||||
|          <layout class="QVBoxLayout" name="verticalLayout_8"> | ||||
|           <item> | ||||
|            <widget class="QCheckBox" name="miles_check_box"> | ||||
|             <property name="enabled"> | ||||
|              <bool>true</bool> | ||||
| @ -288,67 +269,6 @@ | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item row="3" column="0"> | ||||
|            <widget class="QCheckBox" name="TX_messages_check_box"> | ||||
|             <property name="enabled"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="visible"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="toolTip"> | ||||
|              <string>Show outgoing transmitted messages in the Rx frequency window.</string> | ||||
|             </property> | ||||
|             <property name="text"> | ||||
|              <string>&Tx messages to Rx frequency window</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item row="5" column="0"> | ||||
|            <widget class="QCheckBox" name="ppfx_check_box"> | ||||
|             <property name="enabled"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="visible"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="text"> | ||||
|              <string>Show principal prefix instead of country name</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item row="2" column="0"> | ||||
|            <widget class="QCheckBox" name="insert_blank_check_box"> | ||||
|             <property name="enabled"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="visible"> | ||||
|              <bool>false</bool> | ||||
|             </property> | ||||
|             <property name="toolTip"> | ||||
|              <string>Include a separator line between periods in the band activity window.</string> | ||||
|             </property> | ||||
|             <property name="text"> | ||||
|              <string>&Blank line between decoding periods</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|          </layout> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item> | ||||
|         <widget class="Line" name="line_7"> | ||||
|          <property name="orientation"> | ||||
|           <enum>Qt::Horizontal</enum> | ||||
|          </property> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item> | ||||
|         <widget class="QGroupBox" name="behaviour_group_box"> | ||||
|          <property name="title"> | ||||
|           <string>Behavior</string> | ||||
|          </property> | ||||
|          <layout class="QVBoxLayout" name="verticalLayout_8"> | ||||
|           <item> | ||||
|            <widget class="QCheckBox" name="autoreply_off_check_box"> | ||||
|             <property name="text"> | ||||
| @ -422,6 +342,13 @@ | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item> | ||||
|            <widget class="QCheckBox" name="beacon_anywhere_check_box"> | ||||
|             <property name="text"> | ||||
|              <string>Allow transmitting beacons outside of beacon sub-channel (500Hz - 1000Hz)</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item> | ||||
|            <layout class="QHBoxLayout" name="horizontalLayout_155"> | ||||
|             <item> | ||||
| @ -3552,10 +3479,6 @@ soundcard changes</string> | ||||
|   <tabstop>use_dynamic_grid</tabstop> | ||||
|   <tabstop>region_combo_box</tabstop> | ||||
|   <tabstop>type_2_msg_gen_combo_box</tabstop> | ||||
|   <tabstop>insert_blank_check_box</tabstop> | ||||
|   <tabstop>miles_check_box</tabstop> | ||||
|   <tabstop>TX_messages_check_box</tabstop> | ||||
|   <tabstop>DXCC_check_box</tabstop> | ||||
|   <tabstop>monitor_off_check_box</tabstop> | ||||
|   <tabstop>monitor_last_used_check_box</tabstop> | ||||
|   <tabstop>quick_call_check_box</tabstop> | ||||
| @ -3692,12 +3615,12 @@ soundcard changes</string> | ||||
|   </connection> | ||||
|  </connections> | ||||
|  <buttongroups> | ||||
|   <buttongroup name="PTT_method_button_group"/> | ||||
|   <buttongroup name="TX_mode_button_group"/> | ||||
|   <buttongroup name="TX_audio_source_button_group"/> | ||||
|   <buttongroup name="split_mode_button_group"/> | ||||
|   <buttongroup name="CAT_handshake_button_group"/> | ||||
|   <buttongroup name="CAT_stop_bits_button_group"/> | ||||
|   <buttongroup name="CAT_data_bits_button_group"/> | ||||
|   <buttongroup name="split_mode_button_group"/> | ||||
|   <buttongroup name="TX_audio_source_button_group"/> | ||||
|   <buttongroup name="TX_mode_button_group"/> | ||||
|   <buttongroup name="PTT_method_button_group"/> | ||||
|   <buttongroup name="CAT_stop_bits_button_group"/> | ||||
|  </buttongroups> | ||||
| </ui> | ||||
|  | ||||
| @ -6364,7 +6364,7 @@ void MainWindow::prepareBeacon(){ | ||||
|     } | ||||
| 
 | ||||
|     // Choose a beacon frequency
 | ||||
|     auto f = findFreeFreqOffset(750, 1250, 50); | ||||
|     auto f = m_config.beacon_anywhere() ? -1 : findFreeFreqOffset(500, 1000, 50); | ||||
| 
 | ||||
|     auto text = lines.join(QChar('\n')); | ||||
|     if(text.isEmpty()){ | ||||
| @ -8071,6 +8071,7 @@ void MainWindow::setFreq4(int rxFreq, int txFreq) { | ||||
|       txFreq = rxFreq; | ||||
|   } | ||||
| 
 | ||||
|   // TODO: jsherer - here's where we'd set minimum frequency again (later?)
 | ||||
|   rxFreq = max(0, rxFreq); | ||||
|   txFreq = max(0, txFreq); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jordan Sherer
						Jordan Sherer