1 """Suite CodeWarrior suite: Terms for scripting the CodeWarrior IDE
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
13 class CodeWarrior_suite_Events
:
18 'to_targets' : 'TTGT',
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
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
['----']
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
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
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
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
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
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
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
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
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
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
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 """
250 class inherits(aetools
.NProperty
):
251 """inherits - all properties and elements of the given class are inherited by this class. """
255 build_progress_documents
= build_progress_document
257 class catalog_document(aetools
.ComponentItem
):
258 """catalog document - a browser catalog document """
261 catalog_documents
= catalog_document
263 class class_browser(aetools
.ComponentItem
):
264 """class browser - a class browser """
267 class_browsers
= class_browser
269 class class_hierarchy(aetools
.ComponentItem
):
270 """class hierarchy - a class hierarchy document """
273 class_hierarchies
= class_hierarchy
275 class editor_document(aetools
.ComponentItem
):
276 """editor document - an editor document """
279 editor_documents
= editor_document
281 class file_compare_document(aetools
.ComponentItem
):
282 """file compare document - a file compare document """
285 file_compare_documents
= file_compare_document
287 class message_document(aetools
.ComponentItem
):
288 """message document - a message document """
291 message_documents
= message_document
293 class project_document(aetools
.ComponentItem
):
294 """project document - a project document """
296 class current_target(aetools
.NProperty
):
297 """current target - the current target """
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 """
308 project_inspectors
= project_inspector
310 class single_class_browser(aetools
.ComponentItem
):
311 """single class browser - a single class browser """
314 single_class_browsers
= single_class_browser
316 class single_class_hierarchy(aetools
.ComponentItem
):
317 """single class hierarchy - a single class hierarchy document """
320 single_class_hierarchies
= single_class_hierarchy
322 class subtarget(aetools
.ComponentItem
):
323 """subtarget - a target that is prerequisite for another target """
325 class target(aetools
.NProperty
):
326 """target - the target that is dependent on this subtarget """
329 class link_against_output(aetools
.NProperty
):
330 """link against output - is the output of this subtarget linked into its dependent target? """
334 subtargets
= subtarget
336 class symbol_browser(aetools
.ComponentItem
):
337 """symbol browser - a symbol browser """
340 symbol_browsers
= symbol_browser
342 class target(aetools
.ComponentItem
):
343 """target - a target in a project """
345 class name(aetools
.NProperty
):
349 class project_document(aetools
.NProperty
):
350 """project document - the project document that contains this target """
353 # element 'SRCF' as ['indx', 'test', 'rang']
354 # element 'SBTG' as ['indx', 'test', 'rang']
358 class target_file(aetools
.ComponentItem
):
359 """target file - a source or header file in a target """
361 class id(aetools
.NProperty
):
362 """id - the unique ID number of the target file """
365 class type(aetools
.NProperty
):
366 """type - the type of source file """
369 class location(aetools
.NProperty
):
370 """location - the location of the target file on disk """
373 class path(aetools
.NProperty
):
374 """path - the path of the source file on disk """
377 class linked(aetools
.NProperty
):
378 """linked - is the source file in the link order of its target? """
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) """
385 class modified_date(aetools
.NProperty
):
386 """modified date - the date and time this source file was last modified """
389 class compiled_date(aetools
.NProperty
):
390 """compiled date - the date and this source file was last compiled """
393 class code_size(aetools
.NProperty
):
394 """code size - the size of the code (in bytes) produced by compiling this source file """
397 class data_size(aetools
.NProperty
):
398 """data size - the size of the date (in bytes) produced by compiling this source file """
401 class debug(aetools
.NProperty
):
402 """debug - is debugging information generated for this source file? """
405 class weak_link(aetools
.NProperty
):
406 """weak link - is this shared library linked weakly? """
409 class init_before(aetools
.NProperty
):
410 """init before - is the \xd4initialize before\xd5 flag set for this shared library? """
413 class merge_output(aetools
.NProperty
):
414 """merge output - is this shared library merged into another code fragment? """
417 class prerequisites(aetools
.NProperty
):
418 """prerequisites - the source files needed to build this source file """
421 class dependents(aetools
.NProperty
):
422 """dependents - the source files that need this source file in order to build """
426 target_files
= target_file
428 class text_document(aetools
.ComponentItem
):
429 """text document - a document that contains text """
431 class modified(aetools
.NProperty
):
432 """modified - Has the document been modified since the last save? """
435 class selection(aetools
.NProperty
):
436 """selection - the selection visible to the user """
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 """
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
= {
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
,
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
= {
537 'project_document' : project_document
,
539 target
._privelemdict
= {
540 'target_file' : target_file
,
541 'subtarget' : subtarget
,
543 target_file
._superclassnames
= []
544 target_file
._privpropdict
= {
547 'location' : location
,
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
,
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
= {
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
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
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
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
,
635 'MSSG' : message_document
,
636 'INSP' : project_inspector
,
637 'TXTD' : text_document
,
638 'CTLG' : catalog_document
,
639 'HIER' : class_hierarchy
,
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
,
655 'CMPD' : compiled_date
,
659 'LNKO' : link_against_output
,
663 'INIT' : init_before
,
664 'MODD' : modified_date
,
671 'PRER' : prerequisites
,
674 _compdeclarations
= {
677 _enumdeclarations
= {