Support float, double and file name values in wxGenericValidator.
Currently these values can only be read from/written to wxTextCtrl but support for other controls (e.g. wxSpinCtrlDouble for float/double) could be added in the future. Closes #13304. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,6 +96,42 @@ public:
|
||||
window).
|
||||
*/
|
||||
wxGenericValidator(wxDateTime* valPtr);
|
||||
/**
|
||||
Constructor taking a wxFileName pointer. This will be used for
|
||||
wxTextCtrl.
|
||||
|
||||
@param valPtr
|
||||
A pointer to a variable that contains the value. This variable
|
||||
should have a lifetime equal to or longer than the validator
|
||||
lifetime (which is usually determined by the lifetime of the
|
||||
window).
|
||||
@since 2.9.3
|
||||
*/
|
||||
wxGenericValidator(wxFileName* valPtr);
|
||||
/**
|
||||
Constructor taking a float pointer. This will be used for
|
||||
wxTextCtrl.
|
||||
|
||||
@param valPtr
|
||||
A pointer to a variable that contains the value. This variable
|
||||
should have a lifetime equal to or longer than the validator
|
||||
lifetime (which is usually determined by the lifetime of the
|
||||
window).
|
||||
@since 2.9.3
|
||||
*/
|
||||
wxGenericValidator(float* valPtr);
|
||||
/**
|
||||
Constructor taking a double pointer. This will be used for
|
||||
wxTextCtrl.
|
||||
|
||||
@param valPtr
|
||||
A pointer to a variable that contains the value. This variable
|
||||
should have a lifetime equal to or longer than the validator
|
||||
lifetime (which is usually determined by the lifetime of the
|
||||
window).
|
||||
@since 2.9.3
|
||||
*/
|
||||
wxGenericValidator(double* valPtr);
|
||||
|
||||
/**
|
||||
Destructor.
|
||||
|
Reference in New Issue
Block a user