Commit Graph

339 Commits

Author SHA1 Message Date
Jack Jansen
742ca0385a Updated for new AppleScript structure and moved to Lib (it's far too useful to lurk in the source folder). 2000-08-20 20:06:51 +00:00
Jack Jansen
18b47a07b7 Fixed again to work with the old scripting interface (so we can test the new one actually still works). 2000-08-20 20:02:39 +00:00
Jack Jansen
b88b0bce2a ANSIfied. 2000-07-31 22:07:49 +00:00
Jack Jansen
4fb67f4659 Oops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_ParseTuple format strings. 2000-07-24 19:59:17 +00:00
Jack Jansen
a44923fbfe Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define. 2000-07-14 22:52:50 +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
e17fd2a5af Got rid of __SC__ ifdefs. 2000-07-11 22:37:03 +00:00
Jack Jansen
9ae898b415 ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
2000-07-11 21:16:03 +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
d88296d25a ANSIfication step 1: get rid of Py_PROTO and Py_FPROTO. 2000-07-11 19:51:05 +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
0ed1148b75 added ucnhash (optional on USE_UCNHASH) and the mysteriously disappeared math. 2000-06-28 21:59:35 +00:00
Jack Jansen
8d929aee49 All relevant toolbox modules have now been carbonized. 2000-06-21 22:07:06 +00:00
Jack Jansen
abf17032a4 Made to work under carbon. 2000-06-20 07:42:23 +00:00
Jack Jansen
fd78de3a74 Under carbon use the GetQDGlobalxxx methods to implement Qd.qd.member access. 2000-06-20 07:42:00 +00:00
Jack Jansen
d1fb71121b Moved AE module to the core toolbox set: it is needed by Nav and it isn't all _that_ huge. 2000-06-07 20:13:05 +00:00
Jack Jansen
fb1aafd06c Removed SYMANTEC_CFM68K support. 2000-06-04 22:07:37 +00:00
Jack Jansen
d4d24cd96b Removed USE_STDWIN support. 2000-06-04 22:02:02 +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
d9c01a56a0 Manually added HRHTMLRenderingLibAvailable.
Blacklist HRDisposeReference and call it in the dispose routine.
2000-05-15 15:36:52 +00:00
Jack Jansen
ebd0106c77 Interface to macOS 9 HTMLRenderingLib. Not yet functional. 2000-05-14 22:05:36 +00:00
Jack Jansen
12e89e42d8 Fixed to work again without USE_GUSI 2000-05-12 21:36:29 +00:00
Jack Jansen
48b486b054 Added unicodedata and _codecs modules (which had apparently slipped through until now). 2000-05-12 21:36:06 +00:00
Jack Jansen
9d61d1bab1 Got rid of PyMem_XDEL. 2000-05-05 23:09:16 +00:00
Jack Jansen
37d21e117f Started on GUSI2 and threading support. 2000-04-07 09:25:06 +00:00
Jack Jansen
d62966060f 1.6a1 modules added. 2000-04-07 09:24:53 +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
c59996e6b1 Added a method GetMediaNextInterestingTimeOnly, which is like GetMediaNextInterestingTime without asking for the duration (which is, according to qt docs, expensive). 2000-03-17 16:49:59 +00:00
Jack Jansen
def77e5346 AETransactionID was mistakenly defined as a short (it is a long). Fixed. 2000-03-14 23:29:08 +00:00
Jack Jansen
add03b62fd Handles were never disposed. Added an AutoDispose(onoff) method to control this.
Also added a Handle() function which is like Resource() but has auto-dispose on by default.
2000-03-08 16:58:15 +00:00
Jack Jansen
6f3fceb8d8 Allow None as TimeBase value in TimeValue records (becomes NULL in C structure,
used for delta-t values by quicktime).
2000-03-06 16:34:49 +00:00
Jack Jansen
1b7a70fa52 Fixed parameters to a few time and timebase calls: InOut parameters were
inadvertantly seen as out-only.
2000-03-03 17:06:13 +00:00
Jack Jansen
6dc8ce9108 Added PutPixMapBytes() and GetPixMapBytes() functions that allow getting at
pixmap data.
Added an as_GrafPort() method to be able to use a GWorld as argument to
routines that expect a GrafPort.
2000-03-03 16:03:06 +00:00
Jack Jansen
484be6152f Added methods getdata() and putdata() to obtain the data in a bitmap. 2000-03-03 16:01:11 +00:00
Jack Jansen
957d07a159 Added FreeMem, MaxBlock and CompactMem calls. The values returned by these are lower bounds in the Python case (as malloc doesn't return memory to the heap) but they can be used to decide when to give low-memory warnings. 2000-02-21 11:07:37 +00:00
Jack Jansen
4377a1a2c5 Big oops: macfs has always been using a private exception but calling it mac.error.
It now uses MacOS.Error (the OSErr valued error) and advertises that too. This
fix shouldn't break anything, I guess.
2000-01-24 10:37:59 +00:00
Jack Jansen
2c6cf97255 Handling of defaultLocation argument was wrong, causing a crash when used. Fixed. 2000-01-13 16:24:32 +00:00
Jack Jansen
3d6163ad2d List objects obtained through as_List(resource) are not auto-disposed upon
Python object freeing.
2000-01-13 16:23:39 +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
77abc43486 Added a line about passing None as eventProc to the docstring to get movable
dialogs.
1999-12-17 23:01:44 +00:00
Jack Jansen
a07431f0ce Finished (I think), but only very lightly tested. Should now have full interface: all
calls, callbacks, arguments, etc. Also added docstrings.
1999-12-17 17:14:28 +00:00