diff options
Diffstat (limited to 'linden/indra/llui/lllineeditor.h')
-rw-r--r-- | linden/indra/llui/lllineeditor.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linden/indra/llui/lllineeditor.h b/linden/indra/llui/lllineeditor.h index 427860d..65c75ab 100644 --- a/linden/indra/llui/lllineeditor.h +++ b/linden/indra/llui/lllineeditor.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -70,7 +71,7 @@ public: | |||
70 | S32 max_length_bytes = 254, | 71 | S32 max_length_bytes = 254, |
71 | void (*commit_callback)(LLUICtrl* caller, void* user_data) = NULL, | 72 | void (*commit_callback)(LLUICtrl* caller, void* user_data) = NULL, |
72 | void (*keystroke_callback)(LLLineEditor* caller, void* user_data) = NULL, | 73 | void (*keystroke_callback)(LLLineEditor* caller, void* user_data) = NULL, |
73 | void (*focus_lost_callback)(LLLineEditor* caller, void* user_data) = NULL, | 74 | void (*focus_lost_callback)(LLUICtrl* caller, void* user_data) = NULL, |
74 | void* userdata = NULL, | 75 | void* userdata = NULL, |
75 | LLLinePrevalidateFunc prevalidate_func = NULL, | 76 | LLLinePrevalidateFunc prevalidate_func = NULL, |
76 | LLViewBorder::EBevel border_bevel = LLViewBorder::BEVEL_IN, | 77 | LLViewBorder::EBevel border_bevel = LLViewBorder::BEVEL_IN, |
@@ -91,6 +92,7 @@ public: | |||
91 | /*virtual*/ BOOL handleDoubleClick(S32 x,S32 y,MASK mask); | 92 | /*virtual*/ BOOL handleDoubleClick(S32 x,S32 y,MASK mask); |
92 | /*virtual*/ BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent ); | 93 | /*virtual*/ BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent ); |
93 | /*virtual*/ BOOL handleUnicodeCharHere(llwchar uni_char, BOOL called_from_parent); | 94 | /*virtual*/ BOOL handleUnicodeCharHere(llwchar uni_char, BOOL called_from_parent); |
95 | /*virtual*/ void onMouseCaptureLost(); | ||
94 | 96 | ||
95 | // LLEditMenuHandler overrides | 97 | // LLEditMenuHandler overrides |
96 | virtual void cut(); | 98 | virtual void cut(); |
@@ -185,7 +187,6 @@ public: | |||
185 | void setSelectAllonFocusReceived(BOOL b); | 187 | void setSelectAllonFocusReceived(BOOL b); |
186 | 188 | ||
187 | void setKeystrokeCallback(void (*keystroke_callback)(LLLineEditor* caller, void* user_data)); | 189 | void setKeystrokeCallback(void (*keystroke_callback)(LLLineEditor* caller, void* user_data)); |
188 | void setFocusLostCallback(void (*keystroke_callback)(LLLineEditor* caller, void* user_data)); | ||
189 | 190 | ||
190 | void setMaxTextLength(S32 max_text_length); | 191 | void setMaxTextLength(S32 max_text_length); |
191 | void setBorderWidth(S32 left, S32 right); | 192 | void setBorderWidth(S32 left, S32 right); |
@@ -205,8 +206,6 @@ public: | |||
205 | 206 | ||
206 | static BOOL postvalidateFloat(const LLString &str); | 207 | static BOOL postvalidateFloat(const LLString &str); |
207 | 208 | ||
208 | static void onMouseCaptureLost( LLMouseHandler* old_captor ); | ||
209 | |||
210 | protected: | 209 | protected: |
211 | void removeChar(); | 210 | void removeChar(); |
212 | void addChar(const llwchar c); | 211 | void addChar(const llwchar c); |
@@ -241,7 +240,6 @@ protected: | |||
241 | BOOL mRevertOnEsc; | 240 | BOOL mRevertOnEsc; |
242 | 241 | ||
243 | void (*mKeystrokeCallback)( LLLineEditor* caller, void* userdata ); | 242 | void (*mKeystrokeCallback)( LLLineEditor* caller, void* userdata ); |
244 | void (*mFocusLostCallback)( LLLineEditor* caller, void* userdata ); | ||
245 | 243 | ||
246 | BOOL mIsSelecting; // Selection for clipboard operations | 244 | BOOL mIsSelecting; // Selection for clipboard operations |
247 | S32 mSelectionStart; | 245 | S32 mSelectionStart; |