aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lllineeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/lllineeditor.h')
-rw-r--r--linden/indra/llui/lllineeditor.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/llui/lllineeditor.h b/linden/indra/llui/lllineeditor.h
index 65c75ab..e715737 100644
--- a/linden/indra/llui/lllineeditor.h
+++ b/linden/indra/llui/lllineeditor.h
@@ -36,6 +36,7 @@
36// Clipboard (cut, copy, and paste) 36// Clipboard (cut, copy, and paste)
37// Horizontal scrolling to allow strings longer than widget size allows 37// Horizontal scrolling to allow strings longer than widget size allows
38// Pre-validation (limit which keys can be used) 38// Pre-validation (limit which keys can be used)
39// Optional line history so previous entries can be recalled by CTRL UP/DOWN
39 40
40 41
41#ifndef LL_LLLINEEDITOR_H 42#ifndef LL_LLLINEEDITOR_H
@@ -206,6 +207,10 @@ public:
206 207
207 static BOOL postvalidateFloat(const LLString &str); 208 static BOOL postvalidateFloat(const LLString &str);
208 209
210 // line history support:
211 void setEnableLineHistory( BOOL enabled ); // switches line history on or off
212 void updateHistory(); // stores current line in history
213
209protected: 214protected:
210 void removeChar(); 215 void removeChar();
211 void addChar(const llwchar c); 216 void addChar(const llwchar c);
@@ -224,6 +229,11 @@ protected:
224 LLString mPrevText; // Saved string for 'ESC' revert 229 LLString mPrevText; // Saved string for 'ESC' revert
225 LLUIString mLabel; // text label that is visible when no user text provided 230 LLUIString mLabel; // text label that is visible when no user text provided
226 231
232 // line history support:
233 BOOL mHaveHistory; // flag for enabled line history
234 std::vector<LLString> mLineHistory; // line history storage
235 U32 mCurrentHistoryLine; // currently browsed history line
236
227 LLViewBorder* mBorder; 237 LLViewBorder* mBorder;
228 const LLFontGL* mGLFont; 238 const LLFontGL* mGLFont;
229 S32 mMaxLengthChars; // Max number of characters 239 S32 mMaxLengthChars; // Max number of characters