gehe zur Dokumentation dieser Datei00001 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00033 
00034 #ifndef _WX_VALRADIOH__
00035 #define _WX_VALRADIOH__
00036 
00037 
00038 
00039 
00040 
00041 #include "wx/defs.h"
00042 
00043 #if wxUSE_VALIDATORS
00044 
00045 #include "wx/validate.h"
00046 
00047 #define NV_MIN 1
00048 #define NV_MAX 2
00049 #define NV_BOTH 3
00050 #define NV_NNEG 1, 0
00051 
00052 class  wxRadioValidator: public wxValidator
00053 {
00054         DECLARE_DYNAMIC_CLASS(wxRadioValidator)
00055 
00056 public:
00057 
00058         wxRadioValidator(int *val = 0, int id = 0);
00059 
00060         wxRadioValidator(const wxRadioValidator& val);
00061 
00062         ~wxRadioValidator();
00063 
00064         
00065         
00066         
00067         
00068         virtual wxObject *Clone() const
00069         {
00070                 return new wxRadioValidator(*this);
00071         }
00072 
00073         bool Copy(const wxRadioValidator& val);
00074 
00075         
00076         
00077         virtual bool Validate(wxWindow *parent);
00078 
00079         
00080         virtual bool TransferToWindow();
00081 
00082         
00083         virtual bool TransferFromWindow();
00084 
00085         
00086 
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100 
00101 
00102 
00103 
00104 protected:
00105         int Id;
00106 
00107         int *m_intValue;
00108 
00109         bool CheckValidator() const
00110         {
00111                 wxCHECK_MSG( m_validatorWindow, FALSE,
00112                              _T("No window associated with validator") );
00113                 wxCHECK_MSG( m_validatorWindow->IsKindOf(CLASSINFO(wxRadioButton)), FALSE,
00114                              _T("wxTextValidator is only for wxRadioButton's") );
00115                 wxCHECK_MSG( m_intValue, FALSE,
00116                              _T("No variable storage for validator") );
00117 
00118                 return TRUE;
00119         }
00120 };
00121 
00122 #endif
00123 
00124 
00125 #endif
00126 
00127 
00128