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/lltexteditor.h | |
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 'linden/indra/llui/lltexteditor.h')
-rw-r--r-- | linden/indra/llui/lltexteditor.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/linden/indra/llui/lltexteditor.h b/linden/indra/llui/lltexteditor.h index 4bcfcfc..55aba57 100644 --- a/linden/indra/llui/lltexteditor.h +++ b/linden/indra/llui/lltexteditor.h | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file lltexteditor.h | 2 | * @file lltexteditor.h |
3 | * @brief LLTextEditor base class | 3 | * @brief LLTextEditor 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 a a multi-line ASCII document// | 32 | // Text editor widget to let users enter a a multi-line ASCII document// |
@@ -214,9 +217,10 @@ public: | |||
214 | 217 | ||
215 | // Callbacks | 218 | // Callbacks |
216 | static void setLinkColor(LLColor4 color) { mLinkColor = color; } | 219 | static void setLinkColor(LLColor4 color) { mLinkColor = color; } |
217 | static void setURLCallbacks( void (*callback1) (const char* url), | 220 | static void setURLCallbacks(void (*callback1) (const char* url), |
218 | BOOL (*callback2) (LLString url) ) | 221 | bool (*callback2) (const std::string& url), |
219 | { mURLcallback = callback1; mSecondlifeURLcallback = callback2;} | 222 | bool (*callback3) (const std::string& url) ) |
223 | { mURLcallback = callback1; mSecondlifeURLcallback = callback2; mSecondlifeURLcallbackRightClick = callback3;} | ||
220 | 224 | ||
221 | void setOnScrollEndCallback(void (*callback)(void*), void* userdata); | 225 | void setOnScrollEndCallback(void (*callback)(void*), void* userdata); |
222 | 226 | ||
@@ -227,7 +231,7 @@ public: | |||
227 | const LLString& getText() const; | 231 | const LLString& getText() const; |
228 | 232 | ||
229 | // Non-undoable | 233 | // Non-undoable |
230 | void setText(const LLString &utf8str); | 234 | void setText(const LLStringExplicit &utf8str); |
231 | void setWText(const LLWString &wtext); | 235 | void setWText(const LLWString &wtext); |
232 | 236 | ||
233 | S32 getMaxLength() const { return mMaxTextLength; } | 237 | S32 getMaxLength() const { return mMaxTextLength; } |
@@ -338,7 +342,8 @@ public: | |||
338 | LLKeywords mKeywords; | 342 | LLKeywords mKeywords; |
339 | static LLColor4 mLinkColor; | 343 | static LLColor4 mLinkColor; |
340 | static void (*mURLcallback) (const char* url); | 344 | static void (*mURLcallback) (const char* url); |
341 | static BOOL (*mSecondlifeURLcallback) (LLString url); | 345 | static bool (*mSecondlifeURLcallback) (const std::string& url); |
346 | static bool (*mSecondlifeURLcallbackRightClick) (const std::string& url); | ||
342 | protected: | 347 | protected: |
343 | LLWString mWText; | 348 | LLWString mWText; |
344 | mutable LLString mUTF8Text; | 349 | mutable LLString mUTF8Text; |
@@ -434,6 +439,8 @@ protected: | |||
434 | 439 | ||
435 | BOOL mParseHTML; | 440 | BOOL mParseHTML; |
436 | LLString mHTML; | 441 | LLString mHTML; |
442 | |||
443 | LLCoordGL mLastIMEPosition; // Last position of the IME editor | ||
437 | }; | 444 | }; |
438 | 445 | ||
439 | class LLTextSegment | 446 | class LLTextSegment |