Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0b9fdca
Commit
e0b9fdca
authored
Dec 12, 2001
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated for Universal Headers 3.4.
parent
485d92e1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3388 additions
and
790 deletions
+3388
-790
Mac/Lib/Carbon/Controls.py
Mac/Lib/Carbon/Controls.py
+284
-54
Mac/Modules/ctl/_Ctlmodule.c
Mac/Modules/ctl/_Ctlmodule.c
+3040
-735
Mac/Modules/ctl/ctlscan.py
Mac/Modules/ctl/ctlscan.py
+32
-1
Mac/Modules/ctl/ctlsupport.py
Mac/Modules/ctl/ctlsupport.py
+32
-0
No files found.
Mac/Lib/Carbon/Controls.py
View file @
e0b9fdca
This diff is collapsed.
Click to expand it.
Mac/Modules/ctl/_Ctlmodule.c
View file @
e0b9fdca
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Mac/Modules/ctl/ctlscan.py
View file @
e0b9fdca
...
...
@@ -36,6 +36,11 @@ class MyScanner(Scanner):
self
.
defsfile
.
write
(
"from TextEdit import *
\
n
"
)
self
.
defsfile
.
write
(
"from QuickDraw import *
\
n
"
)
self
.
defsfile
.
write
(
"from Dragconst import *
\
n
"
)
self
.
defsfile
.
write
(
"from CarbonEvents import *
\
n
"
)
self
.
defsfile
.
write
(
"from Appearance import *
\
n
"
)
self
.
defsfile
.
write
(
"kDataBrowserItemAnyState = -1
\
n
"
)
self
.
defsfile
.
write
(
"kControlBevelButtonCenterPopupGlyphTag = -1
\
n
"
)
self
.
defsfile
.
write
(
"kDataBrowserClientPropertyFlagsMask = 0xFF << 24 # kDataBrowserClientPropertyFlagsOffset
\
n
"
)
self
.
defsfile
.
write
(
"
\
n
"
)
def
makeblacklistnames
(
self
):
...
...
@@ -48,7 +53,8 @@ class MyScanner(Scanner):
'SetControlData'
,
# Generated manually
'GetControlData'
,
# Generated manually
'kControlBevelButtonCenterPopupGlyphTag'
,
# Constant with funny definition
'kControlProgressBarIndeterminateTag'
,
# ditto
'kDataBrowserClientPropertyFlagsMask'
,
# ditto
'kDataBrowserItemAnyState'
,
# and ditto
# The following are unavailable for static 68k (appearance manager)
## 'GetBevelButtonMenuValue',
## 'SetBevelButtonMenuValue',
...
...
@@ -80,6 +86,14 @@ class MyScanner(Scanner):
'SetControlProperty'
,
'GetControlPropertySize'
,
'SendControlMessage'
,
# Parameter changed from long to void* from UH3.3 to UH3.4
# unavailable in Just's CW6 + UH 3.4 libs
'CreateDisclosureButtonControl'
,
'CreateRelevanceBarControl'
,
'DisableControl'
,
'EnableControl'
,
'IsControlEnabled'
,
'CreateEditUnicodeTextControl'
,
'CopyDataBrowserEditText'
,
]
def
makegreylist
(
self
):
...
...
@@ -138,6 +152,23 @@ class MyScanner(Scanner):
'ControlDefSpec'
,
# Don't know how to do this yet
'ControlDefSpec_ptr'
,
# ditto
'Collection'
,
# Ditto
# not-yet-supported stuff in Universal Headers 3.4:
'ControlColorUPP'
,
'ControlKind'
,
# XXX easy: 2-tuple containing 2 OSType's
'ControlTabEntry_ptr'
,
# XXX needed for tabs
'ControlButtonContentInfo'
,
# XXX ugh: a union
'ControlButtonContentInfo_ptr'
,
# XXX ugh: a union
'ListDefSpec_ptr'
,
# XXX see _Listmodule.c, tricky but possible
'DataBrowserItemID_ptr'
,
# XXX array of UInt32, for BrowserView
'DataBrowserItemUPP'
,
'DataBrowserItemDataRef'
,
# XXX void *
'DataBrowserCallbacks'
,
# difficult struct
'DataBrowserCallbacks_ptr'
,
'DataBrowserCustomCallbacks'
,
'DataBrowserCustomCallbacks_ptr'
,
'DataBrowserTableViewColumnDesc'
,
'DataBrowserListViewColumnDesc'
,
'CFDataRef'
,
]
def
makerepairinstructions
(
self
):
...
...
Mac/Modules/ctl/ctlsupport.py
View file @
e0b9fdca
...
...
@@ -48,6 +48,38 @@ ControlID_ptr = ControlID
DragTrackingMessage
=
Type
(
"DragTrackingMessage"
,
"h"
)
DragReference
=
OpaqueByValueType
(
"DragReference"
,
"DragObj"
)
CFStringRef
=
OpaqueByValueType
(
"CFStringRef"
,
"CFStringRefObj"
)
CFMutableStringRef
=
OpaqueByValueType
(
"CFMutableStringRef"
,
"CFMutableStringRefObj"
)
CFDataRef
=
OpaqueByValueType
(
"CFDataRef"
,
"CFDataRefObj"
)
ControlTabSize
=
UInt16
ControlTabDirection
=
UInt16
ControlPopupArrowOrientation
=
UInt16
ControlPopupArrowSize
=
UInt16
ControlClockType
=
UInt16
ControlClockFlags
=
UInt32
ControlRoundButtonSize
=
SInt16
DataBrowserViewStyle
=
OSType
DataBrowserItemID
=
UInt32
DataBrowserEditCommand
=
UInt32
DataBrowserSelectionAnchorDirection
=
UInt32
DataBrowserItemState
=
UInt32
DataBrowserPropertyID
=
UInt32
DataBrowserRevealOptions
=
UInt8
DataBrowserSortOrder
=
UInt16
DataBrowserSelectionFlags
=
UInt32
DataBrowserPropertyFlags
=
UInt32
DataBrowserPropertyPart
=
OSType
DataBrowserTableViewColumnID
=
DataBrowserPropertyID
#DataBrowserTableViewColumnDesc = DataBrowserPropertyDesc
DataBrowserTableViewHiliteStyle
=
UInt32
DataBrowserTableViewRowIndex
=
UInt32
DataBrowserTableViewColumnIndex
=
UInt32
DataBrowserPropertyType
=
OSType
ControlDisclosureTriangleOrientation
=
UInt16
includestuff
=
includestuff
+
"""
#ifdef WITHOUT_FRAMEWORKS
#include <Controls.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment