aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llmenugl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llmenugl.cpp')
-rw-r--r--linden/indra/llui/llmenugl.cpp15
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
373void LLMenuItemGL::setLabel( const LLString& label ) 376void 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
598BOOL LLMenuItemGL::setLabelArg( const LLString& key, const LLString& text ) 601BOOL 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
1678BOOL LLMenuItemBranchDownGL::handleMouseUp( S32 x, S32 y, MASK mask )
1679{
1680 return TRUE;
1681}
1682
1674 1683
1675BOOL LLMenuItemBranchDownGL::handleAcceleratorKey(KEY key, MASK mask) 1684BOOL LLMenuItemBranchDownGL::handleAcceleratorKey(KEY key, MASK mask)
1676{ 1685{