]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/wx.i
Module definitions files for build VisualAge C++ V3.0 dlls.
[wxWidgets.git] / utils / wxPython / src / wx.i
index a2ce9c208276c816abc8d1c0a614b67cd95ccbca..70535f3d1e7125d77e9122c25af8b888ddcac4ad 100644 (file)
@@ -42,6 +42,7 @@
 %import windows3.i
 %import image.i
 %import printfw.i
+%import sizers.i
 
 
 %native(_wxStart)           __wxStart;
@@ -49,7 +50,8 @@
 
 //---------------------------------------------------------------------------
 
-#define __version__ "2.1b2"
+
+#define __version__ "0.0.0"   // The real value is now in build.py...
 
 wxPoint     wxPyDefaultPosition;
 wxSize      wxPyDefaultSize;
@@ -102,53 +104,36 @@ public:
 
 
 //----------------------------------------------------------------------
-// An instance of this object is created in the main wx module.  As long
-// as there are no extra references to it then when the wx module is being
-// unloaded from memory then this object's destructor will be called. When
-// it is then we'll use that as a signal to clean up wxWindows
+// this is used to cleanup after wxWindows when Python shuts down.
 
-%{
-class __wxPyCleanup {
-public:
-    __wxPyCleanup()  { }
-    ~__wxPyCleanup() { wxApp::CleanUp(); }
-};
+%inline %{
+    void wxApp_CleanUp() {
+        wxApp::CleanUp();
+    }
 %}
 
-// now to swigify it...
-class __wxPyCleanup {
-public:
-    __wxPyCleanup();
-    ~__wxPyCleanup();
-};
-
-
-
 //----------------------------------------------------------------------
 // This code gets added to the module initialization function
 //----------------------------------------------------------------------
 
 %{
-extern "C" SWIGEXPORT(void,initwindowsc)();
-extern "C" SWIGEXPORT(void,initwindows2c)();
-extern "C" SWIGEXPORT(void,initeventsc)();
-extern "C" SWIGEXPORT(void,initmiscc)();
-extern "C" SWIGEXPORT(void,initmisc2c)();
-extern "C" SWIGEXPORT(void,initgdic)();
-extern "C" SWIGEXPORT(void,initmdic)();
-extern "C" SWIGEXPORT(void,initcontrolsc)();
-extern "C" SWIGEXPORT(void,initcontrols2c)();
-extern "C" SWIGEXPORT(void,initcmndlgsc)();
-extern "C" SWIGEXPORT(void,initstattoolc)();
-extern "C" SWIGEXPORT(void,initframesc)();
-extern "C" SWIGEXPORT(void,initwindows3c)();
-extern "C" SWIGEXPORT(void,initimagec)();
-extern "C" SWIGEXPORT(void,initprintfwc)();
-#ifndef SEPARATE
-extern "C" SWIGEXPORT(void,initutilsc)();
-//extern "C" SWIGEXPORT(void,initoglc)();
-extern "C" SWIGEXPORT(void,initglcanvasc)();
-#endif
+extern "C" SWIGEXPORT(void) initwindowsc();
+extern "C" SWIGEXPORT(void) initwindows2c();
+extern "C" SWIGEXPORT(void) initeventsc();
+extern "C" SWIGEXPORT(void) initmiscc();
+extern "C" SWIGEXPORT(void) initmisc2c();
+extern "C" SWIGEXPORT(void) initgdic();
+extern "C" SWIGEXPORT(void) initmdic();
+extern "C" SWIGEXPORT(void) initcontrolsc();
+extern "C" SWIGEXPORT(void) initcontrols2c();
+extern "C" SWIGEXPORT(void) initcmndlgsc();
+extern "C" SWIGEXPORT(void) initstattoolc();
+extern "C" SWIGEXPORT(void) initframesc();
+extern "C" SWIGEXPORT(void) initwindows3c();
+extern "C" SWIGEXPORT(void) initimagec();
+extern "C" SWIGEXPORT(void) initprintfwc();
+extern "C" SWIGEXPORT(void) initsizersc();
+extern "C" SWIGEXPORT(void) initclip_dndc();
 %}
 
 
@@ -176,13 +161,8 @@ extern "C" SWIGEXPORT(void,initglcanvasc)();
     initwindows3c();
     initimagec();
     initprintfwc();
-#ifndef SEPARATE
-    initutilsc();
-//    initoglc();
-#ifdef WITH_GLCANVAS
-    initglcanvasc();
-#endif
-#endif
+    initsizersc();
+    initclip_dndc();
 %}
 
 //----------------------------------------------------------------------