aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lllineeditor.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/lllineeditor.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/linden/indra/llui/lllineeditor.h b/linden/indra/llui/lllineeditor.h
index 04c53b4..2cd2ebf 100644
--- a/linden/indra/llui/lllineeditor.h
+++ b/linden/indra/llui/lllineeditor.h
@@ -2,6 +2,8 @@
2 * @file lllineeditor.h 2 * @file lllineeditor.h
3 * @brief LLLineEditor base class 3 * @brief LLLineEditor 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// Text editor widget to let users enter/edit a single line. 32// Text editor widget to let users enter/edit a single line.
@@ -133,11 +136,11 @@ public:
133 // assumes UTF8 text 136 // assumes UTF8 text
134 virtual void setValue(const LLSD& value ); 137 virtual void setValue(const LLSD& value );
135 virtual LLSD getValue() const; 138 virtual LLSD getValue() const;
136 virtual BOOL setTextArg( const LLString& key, const LLString& text ); 139 virtual BOOL setTextArg( const LLString& key, const LLStringExplicit& text );
137 virtual BOOL setLabelArg( const LLString& key, const LLString& text ); 140 virtual BOOL setLabelArg( const LLString& key, const LLStringExplicit& text );
138 141
139 void setLabel(const LLString &new_label); 142 void setLabel(const LLStringExplicit &new_label);
140 void setText(const LLString &new_text); 143 void setText(const LLStringExplicit &new_text);
141 144
142 const LLString& getText() const { return mText.getString(); } 145 const LLString& getText() const { return mText.getString(); }
143 const LLWString& getWText() const { return mText.getWString(); } 146 const LLWString& getWText() const { return mText.getWString(); }
@@ -276,6 +279,8 @@ protected:
276 279
277 S32 mBorderThickness; 280 S32 mBorderThickness;
278 281
282 LLCoordGL mLastIMEPosition; // Last screen position used for the IME editor
283
279 BOOL mIgnoreArrowKeys; 284 BOOL mIgnoreArrowKeys;
280 BOOL mIgnoreTab; 285 BOOL mIgnoreTab;
281 BOOL mDrawAsterixes; 286 BOOL mDrawAsterixes;
@@ -307,15 +312,15 @@ public:
307 virtual LLString getWidgetTag() const; 312 virtual LLString getWidgetTag() const;
308 static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory); 313 static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory);
309 314
310 void setText(const LLString &new_text); 315 void setText(const LLStringExplicit &new_text);
311 316
312 void setSearchCallback(void (*search_callback)(const LLString& search_string, void* user_data), void* data) { mSearchCallback = search_callback; mCallbackUserData = data; } 317 void setSearchCallback(void (*search_callback)(const LLString& search_string, void* user_data), void* data) { mSearchCallback = search_callback; mCallbackUserData = data; }
313 318
314 // LLUICtrl interface 319 // LLUICtrl interface
315 virtual void setValue(const LLSD& value ); 320 virtual void setValue(const LLSD& value );
316 virtual LLSD getValue() const; 321 virtual LLSD getValue() const;
317 virtual BOOL setTextArg( const LLString& key, const LLString& text ); 322 virtual BOOL setTextArg( const LLString& key, const LLStringExplicit& text );
318 virtual BOOL setLabelArg( const LLString& key, const LLString& text ); 323 virtual BOOL setLabelArg( const LLString& key, const LLStringExplicit& text );
319 virtual void clear(); 324 virtual void clear();
320 325
321 326