diff options
author | Kelly Washington <kelly@lindenlab.com> | 2007-05-30 17:39:09 +0000 |
---|---|---|
committer | Kelly Washington <kelly@lindenlab.com> | 2007-05-30 17:39:09 +0000 |
commit | 3e9872a297c3cf3f929e688e0e89a78f6bc050f5 (patch) | |
tree | ab3877f764cc27dbdca0b683f07e6ea3a3ac8a23 /indra/llui/lllineeditor.h | |
parent | 7b61f1d0ec30e97fd3b7c5caf4b0e675c6e9a1f5 (diff) |
merge -r61423:62602 svn/branches/maintenance --> release
Diffstat (limited to 'indra/llui/lllineeditor.h')
-rw-r--r-- | indra/llui/lllineeditor.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.h b/indra/llui/lllineeditor.h index 27ae351d1f..b3eff3c8e2 100644 --- a/indra/llui/lllineeditor.h +++ b/indra/llui/lllineeditor.h @@ -16,6 +16,7 @@ // Clipboard (cut, copy, and paste) // Horizontal scrolling to allow strings longer than widget size allows // Pre-validation (limit which keys can be used) +// Optional line history so previous entries can be recalled by CTRL UP/DOWN #ifndef LL_LLLINEEDITOR_H @@ -186,6 +187,10 @@ public: static BOOL postvalidateFloat(const LLString &str); + // line history support: + void setEnableLineHistory( BOOL enabled ); // switches line history on or off + void updateHistory(); // stores current line in history + protected: void removeChar(); void addChar(const llwchar c); @@ -204,6 +209,11 @@ protected: LLString mPrevText; // Saved string for 'ESC' revert LLUIString mLabel; // text label that is visible when no user text provided + // line history support: + BOOL mHaveHistory; // flag for enabled line history + std::vector<LLString> mLineHistory; // line history storage + U32 mCurrentHistoryLine; // currently browsed history line + LLViewBorder* mBorder; const LLFontGL* mGLFont; S32 mMaxLengthChars; // Max number of characters |