mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Add custom style URL and draw layer to settings UI
This commit is contained in:
		
							parent
							
								
									ec0e502516
								
							
						
					
					
						commit
						a683778624
					
				
					 2 changed files with 60 additions and 5 deletions
				
			
		|  | @ -117,6 +117,8 @@ public: | |||
|           &theme_, | ||||
|           &defaultAlertAction_, | ||||
|           &clockFormat_, | ||||
|           &customStyleDrawLayer_, | ||||
|           &customStyleUrl_, | ||||
|           &defaultTimeZone_, | ||||
|           &positioningPlugin_, | ||||
|           &nmeaBaudRate_, | ||||
|  | @ -222,6 +224,8 @@ public: | |||
|    settings::SettingsInterface<std::string>  mapTilerApiKey_ {}; | ||||
|    settings::SettingsInterface<std::string>  defaultAlertAction_ {}; | ||||
|    settings::SettingsInterface<std::string>  clockFormat_ {}; | ||||
|    settings::SettingsInterface<std::string>  customStyleDrawLayer_ {}; | ||||
|    settings::SettingsInterface<std::string>  customStyleUrl_ {}; | ||||
|    settings::SettingsInterface<std::string>  defaultTimeZone_ {}; | ||||
|    settings::SettingsInterface<std::string>  positioningPlugin_ {}; | ||||
|    settings::SettingsInterface<std::int64_t> nmeaBaudRate_ {}; | ||||
|  | @ -566,6 +570,15 @@ void SettingsDialogImpl::SetupGeneralTab() | |||
|    mapTilerApiKey_.SetEditWidget(self_->ui->mapTilerApiKeyLineEdit); | ||||
|    mapTilerApiKey_.SetResetButton(self_->ui->resetMapTilerApiKeyButton); | ||||
| 
 | ||||
|    customStyleUrl_.SetSettingsVariable(generalSettings.custom_style_url()); | ||||
|    customStyleUrl_.SetEditWidget(self_->ui->customMapUrlLineEdit); | ||||
|    customStyleUrl_.SetResetButton(self_->ui->resetCustomMapUrlButton); | ||||
| 
 | ||||
|    customStyleDrawLayer_.SetSettingsVariable( | ||||
|       generalSettings.custom_style_draw_layer()); | ||||
|    customStyleDrawLayer_.SetEditWidget(self_->ui->customMapLayerLineEdit); | ||||
|    customStyleDrawLayer_.SetResetButton(self_->ui->resetCustomMapLayerButton); | ||||
| 
 | ||||
|    defaultAlertAction_.SetSettingsVariable( | ||||
|       generalSettings.default_alert_action()); | ||||
|    SCWX_SETTINGS_COMBO_BOX(defaultAlertAction_, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat