aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llview.cpp')
-rw-r--r--linden/indra/llui/llview.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/linden/indra/llui/llview.cpp b/linden/indra/llui/llview.cpp
index 9442a5c..a047f99 100644
--- a/linden/indra/llui/llview.cpp
+++ b/linden/indra/llui/llview.cpp
@@ -224,11 +224,17 @@ void LLView::setMouseOpaque(BOOL b)
224 mMouseOpaque = b; 224 mMouseOpaque = b;
225} 225}
226 226
227void LLView::setToolTip(const LLString& msg) 227void LLView::setToolTip(const LLStringExplicit& msg)
228{ 228{
229 mToolTipMsg = msg; 229 mToolTipMsg = msg;
230} 230}
231 231
232BOOL LLView::setToolTipArg(const LLStringExplicit& key, const LLStringExplicit& text)
233{
234 mToolTipMsg.setArg(key, text);
235 return TRUE;
236}
237
232// virtual 238// virtual
233void LLView::setRect(const LLRect& rect) 239void LLView::setRect(const LLRect& rect)
234{ 240{
@@ -288,7 +294,7 @@ void LLView::setSpanChildren( BOOL span_children )
288 294
289const LLString& LLView::getToolTip() 295const LLString& LLView::getToolTip()
290{ 296{
291 return mToolTipMsg; 297 return mToolTipMsg.getString();
292} 298}
293 299
294// virtual 300// virtual
@@ -884,18 +890,14 @@ BOOL LLView::handleToolTip(S32 x, S32 y, LLString& msg, LLRect* sticky_rect_scre
884 } 890 }
885 } 891 }
886 892
887 if (LLUI::sShowXUINames && (mToolTipMsg.find(".xml", 0) == LLString::npos) && 893 tool_tip = mToolTipMsg.getString();
894 if (LLUI::sShowXUINames && (tool_tip.find(".xml", 0) == LLString::npos) &&
888 (mName.find("Drag", 0) == LLString::npos)) 895 (mName.find("Drag", 0) == LLString::npos))
889 { 896 {
890 tool_tip = getShowNamesToolTip(); 897 tool_tip = getShowNamesToolTip();
891 } 898 }
892 else
893 {
894 tool_tip = mToolTipMsg;
895 }
896 899
897 900
898
899 BOOL showNamesTextBox = LLUI::sShowXUINames && (getWidgetType() == WIDGET_TYPE_TEXT_BOX); 901 BOOL showNamesTextBox = LLUI::sShowXUINames && (getWidgetType() == WIDGET_TYPE_TEXT_BOX);
900 902
901 if( !handled && (mMouseOpaque || showNamesTextBox) && pointInView( x, y ) && !tool_tip.empty()) 903 if( !handled && (mMouseOpaque || showNamesTextBox) && pointInView( x, y ) && !tool_tip.empty())