mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 23:10:06 +00:00 
			
		
		
		
	Update settings category signals to be in line with variables and only fire once
Properly connect line labels to the category signals
This commit is contained in:
		
							parent
							
								
									20dbc7f5b7
								
							
						
					
					
						commit
						70cb3ab6d2
					
				
					 9 changed files with 252 additions and 117 deletions
				
			
		|  | @ -4,6 +4,7 @@ | |||
| #include <string> | ||||
| 
 | ||||
| #include <boost/json/object.hpp> | ||||
| #include <boost/signals2/signal.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -30,6 +31,20 @@ public: | |||
| 
 | ||||
|    std::string name() const; | ||||
| 
 | ||||
|    /**
 | ||||
|     * Gets the signal invoked when the settings variable is changed. | ||||
|     * | ||||
|     * @return Changed signal | ||||
|     */ | ||||
|    boost::signals2::signal<void()>& changed_signal(); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Gets the signal invoked when the settings variable is staged. | ||||
|     * | ||||
|     * @return Staged signal | ||||
|     */ | ||||
|    boost::signals2::signal<void()>& staged_signal(); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Sets the current value of the settings variable to default. | ||||
|     */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat