blob: 5db2674979c82ea687c81cf080fe821e113054ec [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#
Jack Jansen5bb3be22001-01-23 15:59:39 +00005
Jack Jansen13735e32001-01-29 13:22:29 +00006missing_icglue = [
7 'ICFindConfigFile',
8 'ICFindUserConfigFile',
9 'ICChooseConfig',
10 'ICChooseNewConfig',
11]
12
13missing_Help = [
14 'Help'
15]
16
17missing_Scrap = [
18 'InfoScrap',
19 'GetScrap',
20 'ZeroScrap',
21 'PutScrap',
22]
23
Jack Jansen5bb3be22001-01-23 15:59:39 +000024missing_Win = [
25 'GetAuxWin',
26 'GetWindowDataHandle',
27 'SaveOld',
28 'DrawNew',
29 'SetWinColor',
30 'SetDeskCPat',
31 'InitWindows',
32 'InitFloatingWindows',
33 'GetWMgrPort',
34 'GetCWMgrPort',
35 'ValidRgn', # Use versions with Window in their name
36 'ValidRect',
37 'InvalRgn',
38 'InvalRect',
39 'IsValidWindowPtr', # I think this is useless for Python, but not sure...
40 'GetWindowZoomFlag', # Not available in Carbon
41 'GetWindowTitleWidth', # Ditto
42 ]
43
44missing_Snd = [
45 'MACEVersion',
46 'SPBRecordToFile',
47 'Exp1to6',
48 'Comp6to1',
49 'Exp1to3',
50 'Comp3to1',
51 'SndControl',
52 'SndStopFilePlay',
53 'SndStartFilePlay',
54 'SndPauseFilePlay',
55 ]
56
57missing_Res = [
58 'RGetResource',
59 'OpenResFile',
60 'CreateResFile',
61 'RsrcZoneInit',
62 'InitResources',
63 'RsrcMapEntry',
64 ]
65
66missing_Qt = [
67 'SpriteMediaGetIndImageProperty', # XXXX Why isn't this in carbon?
68 'CheckQuickTimeRegistration',
69 'SetMovieAnchorDataRef',
70 'GetMovieAnchorDataRef',
71 'GetMovieLoadState',
72 'OpenADataHandler',
73 'MovieMediaGetCurrentMovieProperty',
74 'MovieMediaGetCurrentTrackProperty',
75 'MovieMediaGetChildMovieDataReference',
76 'MovieMediaSetChildMovieDataReference',
77 'MovieMediaLoadChildMovieFromDataReference',
78 'Media3DGetViewObject',
79 ]
80
81missing_Qd = [
Jack Jansena3e2dca2001-01-29 14:27:32 +000082## 'device', # Too many false positives
Jack Jansenbace5e92001-01-24 14:06:04 +000083 'portBits',
84 'portPixMap',
85 'portVersion',
86 'grafVars',
Jack Jansen5bb3be22001-01-23 15:59:39 +000087 ]
88
89missing_Qdoffs = [
90 ]
91
92
93missing_Menu = [
94 'GetMenuItemRefCon2',
95 'SetMenuItemRefCon2',
96 'EnableItem',
97 'DisableItem',
98 'CheckItem',
99 'CountMItems',
100 'OpenDeskAcc',
101 'SystemEdit',
102 'SystemMenu',
103 'SetMenuFlash',
104 'InitMenus',
105 'InitProcMenu',
106 ]
107
108missing_List = [
109 ]
110
111missing_Icn = [
112 'IconServicesTerminate',
113 ]
114
115missing_Fm = [
116 'InitFonts',
117 'SetFontLock',
118 'FlushFonts',
119 ]
120
121missing_Evt = [
122 'SystemEvent',
123 'SystemTask',
124 'SystemClick',
125 'GetOSEvent',
126 'OSEventAvail',
127 ]
128
129missing_Dlg = [
130 'SetGrafPortOfDialog',
131 ]
132
133missing_Ctl = [
134 'GetAuxiliaryControlRecord',
135 'SetControlColor',
136 ]
137
138missing_Cm = [
139 'SetComponentInstanceA5',
140 'GetComponentInstanceA5',
141 ]
142
143missing_App = [
144 'GetThemeMetric',
145 ]
146
147missing_AE = [
148 'AEGetDescDataSize',
149 'AEReplaceDescData',
150 ]
151
152
153missing = []
154for name in dir():
155 if name[:8] == 'missing_':
156 missing = missing + eval(name)
157del name
158
159def _search():
160 # Warning: this function only works on Unix
161 import string, os
162 re = string.join(missing, '|')
Jack Jansen13735e32001-01-29 13:22:29 +0000163 re = """[^a-zA-Z0-9_'"](%s)[^a-zA-Z0-9_'"]""" % re
Jack Jansen5bb3be22001-01-23 15:59:39 +0000164 os.system("find . -name '*.py' -print | xargs egrep '%s'"%re)
165
166if __name__ == '__main__':
167 _search()