diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/llui/llmenugl.cpp | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llmenugl.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/linden/indra/llui/llmenugl.cpp b/linden/indra/llui/llmenugl.cpp index b0d2d9f..5d2a052 100644 --- a/linden/indra/llui/llmenugl.cpp +++ b/linden/indra/llui/llmenugl.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llmenugl.cpp | 2 | * @file llmenugl.cpp |
3 | * @brief LLMenuItemGL base class | 3 | * @brief LLMenuItemGL base class |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 7 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | //***************************************************************************** | 32 | //***************************************************************************** |
@@ -370,7 +373,7 @@ void LLMenuItemGL::setHighlightFGColor( const LLColor4& color ) | |||
370 | 373 | ||
371 | 374 | ||
372 | // change the label | 375 | // change the label |
373 | void LLMenuItemGL::setLabel( const LLString& label ) | 376 | void LLMenuItemGL::setLabel( const LLStringExplicit& label ) |
374 | { | 377 | { |
375 | mLabel = label; | 378 | mLabel = label; |
376 | } | 379 | } |
@@ -595,7 +598,7 @@ void LLMenuItemGL::draw( void ) | |||
595 | mGotHover = FALSE; | 598 | mGotHover = FALSE; |
596 | } | 599 | } |
597 | 600 | ||
598 | BOOL LLMenuItemGL::setLabelArg( const LLString& key, const LLString& text ) | 601 | BOOL LLMenuItemGL::setLabelArg( const LLString& key, const LLStringExplicit& text ) |
599 | { | 602 | { |
600 | mLabel.setArg(key, text); | 603 | mLabel.setArg(key, text); |
601 | return TRUE; | 604 | return TRUE; |
@@ -1236,6 +1239,7 @@ BOOL LLMenuItemBranchGL::handleMouseUp(S32 x, S32 y, MASK mask) | |||
1236 | 1239 | ||
1237 | doIt(); | 1240 | doIt(); |
1238 | make_ui_sound("UISndClickRelease"); | 1241 | make_ui_sound("UISndClickRelease"); |
1242 | return TRUE; | ||
1239 | } | 1243 | } |
1240 | return FALSE; | 1244 | return FALSE; |
1241 | } | 1245 | } |
@@ -1547,7 +1551,7 @@ public: | |||
1547 | 1551 | ||
1548 | // LLView functionality | 1552 | // LLView functionality |
1549 | virtual BOOL handleMouseDown( S32 x, S32 y, MASK mask ); | 1553 | virtual BOOL handleMouseDown( S32 x, S32 y, MASK mask ); |
1550 | virtual BOOL handleMouseUp( S32 x, S32 y, MASK mask ) {return FALSE; } | 1554 | virtual BOOL handleMouseUp( S32 x, S32 y, MASK mask ); |
1551 | virtual void draw( void ); | 1555 | virtual void draw( void ); |
1552 | virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); | 1556 | virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); |
1553 | 1557 | ||
@@ -1671,6 +1675,11 @@ BOOL LLMenuItemBranchDownGL::handleMouseDown( S32 x, S32 y, MASK mask ) | |||
1671 | return TRUE; | 1675 | return TRUE; |
1672 | } | 1676 | } |
1673 | 1677 | ||
1678 | BOOL LLMenuItemBranchDownGL::handleMouseUp( S32 x, S32 y, MASK mask ) | ||
1679 | { | ||
1680 | return TRUE; | ||
1681 | } | ||
1682 | |||
1674 | 1683 | ||
1675 | BOOL LLMenuItemBranchDownGL::handleAcceleratorKey(KEY key, MASK mask) | 1684 | BOOL LLMenuItemBranchDownGL::handleAcceleratorKey(KEY key, MASK mask) |
1676 | { | 1685 | { |