int i;
for (i = 0; m_members[i].m_name ; i++ )
{
- if (!strcmp(name, m_members[i].m_name))
+ if (!wxStrcmp(name, m_members[i].m_name))
{
if ( value )
*value = m_members[i].m_value;
int i;
for (i = 0; m_members[i].m_name ; i++ )
{
- if (!strcmp(name, m_members[i].m_name))
+ if (!wxStrcmp(name, m_members[i].m_name))
{
return m_members[i].m_value;
}
return m_members[idx].m_value ;
}
-const char * wxEnumData::GetEnumMemberNameByIndex( int idx )
+const wxChar * wxEnumData::GetEnumMemberNameByIndex( int idx )
{
// we should cache the count in order to avoid out-of-bounds errors
return m_members[idx].m_name ;
template<> void wxStringWriteValue(wxString &s , const bool &data )
{
- s = wxString::Format("%d", data ) ;
+ s = wxString::Format(_T("%d"), data ) ;
}
// char
template<> void wxStringWriteValue(wxString &s , const char &data )
{
- s = wxString::Format("%d", data ) ;
+ s = wxString::Format(_T("%d"), data ) ;
}
// unsigned char
template<> void wxStringWriteValue(wxString &s , const unsigned char &data )
{
- s = wxString::Format("%d", data ) ;
+ s = wxString::Format(_T("%d"), data ) ;
}
// int
template<> void wxStringWriteValue(wxString &s , const int &data )
{
- s = wxString::Format("%d", data ) ;
+ s = wxString::Format(_T("%d"), data ) ;
}
// unsigned int
template<> void wxStringWriteValue(wxString &s , const unsigned int &data )
{
- s = wxString::Format("%d", data ) ;
+ s = wxString::Format(_T("%d"), data ) ;
}
// long
template<> void wxStringWriteValue(wxString &s , const long &data )
{
- s = wxString::Format("%ld", data ) ;
+ s = wxString::Format(_T("%ld"), data ) ;
}
// unsigned long
template<> void wxStringWriteValue(wxString &s , const unsigned long &data )
{
- s = wxString::Format("%ld", data ) ;
+ s = wxString::Format(_T("%ld"), data ) ;
}
// float
template<> void wxStringWriteValue(wxString &s , const float &data )
{
- s = wxString::Format("%f", data ) ;
+ s = wxString::Format(_T("%f"), data ) ;
}
// double
template<> void wxStringWriteValue(wxString &s , const double &data )
{
- s = wxString::Format("%lf", data ) ;
+ s = wxString::Format(_T("%lf"), data ) ;
}
// wxString
}
}
-const wxPropertyAccessor *wxClassInfo::FindAccessor(const char *PropertyName) const
+const wxPropertyAccessor *wxClassInfo::FindAccessor(const wxChar *PropertyName) const
{
const wxPropertyInfo* info = FindPropertyInfo( PropertyName ) ;
return NULL ;
}
-wxPropertyInfo *wxClassInfo::FindPropertyInfoInThisClass (const char *PropertyName) const
+wxPropertyInfo *wxClassInfo::FindPropertyInfoInThisClass (const wxChar *PropertyName) const
{
wxPropertyInfo* info = m_firstProperty ;
while( info )
{
- if ( strcmp( info->GetName() , PropertyName ) == 0 )
+ if ( wxStrcmp( info->GetName() , PropertyName ) == 0 )
return info ;
info = info->GetNext() ;
}
return 0;
}
-const wxPropertyInfo *wxClassInfo::FindPropertyInfo (const char *PropertyName) const
+const wxPropertyInfo *wxClassInfo::FindPropertyInfo (const wxChar *PropertyName) const
{
const wxPropertyInfo* info = FindPropertyInfoInThisClass( PropertyName ) ;
if ( info )
return 0;
}
-wxHandlerInfo *wxClassInfo::FindHandlerInfoInThisClass (const char *PropertyName) const
+wxHandlerInfo *wxClassInfo::FindHandlerInfoInThisClass (const wxChar *PropertyName) const
{
wxHandlerInfo* info = m_firstHandler ;
while( info )
{
- if ( strcmp( info->GetName() , PropertyName ) == 0 )
+ if ( wxStrcmp( info->GetName() , PropertyName ) == 0 )
return info ;
info = info->GetNext() ;
}
return 0;
}
-const wxHandlerInfo *wxClassInfo::FindHandlerInfo (const char *PropertyName) const
+const wxHandlerInfo *wxClassInfo::FindHandlerInfo (const wxChar *PropertyName) const
{
const wxHandlerInfo* info = FindHandlerInfoInThisClass( PropertyName ) ;
return true ;
}
-void wxClassInfo::SetProperty(wxObject *object, const char *propertyName, const wxxVariant &value) const
+void wxClassInfo::SetProperty(wxObject *object, const wxChar *propertyName, const wxxVariant &value) const
{
const wxPropertyAccessor *accessor;
accessor->SetProperty( object , value ) ;
}
-wxxVariant wxClassInfo::GetProperty(wxObject *object, const char *propertyName) const
+wxxVariant wxClassInfo::GetProperty(wxObject *object, const wxChar *propertyName) const
{
const wxPropertyAccessor *accessor;
return GetParents()[0]->GetCreateParamName( i ) ;
}
-void wxDynamicClassInfo::SetProperty(wxObject *object, const char *propertyName, const wxxVariant &value) const
+void wxDynamicClassInfo::SetProperty(wxObject *object, const wxChar *propertyName, const wxxVariant &value) const
{
wxDynamicObject* dynobj = dynamic_cast< wxDynamicObject * >( object ) ;
wxASSERT_MSG( dynobj , wxT("cannot call wxDynamicClassInfo::SetProperty on an object other than wxDynamicObject") ) ;
GetParents()[0]->SetProperty( dynobj->GetSuperClassInstance() , propertyName , value ) ;
}
-wxxVariant wxDynamicClassInfo::GetProperty(wxObject *object, const char *propertyName) const
+wxxVariant wxDynamicClassInfo::GetProperty(wxObject *object, const wxChar *propertyName) const
{
wxDynamicObject* dynobj = dynamic_cast< wxDynamicObject * >( object ) ;
wxASSERT_MSG( dynobj , wxT("cannot call wxDynamicClassInfo::SetProperty on an object other than wxDynamicObject") ) ;