diff options
| author | Richard Maudsley <richard.maudsley@isode.com> | 2014-07-16 12:37:25 (GMT) | 
|---|---|---|
| committer | Swift Review <review@swift.im> | 2014-07-29 08:36:54 (GMT) | 
| commit | 9c5c731845881996f45b32ea6de12e0647f4634d (patch) | |
| tree | 70331a822814ade469f07231ff0bf6dfbfa1fcde /Swift/Controllers/HighlightAction.h | |
| parent | 690cb7e85ff9dadbfca3e3bc91826161011712f1 (diff) | |
| download | swift-9c5c731845881996f45b32ea6de12e0647f4634d.zip swift-9c5c731845881996f45b32ea6de12e0647f4634d.tar.bz2 | |
Prevent nick highlight rule highlighting the entire message and remove default highlight colours
Test-Information:
Add a nick highlight rule. Verify that it is triggered correctly in MUCs and that only the nick text is highlighted. Added unit tests.
Change-Id: I9af1c900f4767383745afd36a5eadbe08f606432
Diffstat (limited to 'Swift/Controllers/HighlightAction.h')
| -rw-r--r-- | Swift/Controllers/HighlightAction.h | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/Swift/Controllers/HighlightAction.h b/Swift/Controllers/HighlightAction.h index de1f201..90768a7 100644 --- a/Swift/Controllers/HighlightAction.h +++ b/Swift/Controllers/HighlightAction.h @@ -25,17 +25,20 @@ namespace Swift {  		public:  			HighlightAction() : highlightText_(false), playSound_(false) {} -			bool highlightText() const { return highlightText_; } -			void setHighlightText(bool highlightText); +			/** +			* Gets the flag that indicates the entire message should be highlighted. +			*/ +			bool highlightAllText() const { return highlightText_; } +			void setHighlightAllText(bool highlightText);  			/** -			* Gets the foreground highlight color. If the string is empty, assume a default color. +			* Gets the foreground highlight color.  			*/  			const std::string& getTextColor() const { return textColor_; }  			void setTextColor(const std::string& textColor) { textColor_ = textColor; }  			/** -			* Gets the background highlight color. If the string is empty, assume a default color. +			* Gets the background highlight color.  			*/  			const std::string& getTextBackground() const { return textBackground_; }  			void setTextBackground(const std::string& textBackground) { textBackground_ = textBackground; } | 
 Swift
 Swift