Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Handles were never disposed. Added an AutoDispose(onoff) method to control this. | Jack Jansen | 2000-03-08 | 3 | -10/+143 |
| | | | | Also added a Handle() function which is like Resource() but has auto-dispose on by default. | ||||
* | Allow None as TimeBase value in TimeValue records (becomes NULL in C structure, | Jack Jansen | 2000-03-06 | 2 | -10/+26 |
| | | | | used for delta-t values by quicktime). | ||||
* | Fixed parameters to a few time and timebase calls: InOut parameters were | Jack Jansen | 2000-03-03 | 2 | -12/+25 |
| | | | | inadvertantly seen as out-only. | ||||
* | Added PutPixMapBytes() and GetPixMapBytes() functions that allow getting at | Jack Jansen | 2000-03-03 | 2 | -0/+96 |
| | | | | | | pixmap data. Added an as_GrafPort() method to be able to use a GWorld as argument to routines that expect a GrafPort. | ||||
* | Added methods getdata() and putdata() to obtain the data in a bitmap. | Jack Jansen | 2000-03-03 | 2 | -0/+68 |
| | |||||
* | Added FreeMem, MaxBlock and CompactMem calls. The values returned by these ↵ | Jack Jansen | 2000-02-21 | 1 | -0/+43 |
| | | | | 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. | ||||
* | Big oops: macfs has always been using a private exception but calling it ↵ | Jack Jansen | 2000-01-24 | 1 | -1/+1 |
| | | | | | | | mac.error. It now uses MacOS.Error (the OSErr valued error) and advertises that too. This fix shouldn't break anything, I guess. | ||||
* | Handling of defaultLocation argument was wrong, causing a crash when used. ↵ | Jack Jansen | 2000-01-13 | 1 | -1/+16 |
| | | | | Fixed. | ||||
* | List objects obtained through as_List(resource) are not auto-disposed upon | Jack Jansen | 2000-01-13 | 2 | -11/+34 |
| | | | | Python object freeing. | ||||
* | Nasty error: handle parameters are passed by _address_ to SetControlData. | Jack Jansen | 1999-12-29 | 2 | -2/+2 |
| | |||||
* | Oops, forgot & in ParseTuple argument in ControlGetDataHandle. | Jack Jansen | 1999-12-23 | 2 | -2/+2 |
| | |||||
* | Unified handle-conversion scheme to | Jack Jansen | 1999-12-23 | 10 | -27/+120 |
| | | | | | | | 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. | ||||
* | Added {Get,Set}ControlDataHandle methods. These are {Get,Set}ControlData for | Jack Jansen | 1999-12-19 | 2 | -1/+148 |
| | | | | keys that expect a Handle, and have a ResObj as parameter. | ||||
* | Added a line about passing None as eventProc to the docstring to get movable | Jack Jansen | 1999-12-17 | 1 | -0/+1 |
| | | | | dialogs. | ||||
* | Finished (I think), but only very lightly tested. Should now have full ↵ | Jack Jansen | 1999-12-17 | 1 | -104/+413 |
| | | | | | | interface: all calls, callbacks, arguments, etc. Also added docstrings. | ||||
* | Allow keyword arguments, and the dialog is now actually shown. No way to | Jack Jansen | 1999-12-16 | 1 | -29/+53 |
| | | | | get at the result yet, though:-) | ||||
* | Added Nav module | Jack Jansen | 1999-12-16 | 1 | -0/+2 |
| | |||||
* | Navigation Services module. Started from scratch, as Joe's module exported ↵ | Jack Jansen | 1999-12-16 | 1 | -0/+618 |
| | | | | too little for my needs. | ||||
* | Bgen now understands more constant definitions, but that means that a few ↵ | Jack Jansen | 1999-12-14 | 7 | -2/+32 |
| | | | | which are not parseable in Python have to be blacklisted. | ||||
* | In places where a ResObj is expected for PyArg_Parse and the object passed ↵ | Jack Jansen | 1999-12-12 | 2 | -10/+53 |
| | | | | | | in isn't but it does have an as_Resource method use that. This makes life a lot easier for appearance portability (and was needed anyway). | ||||
* | Regenerated with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support. | Jack Jansen | 1999-12-12 | 29 | -402/+3137 |
| | |||||
* | New appearance mgr support. This appears (no pun intended) to have some ↵ | Jack Jansen | 1999-12-10 | 3 | -1/+631 |
| | | | | problems that I'll fix tonight, so don't check it out. | ||||
* | Fixed a linebreak I forgot, added docstrings, (temporarily) blacklisted a ↵ | Jack Jansen | 1999-12-09 | 3 | -17/+147 |
| | | | | few routines that seem to be missing in my CW Pro 5.1. | ||||
* | Changes by Corran Webster to support {Get,Set}ControlData and | Jack Jansen | 1999-12-09 | 2 | -12/+132 |
| | | | | HandleControlClick. Untested. | ||||
* | First bits and pieces of appearance support: an init routine, a global flag ↵ | Jack Jansen | 1999-12-07 | 1 | -0/+3 |
| | | | | | | PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE is off the code is disabled (but the variables are still there, set to 0). | ||||
* | Allow for 12 arguments max, in stead of 8. Untested. | Jack Jansen | 1999-12-03 | 1 | -6/+9 |
| | |||||
* | Regenerated, no significant diferences. | Jack Jansen | 1999-09-30 | 1 | -0/+12 |
| | |||||
* | Removed availabe() method again: even on PPC it sometimes returns 1 while | Jack Jansen | 1999-08-23 | 2 | -104/+0 |
| | | | | quicktime isn't available. Use gestalt in stead for this functionality. | ||||
* | Return MacOS.Error in stead of RuntimeError in case of failure so the user | Jack Jansen | 1999-08-23 | 1 | -6/+3 |
| | | | | gets a reasonable explanation in stead of a large negative number. | ||||
* | Added available() method, which checks whether quicktime is installed at all (by | Jack Jansen | 1999-08-04 | 2 | -0/+104 |
| | | | | testing whether EnterMovies points to an actual routine or is a null pointer). | ||||
* | Drag module added. | Jack Jansen | 1999-07-05 | 1 | -0/+2 |
| | |||||
* | Print something on stderr in case of exceptions in callback routines. | Jack Jansen | 1999-06-21 | 2 | -6/+18 |
| | |||||
* | Drag manager interface (completely untested, so far) | Jack Jansen | 1999-06-21 | 3 | -0/+1446 |
| | |||||
* | If a control has no refcon pointing back to the Python object we create a new | Jack Jansen | 1999-03-13 | 2 | -11/+75 |
| | | | | | Python object. This needs a new bgenObjectDefinition.py, which implements compare and hash functions. | ||||
* | Offscreen bitmap support, first stab. PixMaps are still treated as ordinary | Jack Jansen | 1999-03-07 | 3 | -0/+741 |
| | | | | | handles, not fullblown python objects, and UpdateGWorld returns a new GWorld object in stead of modifying the existing one. | ||||
* | Added a rewrite rule so the Str255 argument of GetControlTitle is seen as | Jack Jansen | 1999-03-07 | 2 | -5/+8 |
| | | | | output parameter. | ||||
* | Added App module (appearance manager interface). | Jack Jansen | 1999-03-04 | 1 | -0/+2 |
| | |||||
* | Interface to the appearance manager. | Jack Jansen | 1999-03-04 | 3 | -0/+831 |
| | |||||
* | Re-generated with OSStatus treated like OSErr (i.e. not returned, but raising | Jack Jansen | 1999-03-04 | 1 | -24/+27 |
| | | | | an exception when negative). | ||||
* | Added Ctl.as_Control and Menu.as_Menu methods, which take a resource as | Jack Jansen | 1999-02-07 | 6 | -0/+52 |
| | | | | argument and return a Control or Menu object. | ||||
* | Added a define USE_CORE_TOOLBOX, which includes six core toolbox modules | Jack Jansen | 1999-02-07 | 1 | -12/+21 |
| | | | | | into the config file. This define is also automatically set if USE_TOOLBOX is defined. | ||||
* | Manually added definitions for normal, bold, etc. These are in MacTypes (of all | Jack Jansen | 1999-01-21 | 1 | -1/+11 |
| | | | | places) which isn't worth bgenning. | ||||
* | Interface to GetIcon, PlotIcon and friends. | Jack Jansen | 1999-01-18 | 3 | -0/+828 |
| | |||||
* | Added {Get,Set}WindowUserData methods. | Jack Jansen | 1998-10-22 | 3 | -6/+44 |
| | |||||
* | Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate. | Jack Jansen | 1998-10-12 | 9 | -11/+11 |
| | |||||
* | Added optional mouseregion parameter to WaitNextEvent (which is now | Jack Jansen | 1998-09-17 | 3 | -25/+56 |
| | | | | manually generated). | ||||
* | I give in (after all these years): renaming config.c to macconfig.c to forestall | Jack Jansen | 1998-08-18 | 1 | -0/+0 |
| | | | | the continuous name conflicts which cause the wrong config.c to be found. | ||||
* | - Added a function MoviesTask, which is the same as the method but | Jack Jansen | 1998-07-22 | 2 | -3/+29 |
| | | | | | with a null movie (giving time to all active movies) - Made the graphics world parameter to SetMovieGWorld optional. | ||||
* | Added a function SetUserItemHandler: this takes a function(dialog, | Jack Jansen | 1998-07-10 | 2 | -0/+110 |
| | | | | | | item) as parameter and returns a handle suitable for passing to SetDialogItem as a user-item redraw routine. Note that you can only make one of these, for now. | ||||
* | The init routine for MacOS had a non-standard name. Changed to | Jack Jansen | 1998-07-01 | 2 | -3/+3 |
| | | | | initMacOS(). |