X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf694132f1c28509a9f84377ce8d374bae4177ad..b47c832e5529dc6c632536b4665a005f0a85aec8:/utils/wxPython/src/wx.i diff --git a/utils/wxPython/src/wx.i b/utils/wxPython/src/wx.i index a3c7d06b4c..70535f3d1e 100644 --- a/utils/wxPython/src/wx.i +++ b/utils/wxPython/src/wx.i @@ -25,7 +25,10 @@ %include my_typemaps.i %include _defs.i +%include pointer.i + %import misc.i +%import misc2.i %import windows.i %import events.i %import gdi.i @@ -38,6 +41,8 @@ %import frames.i %import windows3.i %import image.i +%import printfw.i +%import sizers.i %native(_wxStart) __wxStart; @@ -45,7 +50,8 @@ //--------------------------------------------------------------------------- -#define __version__ "2.0b9" + +#define __version__ "0.0.0" // The real value is now in build.py... wxPoint wxPyDefaultPosition; wxSize wxPyDefaultSize; @@ -62,6 +68,7 @@ public: } } + ~wxPyApp(); wxString GetAppName(); #ifdef __WXMSW__ @@ -78,6 +85,7 @@ public: bool Initialized(); int MainLoop(); bool Pending(); + bool ProcessIdle(); void SetAppName(const wxString& name); #ifdef __WXMSW__ @@ -89,35 +97,43 @@ public: void SetTopWindow(wxWindow* window); void SetVendorName(const wxString& name); - // This one is wxPython specific. If you override MainLoop, - // call this when done. - void AfterMainLoop(); + wxIcon GetStdIcon(int which); + + }; +//---------------------------------------------------------------------- +// this is used to cleanup after wxWindows when Python shuts down. + +%inline %{ + void wxApp_CleanUp() { + wxApp::CleanUp(); + } +%} //---------------------------------------------------------------------- // 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,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)(); -#ifndef SEPARATE -extern "C" SWIGEXPORT(void,initutilsc)(); -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(); %} @@ -126,7 +142,6 @@ extern "C" SWIGEXPORT(void,initglcanvasc)(); __wxPreStart(); // initialize the GUI toolkit, if needed. -// wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100); // Since these modules are all linked together, initialize them now // because python won't be able to find their shared library files, @@ -135,6 +150,7 @@ extern "C" SWIGEXPORT(void,initglcanvasc)(); initwindows2c(); initeventsc(); initmiscc(); + initmisc2c(); initgdic(); initmdic(); initcontrolsc(); @@ -144,12 +160,9 @@ extern "C" SWIGEXPORT(void,initglcanvasc)(); initframesc(); initwindows3c(); initimagec(); -#ifndef SEPARATE - initutilsc(); -#ifdef WITH_GLCANVAS - initglcanvasc(); -#endif -#endif + initprintfwc(); + initsizersc(); + initclip_dndc(); %} //----------------------------------------------------------------------