aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llcombobox.cpp')
-rw-r--r--linden/indra/llui/llcombobox.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/linden/indra/llui/llcombobox.cpp b/linden/indra/llui/llcombobox.cpp
index b71d88f..5f76cfc 100644
--- a/linden/indra/llui/llcombobox.cpp
+++ b/linden/indra/llui/llcombobox.cpp
@@ -2,6 +2,8 @@
2 * @file llcombobox.cpp 2 * @file llcombobox.cpp
3 * @brief LLComboBox base class 3 * @brief LLComboBox 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// A control that displays the name of the chosen item, which when 32// A control that displays the name of the chosen item, which when
@@ -226,12 +229,12 @@ void LLComboBox::clear()
226{ 229{
227 if (mTextEntry) 230 if (mTextEntry)
228 { 231 {
229 mTextEntry->setText(""); 232 mTextEntry->setText(LLString::null);
230 } 233 }
231 mButton->setLabelSelected(""); 234 mButton->setLabelSelected(LLString::null);
232 mButton->setLabelUnselected(""); 235 mButton->setLabelUnselected(LLString::null);
233 mButton->setDisabledLabel(""); 236 mButton->setDisabledLabel(LLString::null);
234 mButton->setDisabledSelectedLabel(""); 237 mButton->setDisabledSelectedLabel(LLString::null);
235 mList->deselectAllItems(); 238 mList->deselectAllItems();
236} 239}
237 240
@@ -306,7 +309,7 @@ void LLComboBox::sortByName()
306 309
307// Choose an item with a given name in the menu. 310// Choose an item with a given name in the menu.
308// Returns TRUE if the item was found. 311// Returns TRUE if the item was found.
309BOOL LLComboBox::setSimple(const LLString& name) 312BOOL LLComboBox::setSimple(const LLStringExplicit& name)
310{ 313{
311 BOOL found = mList->selectSimpleItem(name, FALSE); 314 BOOL found = mList->selectSimpleItem(name, FALSE);
312 315
@@ -368,7 +371,7 @@ LLSD LLComboBox::getValue() const
368 } 371 }
369} 372}
370 373
371void LLComboBox::setLabel(const LLString& name) 374void LLComboBox::setLabel(const LLStringExplicit& name)
372{ 375{
373 if ( mAllowTextEntry ) 376 if ( mAllowTextEntry )
374 { 377 {
@@ -800,7 +803,7 @@ void LLComboBox::setAllowTextEntry(BOOL allow, S32 max_chars, BOOL set_tentative
800 803
801 // clear label on button 804 // clear label on button
802 LLString cur_label = mButton->getLabelSelected(); 805 LLString cur_label = mButton->getLabelSelected();
803 setLabel(""); 806 setLabel(LLString::null);
804 if (!mTextEntry) 807 if (!mTextEntry)
805 { 808 {
806 LLRect text_entry_rect(0, mRect.getHeight(), mRect.getWidth(), 0); 809 LLRect text_entry_rect(0, mRect.getHeight(), mRect.getWidth(), 0);
@@ -849,7 +852,7 @@ void LLComboBox::setAllowTextEntry(BOOL allow, S32 max_chars, BOOL set_tentative
849 mTextEntryTentative = set_tentative; 852 mTextEntryTentative = set_tentative;
850} 853}
851 854
852void LLComboBox::setTextEntry(const LLString& text) 855void LLComboBox::setTextEntry(const LLStringExplicit& text)
853{ 856{
854 if (mTextEntry) 857 if (mTextEntry)
855 { 858 {