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

@@ -28,6 +28,16 @@ class WXDLLIMPEXP_BASE wxObject;
#if wxUSE_DYNAMIC_CLASSES
#ifndef wxUSE_XTI
#define wxUSE_XTI 0
#endif
#if wxUSE_XTI
#include "wx/xti.h"
#else
// ----------------------------------------------------------------------------
// conditional compilation
// ----------------------------------------------------------------------------
@@ -104,6 +114,7 @@ public:
static void CleanUpClasses();
public:
const wxChar *m_className;
const wxChar *m_baseClassName1;
@@ -198,6 +209,9 @@ WXDLLIMPEXP_BASE wxObject *wxCreateDynamicObject(const wxChar *name);
#define IMPLEMENT_CLASS IMPLEMENT_ABSTRACT_CLASS
#define IMPLEMENT_CLASS2 IMPLEMENT_ABSTRACT_CLASS2
#endif // !wxUSE_XTI
// -----------------------------------
// for pluggable classes
// -----------------------------------
@@ -265,7 +279,6 @@ name##PluginSentinel m_pluginsentinel;
#define IMPLEMENT_USER_EXPORTED_ABSTRACT_PLUGGABLE_CLASS2(name, basename1, basename2) \
IMPLEMENT_ABSTRACT_PLUGGABLE_CLASS2(name, basename1, basename2)
#define CLASSINFO(name) (&name::sm_class##name)
#else // !wxUSE_DYNAMIC_CLASSES
@@ -298,7 +311,6 @@ name##PluginSentinel m_pluginsentinel;
#endif // wxUSE_DYNAMIC_CLASSES
#define wxIS_KIND_OF(obj, className) obj->IsKindOf(&className::sm_class##className)
// Just seems a bit nicer-looking (pretend it's not a macro)