aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lltextbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/lltextbox.h')
-rw-r--r--linden/indra/llui/lltextbox.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/llui/lltextbox.h b/linden/indra/llui/lltextbox.h
index ffe6f4c..c2211fb 100644
--- a/linden/indra/llui/lltextbox.h
+++ b/linden/indra/llui/lltextbox.h
@@ -45,16 +45,16 @@ public:
45 // By default, follows top and left and is mouse-opaque. 45 // By default, follows top and left and is mouse-opaque.
46 // If no text, text = name. 46 // If no text, text = name.
47 // If no font, uses default system font. 47 // If no font, uses default system font.
48 LLTextBox(const LLString& name, const LLRect& rect, const LLString& text, 48 LLTextBox(const std::string& name, const LLRect& rect, const std::string& text,
49 const LLFontGL* font = NULL, BOOL mouse_opaque = TRUE ); 49 const LLFontGL* font = NULL, BOOL mouse_opaque = TRUE );
50 50
51 // Construct a textbox which handles word wrapping for us. 51 // Construct a textbox which handles word wrapping for us.
52 LLTextBox(const LLString& name, const LLString& text, F32 max_width = 200, 52 LLTextBox(const std::string& name, const std::string& text, F32 max_width = 200,
53 const LLFontGL* font = NULL, BOOL mouse_opaque = TRUE ); 53 const LLFontGL* font = NULL, BOOL mouse_opaque = TRUE );
54 54
55 // "Simple" constructors for text boxes that have the same name and label *TO BE DEPRECATED* 55 // "Simple" constructors for text boxes that have the same name and label *TO BE DEPRECATED*
56 LLTextBox(const LLString& name_and_label, const LLRect& rect); 56 LLTextBox(const std::string& name_and_label, const LLRect& rect);
57 LLTextBox(const LLString& name_and_label); 57 LLTextBox(const std::string& name_and_label);
58 58
59 virtual ~LLTextBox() {} 59 virtual ~LLTextBox() {}
60 60
@@ -95,13 +95,13 @@ public:
95 95
96 void reshapeToFitText(); 96 void reshapeToFitText();
97 97
98 const LLString& getText() const { return mText.getString(); } 98 const std::string& getText() const { return mText.getString(); }
99 S32 getTextPixelWidth(); 99 S32 getTextPixelWidth();
100 S32 getTextPixelHeight(); 100 S32 getTextPixelHeight();
101 101
102 virtual void setValue(const LLSD& value ) { setText(value.asString()); } 102 virtual void setValue(const LLSD& value ) { setText(value.asString()); }
103 virtual LLSD getValue() const { return LLSD(getText()); } 103 virtual LLSD getValue() const { return LLSD(getText()); }
104 virtual BOOL setTextArg( const LLString& key, const LLStringExplicit& text ); 104 virtual BOOL setTextArg( const std::string& key, const LLStringExplicit& text );
105 105
106private: 106private:
107 void setLineLengths(); 107 void setLineLengths();