wxPGValueType Class Reference

wxPGValueType is base class for property value types. More...

#include <propgrid.h>

List of all members.

Public Member Functions

virtual wxPGPropertyGenerateProperty (const wxString &label, const wxString &name) const =0
virtual wxVariant GenerateVariant (wxPGVariant value, const wxString &name) const =0
virtual const wxChar * GetCustomTypeName () const
virtual wxPGVariant GetDefaultValue () const=0
const wxChar * GetType () const
virtual const wxChar * GetTypeName () const=0
virtual void SetValueFromVariant (wxPGProperty *property, wxVariant &value) const =0


Detailed Description

wxPGValueType is base class for property value types.


Member Function Documentation

virtual wxPGProperty* wxPGValueType::GenerateProperty ( const wxString &  label,
const wxString &  name 
) const [pure virtual]

Creates new property instance with "proper" class.

Initial value is set to default.

virtual wxVariant wxPGValueType::GenerateVariant ( wxPGVariant  value,
const wxString &  name 
) const [pure virtual]

Creates wxVariant with supplied value and name.

virtual const wxChar* wxPGValueType::GetCustomTypeName (  )  const [virtual]

Returns custom type name.

If this is base for a type, should not be overridden, as the default implementation already does good thing and calls GetTypeName. Otherwise, should be an unique string, such as the class name etc.

virtual wxPGVariant wxPGValueType::GetDefaultValue (  )  const [pure virtual]

Returns default value.

const wxChar* wxPGValueType::GetType (  )  const [inline]

Returns type that can be passed to CreatePropertyByType.

virtual const wxChar* wxPGValueType::GetTypeName (  )  const [pure virtual]

Returns type name.

If there is wxVariantData for this type, then name should be the same that the class uses (otherwise wxT("void*")).

virtual void wxPGValueType::SetValueFromVariant ( wxPGProperty property,
wxVariant &  value 
) const [pure virtual]

Sets property value from wxVariant.


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 11:38:11 2007 for wxPropertyGrid by  doxygen 1.5.1-p1