mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +00:00 
			
		
		
		
	Add UI settings for collapsible groups
This commit is contained in:
		
							parent
							
								
									af650c6687
								
							
						
					
					
						commit
						1e4e2ba1b4
					
				
					 5 changed files with 162 additions and 3 deletions
				
			
		
							
								
								
									
										48
									
								
								scwx-qt/source/scwx/qt/settings/ui_settings.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								scwx-qt/source/scwx/qt/settings/ui_settings.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,48 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/qt/settings/settings_category.hpp> | ||||
| #include <scwx/qt/settings/settings_variable.hpp> | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace settings | ||||
| { | ||||
| 
 | ||||
| class UiSettingsImpl; | ||||
| 
 | ||||
| class UiSettings : public SettingsCategory | ||||
| { | ||||
| public: | ||||
|    explicit UiSettings(); | ||||
|    ~UiSettings(); | ||||
| 
 | ||||
|    UiSettings(const UiSettings&)            = delete; | ||||
|    UiSettings& operator=(const UiSettings&) = delete; | ||||
| 
 | ||||
|    UiSettings(UiSettings&&) noexcept; | ||||
|    UiSettings& operator=(UiSettings&&) noexcept; | ||||
| 
 | ||||
|    SettingsVariable<bool>& level2_products_expanded() const; | ||||
|    SettingsVariable<bool>& level2_settings_expanded() const; | ||||
|    SettingsVariable<bool>& level3_products_expanded() const; | ||||
|    SettingsVariable<bool>& map_settings_expanded() const; | ||||
|    SettingsVariable<bool>& timeline_expanded() const; | ||||
| 
 | ||||
|    bool Shutdown(); | ||||
| 
 | ||||
|    static UiSettings& Instance(); | ||||
| 
 | ||||
|    friend bool operator==(const UiSettings& lhs, const UiSettings& rhs); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<UiSettingsImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace settings
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat