wxUIntProperty Class Reference

Basic property with unsigned integer value. Seamlessly supports 64-bit integer (wxULongLong) on overflow. More...

#include <props.h>

Inheritance diagram for wxUIntProperty:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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 ()

Detailed Description

Basic property with unsigned integer value. Seamlessly supports 64-bit integer (wxULongLong) on overflow.

Supported special attributes:

Remarks:
  • For example how to use seamless 64-bit integer support, see wxIntProperty documentation (just use wxULongLong instead of wxLongLong).

Definition at line 442 of file props.h.


Constructor & Destructor Documentation

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 
)

Member Function Documentation

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.

Parameters:
argFlags If wxPG_FULL_VALUE is set, returns complete, storable value instead of displayable
Remarks:
  • Default implementation may work correctly if used value type is int.
  • If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
  • If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
  • You might want to take into account that m_value is Null variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behavior).

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.

Remarks:
  • Default implementation always returns true.

Reimplemented from wxPGProperty.


Member Data Documentation

wxByte wxUIntProperty::m_base [protected]

Definition at line 455 of file props.h.

wxByte wxUIntProperty::m_prefix [protected]

Definition at line 457 of file props.h.

wxByte wxUIntProperty::m_realBase [protected]

Definition at line 456 of file props.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


wxpropgrid
Author(s): Jaakko Salli
autogenerated on Fri Jan 11 09:34:08 2013