X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..3571e1add4e6ceb45ad88c224c432609f837a8dd:/interface/wx/valgen.h diff --git a/interface/wx/valgen.h b/interface/wx/valgen.h index 00ebc56fd4..cc2a6962a5 100644 --- a/interface/wx/valgen.h +++ b/interface/wx/valgen.h @@ -3,21 +3,24 @@ // Purpose: interface of wxGenericValidator // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @class wxGenericValidator - @wxheader{valgen.h} 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. @@ -96,12 +99,12 @@ public: /** Destructor. */ - ~wxGenericValidator(); + virtual ~wxGenericValidator(); /** Clones the generic validator using the copy constructor. */ - virtual wxValidator* Clone() const; + virtual wxObject* Clone() const; /** Transfers the value from the window to the appropriate data type.