give better names to wxTextValidator::IsInCharIncludes and to wxTextValidator::IsNotInCharExcludes; add wxFILTER_SIMPLE_NUMBER style; remove specialized global helpers used by wxTextValidator in favour of wxStringCheck templated calls; better document the wxFILTER_* styles which use ctype standard functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,6 +26,7 @@ enum wxTextValidatorStyle
|
||||
wxFILTER_ASCII,
|
||||
wxFILTER_ALPHA,
|
||||
wxFILTER_ALPHANUMERIC,
|
||||
wxFILTER_SIMPLE_NUMBER,
|
||||
wxFILTER_NUMERIC,
|
||||
wxFILTER_INCLUDE_LIST,
|
||||
wxFILTER_EXCLUDE_LIST,
|
||||
@@ -82,13 +83,13 @@ public:
|
||||
protected:
|
||||
|
||||
// returns true if all characters of the given string are present in m_includes
|
||||
bool IsInCharIncludes(const wxString& val) const;
|
||||
bool ContainsOnlyIncludedCharacters(const wxString& val) const;
|
||||
|
||||
// returns true if all characters of the given string are NOT present in m_excludes
|
||||
bool IsNotInCharExcludes(const wxString& val) const;
|
||||
bool ContainsExcludedCharacters(const wxString& val) const;
|
||||
|
||||
// returns true if the contents of 'val' are valid for the current validation style
|
||||
bool IsValid(const wxString& val, wxString* errormsg) const;
|
||||
virtual bool IsValid(const wxString& val, wxString* errormsg) const;
|
||||
|
||||
protected:
|
||||
wxTextValidatorStyle m_validatorStyle;
|
||||
|
Reference in New Issue
Block a user