X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43c48e1e53d74cef62d15f08f015d9efeb45a0c1..d3fa4bc22e84e3ca4d88cc1772f2d414140a1017:/interface/wx/valgen.h diff --git a/interface/wx/valgen.h b/interface/wx/valgen.h index 15f1b2a31a..2a5f025d77 100644 --- a/interface/wx/valgen.h +++ b/interface/wx/valgen.h @@ -3,27 +3,32 @@ // Purpose: interface of wxGenericValidator // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @class wxGenericValidator wxGenericValidator performs data transfer (but not validation or filtering) - for the following basic controls: wxButton, wxCheckBox, wxListBox, - wxStaticText, wxRadioButton, wxRadioBox, wxChoice, wxComboBox, wxGauge, - wxSlider, wxScrollBar, wxSpinButton, wxTextCtrl, wxCheckListBox. + for many type of controls. - It checks the type of the window and uses an appropriate type for that - window. For example, wxButton and wxTextCtrl transfer data to and from a - wxString variable; wxListBox uses a wxArrayInt; wxCheckBox uses a bool. + wxGenericValidator supports: + - wxButton, wxRadioButton, wxToggleButton, wxBitmapToggleButton, wxSpinButton + - wxCheckBox, wxRadioBox, wxComboBox, wxListBox, wxCheckListBox + - wxGauge, wxSlider, wxScrollBar, wxChoice, wxStaticText + - wxSpinCtrl, wxTextCtrl + + It checks the type of the window and uses an appropriate type for it. + For example, wxButton and wxTextCtrl transfer data to and from a + wxString variable; wxListBox uses a wxArrayInt; wxCheckBox uses a boolean. For more information, please see @ref overview_validator. @library{wxcore} @category{validator} - @see @ref overview_validator, wxValidator, wxTextValidator + @see @ref overview_validator, wxValidator, wxTextValidator, + wxIntegerValidator, wxFloatingPointValidator */ class wxGenericValidator : public wxValidator { @@ -91,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.