diff options
| author | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-10-17 14:55:36 -0700 |
|---|---|---|
| committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-10-17 14:55:36 -0700 |
| commit | 05a72687d848c13754039f6e720a137827533fdb (patch) | |
| tree | 586c0d9fa2b40f310ae6a6c8a8b4118aaf959d10 /indra/llui/llchatentry.cpp | |
| parent | f55d07114b560b277ebf9f644a85c03114170295 (diff) | |
CHUI-410: Now when a converation floater is focused the default text 'To <Some User>' displays only when the text input field is empty.
Diffstat (limited to 'indra/llui/llchatentry.cpp')
| -rw-r--r-- | indra/llui/llchatentry.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/indra/llui/llchatentry.cpp b/indra/llui/llchatentry.cpp index 2a6ccc3dc9..38e2a8106a 100644 --- a/indra/llui/llchatentry.cpp +++ b/indra/llui/llchatentry.cpp @@ -136,6 +136,34 @@ void LLChatEntry::updateHistory() } } +void LLChatEntry::beforeValueChange() +{ + if(this->getLength() == 0 && !mLabel.empty()) + { + this->clearSegments(); + } +} + +void LLChatEntry::onValueChange(S32 start, S32 end) +{ + resetLabel(); +} + +BOOL LLChatEntry::useLabel() +{ + return !getLength() && !mLabel.empty(); +} + +void LLChatEntry::onFocusReceived() +{ + +} + +void LLChatEntry::onFocusLost() +{ + +} + BOOL LLChatEntry::handleSpecialKey(const KEY key, const MASK mask) { BOOL handled = FALSE; |
