blob: d332b04cb8c3fd41bb1755f72069555cb17d4b9f [file] [log] [blame]
Jack Jansen5bb3be22001-01-23 15:59:39 +00001# Methods that are missing in Carbon.
2# This module is mainly for documentation purposes, but you could use
3# it to automatically search for usage of methods that are missing.
4#
5# Modules Help and (for the time being) Scrap are completely missing.
6
7missing_Win = [
8 'GetAuxWin',
9 'GetWindowDataHandle',
10 'SaveOld',
11 'DrawNew',
12 'SetWinColor',
13 'SetDeskCPat',
14 'InitWindows',
15 'InitFloatingWindows',
16 'GetWMgrPort',
17 'GetCWMgrPort',
18 'ValidRgn', # Use versions with Window in their name
19 'ValidRect',
20 'InvalRgn',
21 'InvalRect',
22 'IsValidWindowPtr', # I think this is useless for Python, but not sure...
23 'GetWindowZoomFlag', # Not available in Carbon
24 'GetWindowTitleWidth', # Ditto
25 ]
26
27missing_Snd = [
28 'MACEVersion',
29 'SPBRecordToFile',
30 'Exp1to6',
31 'Comp6to1',
32 'Exp1to3',
33 'Comp3to1',
34 'SndControl',
35 'SndStopFilePlay',
36 'SndStartFilePlay',
37 'SndPauseFilePlay',
38 ]
39
40missing_Res = [
41 'RGetResource',
42 'OpenResFile',
43 'CreateResFile',
44 'RsrcZoneInit',
45 'InitResources',
46 'RsrcMapEntry',
47 ]
48
49missing_Qt = [
50 'SpriteMediaGetIndImageProperty', # XXXX Why isn't this in carbon?
51 'CheckQuickTimeRegistration',
52 'SetMovieAnchorDataRef',
53 'GetMovieAnchorDataRef',
54 'GetMovieLoadState',
55 'OpenADataHandler',
56 'MovieMediaGetCurrentMovieProperty',
57 'MovieMediaGetCurrentTrackProperty',
58 'MovieMediaGetChildMovieDataReference',
59 'MovieMediaSetChildMovieDataReference',
60 'MovieMediaLoadChildMovieFromDataReference',
61 'Media3DGetViewObject',
62 ]
63
64missing_Qd = [
65 ]
66
67missing_Qdoffs = [
68 ]
69
70
71missing_Menu = [
72 'GetMenuItemRefCon2',
73 'SetMenuItemRefCon2',
74 'EnableItem',
75 'DisableItem',
76 'CheckItem',
77 'CountMItems',
78 'OpenDeskAcc',
79 'SystemEdit',
80 'SystemMenu',
81 'SetMenuFlash',
82 'InitMenus',
83 'InitProcMenu',
84 ]
85
86missing_List = [
87 ]
88
89missing_Icn = [
90 'IconServicesTerminate',
91 ]
92
93missing_Fm = [
94 'InitFonts',
95 'SetFontLock',
96 'FlushFonts',
97 ]
98
99missing_Evt = [
100 'SystemEvent',
101 'SystemTask',
102 'SystemClick',
103 'GetOSEvent',
104 'OSEventAvail',
105 ]
106
107missing_Dlg = [
108 'SetGrafPortOfDialog',
109 ]
110
111missing_Ctl = [
112 'GetAuxiliaryControlRecord',
113 'SetControlColor',
114 ]
115
116missing_Cm = [
117 'SetComponentInstanceA5',
118 'GetComponentInstanceA5',
119 ]
120
121missing_App = [
122 'GetThemeMetric',
123 ]
124
125missing_AE = [
126 'AEGetDescDataSize',
127 'AEReplaceDescData',
128 ]
129
130
131missing = []
132for name in dir():
133 if name[:8] == 'missing_':
134 missing = missing + eval(name)
135del name
136
137def _search():
138 # Warning: this function only works on Unix
139 import string, os
140 re = string.join(missing, '|')
141 re = """[^a-zA-Z'"](%s)[^a-zA-Z'"]""" % re
142 os.system("find . -name '*.py' -print | xargs egrep '%s'"%re)
143
144if __name__ == '__main__':
145 _search()