aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lldraghandle.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/lldraghandle.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/lldraghandle.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/llui/lldraghandle.cpp b/linden/indra/llui/lldraghandle.cpp
index f033371..bec2da5 100644
--- a/linden/indra/llui/lldraghandle.cpp
+++ b/linden/indra/llui/lldraghandle.cpp
@@ -55,7 +55,7 @@ const S32 RIGHT_PAD = BORDER_PAD + 32; // HACK: space for close btn and minimize
55 55
56S32 LLDragHandle::sSnapMargin = 5; 56S32 LLDragHandle::sSnapMargin = 5;
57 57
58LLDragHandle::LLDragHandle( const LLString& name, const LLRect& rect, const LLString& title ) 58LLDragHandle::LLDragHandle( const std::string& name, const LLRect& rect, const std::string& title )
59: LLView( name, rect, TRUE ), 59: LLView( name, rect, TRUE ),
60 mDragLastScreenX( 0 ), 60 mDragLastScreenX( 0 ),
61 mDragLastScreenY( 0 ), 61 mDragLastScreenY( 0 ),
@@ -94,27 +94,27 @@ void LLDragHandle::setTitleBox(LLTextBox* titlebox)
94 } 94 }
95} 95}
96 96
97LLDragHandleTop::LLDragHandleTop(const LLString& name, const LLRect &rect, const LLString& title) 97LLDragHandleTop::LLDragHandleTop(const std::string& name, const LLRect &rect, const std::string& title)
98: LLDragHandle(name, rect, title) 98: LLDragHandle(name, rect, title)
99{ 99{
100 setFollowsAll(); 100 setFollowsAll();
101 setTitle( title ); 101 setTitle( title );
102} 102}
103 103
104LLDragHandleLeft::LLDragHandleLeft(const LLString& name, const LLRect &rect, const LLString& title) 104LLDragHandleLeft::LLDragHandleLeft(const std::string& name, const LLRect &rect, const std::string& title)
105: LLDragHandle(name, rect, title) 105: LLDragHandle(name, rect, title)
106{ 106{
107 setFollowsAll(); 107 setFollowsAll();
108 setTitle( title ); 108 setTitle( title );
109} 109}
110 110
111void LLDragHandleTop::setTitle(const LLString& title) 111void LLDragHandleTop::setTitle(const std::string& title)
112{ 112{
113 LLString trimmed_title = title; 113 std::string trimmed_title = title;
114 LLString::trim(trimmed_title); 114 LLStringUtil::trim(trimmed_title);
115 115
116 const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF ); 116 const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF );
117 LLTextBox* titlebox = new LLTextBox( "Drag Handle Title", getRect(), trimmed_title, font ); 117 LLTextBox* titlebox = new LLTextBox( std::string("Drag Handle Title"), getRect(), trimmed_title, font );
118 titlebox->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT | FOLLOWS_RIGHT); 118 titlebox->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT | FOLLOWS_RIGHT);
119 titlebox->setFontStyle(LLFontGL::DROP_SHADOW_SOFT); 119 titlebox->setFontStyle(LLFontGL::DROP_SHADOW_SOFT);
120 120
@@ -123,22 +123,22 @@ void LLDragHandleTop::setTitle(const LLString& title)
123} 123}
124 124
125 125
126const LLString& LLDragHandleTop::getTitle() const 126const std::string& LLDragHandleTop::getTitle() const
127{ 127{
128 return getTitleBox() == NULL ? LLString::null : getTitleBox()->getText(); 128 return getTitleBox() == NULL ? LLStringUtil::null : getTitleBox()->getText();
129} 129}
130 130
131 131
132void LLDragHandleLeft::setTitle(const LLString& ) 132void LLDragHandleLeft::setTitle(const std::string& )
133{ 133{
134 setTitleBox(NULL); 134 setTitleBox(NULL);
135 /* no title on left edge */ 135 /* no title on left edge */
136} 136}
137 137
138 138
139const LLString& LLDragHandleLeft::getTitle() const 139const std::string& LLDragHandleLeft::getTitle() const
140{ 140{
141 return LLString::null; 141 return LLStringUtil::null;
142} 142}
143 143
144 144