summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.h
diff options
context:
space:
mode:
authorPaul ProductEngine <pguslisty@productengine.com>2011-05-16 17:59:05 +0300
committerPaul ProductEngine <pguslisty@productengine.com>2011-05-16 17:59:05 +0300
commit5daeefd35e1e105f403f99184ad866e8823767d4 (patch)
tree0aea0d8854469b9ac6b5cdb536fbd419649bf516 /indra/llui/lllineeditor.h
parent683c9ff3f8e662c1906e5ee6319f7d46513bca81 (diff)
STORM-1202 Code cleanup for LLLineEditor
- Removed code duplication - Renamed prevalidateInputText to prevalidateInput
Diffstat (limited to 'indra/llui/lllineeditor.h')
-rw-r--r--indra/llui/lllineeditor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llui/lllineeditor.h b/indra/llui/lllineeditor.h
index 1e29fd0dbf..1588f59b46 100644
--- a/indra/llui/lllineeditor.h
+++ b/indra/llui/lllineeditor.h
@@ -232,9 +232,15 @@ public:
// Prevalidation controls which keystrokes can affect the editor
void setPrevalidate( LLTextValidate::validate_func_t func );
- void setPrevalidateInputText( LLTextValidate::validate_func_t func );
+ // This method sets callback that prevents from:
+ // - deleting, selecting, typing, cutting, pasting characters that are not valid.
+ // Also callback that this method sets differs from setPrevalidate in a way that it validates just inputed
+ // symbols, before existing text is modified, but setPrevalidate validates line after it was modified.
+ void setPrevalidateInput(LLTextValidate::validate_func_t func);
static BOOL postvalidateFloat(const std::string &str);
+ bool prevalidateInput(const LLWString& wstr);
+
// line history support:
void setEnableLineHistory( BOOL enabled ) { mHaveHistory = enabled; } // switches line history on or off
void updateHistory(); // stores current line in history