diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/lldraghandle.cpp | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/linden/indra/llui/lldraghandle.cpp b/linden/indra/llui/lldraghandle.cpp index 516afc6..f033371 100644 --- a/linden/indra/llui/lldraghandle.cpp +++ b/linden/indra/llui/lldraghandle.cpp | |||
@@ -101,16 +101,6 @@ LLDragHandleTop::LLDragHandleTop(const LLString& name, const LLRect &rect, const | |||
101 | setTitle( title ); | 101 | setTitle( title ); |
102 | } | 102 | } |
103 | 103 | ||
104 | EWidgetType LLDragHandleTop::getWidgetType() const | ||
105 | { | ||
106 | return WIDGET_TYPE_DRAG_HANDLE_TOP; | ||
107 | } | ||
108 | |||
109 | LLString LLDragHandleTop::getWidgetTag() const | ||
110 | { | ||
111 | return LL_DRAG_HANDLE_TOP_TAG; | ||
112 | } | ||
113 | |||
114 | LLDragHandleLeft::LLDragHandleLeft(const LLString& name, const LLRect &rect, const LLString& title) | 104 | LLDragHandleLeft::LLDragHandleLeft(const LLString& name, const LLRect &rect, const LLString& title) |
115 | : LLDragHandle(name, rect, title) | 105 | : LLDragHandle(name, rect, title) |
116 | { | 106 | { |
@@ -118,22 +108,12 @@ LLDragHandleLeft::LLDragHandleLeft(const LLString& name, const LLRect &rect, con | |||
118 | setTitle( title ); | 108 | setTitle( title ); |
119 | } | 109 | } |
120 | 110 | ||
121 | EWidgetType LLDragHandleLeft::getWidgetType() const | ||
122 | { | ||
123 | return WIDGET_TYPE_DRAG_HANDLE_LEFT; | ||
124 | } | ||
125 | |||
126 | LLString LLDragHandleLeft::getWidgetTag() const | ||
127 | { | ||
128 | return LL_DRAG_HANDLE_LEFT_TAG; | ||
129 | } | ||
130 | |||
131 | void LLDragHandleTop::setTitle(const LLString& title) | 111 | void LLDragHandleTop::setTitle(const LLString& title) |
132 | { | 112 | { |
133 | LLString trimmed_title = title; | 113 | LLString trimmed_title = title; |
134 | LLString::trim(trimmed_title); | 114 | LLString::trim(trimmed_title); |
135 | 115 | ||
136 | const LLFontGL* font = gResMgr->getRes( LLFONT_SANSSERIF ); | 116 | const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF ); |
137 | LLTextBox* titlebox = new LLTextBox( "Drag Handle Title", getRect(), trimmed_title, font ); | 117 | LLTextBox* titlebox = new LLTextBox( "Drag Handle Title", getRect(), trimmed_title, font ); |
138 | titlebox->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT | FOLLOWS_RIGHT); | 118 | titlebox->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT | FOLLOWS_RIGHT); |
139 | titlebox->setFontStyle(LLFontGL::DROP_SHADOW_SOFT); | 119 | titlebox->setFontStyle(LLFontGL::DROP_SHADOW_SOFT); |
@@ -262,7 +242,7 @@ void LLDragHandleTop::reshapeTitleBox() | |||
262 | { | 242 | { |
263 | return; | 243 | return; |
264 | } | 244 | } |
265 | const LLFontGL* font = gResMgr->getRes( LLFONT_SANSSERIF ); | 245 | const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF ); |
266 | S32 title_width = font->getWidth( getTitleBox()->getText() ) + TITLE_PAD; | 246 | S32 title_width = font->getWidth( getTitleBox()->getText() ) + TITLE_PAD; |
267 | if (getMaxTitleWidth() > 0) | 247 | if (getMaxTitleWidth() > 0) |
268 | title_width = llmin(title_width, getMaxTitleWidth()); | 248 | title_width = llmin(title_width, getMaxTitleWidth()); |
@@ -372,7 +352,7 @@ BOOL LLDragHandle::handleHover(S32 x, S32 y, MASK mask) | |||
372 | lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (active)" <<llendl; | 352 | lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (active)" <<llendl; |
373 | handled = TRUE; | 353 | handled = TRUE; |
374 | } | 354 | } |
375 | else if( getVisible() ) | 355 | else |
376 | { | 356 | { |
377 | getWindow()->setCursor(UI_CURSOR_ARROW); | 357 | getWindow()->setCursor(UI_CURSOR_ARROW); |
378 | lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (inactive)" << llendl; | 358 | lldebugst(LLERR_USER_INPUT) << "hover handled by " << getName() << " (inactive)" << llendl; |