mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:30:05 +00:00 
			
		
		
		
	Add alert palette settings
This commit is contained in:
		
							parent
							
								
									1a30743c0a
								
							
						
					
					
						commit
						efee1653e1
					
				
					 3 changed files with 162 additions and 2 deletions
				
			
		
							
								
								
									
										46
									
								
								scwx-qt/source/scwx/qt/settings/alert_palette_settings.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								scwx-qt/source/scwx/qt/settings/alert_palette_settings.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,46 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/qt/settings/line_settings.hpp> | ||||
| #include <scwx/qt/settings/settings_category.hpp> | ||||
| #include <scwx/awips/impact_based_warnings.hpp> | ||||
| #include <scwx/awips/phenomenon.hpp> | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace settings | ||||
| { | ||||
| 
 | ||||
| class AlertPaletteSettings : public SettingsCategory | ||||
| { | ||||
| public: | ||||
|    explicit AlertPaletteSettings(awips::Phenomenon phenomenon); | ||||
|    ~AlertPaletteSettings(); | ||||
| 
 | ||||
|    AlertPaletteSettings(const AlertPaletteSettings&)            = delete; | ||||
|    AlertPaletteSettings& operator=(const AlertPaletteSettings&) = delete; | ||||
| 
 | ||||
|    AlertPaletteSettings(AlertPaletteSettings&&) noexcept; | ||||
|    AlertPaletteSettings& operator=(AlertPaletteSettings&&) noexcept; | ||||
| 
 | ||||
|    LineSettings& | ||||
|    threat_category(awips::ibw::ThreatCategory threatCategory) const; | ||||
|    LineSettings& inactive() const; | ||||
|    LineSettings& observed() const; | ||||
|    LineSettings& tornado_possible() const; | ||||
| 
 | ||||
|    friend bool operator==(const AlertPaletteSettings& lhs, | ||||
|                           const AlertPaletteSettings& rhs); | ||||
| 
 | ||||
| private: | ||||
|    class Impl; | ||||
|    std::unique_ptr<Impl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace settings
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat