Add wxPropertyGridInterface::SetPropertyValue setter for native datatypes wxLongLong_t and wxULongLong_t.

And fix typo in wxUSE_LONGLONG macro name.
This commit is contained in:
Artur Wieczorek
2015-04-04 00:33:25 +02:00
parent 726a5e1155
commit 5158ce4944
2 changed files with 18 additions and 2 deletions

View File

@@ -1218,13 +1218,29 @@ public:
}
#if wxUSE_LONGLONG
/** Sets value (wxLongLong&) of a property.
#ifdef wxLongLong_t
/** Sets value (wxLongLong_t&) of a property.
*/
void SetPropertyValue(wxPGPropArg id, wxLongLong_t value)
{
wxVariant v = WXVARIANT(wxLongLong(value));
SetPropVal(id, v);
}
#endif
void SetPropertyValue( wxPGPropArg id, wxLongLong value )
{
wxVariant v = WXVARIANT(value);
SetPropVal( id, v );
}
#ifdef wxULongLong_t
/** Sets value (wxULongLong_t&) of a property.
*/
void SetPropertyValue(wxPGPropArg id, wxULongLong_t value)
{
wxVariant v = WXVARIANT(wxULongLong(value));
SetPropVal(id, v);
}
#endif
/** Sets value (wxULongLong&) of a property.
*/
void SetPropertyValue( wxPGPropArg id, wxULongLong value )

View File

@@ -638,7 +638,7 @@ wxUIntProperty::wxUIntProperty( const wxString& label, const wxString& name,
SetValue((long)value);
}
#if wxUSE_LONLONG
#if wxUSE_LONGLONG
wxUIntProperty::wxUIntProperty( const wxString& label, const wxString& name,
const wxULongLong& value ) : wxPGProperty(label,name)
{