aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewchildren.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llviewchildren.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llviewchildren.cpp')
-rw-r--r--linden/indra/newview/llviewchildren.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewchildren.cpp b/linden/indra/newview/llviewchildren.cpp
index b19a336..f96915b 100644
--- a/linden/indra/newview/llviewchildren.cpp
+++ b/linden/indra/newview/llviewchildren.cpp
@@ -52,18 +52,18 @@ LLViewChildren::LLViewChildren(LLPanel& parent)
52} 52}
53 53
54 54
55void LLViewChildren::show(const char* id, bool visible) 55void LLViewChildren::show(const std::string& id, bool visible)
56{ 56{
57 mParent.childSetVisible(id, visible); 57 mParent.childSetVisible(id, visible);
58} 58}
59 59
60void LLViewChildren::enable(const char* id, bool enabled) 60void LLViewChildren::enable(const std::string& id, bool enabled)
61{ 61{
62 mParent.childSetEnabled(id, enabled); 62 mParent.childSetEnabled(id, enabled);
63} 63}
64 64
65void LLViewChildren::setText( 65void LLViewChildren::setText(
66 const char* id, const std::string& text, bool visible) 66 const std::string& id, const std::string& text, bool visible)
67{ 67{
68 LLTextBox* child = mParent.getChild<LLTextBox>(id); 68 LLTextBox* child = mParent.getChild<LLTextBox>(id);
69 if (child) 69 if (child)
@@ -74,7 +74,7 @@ void LLViewChildren::setText(
74} 74}
75 75
76void LLViewChildren::setWrappedText( 76void LLViewChildren::setWrappedText(
77 const char* id, const std::string& text, bool visible) 77 const std::string& id, const std::string& text, bool visible)
78{ 78{
79 LLTextBox* child = mParent.getChild<LLTextBox>(id); 79 LLTextBox* child = mParent.getChild<LLTextBox>(id);
80 if (child) 80 if (child)
@@ -84,7 +84,7 @@ void LLViewChildren::setWrappedText(
84 } 84 }
85} 85}
86 86
87void LLViewChildren::setBadge(const char* id, Badge badge, bool visible) 87void LLViewChildren::setBadge(const std::string& id, Badge badge, bool visible)
88{ 88{
89 LLIconCtrl* child = mParent.getChild<LLIconCtrl>(id); 89 LLIconCtrl* child = mParent.getChild<LLIconCtrl>(id);
90 if (child) 90 if (child)
@@ -93,15 +93,15 @@ void LLViewChildren::setBadge(const char* id, Badge badge, bool visible)
93 switch (badge) 93 switch (badge)
94 { 94 {
95 default: 95 default:
96 case BADGE_OK: child->setImage("badge_ok.j2c"); break; 96 case BADGE_OK: child->setImage(std::string("badge_ok.j2c")); break;
97 case BADGE_NOTE: child->setImage("badge_note.j2c"); break; 97 case BADGE_NOTE: child->setImage(std::string("badge_note.j2c")); break;
98 case BADGE_WARN: child->setImage("badge_warn.j2c"); break; 98 case BADGE_WARN: child->setImage(std::string("badge_warn.j2c")); break;
99 case BADGE_ERROR: child->setImage("badge_error.j2c"); break; 99 case BADGE_ERROR: child->setImage(std::string("badge_error.j2c")); break;
100 } 100 }
101 } 101 }
102} 102}
103 103
104void LLViewChildren::setAction(const char* id, 104void LLViewChildren::setAction(const std::string& id,
105 void(*function)(void*), void* value) 105 void(*function)(void*), void* value)
106{ 106{
107 LLButton* button = mParent.getChild<LLButton>(id); 107 LLButton* button = mParent.getChild<LLButton>(id);