Jack Jansen
cced0aa3e0
SetListCellIndent() argument was guessed incorrectly. Fixed.
2001-02-27 13:00:36 +00:00
Jack Jansen
f02f4c8825
Soundex has gone.
2001-02-27 12:59:49 +00:00
Jack Jansen
599ce9c6c2
On OSX passing NULL to NewUniversalFilterProc() does not return NULL but a crashing UPP. This made ModalDialog (and, hence EditPythonPrefs and EasyDialogs and many others) crash. Fixed.
2001-02-20 22:27:43 +00:00
Jack Jansen
3f49e4d064
Oops, repr didn't allocate the memory it used...
2001-02-11 01:12:53 +00:00
Jack Jansen
69e7f11aa8
Added DlgObj_WhichDialog, analoguous to WhichWindow, and use this to get at dialogs.
2001-02-06 16:14:54 +00:00
Jack Jansen
d6b2aeb10d
QDFlushPortBuffer() has an optional region argument.
2001-02-06 16:13:50 +00:00
Jack Jansen
ecdaadb7c6
Also recognize DragRef as a method-argument.
2001-02-05 13:47:13 +00:00
Jack Jansen
dc2ac8d39f
Accept Dialogs and Windows where Grafports are expected (such as in SetPort) and do a MacOSX compatible cast. Bit of a hack, but good enough for now.
2001-02-02 22:41:48 +00:00
Jack Jansen
87eb4f8bb3
New internal function BMObj_NewCopied() which copies the BitMap. Used to get the screenBits bitmap.
2001-01-30 09:57:13 +00:00
Jack Jansen
bf21bef254
Got ZeroScrap() and PutScrap() to work under Carbon.
2001-01-29 15:20:06 +00:00
Jack Jansen
5c3c58bde0
Accessor functions for regions and such expect an existing region as parameter. Fixed for grafport attribute access.
...
Got GetPortBitMapForCopyBits() and port.portBits to work.
2001-01-29 14:07:01 +00:00
Jack Jansen
54c0787909
Added generators for EnableMenuItem and CheckMenuItem (which have Mac in front of their name in the include files).
2001-01-29 13:32:10 +00:00
Jack Jansen
f424f24bbb
Re-enabled Scrap (even though it's mostly empty right now).
2001-01-29 13:31:10 +00:00
Jack Jansen
5a8115c94b
Ported the icglue module to carbon.
2001-01-29 13:27:46 +00:00
Jack Jansen
4ff2fe7ee1
ucnhash module has gone, xreadlines module added.
2001-01-25 16:28:00 +00:00
Jack Jansen
7b3cc1f9c3
Regenerated (and manually massaged for PutScrap) so it can be byuilt both for Carbon and Classic. The Carbon module is rather empty, though, for now.
2001-01-24 16:04:01 +00:00
Jack Jansen
5396feb3bb
Quick (manual) fix to make the module compile with Waste 2.0. TBD later.
2001-01-24 16:03:05 +00:00
Jack Jansen
f47075e86d
Blacklisted (for the time being) the functions that have a component argument. Don't want to drag the Cm module into the core set too.
2001-01-24 14:22:13 +00:00
Jack Jansen
bd58edaa01
Implemented direct attribute access for Carbon builds and accessor functions for non-carbon builds.
2001-01-24 14:05:11 +00:00
Jack Jansen
193509b320
Added an attribute runtimemodel, which is either "ppc" or "carbon" and is the runtime model of the current interpreter. Will have to ad another value later for real MacOSX MachO, I guess.
2001-01-23 22:38:23 +00:00
Jack Jansen
c33a423c53
Treat an empty kwdict argument the same as a missing one.
2001-01-19 23:46:28 +00:00
Jack Jansen
726d873887
Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of a funny define makes portable code impossible:-(
2001-01-19 23:45:57 +00:00
Jack Jansen
319c67b6e1
The interruptRoutine attribute is gone under Carbon. Luckily it appears that nothing used it.
2001-01-12 23:39:59 +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
d9d0b5fab1
xstat() will never be implemented under Carbon. Fortunately it also doesn't appear to be used anywhere.
2001-01-12 23:37:14 +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
0d202b7403
Various tweaks to make it everything build and compile again under carbon. Mainly greylisted functions.
2001-01-09 22:09:31 +00:00
Jack Jansen
b55e5f1b62
Fixed a few declarations.
2001-01-03 16:44:27 +00:00
Jack Jansen
7ee67a1224
Remove (unused) regex imports.
2001-01-02 22:02:45 +00:00
Jack Jansen
7ff3133a7f
Regenerated so that NewGWorld is included.
2000-12-19 22:28:14 +00:00
Jack Jansen
32248655ee
Emulate a few more non-carbon calls in carbon and the other way around.
2000-12-19 22:23:06 +00:00
Jack Jansen
87a30924d0
Added hash() and compare() functions. Needed because multiple WinObj's can now refer to the same underlying WindowRef.
2000-12-19 21:34:55 +00:00
Jack Jansen
620e914266
Blacklisted a few constants with funny definitions (and they're not important anyway: backward compatible error numbers).
2000-12-19 21:33:51 +00:00
Jack Jansen
80716f0e61
Set autodispose only if RefCon isn't set yet on the window. This way we don't accidentally dispose of windows that are actually dialogs-in-disguise.
2000-12-14 22:29:00 +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
8ed81303f6
Use new multi-input-file feature of bgen in stead of @-file hack to parse multiple header files. A side effect is that the ObjectSupportLib routines are now also available in Python.
2000-12-12 22:09:11 +00:00
Jack Jansen
b5e4248f71
Drag moved to core toolbox modules (Win uses it).
2000-12-12 21:53:14 +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
8413b47ba7
Added PyMac_OutputSeen(), which acknowledges all current output in the stdio window, i.e. it acts like input has been read insofar as the keep-console-open option is interested.
2000-10-19 22:02:16 +00:00
Jack Jansen
6433fdf1fe
Added sha module, it's needed by the unicode stuff, it seems.
2000-10-12 21:24:24 +00:00
Jack Jansen
b19c667d94
Added a method KeepConsole so programs can override the Keep console open option.
2000-10-12 21:24:05 +00:00
Jack Jansen
04b85498b8
Fixes that should make it possible to run Python on machines without NavServices installed.
2000-09-14 20:47:00 +00:00
Jack Jansen
2cecd4115c
Added Qdoffs and (optionally) icglue modules.
2000-09-14 13:34:20 +00:00
Jack Jansen
97ed907df6
Some of the types are signed 8 bit ints. Fixed.
2000-09-08 22:06:16 +00:00
Jack Jansen
fa1e27d8d2
Got rid of Py_FatalError calls.
2000-09-08 10:21:44 +00:00
Jack Jansen
b8c4c7b37e
Added routine DlgObj_ConvertToWindow().
...
GetDialogWindow() returns an existing window.
Added a comment that the methodchain Dialogs->Windows is suspect under Carbon/MacOSX, but we need it under Carbon. No solution yet:-(
2000-08-25 22:25:54 +00:00
Jack Jansen
8748a0b654
Added a prototype for mstats().
2000-08-25 22:18:20 +00:00
Jack Jansen
0aee0e61f8
Window objects now also have an AutoDispose funcpointer (set for our windows, cleared for foreign windows). Needed mainly for Carbon (where we don't know about the windows belonging to our dialogs).
...
Fixed a few calls that return an ExistingWindow.
2000-08-25 22:17:51 +00:00
Jack Jansen
d8b382dc47
HMGetBalloonWindow should try to return an existing window.
2000-08-25 22:04:24 +00:00
Jack Jansen
cdb3483744
- Added pyexpat.
...
- Renamed socket to _socket.
2000-08-25 22:03:34 +00:00
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