xti introduction

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-07-28 08:10:54 +00:00
parent 9a069b7279
commit a095505c96
5 changed files with 1510 additions and 3 deletions

View File

@@ -51,9 +51,26 @@
#pragma optimize("", off)
#endif
#if wxUSE_XTI
const wxClassInfo* wxObject::sm_classParentswxObject[] = { NULL } ;
wxObject* wxVariantToObjectConverterwxObject ( const wxxVariant &data )
{ return data.Get<wxObject*>() ; }
wxxVariant wxObjectToVariantConverterwxObject ( wxObject *data )
{ return wxxVariant( dynamic_cast<wxObject*> (data) ) ; }
wxClassInfo wxObject::sm_classwxObject(sm_classParentswxObject , wxT("") , wxT("wxObject"),
(int) sizeof(wxObject), \
(wxObjectConstructorFn) 0 ,
(wxPropertyInfo*) NULL,0 , 0 ,
0 , wxVariantToObjectConverterwxObject , wxObjectToVariantConverterwxObject);
template<> void wxStringReadValue(const wxString & , wxObject * & ){assert(0) ;}
template<> void wxStringWriteValue(wxString & , wxObject* const & ){assert(0) ;}
template<> const wxTypeInfo* wxGetTypeInfo( wxObject ** )
{ static wxClassTypeInfo s_typeInfo(&wxObject::sm_classwxObject) ; return &s_typeInfo ; }
#else
wxClassInfo wxObject::sm_classwxObject( wxT("wxObject"), 0, 0,
(int) sizeof(wxObject),
(wxObjectConstructorFn) 0 );
#endif
// restore optimizations
#if defined __VISUALC__ && __VISUALC__ >= 1300
@@ -171,6 +188,9 @@ wxClassInfo::~wxClassInfo()
info = info->m_next;
}
}
#if wxUSE_XTI
Unregister( m_className ) ;
#endif
}
wxClassInfo *wxClassInfo::FindClass(const wxChar *className)
@@ -244,6 +264,7 @@ void wxClassInfo::InitializeClasses()
}
}
#if wxUSE_XTI == 0
// Set base pointers for each wxClassInfo
for(info = sm_first; info; info = info->m_next)
@@ -251,6 +272,7 @@ void wxClassInfo::InitializeClasses()
info->m_baseInfo1 = GetBaseByName(info->GetBaseClassName1());
info->m_baseInfo2 = GetBaseByName(info->GetBaseClassName2());
}
#endif
}
void wxClassInfo::CleanUpClasses()
@@ -259,7 +281,6 @@ void wxClassInfo::CleanUpClasses()
wxClassInfo::sm_classTable = NULL;
}
wxObject *wxCreateDynamicObject(const wxChar *name)
{
#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT