Jack Jansen
e48cef7aba
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
...
MacOS9isms.
2003-11-19 16:13:35 +00:00
Jack Jansen
6c7e326eaa
Getting rid of pre-Carbon (MacOS8) support. All code depending on
...
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
2002-12-12 10:31:54 +00:00
Jack Jansen
96cebde909
Added PEP253 support to most Carbon modules. This isn't complete yet:
...
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).
2002-12-03 23:40:22 +00:00
Jack Jansen
dbd5701d73
Converted the Carbon modules to use PEP252-style objects, with
...
descriptors in stead of manual getattr hooks to get at attributes
of the objects.
For Qd I have in stead gotten rid of most of the attribute access
in favor of the carbon-style accessor methods (with the exception
of visRgn, to be done later), and of the Carbon.Qd.qd global object,
for which accessor functions are also available.
For List I have fixed the fact that various methods were incorrectly
generated as functions.
CF is untouched: PEP252 doesn't allow "poor-mans-inheritance" with
basechain, so it will have to wait for PEP253 support.
2002-11-29 23:40:48 +00:00
Jack Jansen
ff8dec7427
Got rid of staticforward.
2002-08-05 15:36:57 +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
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
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
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
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
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
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
Jack Jansen
8387af65a9
If a control has no refcon pointing back to the Python object we create a new
...
Python object. This needs a new bgenObjectDefinition.py, which implements
compare and hash functions.
1999-03-13 23:07:32 +00:00
Jack Jansen
e058189040
Added Ctl.as_Control and Menu.as_Menu methods, which take a resource as
...
argument and return a Control or Menu object.
1999-02-07 14:02:03 +00:00
Jack Jansen
deff89c8be
Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.
1998-10-12 20:53:15 +00:00
Jack Jansen
4c704131ca
Added {Get,Set}PopupData calls to get at the data for popup menu controls.
1998-06-19 13:35:14 +00:00
Jack Jansen
848250c15b
Allow an (optional) tracking function (or -1) to be specified to
...
TrackControl. TrackControl is now manually generated (too much work to
explain this to bgen).
1998-05-28 14:20:09 +00:00
Jack Jansen
0c4d947eac
Replaced addpack by handcrafted code to find the bgen stuff.
1998-04-17 14:07:56 +00:00
Jack Jansen
21f96872f2
Regenerated from Universal Headers 3.0.1. Some new calls are
...
blacklisted, because they are not available in classic 68k programs,
and bgen doesn't have a way to put #ifdef/#endif in the generated
code. For now we only implement calls that work on all three models.
1998-02-20 16:02:09 +00:00
Jack Jansen
c7fefed32c
Added GetAuxiliaryControlRecord and SetControlColor, there was no good
...
reason they were excluded.
1997-08-15 14:32:18 +00:00
Jack Jansen
85ae4a82ac
Changed [SG]etCRefCon to [SG]etControlReference
1997-04-08 15:26:03 +00:00
Jack Jansen
cfb60ee1e8
Fixed very nasty null-dereferencing bug in DisposeControl/destroy
...
object.
1996-10-01 10:46:46 +00:00
Jack Jansen
c574b43d35
Fixed a nasty bug where FindControl could return a reference to a
...
destroyed python object.
1996-04-12 16:26:59 +00:00
Jack Jansen
2b72417da0
Replaced various dummy updateRegions by real arguments
1996-04-10 14:48:19 +00:00