When the classes in wave.py opened files themselves, their .close() methods
[python/dscho.git] / Mac / Lib / lib-scriptpackages / Finder / Window_classes.py
blob17a3c36d6c748a0ad26aded2eebdd2ed62bc9766
1 """Suite Window classes: Classes representing windows
2 Level 1, version 1
4 Generated from Macintosh HD:Systeemmap:Finder
5 AETE/AEUT resource version 0/144, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'fndr'
13 class Window_classes_Events:
15 pass
18 class window(aetools.ComponentItem):
19 """window - A window """
20 want = 'cwin'
21 class position(aetools.NProperty):
22 """position - the upper left position of the window """
23 which = 'posn'
24 want = 'QDpt'
25 class bounds(aetools.NProperty):
26 """bounds - the boundary rectangle for the window """
27 which = 'pbnd'
28 want = 'qdrt'
29 class titled(aetools.NProperty):
30 """titled - Does the window have a title bar? """
31 which = 'ptit'
32 want = 'bool'
33 class name(aetools.NProperty):
34 """name - the name of the window """
35 which = 'pnam'
36 want = 'itxt'
37 class index(aetools.NProperty):
38 """index - the number of the window in the front-to-back layer ordering """
39 which = 'pidx'
40 want = 'long'
41 class closeable(aetools.NProperty):
42 """closeable - Does the window have a close box? """
43 which = 'hclb'
44 want = 'bool'
45 class floating(aetools.NProperty):
46 """floating - Does the window have a title bar? """
47 which = 'isfl'
48 want = 'bool'
49 class modal(aetools.NProperty):
50 """modal - Is the window modal? """
51 which = 'pmod'
52 want = 'bool'
54 resizable = titled
55 class zoomable(aetools.NProperty):
56 """zoomable - Is the window zoomable? """
57 which = 'iszm'
58 want = 'bool'
59 class zoomed(aetools.NProperty):
60 """zoomed - Is the window zoomed? """
61 which = 'pzum'
62 want = 'bool'
63 class zoomed_full_size(aetools.NProperty):
64 """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read, and only applies to open non-pop-up windows) """
65 which = 'zumf'
66 want = 'bool'
67 class visible(aetools.NProperty):
68 """visible - Is the window visible (always true for open Finder windows)? """
69 which = 'pvis'
70 want = 'bool'
71 class popup(aetools.NProperty):
72 """popup - Is the window is a pop-up window? (only applies to open container windows in the Finder and can only be set when the Finder is the front application) """
73 which = 'drwr'
74 want = 'bool'
75 class pulled_open(aetools.NProperty):
76 """pulled open - Is the window pulled open (only applies to pop-up windows and can only be set when the Finder is the front application)? """
77 which = 'pull'
78 want = 'bool'
79 class collapsed(aetools.NProperty):
80 """collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """
81 which = 'wshd'
82 want = 'bool'
84 windows = window
86 class container_window(aetools.ComponentItem):
87 """container window - A window that contains items """
88 want = 'cwnd'
89 class _3c_Inheritance_3e_(aetools.NProperty):
90 """<Inheritance> - inherits some of its properties from the window class """
91 which = 'c@#^'
92 want = 'cwin'
93 class container(aetools.NProperty):
94 """container - the container from which the window was opened """
95 which = 'ctnr'
96 want = 'obj '
97 class item(aetools.NProperty):
98 """item - the item from which the window was opened (always returns something) """
99 which = 'cobj'
100 want = 'obj '
101 class has_custom_view_settings(aetools.NProperty):
102 """has custom view settings - Does the folder have custom view settings or is it using the default global settings? """
103 which = 'cuss'
104 want = 'bool'
105 class view(aetools.NProperty):
106 """view - the current view for the window (icon, name, date, etc.) """
107 which = 'pvew'
108 want = 'long'
109 class previous_list_view(aetools.NProperty):
110 """previous list view - the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed and only available when the window is open) """
111 which = 'svew'
112 want = 'enum'
113 class button_view_arrangement(aetools.NProperty):
114 """button view arrangement - the property by which to keep icons arranged within a button view window """
115 which = 'barr'
116 want = 'earr'
117 class spatial_view_arrangement(aetools.NProperty):
118 """spatial view arrangement - the property by which to keep icons arranged within a spatial view window """
119 which = 'iarr'
120 want = 'earr'
121 class sort_direction(aetools.NProperty):
122 """sort direction - The direction in which the window is sorted """
123 which = 'sord'
124 want = 'sodr'
125 class calculates_folder_sizes(aetools.NProperty):
126 """calculates folder sizes - Are folder sizes calculated and displayed in the window? (does not apply to suitcase windows) """
127 which = 'sfsz'
128 want = 'bool'
129 class shows_comments(aetools.NProperty):
130 """shows comments - Are comments displayed in the window? (does not apply to suitcases) """
131 which = 'scom'
132 want = 'bool'
133 class shows_creation_date(aetools.NProperty):
134 """shows creation date - Are creation dates displayed in the window? """
135 which = 'scda'
136 want = 'bool'
137 class shows_kind(aetools.NProperty):
138 """shows kind - Are document kinds displayed in the window? """
139 which = 'sknd'
140 want = 'bool'
141 class shows_label(aetools.NProperty):
142 """shows label - Are labels displayed in the window? """
143 which = 'slbl'
144 want = 'bool'
145 class shows_modification_date(aetools.NProperty):
146 """shows modification date - Are modification dates displayed in the window? """
147 which = 'sdat'
148 want = 'bool'
149 class shows_size(aetools.NProperty):
150 """shows size - Are file sizes displayed in the window? """
151 which = 'ssiz'
152 want = 'bool'
153 class shows_version(aetools.NProperty):
154 """shows version - Are file versions displayed in the window? (does not apply to suitcase windows) """
155 which = 'svrs'
156 want = 'bool'
157 class uses_relative_dates(aetools.NProperty):
158 """uses relative dates - Are relative dates (e.g., today, yesterday) shown in the window? """
159 which = 'urdt'
160 want = 'bool'
162 container_windows = container_window
164 class information_window(aetools.ComponentItem):
165 """information window - An information window (opened by ³Get Info²) """
166 want = 'iwnd'
167 class current_panel(aetools.NProperty):
168 """current panel - the current panel in the information window """
169 which = 'panl'
170 want = 'ipnl'
171 class comment(aetools.NProperty):
172 """comment - the comment """
173 which = 'comt'
174 want = 'itxt'
175 class size(aetools.NProperty):
176 """size - the logical size of the item """
177 which = 'ptsz'
178 want = 'long'
179 class physical_size(aetools.NProperty):
180 """physical size - the actual space used by the item on disk """
181 which = 'phys'
182 want = 'long'
183 class creation_date(aetools.NProperty):
184 """creation date - the date on which the item was created """
185 which = 'ascd'
186 want = 'ldt '
187 class modification_date(aetools.NProperty):
188 """modification date - the date on which the item was last modified """
189 which = 'asmo'
190 want = 'ldt '
191 class suggested_size(aetools.NProperty):
192 """suggested size - the memory size with which the developer recommends the application be launched """
193 which = 'sprt'
194 want = 'long'
195 class minimum_size(aetools.NProperty):
196 """minimum size - the smallest memory size with which the application can be launched (only applies to information windows for applications) """
197 which = 'mprt'
198 want = 'long'
199 class preferred_size(aetools.NProperty):
200 """preferred size - the memory size with which the application will be launched (only applies to information windows for applications) """
201 which = 'appt'
202 want = 'long'
203 class icon(aetools.NProperty):
204 """icon - the icon bitmap of the item """
205 which = 'iimg'
206 want = 'ifam'
207 class locked(aetools.NProperty):
208 """locked - Is the item locked (applies only to file and application information windows)? """
209 which = 'aslk'
210 want = 'bool'
211 class stationery(aetools.NProperty):
212 """stationery - Is the item a stationery pad? """
213 which = 'pspd'
214 want = 'bool'
215 class warns_before_emptying(aetools.NProperty):
216 """warns before emptying - Display a dialog when emptying the trash (only valid for trash info window)? """
217 which = 'warn'
218 want = 'bool'
219 class product_version(aetools.NProperty):
220 """product version - the version of the product (visible at the top of the ³Get Info² window) """
221 which = 'ver2'
222 want = 'itxt'
223 class version(aetools.NProperty):
224 """version - the version of the file (visible at the bottom of the ³Get Info² window) """
225 which = 'vers'
226 want = 'itxt'
228 information_windows = information_window
230 class preferences_window(aetools.ComponentItem):
231 """preferences window - The Finder Preferences window """
232 want = 'pwnd'
234 class clipping_window(aetools.ComponentItem):
235 """clipping window - The window containing a clipping """
236 want = 'lwnd'
238 clipping_windows = clipping_window
240 class content_space(aetools.ComponentItem):
241 """content space - All windows, including the desktop window (³Window² does not include the desktop window) """
242 want = 'dwnd'
244 content_spaces = content_space
245 window._propdict = {
246 'position' : position,
247 'bounds' : bounds,
248 'titled' : titled,
249 'name' : name,
250 'index' : index,
251 'closeable' : closeable,
252 'floating' : floating,
253 'modal' : modal,
254 'resizable' : resizable,
255 'zoomable' : zoomable,
256 'zoomed' : zoomed,
257 'zoomed_full_size' : zoomed_full_size,
258 'visible' : visible,
259 'popup' : popup,
260 'pulled_open' : pulled_open,
261 'collapsed' : collapsed,
263 window._elemdict = {
265 container_window._propdict = {
266 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
267 'container' : container,
268 'item' : item,
269 'has_custom_view_settings' : has_custom_view_settings,
270 'view' : view,
271 'previous_list_view' : previous_list_view,
272 'button_view_arrangement' : button_view_arrangement,
273 'spatial_view_arrangement' : spatial_view_arrangement,
274 'sort_direction' : sort_direction,
275 'calculates_folder_sizes' : calculates_folder_sizes,
276 'shows_comments' : shows_comments,
277 'shows_creation_date' : shows_creation_date,
278 'shows_kind' : shows_kind,
279 'shows_label' : shows_label,
280 'shows_modification_date' : shows_modification_date,
281 'shows_size' : shows_size,
282 'shows_version' : shows_version,
283 'uses_relative_dates' : uses_relative_dates,
285 container_window._elemdict = {
287 information_window._propdict = {
288 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
289 'item' : item,
290 'current_panel' : current_panel,
291 'comment' : comment,
292 'size' : size,
293 'physical_size' : physical_size,
294 'creation_date' : creation_date,
295 'modification_date' : modification_date,
296 'suggested_size' : suggested_size,
297 'minimum_size' : minimum_size,
298 'preferred_size' : preferred_size,
299 'icon' : icon,
300 'locked' : locked,
301 'stationery' : stationery,
302 'warns_before_emptying' : warns_before_emptying,
303 'product_version' : product_version,
304 'version' : version,
306 information_window._elemdict = {
308 preferences_window._propdict = {
309 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
310 'current_panel' : current_panel,
312 preferences_window._elemdict = {
314 clipping_window._propdict = {
315 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
317 clipping_window._elemdict = {
319 content_space._propdict = {
321 content_space._elemdict = {
325 # Indices of types declared in this module
327 _classdeclarations = {
328 'dwnd' : content_space,
329 'iwnd' : information_window,
330 'lwnd' : clipping_window,
331 'cwnd' : container_window,
332 'cwin' : window,
333 'pwnd' : preferences_window,
336 _propdeclarations = {
337 'pidx' : index,
338 'scda' : shows_creation_date,
339 'vers' : version,
340 'aslk' : locked,
341 'pvew' : view,
342 'sdat' : shows_modification_date,
343 'drwr' : popup,
344 'sprt' : suggested_size,
345 'pvis' : visible,
346 'ptsz' : size,
347 'pull' : pulled_open,
348 'slbl' : shows_label,
349 'wshd' : collapsed,
350 'ctnr' : container,
351 'ascd' : creation_date,
352 'warn' : warns_before_emptying,
353 'sord' : sort_direction,
354 'iszm' : zoomable,
355 'comt' : comment,
356 'svew' : previous_list_view,
357 'svrs' : shows_version,
358 'sknd' : shows_kind,
359 'phys' : physical_size,
360 'iarr' : spatial_view_arrangement,
361 'posn' : position,
362 'ptit' : titled,
363 'cobj' : item,
364 'asmo' : modification_date,
365 'ssiz' : shows_size,
366 'pnam' : name,
367 'pbnd' : bounds,
368 'mprt' : minimum_size,
369 'iimg' : icon,
370 'cuss' : has_custom_view_settings,
371 'appt' : preferred_size,
372 'scom' : shows_comments,
373 'pmod' : modal,
374 'panl' : current_panel,
375 'urdt' : uses_relative_dates,
376 'zumf' : zoomed_full_size,
377 'sfsz' : calculates_folder_sizes,
378 'c@#^' : _3c_Inheritance_3e_,
379 'isfl' : floating,
380 'hclb' : closeable,
381 'pspd' : stationery,
382 'pzum' : zoomed,
383 'barr' : button_view_arrangement,
384 'ver2' : product_version,
387 _compdeclarations = {
390 _enumdeclarations = {