diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llui/llpanel.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llpanel.cpp | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/linden/indra/llui/llpanel.cpp b/linden/indra/llui/llpanel.cpp index c2c29bb..8d3fba6 100644 --- a/linden/indra/llui/llpanel.cpp +++ b/linden/indra/llui/llpanel.cpp | |||
@@ -183,10 +183,11 @@ void LLPanel::draw() | |||
183 | // draw background | 183 | // draw background |
184 | if( mBgVisible ) | 184 | if( mBgVisible ) |
185 | { | 185 | { |
186 | S32 left = LLPANEL_BORDER_WIDTH; | 186 | //RN: I don't see the point of this |
187 | S32 top = mRect.getHeight() - LLPANEL_BORDER_WIDTH; | 187 | S32 left = 0;//LLPANEL_BORDER_WIDTH; |
188 | S32 right = mRect.getWidth() - LLPANEL_BORDER_WIDTH; | 188 | S32 top = mRect.getHeight();// - LLPANEL_BORDER_WIDTH; |
189 | S32 bottom = LLPANEL_BORDER_WIDTH; | 189 | S32 right = mRect.getWidth();// - LLPANEL_BORDER_WIDTH; |
190 | S32 bottom = 0;//LLPANEL_BORDER_WIDTH; | ||
190 | 191 | ||
191 | if (mBgOpaque ) | 192 | if (mBgOpaque ) |
192 | { | 193 | { |
@@ -357,16 +358,6 @@ BOOL LLPanel::handleKeyHere( KEY key, MASK mask, BOOL called_from_parent ) | |||
357 | gFocusMgr.childHasKeyboardFocus(this) && !called_from_parent ) | 358 | gFocusMgr.childHasKeyboardFocus(this) && !called_from_parent ) |
358 | { | 359 | { |
359 | LLUICtrl* cur_focus = gFocusMgr.getKeyboardFocus(); | 360 | LLUICtrl* cur_focus = gFocusMgr.getKeyboardFocus(); |
360 | if (key == KEY_RETURN && mask == MASK_NONE) | ||
361 | { | ||
362 | // set keyboard focus to self to trigger commitOnFocusLost behavior on current ctrl | ||
363 | if (cur_focus && cur_focus->acceptsTextInput()) | ||
364 | { | ||
365 | cur_focus->onCommit(); | ||
366 | handled = TRUE; | ||
367 | } | ||
368 | } | ||
369 | |||
370 | // If we have a default button, click it when | 361 | // If we have a default button, click it when |
371 | // return is pressed, unless current focus is a return-capturing button | 362 | // return is pressed, unless current focus is a return-capturing button |
372 | // in which case *that* button will handle the return key | 363 | // in which case *that* button will handle the return key |
@@ -382,6 +373,16 @@ BOOL LLPanel::handleKeyHere( KEY key, MASK mask, BOOL called_from_parent ) | |||
382 | handled = TRUE; | 373 | handled = TRUE; |
383 | } | 374 | } |
384 | } | 375 | } |
376 | |||
377 | if (key == KEY_RETURN && mask == MASK_NONE) | ||
378 | { | ||
379 | // set keyboard focus to self to trigger commitOnFocusLost behavior on current ctrl | ||
380 | if (cur_focus && cur_focus->acceptsTextInput()) | ||
381 | { | ||
382 | cur_focus->onCommit(); | ||
383 | handled = TRUE; | ||
384 | } | ||
385 | } | ||
385 | } | 386 | } |
386 | 387 | ||
387 | return handled; | 388 | return handled; |
@@ -478,6 +479,11 @@ void LLPanel::setBackgroundColor(const LLColor4& color) | |||
478 | mBgColorOpaque = color; | 479 | mBgColorOpaque = color; |
479 | } | 480 | } |
480 | 481 | ||
482 | LLColor4 LLPanel::getBackgroundColor() | ||
483 | { | ||
484 | return mBgColorOpaque; | ||
485 | } | ||
486 | |||
481 | void LLPanel::setTransparentColor(const LLColor4& color) | 487 | void LLPanel::setTransparentColor(const LLColor4& color) |
482 | { | 488 | { |
483 | mBgColorAlpha = color; | 489 | mBgColorAlpha = color; |