aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewertexteditor.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:50 -0500
committerJacek Antonelli2008-08-15 23:45:50 -0500
commit2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch)
tree95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llviewertexteditor.cpp
parentSecond Life viewer sources 1.20.6 (diff)
downloadmeta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz
Second Life viewer sources 1.20.7
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewertexteditor.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llviewertexteditor.cpp b/linden/indra/newview/llviewertexteditor.cpp
index 60ec187..e1c56a6 100644
--- a/linden/indra/newview/llviewertexteditor.cpp
+++ b/linden/indra/newview/llviewertexteditor.cpp
@@ -631,7 +631,7 @@ BOOL LLViewerTextEditor::handleToolTip(S32 x, S32 y, LLString& msg, LLRect* stic
631 if( cur_segment ) 631 if( cur_segment )
632 { 632 {
633 BOOL has_tool_tip = FALSE; 633 BOOL has_tool_tip = FALSE;
634 if( cur_segment->getStyle().getIsEmbeddedItem() ) 634 if( cur_segment->getStyle()->getIsEmbeddedItem() )
635 { 635 {
636 LLWString wtip; 636 LLWString wtip;
637 has_tool_tip = getEmbeddedItemToolTipAtPos(cur_segment->getStart(), wtip); 637 has_tool_tip = getEmbeddedItemToolTipAtPos(cur_segment->getStart(), wtip);
@@ -851,14 +851,14 @@ BOOL LLViewerTextEditor::handleHover(S32 x, S32 y, MASK mask)
851 const LLTextSegment* cur_segment = getSegmentAtLocalPos( x, y ); 851 const LLTextSegment* cur_segment = getSegmentAtLocalPos( x, y );
852 if( cur_segment ) 852 if( cur_segment )
853 { 853 {
854 if(cur_segment->getStyle().isLink()) 854 if(cur_segment->getStyle()->isLink())
855 { 855 {
856 lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (over link, inactive)" << llendl; 856 lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (over link, inactive)" << llendl;
857 getWindow()->setCursor(UI_CURSOR_HAND); 857 getWindow()->setCursor(UI_CURSOR_HAND);
858 handled = TRUE; 858 handled = TRUE;
859 } 859 }
860 else 860 else
861 if(cur_segment->getStyle().getIsEmbeddedItem()) 861 if(cur_segment->getStyle()->getIsEmbeddedItem())
862 { 862 {
863 lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (over embedded item, inactive)" << llendl; 863 lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (over embedded item, inactive)" << llendl;
864 getWindow()->setCursor(UI_CURSOR_HAND); 864 getWindow()->setCursor(UI_CURSOR_HAND);
@@ -970,10 +970,10 @@ BOOL LLViewerTextEditor::handleRightMouseDown(S32 x, S32 y, MASK mask)
970// const LLTextSegment* cur_segment = getSegmentAtLocalPos( x, y ); 970// const LLTextSegment* cur_segment = getSegmentAtLocalPos( x, y );
971// if( cur_segment ) 971// if( cur_segment )
972// { 972// {
973// if(cur_segment->getStyle().isLink()) 973// if(cur_segment->getStyle()->isLink())
974// { 974// {
975// handled = TRUE; 975// handled = TRUE;
976// mHTML = cur_segment->getStyle().getLinkHREF(); 976// mHTML = cur_segment->getStyle()->getLinkHREF();
977// } 977// }
978// } 978// }
979// } 979// }
@@ -1008,7 +1008,7 @@ BOOL LLViewerTextEditor::handleDoubleClick(S32 x, S32 y, MASK mask)
1008 if( allowsEmbeddedItems() ) 1008 if( allowsEmbeddedItems() )
1009 { 1009 {
1010 const LLTextSegment* cur_segment = getSegmentAtLocalPos( x, y ); 1010 const LLTextSegment* cur_segment = getSegmentAtLocalPos( x, y );
1011 if( cur_segment && cur_segment->getStyle().getIsEmbeddedItem() ) 1011 if( cur_segment && cur_segment->getStyle()->getIsEmbeddedItem() )
1012 { 1012 {
1013 if( openEmbeddedItemAtPos( cur_segment->getStart() ) ) 1013 if( openEmbeddedItemAtPos( cur_segment->getStart() ) )
1014 { 1014 {
@@ -1598,7 +1598,7 @@ LLView* LLViewerTextEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlF
1598 text_editor->initFromXML(node, parent); 1598 text_editor->initFromXML(node, parent);
1599 1599
1600 // add text after all parameters have been set 1600 // add text after all parameters have been set
1601 text_editor->appendStyledText(text, FALSE, FALSE, NULL); 1601 text_editor->appendStyledText(text, FALSE, FALSE);
1602 1602
1603 return text_editor; 1603 return text_editor;
1604} 1604}