summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Data of type Point is passed by value, not by reference.Jack Jansen2000-03-224-10/+10
|
* Added UserPane callbacks for HitTest and Tracking. Doesn't fully work yet.Jack Jansen2000-03-212-4/+92
|
* Added a GetControlRect() method to controls which returns the bounding ↵Jack Jansen2000-03-213-0/+24
| | | | rectangle. To my surprise this call is missing from the C API...
* Started on support for callbacks for UserPane controls. Unfinished and untested.Jack Jansen2000-03-202-16/+251
|
* Added a method GetMediaNextInterestingTimeOnly, which is like ↵Jack Jansen2000-03-172-0/+42
| | | | GetMediaNextInterestingTime without asking for the duration (which is, according to qt docs, expensive).
* AETransactionID was mistakenly defined as a short (it is a long). Fixed.Jack Jansen2000-03-142-2/+2
|
* Handles were never disposed. Added an AutoDispose(onoff) method to control this.Jack Jansen2000-03-083-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 Jansen2000-03-062-10/+26
| | | | used for delta-t values by quicktime).
* Fixed parameters to a few time and timebase calls: InOut parameters wereJack Jansen2000-03-032-12/+25
| | | | inadvertantly seen as out-only.
* Added PutPixMapBytes() and GetPixMapBytes() functions that allow getting atJack Jansen2000-03-032-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 Jansen2000-03-032-0/+68
|
* Added FreeMem, MaxBlock and CompactMem calls. The values returned by these ↵Jack Jansen2000-02-211-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 Jansen2000-01-241-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 Jansen2000-01-131-1/+16
| | | | Fixed.
* List objects obtained through as_List(resource) are not auto-disposed uponJack Jansen2000-01-132-11/+34
| | | | Python object freeing.
* Nasty error: handle parameters are passed by _address_ to SetControlData.Jack Jansen1999-12-292-2/+2
|
* Oops, forgot & in ParseTuple argument in ControlGetDataHandle.Jack Jansen1999-12-232-2/+2
|
* Unified handle-conversion scheme toJack Jansen1999-12-2310-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 forJack Jansen1999-12-192-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 movableJack Jansen1999-12-171-0/+1
| | | | dialogs.
* Finished (I think), but only very lightly tested. Should now have full ↵Jack Jansen1999-12-171-104/+413
| | | | | | interface: all calls, callbacks, arguments, etc. Also added docstrings.
* Allow keyword arguments, and the dialog is now actually shown. No way toJack Jansen1999-12-161-29/+53
| | | | get at the result yet, though:-)
* Added Nav moduleJack Jansen1999-12-161-0/+2
|
* Navigation Services module. Started from scratch, as Joe's module exported ↵Jack Jansen1999-12-161-0/+618
| | | | too little for my needs.
* Bgen now understands more constant definitions, but that means that a few ↵Jack Jansen1999-12-147-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 Jansen1999-12-122-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 Jansen1999-12-1229-402/+3137
|
* New appearance mgr support. This appears (no pun intended) to have some ↵Jack Jansen1999-12-103-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 Jansen1999-12-093-17/+147
| | | | few routines that seem to be missing in my CW Pro 5.1.
* Changes by Corran Webster to support {Get,Set}ControlData andJack Jansen1999-12-092-12/+132
| | | | HandleControlClick. Untested.
* First bits and pieces of appearance support: an init routine, a global flag ↵Jack Jansen1999-12-071-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 Jansen1999-12-031-6/+9
|
* Regenerated, no significant diferences.Jack Jansen1999-09-301-0/+12
|
* Removed availabe() method again: even on PPC it sometimes returns 1 whileJack Jansen1999-08-232-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 userJack Jansen1999-08-231-6/+3
| | | | gets a reasonable explanation in stead of a large negative number.
* Added available() method, which checks whether quicktime is installed at all (byJack Jansen1999-08-042-0/+104
| | | | testing whether EnterMovies points to an actual routine or is a null pointer).
* Drag module added.Jack Jansen1999-07-051-0/+2
|
* Print something on stderr in case of exceptions in callback routines.Jack Jansen1999-06-212-6/+18
|
* Drag manager interface (completely untested, so far)Jack Jansen1999-06-213-0/+1446
|
* If a control has no refcon pointing back to the Python object we create a newJack Jansen1999-03-132-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 ordinaryJack Jansen1999-03-073-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 asJack Jansen1999-03-072-5/+8
| | | | output parameter.
* Added App module (appearance manager interface).Jack Jansen1999-03-041-0/+2
|
* Interface to the appearance manager.Jack Jansen1999-03-043-0/+831
|
* Re-generated with OSStatus treated like OSErr (i.e. not returned, but raisingJack Jansen1999-03-041-24/+27
| | | | an exception when negative).
* Added Ctl.as_Control and Menu.as_Menu methods, which take a resource asJack Jansen1999-02-076-0/+52
| | | | argument and return a Control or Menu object.
* Added a define USE_CORE_TOOLBOX, which includes six core toolbox modulesJack Jansen1999-02-071-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 allJack Jansen1999-01-211-1/+11
| | | | places) which isn't worth bgenning.
* Interface to GetIcon, PlotIcon and friends.Jack Jansen1999-01-183-0/+828
|
* Added {Get,Set}WindowUserData methods.Jack Jansen1998-10-223-6/+44
|