mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	County display for alerts, alert cleanup
This commit is contained in:
		
							parent
							
								
									305e5c3698
								
							
						
					
					
						commit
						c87a77795d
					
				
					 5 changed files with 27 additions and 5 deletions
				
			
		|  | @ -1,4 +1,5 @@ | |||
| #include <scwx/qt/manager/resource_manager.hpp> | ||||
| #include <scwx/qt/config/county_database.hpp> | ||||
| #include <scwx/qt/util/font.hpp> | ||||
| #include <scwx/qt/util/texture_atlas.hpp> | ||||
| 
 | ||||
|  | @ -19,6 +20,8 @@ void PreLoad() | |||
| 
 | ||||
| static void LoadFonts() | ||||
| { | ||||
|    config::CountyDatabase::Initialize(); | ||||
| 
 | ||||
|    util::Font::Create(":/res/fonts/din1451alt.ttf"); | ||||
|    util::Font::Create(":/res/fonts/din1451alt_g.ttf"); | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,7 +31,7 @@ public: | |||
|    TextEventManager* self_; | ||||
| 
 | ||||
|    std::unordered_map<types::TextEventKey, | ||||
|                       std::list<std::shared_ptr<awips::TextProductMessage>>, | ||||
|                       std::vector<std::shared_ptr<awips::TextProductMessage>>, | ||||
|                       types::TextEventHash<types::TextEventKey>> | ||||
|                      textEventMap_; | ||||
|    std::shared_mutex textEventMutex_; | ||||
|  | @ -131,7 +131,7 @@ void TextEventManager::Impl::HandleMessage( | |||
|    if (it == textEventMap_.cend()) | ||||
|    { | ||||
|       // If there was no matching event, add the message to a new event
 | ||||
|       textEventMap_.emplace(key, std::list {message}); | ||||
|       textEventMap_.emplace(key, std::vector {message}); | ||||
|       messageIndex = 0; | ||||
|       updated      = true; | ||||
|    } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat