summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/help/helpsupport.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-29 21:09:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-29 21:09:00 (GMT)
commit983258ed7e96897e00c7a4459034d83816018181 (patch)
tree31117f49ebc283ef7affa094343af9c32e4b6ecb /Mac/Modules/help/helpsupport.py
parentd94c28e467cc550cc09d082eb8bd078e4f2df2e4 (diff)
downloadcpython-983258ed7e96897e00c7a4459034d83816018181.zip
cpython-983258ed7e96897e00c7a4459034d83816018181.tar.gz
cpython-983258ed7e96897e00c7a4459034d83816018181.tar.bz2
Revived the Carbon.Help module, but implementing the MacHelp API in stead
of the defunct Balloons API. Help tags are TBD, but at least this gives us access to the help menu.
Diffstat (limited to 'Mac/Modules/help/helpsupport.py')
-rw-r--r--Mac/Modules/help/helpsupport.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/Mac/Modules/help/helpsupport.py b/Mac/Modules/help/helpsupport.py
index 96fbfe2..26fa054 100644
--- a/Mac/Modules/help/helpsupport.py
+++ b/Mac/Modules/help/helpsupport.py
@@ -6,7 +6,6 @@
import string
# Declarations that change for each manager
-MACHEADERFILE = 'Balloons.h' # The Apple header file
MODNAME = '_Help' # The name of the module
OBJECTNAME = 'UNUSED' # The basic name of the objects used here
KIND = 'Record' # Usually 'Ptr' or 'Handle'
@@ -22,22 +21,26 @@ from macsupport import *
# Create the type objects
MenuRef = OpaqueByValueType("MenuRef", "MenuObj")
-
+MenuItemIndex = Type("MenuItemIndex", "H")
#WindowPeek = OpaqueByValueType("WindowPeek", OBJECTPREFIX)
-RgnHandle = FakeType("(RgnHandle)0")
+#RgnHandle = FakeType("(RgnHandle)0")
# XXXX Should be next, but this will break a lot of code...
# RgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
-KeyMap = ArrayOutputBufferType("KeyMap")
+#KeyMap = ArrayOutputBufferType("KeyMap")
##MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
##MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
-EventMask = Type("EventMask", "H")
-EventKind = Type("EventKind", "H")
+#EventMask = Type("EventMask", "H")
+#EventKind = Type("EventKind", "H")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <MacHelp.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
"""
class MyObjectDefinition(GlobalObjectDefinition):