diff options
author | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
commit | 089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch) | |
tree | 0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/llui/lllineeditor.h | |
parent | Second Life viewer sources 1.16.0.5 (diff) | |
download | meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2 meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz |
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/llui/lllineeditor.h')
-rw-r--r-- | linden/indra/llui/lllineeditor.h | 10 |
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 | |||
209 | protected: | 214 | protected: |
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 |