Jack Jansen
49931887d7
Regenerated with PyDoc_STR() around docstrings.
2002-08-16 09:09:31 +00:00
Jack Jansen
7ca993ed37
Fixed the bugs in the constant definitions, and in the code to test
...
them.
The FutureWarnings are still there, until a way has been found to
say "I know what I'm doing here when I say 0xff000000".
2002-08-15 22:05:58 +00:00
Jack Jansen
87eea88b5a
After generating the Python file with definitions try to run it, so
...
we catch errors during the build process in stead of later during runtime.
2002-08-15 21:48:16 +00:00
Jack Jansen
aaebdd6a02
Enable building of Carbon toolbox modules with unix-Python.
2002-08-05 15:39:30 +00:00
Jack Jansen
ff8dec7427
Got rid of staticforward.
2002-08-05 15:36:57 +00:00
Jeremy Hylton
938ace69a0
staticforward bites the dust.
...
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure. Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers. (In
fact, we expect that the compilers are all fixed eight years later.)
I'm leaving staticforward and statichere defined in object.h as
static. This is only for backwards compatibility with C extensions
that might still use it.
XXX I haven't updated the documentation.
2002-07-17 16:30:39 +00:00
Jack Jansen
033b79c483
Regenerated.
2002-04-23 22:46:01 +00:00
Just van Rossum
c4cf27e8e0
- added support for UserPaneKeyDownProc and UserPaneFocusProc
...
- clear error after failing PyArg_Parse()
2002-01-04 19:45:15 +00:00
Just van Rossum
7633593683
Oops, forgot to mark CreateScrollBarControl and CreateSliderControl
...
as Carbon-only
2001-12-31 09:50:32 +00:00
Just van Rossum
cae6da632a
- added support for ControlActionProcs, exposing the following calls:
...
- ctl.SetControlAction()
- CreateScrollBarControl()
- CreateSliderControl()
- print traceback when callbacks fail
2001-12-30 21:25:26 +00:00
Just van Rossum
7eb48e3283
Moved a bunch of routines from "blacklisted" to "graylisted", as they _are_
...
available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9).
2001-12-18 20:15:27 +00:00
Jack Jansen
620a7667eb
Updated to Universal Headers 3.4
2001-12-18 15:39:38 +00:00
Just van Rossum
f30c3ad0d9
Added missing docstring
2001-12-18 12:53:47 +00:00
Just van Rossum
66d78bf2a0
Added support for tab controls and initial (incomplete) support
...
for DataBrowser controls.
2001-12-18 12:47:47 +00:00
Jack Jansen
615e2505f0
Many of the new calls are Carbon-only. Flagged them as such.
2001-12-14 22:47:19 +00:00
Just van Rossum
7ec1c85d7a
- "manage" controls created by CreateXxxXxxControl() functions.
...
- FindControlUnderMouse() returns an existing control, not a new one.
2001-12-13 21:24:37 +00:00
Jack Jansen
6c3145985f
Shut up gcc warning.
2001-12-12 22:51:39 +00:00
Just van Rossum
e0b9fdca0d
Updated for Universal Headers 3.4.
2001-12-12 22:40:27 +00:00
Guido van Rossum
146483964e
Patch supplied by Burton Radons for his own SF bug #487390 : Modifying
...
type.__module__ behavior.
This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this). Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right. Apologies if they're
not. This also touches the weakref docs, which contains a sample type
object initializer. It also touches the mmap test output, because the
mmap type's repr is included in that output. It touches object.h to
put the correct description in a comment.
2001-12-08 18:02:58 +00:00
Jack Jansen
b3be216b41
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
...
changes from start of branch upto r22b2 were already merged, of course).
2001-11-30 14:16:36 +00:00
Jack Jansen
fd064863eb
Shut up many more gcc warnings.
2001-09-05 10:31:52 +00:00
Jack Jansen
06d2e1af35
Regenerated without default int return types.
2001-09-04 22:19:18 +00:00
Jack Jansen
25a5bd7708
Renamed.
2001-08-23 14:11:10 +00:00
Jack Jansen
50ecb0ad83
Renamed the Mac toolbox modules to have an initial _ in their name.
2001-08-23 14:02:09 +00:00
Jack Jansen
77105a960b
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
2001-08-23 13:51:46 +00:00
Jack Jansen
b8248d8cff
Don't use extern when we mean staticforward (OSX gcc is picky about it).
...
Blacklist SendControlMessage: it's signature has changed between Universal Headers 3.3 and 3.4.
2001-06-20 21:31:28 +00:00
Jack Jansen
fa77e1a1b1
Lots more Carbon/Carbon.h includes, new UPP routine names, function prototypes. Most toolbox modules now compile, link and import in MacOSX-MachO python.
2001-05-22 21:56:42 +00:00
Jack Jansen
0e04eecdbf
First step in porting MacPython modules to OSX/unix: break all references between modules except for the obj_New() and obj_Convert() routines, the PyArg_Parse and Py_BuildValue helpers.
...
And these can now be vectored through glue routines (by defining USE_TOOLBOX_OBJECT_GLUE) which will do the necessary imports, whereupon the module's init routine will tell the glue routine about the real conversion routine address and everything is fine again.
2001-05-17 21:58:34 +00:00
Jack Jansen
736b51df7c
SetpopupData and GetPopupData are gone under Carbon, use {Get,Set}PopupMenu{Handle,ID} in stead.
...
The UserPane routines appear to be fixed in the current Universal Headers, so they're re-enabled.
2001-01-12 23:39:00 +00:00
Jack Jansen
a9e3db354d
Carbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get,Set}ControlData have gotten an underscore: GetControlData_Handle, etc. This is an incompatible change:-(
2001-01-09 22:10:16 +00:00
Jack Jansen
723ad8ae73
More toolbox modules adapted to Universal Headers 3.3.2.
2000-12-12 22:10:21 +00:00
Jack Jansen
f7d5aa61d3
Adapted to Universal Headers 3.3.2. More to follow.
2000-12-10 23:43:49 +00:00
Jack Jansen
74a1e63a89
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
2000-07-14 22:37:27 +00:00
Jack Jansen
9d8b96c850
pymactoolbox.h contains protoypes for all externally visible toolbox module
...
functions. Include it in stead of duplicating the declarations everywhere. Also
cleaned up toolbox module exports, and got rid of resNotFound error.
2000-07-14 22:16:45 +00:00
Jack Jansen
85152b93cb
Fiddled declaration/implementation of setcallback() so that it is ansifyable.
2000-07-11 21:12:55 +00:00
Jack Jansen
0b13e7c153
Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.
2000-07-07 13:09:35 +00:00
Jack Jansen
021da55579
Removed THINK_C support.
2000-06-04 21:56:05 +00:00
Jack Jansen
e79dc76f53
Made the core toolbox modules carbon-compatible using the new greylist feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open.
...
Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
2000-06-02 21:35:07 +00:00
Jack Jansen
1b6e8214ab
Added a few cast to make it 68k-compatible.
2000-04-05 21:30:57 +00:00
Jack Jansen
deb6373fff
Data of type Point is passed by value, not by reference.
2000-03-22 15:35:24 +00:00
Jack Jansen
a27e9fb19f
Added UserPane callbacks for HitTest and Tracking. Doesn't fully work yet.
2000-03-21 23:03:02 +00:00
Jack Jansen
1a7d5b12c0
Added a GetControlRect() method to controls which returns the bounding rectangle. To my surprise this call is missing from the C API...
2000-03-21 16:25:23 +00:00
Jack Jansen
abc411bac8
Started on support for callbacks for UserPane controls. Unfinished and untested.
2000-03-20 16:09:09 +00:00
Jack Jansen
f7ac1d32f0
Nasty error: handle parameters are passed by _address_ to SetControlData.
1999-12-29 12:37:22 +00:00
Jack Jansen
b9247d37ba
Oops, forgot & in ParseTuple argument in ControlGetDataHandle.
1999-12-23 23:06:07 +00:00
Jack Jansen
a1a0fef2ea
Unified handle-conversion scheme to
...
handle = Ctl.as_Resource(ctl)
ctl = Ctl.as_Control(handle)
and similarly for List, Menu, TE. The old handle.as_Control() methods are
still there for backward compatability.
1999-12-23 14:32:06 +00:00
Jack Jansen
1f9249cea9
Added {Get,Set}ControlDataHandle methods. These are {Get,Set}ControlData for
...
keys that expect a Handle, and have a ResObj as parameter.
1999-12-19 00:05:50 +00:00
Jack Jansen
a05ac607d7
Regenerated with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support.
1999-12-12 21:41:51 +00:00
Jack Jansen
24c353144a
Fixed a linebreak I forgot, added docstrings, (temporarily) blacklisted a few routines that seem to be missing in my CW Pro 5.1.
1999-12-09 22:49:51 +00:00
Jack Jansen
229c0868fe
Changes by Corran Webster to support {Get,Set}ControlData and
...
HandleControlClick. Untested.
1999-12-09 16:03:50 +00:00