|
cxWidgets 1.0
|
Functions | |
| std::string | intOnKeyValidator (void *theInput, void *clearOnSpace) |
| Validator for inputs that should only accept integers. This is. | |
| std::string | floatingPtOnKeyValidator (void *theInput, void *clearOnSpace) |
| Validator for inputs that should only accept floating-point. | |
| bool | isValidFloatingPtNumStr (const std::string &pNumStr) |
| Returns whether or not a string contains a valid floating-point. | |
| bool | isValidWholeNumStr (const std::string &pNumStr) |
| Returns whether or not a string contains a valid whole number. A. | |
| string cxValidators::floatingPtOnKeyValidator | ( | void * | theInput, |
| void * | clearOnSpace | ||
| ) |
Validator for inputs that should only accept floating-point.
numbers. This is meant to be used as an 'onKey' validator (to
validate on each keypress).
| theInput | A pointer to the cxMultiLineInput to validate |
| clearOnSpace | A pointer to a boolean (if non-null and true, will clear the input when the spacebar is pressed). |
References cx::cxWindow::getLastKey(), cx::cxMultiLineInput::getValue(), cx::cxMultiLineInput::refreshValue(), and cx::cxMultiLineInput::setValue().
Referenced by floatingPtValidateOnForm(), and cx::cxMultiLineInput::onKeypress().
| string cxValidators::intOnKeyValidator | ( | void * | theInput, |
| void * | clearOnSpace | ||
| ) |
Validator for inputs that should only accept integers. This is.
meant to be used as an 'onKey' validator (to validate on each
keypress).
| theInput | A pointer to a cxMultiLineInput whose input to validate |
| clearOnSpace | A pointer to a boolean (if non-null and true, will clear the input when the spacebar is pressed). |
References cx::cxWindow::getLastKey(), cx::cxMultiLineInput::getValue(), cx::cxMultiLineInput::refreshValue(), and cx::cxMultiLineInput::setValue().
Referenced by integerValidateOnForm(), and cx::cxMultiLineInput::onKeypress().
| bool cxValidators::isValidFloatingPtNumStr | ( | const std::string & | pNumStr | ) |
Returns whether or not a string contains a valid floating-point.
number. A blank string is considered valid.
| pNumStr | A string to test |
References isValidFloatingPtNumStr().
Referenced by isValidFloatingPtNumStr(), and test_isValidFloatingPtNumStr().
| bool cxValidators::isValidWholeNumStr | ( | const std::string & | pNumStr | ) |
Returns whether or not a string contains a valid whole number. A.
blank string is considered valid.
| pNumStr | A string to test |
References isValidWholeNumStr().
Referenced by isValidWholeNumStr(), and test_isValidWholeNumStr().