mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:30:04 +00:00 
			
		
		
		
	Add setting for centering radar on site selection
This commit is contained in:
		
							parent
							
								
									7fdf25f1e7
								
							
						
					
					
						commit
						6b2f3dd84f
					
				
					 6 changed files with 39 additions and 10 deletions
				
			
		|  | @ -139,6 +139,7 @@ public: | |||
|           &warningsProvider_, | ||||
|           &radarSiteThreshold_, | ||||
|           &antiAliasingEnabled_, | ||||
|           ¢erOnRadarSelection_, | ||||
|           &showMapAttribution_, | ||||
|           &showMapCenter_, | ||||
|           &showMapLogo_, | ||||
|  | @ -258,6 +259,7 @@ public: | |||
|    settings::SettingsInterface<std::string>  warningsProvider_ {}; | ||||
|    settings::SettingsInterface<double>       radarSiteThreshold_ {}; | ||||
|    settings::SettingsInterface<bool>         antiAliasingEnabled_ {}; | ||||
|    settings::SettingsInterface<bool>         centerOnRadarSelection_ {}; | ||||
|    settings::SettingsInterface<bool>         showMapAttribution_ {}; | ||||
|    settings::SettingsInterface<bool>         showMapCenter_ {}; | ||||
|    settings::SettingsInterface<bool>         showMapLogo_ {}; | ||||
|  | @ -813,6 +815,11 @@ void SettingsDialogImpl::SetupGeneralTab() | |||
|       generalSettings.anti_aliasing_enabled()); | ||||
|    antiAliasingEnabled_.SetEditWidget(self_->ui->antiAliasingEnabledCheckBox); | ||||
| 
 | ||||
|    centerOnRadarSelection_.SetSettingsVariable( | ||||
|       generalSettings.center_on_radar_selection()); | ||||
|    centerOnRadarSelection_.SetEditWidget( | ||||
|       self_->ui->centerOnRadarSelectionCheckBox); | ||||
| 
 | ||||
|    showMapAttribution_.SetSettingsVariable( | ||||
|       generalSettings.show_map_attribution()); | ||||
|    showMapAttribution_.SetEditWidget(self_->ui->showMapAttributionCheckBox); | ||||
|  |  | |||
|  | @ -135,9 +135,9 @@ | |||
|               <property name="geometry"> | ||||
|                <rect> | ||||
|                 <x>0</x> | ||||
|                 <y>-260</y> | ||||
|                 <y>-412</y> | ||||
|                 <width>511</width> | ||||
|                 <height>812</height> | ||||
|                 <height>841</height> | ||||
|                </rect> | ||||
|               </property> | ||||
|               <layout class="QVBoxLayout" name="verticalLayout"> | ||||
|  | @ -625,6 +625,13 @@ | |||
|                  </property> | ||||
|                 </widget> | ||||
|                </item> | ||||
|                <item> | ||||
|                 <widget class="QCheckBox" name="centerOnRadarSelectionCheckBox"> | ||||
|                  <property name="text"> | ||||
|                   <string>Center Map on Radar Selection</string> | ||||
|                  </property> | ||||
|                 </widget> | ||||
|                </item> | ||||
|                <item> | ||||
|                 <widget class="QCheckBox" name="cursorIconAlwaysOnCheckBox"> | ||||
|                  <property name="acceptDrops"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak