aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llpanel.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/llui/llpanel.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-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/llpanel.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/llui/llpanel.cpp b/linden/indra/llui/llpanel.cpp
index 91a327b..3a0ee9b 100644
--- a/linden/indra/llui/llpanel.cpp
+++ b/linden/indra/llui/llpanel.cpp
@@ -2,6 +2,8 @@
2 * @file llpanel.cpp 2 * @file llpanel.cpp
3 * @brief LLPanel base class 3 * @brief LLPanel 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// Opaque view with a background and a border. Can contain LLUICtrls. 32// Opaque view with a background and a border. Can contain LLUICtrls.
@@ -959,7 +962,7 @@ LLSD LLPanel::childGetValue(const LLString& id) const
959 return LLSD(); 962 return LLSD();
960} 963}
961 964
962BOOL LLPanel::childSetTextArg(const LLString& id, const LLString& key, const LLString& text) 965BOOL LLPanel::childSetTextArg(const LLString& id, const LLString& key, const LLStringExplicit& text)
963{ 966{
964 LLUICtrl* child = (LLUICtrl*)getChildByName(id, true); 967 LLUICtrl* child = (LLUICtrl*)getChildByName(id, true);
965 if (child) 968 if (child)
@@ -969,7 +972,7 @@ BOOL LLPanel::childSetTextArg(const LLString& id, const LLString& key, const LLS
969 return FALSE; 972 return FALSE;
970} 973}
971 974
972BOOL LLPanel::childSetLabelArg(const LLString& id, const LLString& key, const LLString& text) 975BOOL LLPanel::childSetLabelArg(const LLString& id, const LLString& key, const LLStringExplicit& text)
973{ 976{
974 LLView* child = getChildByName(id, true); 977 LLView* child = getChildByName(id, true);
975 if (child) 978 if (child)
@@ -1030,7 +1033,7 @@ void LLPanel::childSetTabChangeCallback(const LLString& id, const LLString& tabn
1030 } 1033 }
1031} 1034}
1032 1035
1033void LLPanel::childSetText(const LLString& id, const LLString& text) 1036void LLPanel::childSetText(const LLString& id, const LLStringExplicit& text)
1034{ 1037{
1035 childSetValue(id, LLSD(text)); 1038 childSetValue(id, LLSD(text));
1036} 1039}
@@ -1103,7 +1106,7 @@ void LLPanel::childSetControlName(const LLString& id, const LLString& control_na
1103LLView* LLPanel::getChildByName(const LLString& name, BOOL recurse) const 1106LLView* LLPanel::getChildByName(const LLString& name, BOOL recurse) const
1104{ 1107{
1105 LLView* view = LLUICtrl::getChildByName(name, recurse); 1108 LLView* view = LLUICtrl::getChildByName(name, recurse);
1106 if (!view) 1109 if (!view && !recurse)
1107 { 1110 {
1108 childNotFound(name); 1111 childNotFound(name);
1109 } 1112 }
@@ -1293,9 +1296,9 @@ LLView* LLLayoutStack::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactor
1293 child->getAttributeBOOL("auto_resize", auto_resize); 1296 child->getAttributeBOOL("auto_resize", auto_resize);
1294 1297
1295 LLPanel* panelp = (LLPanel*)LLPanel::fromXML(child, layout_stackp, factory); 1298 LLPanel* panelp = (LLPanel*)LLPanel::fromXML(child, layout_stackp, factory);
1296 panelp->setFollowsNone();
1297 if (panelp) 1299 if (panelp)
1298 { 1300 {
1301 panelp->setFollowsNone();
1299 layout_stackp->addPanel(panelp, min_width, min_height, auto_resize); 1302 layout_stackp->addPanel(panelp, min_width, min_height, auto_resize);
1300 } 1303 }
1301 } 1304 }