Basic property with unsigned integer value. Seamlessly supports 64-bit integer (wxULongLong) on overflow. More...
#include <props.h>

Public Member Functions | |
| virtual wxValidator * | DoGetValidator () const |
| virtual bool | IntToValue (wxVariant &variant, int number, int argFlags=0) const |
| virtual bool | ValidateValue (wxVariant &value, wxPGValidationInfo &validationInfo) const |
| wxUIntProperty (const wxString &label, const wxString &name, const wxULongLong &value) | |
| wxUIntProperty (const wxString &label=wxPG_LABEL, const wxString &name=wxPG_LABEL, unsigned long value=0) | |
| virtual | ~wxUIntProperty () |
Protected Attributes | |
| wxByte | m_base |
| wxByte | m_prefix |
| wxByte | m_realBase |
Private Member Functions | |
| void | Init () |
Basic property with unsigned integer value. Seamlessly supports 64-bit integer (wxULongLong) on overflow.
Supported special attributes:
Definition at line 467 of file props.h.
| wxUIntProperty::wxUIntProperty | ( | const wxString & | label = wxPG_LABEL, |
|
| const wxString & | name = wxPG_LABEL, |
|||
| unsigned long | value = 0 | |||
| ) |
| virtual wxUIntProperty::~wxUIntProperty | ( | ) | [virtual] |
| wxUIntProperty::wxUIntProperty | ( | const wxString & | label, | |
| const wxString & | name, | |||
| const wxULongLong & | value | |||
| ) |
| virtual wxValidator* wxUIntProperty::DoGetValidator | ( | ) | const [virtual] |
Returns pointer to the wxValidator that should be used with the editor of this property (NULL for no validator). Setting validator explicitly via SetPropertyValidator will override this.
In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
wxValidator* wxMyPropertyClass::DoGetValidator () const { WX_PG_DOGETVALIDATOR_ENTRY() wxMyValidator* validator = new wxMyValidator(...); ... prepare validator... WX_PG_DOGETVALIDATOR_EXIT(validator) }
Reimplemented from wxPGProperty.
| void wxUIntProperty::Init | ( | ) | [private] |
Reimplemented from wxPGProperty.
| virtual bool wxUIntProperty::IntToValue | ( | wxVariant & | value, | |
| int | number, | |||
| int | argFlags = 0 | |||
| ) | const [virtual] |
Converts 'number' (including choice selection) into proper value 'variant'. Returns true if new (different than m_value) value could be interpreted from the integer.
| argFlags | If wxPG_FULL_VALUE is set, returns complete, storable value instead of displayable |
Reimplemented from wxPGProperty.
| virtual bool wxUIntProperty::ValidateValue | ( | wxVariant & | value, | |
| wxPGValidationInfo & | validationInfo | |||
| ) | const [virtual] |
Implement this function in derived class to check the value. Return true if it is ok. Returning false prevents property change events from occurring.
Reimplemented from wxPGProperty.
wxByte wxUIntProperty::m_base [protected] |
wxByte wxUIntProperty::m_prefix [protected] |
wxByte wxUIntProperty::m_realBase [protected] |