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/llview.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/llview.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/linden/indra/llui/llview.cpp b/linden/indra/llui/llview.cpp index 2a62602..ef91d9c 100644 --- a/linden/indra/llui/llview.cpp +++ b/linden/indra/llui/llview.cpp | |||
@@ -3,6 +3,8 @@ | |||
3 | * @author James Cook | 3 | * @author James Cook |
4 | * @brief Container for other views, anything that draws. | 4 | * @brief Container for other views, anything that draws. |
5 | * | 5 | * |
6 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
7 | * | ||
6 | * Copyright (c) 2001-2007, Linden Research, Inc. | 8 | * Copyright (c) 2001-2007, Linden Research, Inc. |
7 | * | 9 | * |
8 | * Second Life Viewer Source Code | 10 | * Second Life Viewer Source Code |
@@ -25,29 +27,28 @@ | |||
25 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
26 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
27 | * COMPLETENESS OR PERFORMANCE. | 29 | * COMPLETENESS OR PERFORMANCE. |
30 | * $/LicenseInfo$ | ||
28 | */ | 31 | */ |
29 | 32 | ||
30 | #include "linden_common.h" | 33 | #include "linden_common.h" |
31 | 34 | ||
32 | #include "llview.h" | 35 | #include "llview.h" |
33 | 36 | ||
34 | #include "llstring.h" | 37 | #include <cassert> |
35 | #include "llrect.h" | 38 | #include <boost/tokenizer.hpp> |
36 | #include "llgl.h" | 39 | |
37 | #include "llevent.h" | 40 | #include "llevent.h" |
38 | #include "llfontgl.h" | 41 | #include "llfontgl.h" |
39 | #include "llfocusmgr.h" | 42 | #include "llfocusmgr.h" |
43 | #include "llgl.h" | ||
40 | #include "llglheaders.h" | 44 | #include "llglheaders.h" |
41 | #include "llwindow.h" | 45 | #include "llrect.h" |
42 | #include "llstl.h" | 46 | #include "llstl.h" |
43 | #include "lluictrl.h" | ||
44 | #include "llui.h" // colors saved settings | 47 | #include "llui.h" // colors saved settings |
48 | #include "lluictrl.h" | ||
49 | #include "llwindow.h" | ||
45 | #include "v3color.h" | 50 | #include "v3color.h" |
46 | #include "llstl.h" | ||
47 | 51 | ||
48 | #include <boost/tokenizer.hpp> | ||
49 | |||
50 | #include <assert.h> | ||
51 | 52 | ||
52 | BOOL LLView::sDebugRects = FALSE; | 53 | BOOL LLView::sDebugRects = FALSE; |
53 | BOOL LLView::sDebugKeys = FALSE; | 54 | BOOL LLView::sDebugKeys = FALSE; |
@@ -785,7 +786,7 @@ void LLView::setHidden(BOOL hidden) | |||
785 | } | 786 | } |
786 | 787 | ||
787 | // virtual | 788 | // virtual |
788 | BOOL LLView::setLabelArg(const LLString& key, const LLString& text) | 789 | BOOL LLView::setLabelArg(const LLString& key, const LLStringExplicit& text) |
789 | { | 790 | { |
790 | return FALSE; | 791 | return FALSE; |
791 | } | 792 | } |
@@ -1711,7 +1712,8 @@ BOOL LLView::hasChild(const LLString& childname, BOOL recurse) const | |||
1711 | //----------------------------------------------------------------------------- | 1712 | //----------------------------------------------------------------------------- |
1712 | LLView* LLView::getChildByName(const LLString& name, BOOL recurse) const | 1713 | LLView* LLView::getChildByName(const LLString& name, BOOL recurse) const |
1713 | { | 1714 | { |
1714 | if(name.empty()) return NULL; | 1715 | if(name.empty()) |
1716 | return NULL; | ||
1715 | child_list_const_iter_t child_it; | 1717 | child_list_const_iter_t child_it; |
1716 | // Look for direct children *first* | 1718 | // Look for direct children *first* |
1717 | for ( child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it) | 1719 | for ( child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it) |
@@ -1724,7 +1726,7 @@ LLView* LLView::getChildByName(const LLString& name, BOOL recurse) const | |||
1724 | } | 1726 | } |
1725 | if (recurse) | 1727 | if (recurse) |
1726 | { | 1728 | { |
1727 | // Look inside the child as well. | 1729 | // Look inside each child as well. |
1728 | for ( child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it) | 1730 | for ( child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it) |
1729 | { | 1731 | { |
1730 | LLView* childp = *child_it; | 1732 | LLView* childp = *child_it; |