#include <propgrid.h>
Public Member Functions | |
virtual wxPGProperty * | GenerateProperty (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 |
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.