Commit Graph

48 Commits

Author SHA1 Message Date
Robin Dunn
53133108ac Document new location of the patched swig
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 20:25:17 +00:00
Robin Dunn
f1d0b1300c oops
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 00:53:20 +00:00
Robin Dunn
d7ab65f80d Changes needed for building with Python 2.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 00:43:02 +00:00
Robin Dunn
ae200bfcb5 Added SWIG patches to allow compiling the generated code with
Python 2.5


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-29 02:34:31 +00:00
Robin Dunn
daf22b890b Typos fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-05 18:08:18 +00:00
Robin Dunn
1767b394f0 Don't set a module attribute for the *_swigregister functions, just
call the one in the extension module directly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 16:15:41 +00:00
Robin Dunn
d9f09ac42c Added SWIG patch that enables the wx-dropping renames to be done
internally instead of needing to be generated in a second pass after
processing the XML output.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-17 04:14:20 +00:00
Robin Dunn
0ae3258d7a SWIG 1.3.29 updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-18 01:03:08 +00:00
Robin Dunn
ace78e271b SWIG 1.3.29
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-14 04:06:46 +00:00
Robin Dunn
7c30eb5a42 No longer need the SWIG_VERSION to be output to the C++ file, so
remove that change from the patch.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 19:45:17 +00:00
Robin Dunn
9037d43c67 Mention the SWIG_VERSION change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-02 01:48:40 +00:00
Robin Dunn
dd400cf46d Ouput a SWIG_VERSION #define to the wrapper file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-29 02:14:44 +00:00
Robin Dunn
9269629e9e more about the downloadable swig
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-23 23:03:22 +00:00
Robin Dunn
2f8102974b Changes needed for SWIG 1.3.27
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-21 06:45:34 +00:00
Robin Dunn
0bd9eee2b2 Corrected a potential NULL pointer dereference in the SWIG runtime
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-16 05:53:06 +00:00
Robin Dunn
782ece57f0 updated note about the patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-31 22:56:39 +00:00
Robin Dunn
3c1705d911 Updated to SWIG 1.3.24 (plus a patch that corrects a bug and adds back
some things that were changed/removed from my patch I submitted to
them.)

Since it is now possible easily and simply share the SWIG type tables
across modules I reverted to always using the stock SWIG runtime
instead of my slightly hacked up version of it exported via the
wxPython C API.

The %name directive is now deprecated so replaced most uses of it with
a custom %Rename macro that uses %rename internally.  These will
evetually need to be replaced with a DocDecl macro when docstrings are
added.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-23 20:53:38 +00:00
Robin Dunn
a72f4631fe Update SWIG patch to output "True" ("False") in the autodoc string
when "true" ("false") is in the .i file.

Changed the .i files to use true/false to avoid collisions with any
True/False in headers that may be included.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 20:23:54 +00:00
Robin Dunn
414863fd52 New patch for SWIG, updated to SWIG 1.3.22. Removed old patches that
have already been put in to SWIG


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-09 18:32:44 +00:00
Robin Dunn
42637d6004 Add a package="name" option to the %module directive in my SWIG patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-02 02:27:43 +00:00
Robin Dunn
f96a747517 be explicit about the version of SWIG to use
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-26 02:14:06 +00:00
Robin Dunn
c8fac2b60d Modules generated by SWIG can now have module docstrings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-14 21:25:33 +00:00
Robin Dunn
bcb1a72d5f undid one of the last SWIG tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-30 06:29:27 +00:00
Robin Dunn
6c7eee75ce Updated SWIG docstring changes, also merged prepend patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-22 22:37:50 +00:00
Robin Dunn
0cb6df6e3d Updated SWIG patches to CWIG CVS 20040130.
Added a new patch that changes addtofunc to pythonAppend and adds pythonPrepend.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-31 01:11:51 +00:00
Robin Dunn
700c96d420 docstring patch has been submitted to SF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-27 02:35:25 +00:00
Robin Dunn
3d3e0170c0 Fixed autodoc for static methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-23 00:12:34 +00:00
Robin Dunn
b978d7aa08 These files just changed in SWIG again, so update the patches again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 22:55:38 +00:00
Robin Dunn
1de47c7cb4 Updated SWIG patches and wxPython's SWIG runtime
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 22:31:34 +00:00
Robin Dunn
1202c414ea Added SF Patch#
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-29 23:08:42 +00:00
Robin Dunn
28a15b3e4c Updated SWIG patches for new CVS line numbers, also output "int" for
enum types in the autodoc strings.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-19 04:39:38 +00:00
Robin Dunn
0221a4c390 Another try at fixing this patch so it applies cleanly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 19:46:13 +00:00
Robin Dunn
a2526d81f4 Cleaned up a bogus newline
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 19:31:06 +00:00
Robin Dunn
3b2fa8c6f3 A little tweak to the usage text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 19:25:33 +00:00
Robin Dunn
1e9b37a2fa Updated the docstring patch to match current SWIG CVS line numbers and
such.

Added swig.xmlout.patch, which fixes a couple problems in the XML
output of SWIG: an extra "/>" was removed and newlines in attribute
values were changed to the #10; entity reference so they will be
preserved by parsers. Also, added options for dumping or writing to a
file the XML of the parse tree *after* other language modules have
been run (previously you could only do the XML output *instead of* a
regular language module.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 19:07:00 +00:00
Robin Dunn
6977316f8d Updated docstring patch so that it senses multi-line docstrings and
does a proper indentation if so.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-27 00:53:46 +00:00
Robin Dunn
80f334397a Updates for the autodoc/docstring patch, fixes overloaded functions
where one or more of them have a specific autodoc (not "0" or "1")


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-21 17:05:30 +00:00
Robin Dunn
d58a0c0392 Updated docstring patch for new SWIG CVS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 17:35:50 +00:00
Robin Dunn
6a30d63aed SWIG patch for "autodoc" and "docstring" %features
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 06:27:42 +00:00
Robin Dunn
5434ebd693 Recent changes in SWIG make this patch no longer necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-13 18:42:38 +00:00
Robin Dunn
d14a1e2856 Merged the wxPy_newswig branch into the HEAD branch (main trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-12 21:34:20 +00:00
Robin Dunn
322a3817ea Removed the old patch files for swig
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-30 04:26:02 +00:00
Robin Dunn
0220cbc169 Second phase of OOR completed. (Original python object return for
wxEvtHandler and derived classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-13 00:41:21 +00:00
Robin Dunn
0122b7e3fc Second phase of OOR completed. (Original python object return for
wxEvtHandler and derived classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-12 23:26:38 +00:00
Robin Dunn
493f1553fd Cleanup up the demo a bit
Added wxWave

Added another patch for SWIG that optimizes the generated code some
and eliminates some unused type mappings in the type registry.
(Reduces it by about half!)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 21:59:59 +00:00
Robin Dunn
9416aa89ca Implemented the first phase of OOR (Original Object Return). See the
text in the demo for more details of what this means, but in a
nutshell methods such as wxWindow.GetParent or FindWindowById will now
return a shadow object of the proper type if it can.  By "proper type"
I mean that if the wxWindow pointer returned from FindWindowById
really points to a wxButton then the Python object constructed will be
of a wxButtonPtr class instead of wxWindowPtr as before.  This should
reduce or eliminiate the need for wxPyTypeCast.  (Woo Hoo!)  The
objects returned are still not the original Python object, but that is
the next step.  (Although it will probably only work on Python 2.1 and
beyond because it will use weak references.)

A few other minor tweaks and fixes and additions for things found
while doing the OOR stuff.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 22:47:09 +00:00
Robin Dunn
cb29fb86c0 *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-11 02:33:52 +00:00
Robin Dunn
c368d904fc Merged wxPython 2.2.2 over to the main branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-30 21:08:42 +00:00