Move setting of ioready 'wait' earlier in call chain, to
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / CodeWarrior / CodeWarrior_suite.py
blob7bc5b1934973c1dce7345e39f712bdc074b07f31
1 """Suite CodeWarrior suite: Terms for scripting the CodeWarrior IDE
2 Level 0, version 0
4 Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'CWIE'
13 class CodeWarrior_suite_Events:
15 _argmap_add = {
16 'new' : 'kocl',
17 'with_data' : 'data',
18 'to_targets' : 'TTGT',
19 'to_group' : 'TGRP',
22 def add(self, _object, _attributes={}, **_arguments):
23 """add: add elements to a project or target
24 Required argument: an AE object reference
25 Keyword argument new: the class of the new element or elements to add
26 Keyword argument with_data: the initial data for the element or elements
27 Keyword argument to_targets: the targets to which the new element or elements will be added
28 Keyword argument to_group: the group to which the new element or elements will be added
29 Keyword argument _attributes: AppleEvent attribute dictionary
30 """
31 _code = 'CWIE'
32 _subcode = 'ADDF'
34 aetools.keysubst(_arguments, self._argmap_add)
35 _arguments['----'] = _object
38 _reply, _arguments, _attributes = self.send(_code, _subcode,
39 _arguments, _attributes)
40 if _arguments.get('errn', 0):
41 raise aetools.Error, aetools.decodeerror(_arguments)
42 # XXXX Optionally decode result
43 if _arguments.has_key('----'):
44 return _arguments['----']
46 _argmap_export = {
47 'in_' : 'kfil',
50 def export(self, _no_object=None, _attributes={}, **_arguments):
51 """export: Export the project file as an XML file
52 Keyword argument in_: the XML file in which to export the project
53 Keyword argument _attributes: AppleEvent attribute dictionary
54 """
55 _code = 'CWIE'
56 _subcode = 'EXPT'
58 aetools.keysubst(_arguments, self._argmap_export)
59 if _no_object != None: raise TypeError, 'No direct arg expected'
62 _reply, _arguments, _attributes = self.send(_code, _subcode,
63 _arguments, _attributes)
64 if _arguments.get('errn', 0):
65 raise aetools.Error, aetools.decodeerror(_arguments)
66 # XXXX Optionally decode result
67 if _arguments.has_key('----'):
68 return _arguments['----']
70 def update(self, _no_object=None, _attributes={}, **_arguments):
71 """update: bring a project or target up to date
72 Keyword argument _attributes: AppleEvent attribute dictionary
73 """
74 _code = 'CWIE'
75 _subcode = 'UP2D'
77 if _arguments: raise TypeError, 'No optional args expected'
78 if _no_object != None: raise TypeError, 'No direct arg expected'
81 _reply, _arguments, _attributes = self.send(_code, _subcode,
82 _arguments, _attributes)
83 if _arguments.get('errn', 0):
84 raise aetools.Error, aetools.decodeerror(_arguments)
85 # XXXX Optionally decode result
86 if _arguments.has_key('----'):
87 return _arguments['----']
89 def check(self, _object=None, _attributes={}, **_arguments):
90 """check: check the syntax of a file in a project or target
91 Required argument: the file or files to be checked
92 Keyword argument _attributes: AppleEvent attribute dictionary
93 """
94 _code = 'CWIE'
95 _subcode = 'CHEK'
97 if _arguments: raise TypeError, 'No optional args expected'
98 _arguments['----'] = _object
101 _reply, _arguments, _attributes = self.send(_code, _subcode,
102 _arguments, _attributes)
103 if _arguments.get('errn', 0):
104 raise aetools.Error, aetools.decodeerror(_arguments)
105 # XXXX Optionally decode result
106 if _arguments.has_key('----'):
107 return _arguments['----']
109 def compile_file(self, _object=None, _attributes={}, **_arguments):
110 """compile file: compile a file in a project or target
111 Required argument: the file or files to be compiled
112 Keyword argument _attributes: AppleEvent attribute dictionary
114 _code = 'CWIE'
115 _subcode = 'COMP'
117 if _arguments: raise TypeError, 'No optional args expected'
118 _arguments['----'] = _object
121 _reply, _arguments, _attributes = self.send(_code, _subcode,
122 _arguments, _attributes)
123 if _arguments.get('errn', 0):
124 raise aetools.Error, aetools.decodeerror(_arguments)
125 # XXXX Optionally decode result
126 if _arguments.has_key('----'):
127 return _arguments['----']
129 def disassemble_file(self, _object=None, _attributes={}, **_arguments):
130 """disassemble file: disassemble a file in a project or target
131 Required argument: the file or files to be disassembled
132 Keyword argument _attributes: AppleEvent attribute dictionary
134 _code = 'CWIE'
135 _subcode = 'DASM'
137 if _arguments: raise TypeError, 'No optional args expected'
138 _arguments['----'] = _object
141 _reply, _arguments, _attributes = self.send(_code, _subcode,
142 _arguments, _attributes)
143 if _arguments.get('errn', 0):
144 raise aetools.Error, aetools.decodeerror(_arguments)
145 # XXXX Optionally decode result
146 if _arguments.has_key('----'):
147 return _arguments['----']
149 def build(self, _no_object=None, _attributes={}, **_arguments):
150 """build: build a project or target (equivalent of the Make menu command)
151 Keyword argument _attributes: AppleEvent attribute dictionary
153 _code = 'CWIE'
154 _subcode = 'MAKE'
156 if _arguments: raise TypeError, 'No optional args expected'
157 if _no_object != None: raise TypeError, 'No direct arg expected'
160 _reply, _arguments, _attributes = self.send(_code, _subcode,
161 _arguments, _attributes)
162 if _arguments.get('errn', 0):
163 raise aetools.Error, aetools.decodeerror(_arguments)
164 # XXXX Optionally decode result
165 if _arguments.has_key('----'):
166 return _arguments['----']
168 def remove_target_files(self, _object, _attributes={}, **_arguments):
169 """remove target files: remove files from a target
170 Required argument: an AE object reference
171 Keyword argument _attributes: AppleEvent attribute dictionary
173 _code = 'CWIE'
174 _subcode = 'RMFL'
176 if _arguments: raise TypeError, 'No optional args expected'
177 _arguments['----'] = _object
180 _reply, _arguments, _attributes = self.send(_code, _subcode,
181 _arguments, _attributes)
182 if _arguments.get('errn', 0):
183 raise aetools.Error, aetools.decodeerror(_arguments)
184 # XXXX Optionally decode result
185 if _arguments.has_key('----'):
186 return _arguments['----']
188 def remove_object_code(self, _no_object=None, _attributes={}, **_arguments):
189 """remove object code: remove object code from a project or target
190 Keyword argument _attributes: AppleEvent attribute dictionary
192 _code = 'CWIE'
193 _subcode = 'RMOB'
195 if _arguments: raise TypeError, 'No optional args expected'
196 if _no_object != None: raise TypeError, 'No direct arg expected'
199 _reply, _arguments, _attributes = self.send(_code, _subcode,
200 _arguments, _attributes)
201 if _arguments.get('errn', 0):
202 raise aetools.Error, aetools.decodeerror(_arguments)
203 # XXXX Optionally decode result
204 if _arguments.has_key('----'):
205 return _arguments['----']
207 def run_target(self, _no_object=None, _attributes={}, **_arguments):
208 """run target: run a project or target
209 Keyword argument _attributes: AppleEvent attribute dictionary
211 _code = 'CWIE'
212 _subcode = 'RUN '
214 if _arguments: raise TypeError, 'No optional args expected'
215 if _no_object != None: raise TypeError, 'No direct arg expected'
218 _reply, _arguments, _attributes = self.send(_code, _subcode,
219 _arguments, _attributes)
220 if _arguments.get('errn', 0):
221 raise aetools.Error, aetools.decodeerror(_arguments)
222 # XXXX Optionally decode result
223 if _arguments.has_key('----'):
224 return _arguments['----']
226 def touch_file(self, _object=None, _attributes={}, **_arguments):
227 """touch file: touch a file in a project or target for compilation
228 Required argument: the file or files to be touched
229 Keyword argument _attributes: AppleEvent attribute dictionary
231 _code = 'CWIE'
232 _subcode = 'TOCH'
234 if _arguments: raise TypeError, 'No optional args expected'
235 _arguments['----'] = _object
238 _reply, _arguments, _attributes = self.send(_code, _subcode,
239 _arguments, _attributes)
240 if _arguments.get('errn', 0):
241 raise aetools.Error, aetools.decodeerror(_arguments)
242 # XXXX Optionally decode result
243 if _arguments.has_key('----'):
244 return _arguments['----']
247 class build_progress_document(aetools.ComponentItem):
248 """build progress document - a build progress document """
249 want = 'PRGS'
250 class inherits(aetools.NProperty):
251 """inherits - all properties and elements of the given class are inherited by this class. """
252 which = 'c@#^'
253 want = 'docu'
255 build_progress_documents = build_progress_document
257 class catalog_document(aetools.ComponentItem):
258 """catalog document - a browser catalog document """
259 want = 'CTLG'
261 catalog_documents = catalog_document
263 class class_browser(aetools.ComponentItem):
264 """class browser - a class browser """
265 want = 'BROW'
267 class_browsers = class_browser
269 class class_hierarchy(aetools.ComponentItem):
270 """class hierarchy - a class hierarchy document """
271 want = 'HIER'
273 class_hierarchies = class_hierarchy
275 class editor_document(aetools.ComponentItem):
276 """editor document - an editor document """
277 want = 'EDIT'
279 editor_documents = editor_document
281 class file_compare_document(aetools.ComponentItem):
282 """file compare document - a file compare document """
283 want = 'COMP'
285 file_compare_documents = file_compare_document
287 class message_document(aetools.ComponentItem):
288 """message document - a message document """
289 want = 'MSSG'
291 message_documents = message_document
293 class project_document(aetools.ComponentItem):
294 """project document - a project document """
295 want = 'PRJD'
296 class current_target(aetools.NProperty):
297 """current target - the current target """
298 which = 'CURT'
299 want = 'TRGT'
300 # element 'TRGT' as ['indx', 'name', 'test', 'rang']
302 project_documents = project_document
304 class project_inspector(aetools.ComponentItem):
305 """project inspector - the project inspector """
306 want = 'INSP'
308 project_inspectors = project_inspector
310 class single_class_browser(aetools.ComponentItem):
311 """single class browser - a single class browser """
312 want = '1BRW'
314 single_class_browsers = single_class_browser
316 class single_class_hierarchy(aetools.ComponentItem):
317 """single class hierarchy - a single class hierarchy document """
318 want = '1HIR'
320 single_class_hierarchies = single_class_hierarchy
322 class subtarget(aetools.ComponentItem):
323 """subtarget - a target that is prerequisite for another target """
324 want = 'SBTG'
325 class target(aetools.NProperty):
326 """target - the target that is dependent on this subtarget """
327 which = 'TrgT'
328 want = 'TRGT'
329 class link_against_output(aetools.NProperty):
330 """link against output - is the output of this subtarget linked into its dependent target? """
331 which = 'LNKO'
332 want = 'bool'
334 subtargets = subtarget
336 class symbol_browser(aetools.ComponentItem):
337 """symbol browser - a symbol browser """
338 want = 'SYMB'
340 symbol_browsers = symbol_browser
342 class target(aetools.ComponentItem):
343 """target - a target in a project """
344 want = 'TRGT'
345 class name(aetools.NProperty):
346 """name - """
347 which = 'pnam'
348 want = 'itxt'
349 class project_document(aetools.NProperty):
350 """project document - the project document that contains this target """
351 which = 'PrjD'
352 want = 'PRJD'
353 # element 'SRCF' as ['indx', 'test', 'rang']
354 # element 'SBTG' as ['indx', 'test', 'rang']
356 targets = target
358 class target_file(aetools.ComponentItem):
359 """target file - a source or header file in a target """
360 want = 'SRCF'
361 class id(aetools.NProperty):
362 """id - the unique ID number of the target file """
363 which = 'ID '
364 want = 'long'
365 class type(aetools.NProperty):
366 """type - the type of source file """
367 which = 'FTYP'
368 want = 'FTYP'
369 class location(aetools.NProperty):
370 """location - the location of the target file on disk """
371 which = 'FILE'
372 want = 'fss '
373 class path(aetools.NProperty):
374 """path - the path of the source file on disk """
375 which = 'Path'
376 want = 'itxt'
377 class linked(aetools.NProperty):
378 """linked - is the source file in the link order of its target? """
379 which = 'LINK'
380 want = 'bool'
381 class link_index(aetools.NProperty):
382 """link index - the index of the source file in its target\xd5s link order (-1 if source file is not in link order) """
383 which = 'LIDX'
384 want = 'long'
385 class modified_date(aetools.NProperty):
386 """modified date - the date and time this source file was last modified """
387 which = 'MODD'
388 want = 'ldt '
389 class compiled_date(aetools.NProperty):
390 """compiled date - the date and this source file was last compiled """
391 which = 'CMPD'
392 want = 'ldt '
393 class code_size(aetools.NProperty):
394 """code size - the size of the code (in bytes) produced by compiling this source file """
395 which = 'CSZE'
396 want = 'long'
397 class data_size(aetools.NProperty):
398 """data size - the size of the date (in bytes) produced by compiling this source file """
399 which = 'DSZE'
400 want = 'long'
401 class debug(aetools.NProperty):
402 """debug - is debugging information generated for this source file? """
403 which = 'DBUG'
404 want = 'bool'
405 class weak_link(aetools.NProperty):
406 """weak link - is this shared library linked weakly? """
407 which = 'WEAK'
408 want = 'bool'
409 class init_before(aetools.NProperty):
410 """init before - is the \xd4initialize before\xd5 flag set for this shared library? """
411 which = 'INIT'
412 want = 'bool'
413 class merge_output(aetools.NProperty):
414 """merge output - is this shared library merged into another code fragment? """
415 which = 'MRGE'
416 want = 'bool'
417 class prerequisites(aetools.NProperty):
418 """prerequisites - the source files needed to build this source file """
419 which = 'PRER'
420 want = 'list'
421 class dependents(aetools.NProperty):
422 """dependents - the source files that need this source file in order to build """
423 which = 'DPND'
424 want = 'list'
426 target_files = target_file
428 class text_document(aetools.ComponentItem):
429 """text document - a document that contains text """
430 want = 'TXTD'
431 class modified(aetools.NProperty):
432 """modified - Has the document been modified since the last save? """
433 which = 'imod'
434 want = 'bool'
435 class selection(aetools.NProperty):
436 """selection - the selection visible to the user """
437 which = 'sele'
438 want = 'csel'
439 # element 'cha ' as ['indx', 'rele', 'rang', 'test']
440 # element 'cins' as ['rele']
441 # element 'clin' as ['indx', 'rang', 'rele']
442 # element 'ctxt' as ['rang']
444 text_documents = text_document
446 class ToolServer_worksheet(aetools.ComponentItem):
447 """ToolServer worksheet - a ToolServer worksheet """
448 want = 'TOOL'
450 ToolServer_worksheets = ToolServer_worksheet
451 import Standard_Suite
452 build_progress_document._superclassnames = ['document']
453 build_progress_document._privpropdict = {
454 'inherits' : inherits,
456 build_progress_document._privelemdict = {
458 catalog_document._superclassnames = ['text_document']
459 catalog_document._privpropdict = {
460 'inherits' : inherits,
462 catalog_document._privelemdict = {
464 class_browser._superclassnames = ['text_document']
465 class_browser._privpropdict = {
466 'inherits' : inherits,
468 class_browser._privelemdict = {
470 class_hierarchy._superclassnames = ['document']
471 class_hierarchy._privpropdict = {
472 'inherits' : inherits,
474 class_hierarchy._privelemdict = {
476 editor_document._superclassnames = ['text_document']
477 editor_document._privpropdict = {
478 'inherits' : inherits,
480 editor_document._privelemdict = {
482 file_compare_document._superclassnames = ['text_document']
483 file_compare_document._privpropdict = {
484 'inherits' : inherits,
486 file_compare_document._privelemdict = {
488 message_document._superclassnames = ['text_document']
489 message_document._privpropdict = {
490 'inherits' : inherits,
492 message_document._privelemdict = {
494 project_document._superclassnames = ['document']
495 project_document._privpropdict = {
496 'inherits' : inherits,
497 'current_target' : current_target,
499 project_document._privelemdict = {
500 'target' : target,
502 project_inspector._superclassnames = ['document']
503 project_inspector._privpropdict = {
504 'inherits' : inherits,
506 project_inspector._privelemdict = {
508 single_class_browser._superclassnames = ['text_document']
509 single_class_browser._privpropdict = {
510 'inherits' : inherits,
512 single_class_browser._privelemdict = {
514 single_class_hierarchy._superclassnames = ['document']
515 single_class_hierarchy._privpropdict = {
516 'inherits' : inherits,
518 single_class_hierarchy._privelemdict = {
520 subtarget._superclassnames = ['target']
521 subtarget._privpropdict = {
522 'inherits' : inherits,
523 'target' : target,
524 'link_against_output' : link_against_output,
526 subtarget._privelemdict = {
528 symbol_browser._superclassnames = ['text_document']
529 symbol_browser._privpropdict = {
530 'inherits' : inherits,
532 symbol_browser._privelemdict = {
534 target._superclassnames = []
535 target._privpropdict = {
536 'name' : name,
537 'project_document' : project_document,
539 target._privelemdict = {
540 'target_file' : target_file,
541 'subtarget' : subtarget,
543 target_file._superclassnames = []
544 target_file._privpropdict = {
545 'id' : id,
546 'type' : type,
547 'location' : location,
548 'path' : path,
549 'linked' : linked,
550 'link_index' : link_index,
551 'modified_date' : modified_date,
552 'compiled_date' : compiled_date,
553 'code_size' : code_size,
554 'data_size' : data_size,
555 'debug' : debug,
556 'weak_link' : weak_link,
557 'init_before' : init_before,
558 'merge_output' : merge_output,
559 'prerequisites' : prerequisites,
560 'dependents' : dependents,
562 target_file._privelemdict = {
564 text_document._superclassnames = ['document']
565 text_document._privpropdict = {
566 'inherits' : inherits,
567 'modified' : modified,
568 'selection' : selection,
570 text_document._privelemdict = {
571 'character' : Standard_Suite.character,
572 'insertion_point' : Standard_Suite.insertion_point,
573 'line' : Standard_Suite.line,
574 'text' : Standard_Suite.text,
576 ToolServer_worksheet._superclassnames = ['text_document']
577 ToolServer_worksheet._privpropdict = {
578 'inherits' : inherits,
580 ToolServer_worksheet._privelemdict = {
582 _Enum_Inte = {
583 'never_interact' : 'eNvr', # never allow user interactions
584 'interact_with_self' : 'eInS', # allow user interaction only when an AppleEvent is sent from within CodeWarrior
585 'interact_with_local' : 'eInL', # allow user interaction when AppleEvents are sent from applications on the same machine (default)
586 'interact_with_all' : 'eInA', # allow user interaction from both local and remote AppleEvents
589 _Enum_DKND = {
590 'project' : 'PRJD', # a project document
591 'editor_document' : 'EDIT', # an editor document
592 'message' : 'MSSG', # a message document
593 'file_compare' : 'COMP', # a file compare document
594 'catalog_document' : 'CTLG', # a browser catalog
595 'class_browser' : 'BROW', # a class browser document
596 'single_class_browser' : '1BRW', # a single class browser document
597 'symbol_browser' : 'SYMB', # a symbol browser document
598 'class_hierarchy' : 'HIER', # a class hierarchy document
599 'single_class_hierarchy' : '1HIR', # a single class hierarchy document
600 'project_inspector' : 'INSP', # a project inspector
601 'ToolServer_worksheet' : 'TOOL', # the ToolServer worksheet
602 'build_progress_document' : 'PRGS', # the build progress window
605 _Enum_FTYP = {
606 'library_file' : 'LIBF', # a library file
607 'project_file' : 'PRJF', # a project file
608 'resource_file' : 'RESF', # a resource file
609 'text_file' : 'TXTF', # a text file
610 'unknown_file' : 'UNKN', # unknown file type
613 _Enum_PERM = {
614 'read_write' : 'RdWr', # the file is open with read/write permission
615 'read_only' : 'Read', # the file is open with read/only permission
616 'checked_out_read_write' : 'CkRW', # the file is checked out with read/write permission
617 'checked_out_read_only' : 'CkRO', # the file is checked out with read/only permission
618 'checked_out_read_modify' : 'CkRM', # the file is checked out with read/modify permission
619 'locked' : 'Lock', # the file is locked on disk
620 'none' : 'LNNO', # the file is new
625 # Indices of types declared in this module
627 _classdeclarations = {
628 '1BRW' : single_class_browser,
629 'PRJD' : project_document,
630 'SYMB' : symbol_browser,
631 'EDIT' : editor_document,
632 'COMP' : file_compare_document,
633 'BROW' : class_browser,
634 'SBTG' : subtarget,
635 'MSSG' : message_document,
636 'INSP' : project_inspector,
637 'TXTD' : text_document,
638 'CTLG' : catalog_document,
639 'HIER' : class_hierarchy,
640 'TRGT' : target,
641 'PRGS' : build_progress_document,
642 'SRCF' : target_file,
643 'TOOL' : ToolServer_worksheet,
644 '1HIR' : single_class_hierarchy,
647 _propdeclarations = {
648 'CURT' : current_target,
649 'PrjD' : project_document,
650 'MRGE' : merge_output,
651 'WEAK' : weak_link,
652 'DPND' : dependents,
653 'c@#^' : inherits,
654 'ID ' : id,
655 'CMPD' : compiled_date,
656 'LIDX' : link_index,
657 'FILE' : location,
658 'Path' : path,
659 'LNKO' : link_against_output,
660 'imod' : modified,
661 'sele' : selection,
662 'DSZE' : data_size,
663 'INIT' : init_before,
664 'MODD' : modified_date,
665 'FTYP' : type,
666 'TrgT' : target,
667 'pnam' : name,
668 'LINK' : linked,
669 'CSZE' : code_size,
670 'DBUG' : debug,
671 'PRER' : prerequisites,
674 _compdeclarations = {
677 _enumdeclarations = {
678 'Inte' : _Enum_Inte,
679 'DKND' : _Enum_DKND,
680 'FTYP' : _Enum_FTYP,
681 'PERM' : _Enum_PERM,