2000-08-17 19:16:11 -03:00
|
|
|
"""Suite CodeWarrior suite: Terms for scripting the CodeWarrior IDE
|
|
|
|
Level 0, version 0
|
|
|
|
|
2003-06-13 11:31:19 -03:00
|
|
|
Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5
|
2000-08-17 19:16:11 -03:00
|
|
|
AETE/AEUT resource version 1/0, language 0, script 0
|
|
|
|
"""
|
|
|
|
|
|
|
|
import aetools
|
|
|
|
import MacOS
|
|
|
|
|
|
|
|
_code = 'CWIE'
|
|
|
|
|
|
|
|
class CodeWarrior_suite_Events:
|
|
|
|
|
2003-04-12 19:27:11 -03:00
|
|
|
_argmap_add = {
|
|
|
|
'new' : 'kocl',
|
|
|
|
'with_data' : 'data',
|
|
|
|
'to_targets' : 'TTGT',
|
|
|
|
'to_group' : 'TGRP',
|
|
|
|
}
|
|
|
|
|
|
|
|
def add(self, _object, _attributes={}, **_arguments):
|
|
|
|
"""add: add elements to a project or target
|
|
|
|
Required argument: an AE object reference
|
|
|
|
Keyword argument new: the class of the new element or elements to add
|
|
|
|
Keyword argument with_data: the initial data for the element or elements
|
|
|
|
Keyword argument to_targets: the targets to which the new element or elements will be added
|
|
|
|
Keyword argument to_group: the group to which the new element or elements will be added
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'ADDF'
|
|
|
|
|
|
|
|
aetools.keysubst(_arguments, self._argmap_add)
|
|
|
|
_arguments['----'] = _object
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def build(self, _no_object=None, _attributes={}, **_arguments):
|
|
|
|
"""build: build a project or target (equivalent of the Make menu command)
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'MAKE'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
if _no_object != None: raise TypeError, 'No direct arg expected'
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def check(self, _object=None, _attributes={}, **_arguments):
|
|
|
|
"""check: check the syntax of a file in a project or target
|
|
|
|
Required argument: the file or files to be checked
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'CHEK'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
_arguments['----'] = _object
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def compile_file(self, _object=None, _attributes={}, **_arguments):
|
|
|
|
"""compile file: compile a file in a project or target
|
|
|
|
Required argument: the file or files to be compiled
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'COMP'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
_arguments['----'] = _object
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def disassemble_file(self, _object=None, _attributes={}, **_arguments):
|
|
|
|
"""disassemble file: disassemble a file in a project or target
|
|
|
|
Required argument: the file or files to be disassembled
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'DASM'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
_arguments['----'] = _object
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
_argmap_export = {
|
|
|
|
'in_' : 'kfil',
|
|
|
|
}
|
|
|
|
|
|
|
|
def export(self, _no_object=None, _attributes={}, **_arguments):
|
|
|
|
"""export: Export the project file as an XML file
|
|
|
|
Keyword argument in_: the XML file in which to export the project
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'EXPT'
|
|
|
|
|
|
|
|
aetools.keysubst(_arguments, self._argmap_export)
|
|
|
|
if _no_object != None: raise TypeError, 'No direct arg expected'
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def remove_object_code(self, _no_object=None, _attributes={}, **_arguments):
|
|
|
|
"""remove object code: remove object code from a project or target
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'RMOB'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
if _no_object != None: raise TypeError, 'No direct arg expected'
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def remove_target_files(self, _object, _attributes={}, **_arguments):
|
|
|
|
"""remove target files: remove files from a target
|
|
|
|
Required argument: an AE object reference
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'RMFL'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
_arguments['----'] = _object
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def run_target(self, _no_object=None, _attributes={}, **_arguments):
|
|
|
|
"""run target: run a project or target
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'RUN '
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
if _no_object != None: raise TypeError, 'No direct arg expected'
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def touch_file(self, _object=None, _attributes={}, **_arguments):
|
|
|
|
"""touch file: touch a file in a project or target for compilation
|
|
|
|
Required argument: the file or files to be touched
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'TOCH'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
_arguments['----'] = _object
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
|
|
|
|
|
|
|
def update(self, _no_object=None, _attributes={}, **_arguments):
|
|
|
|
"""update: bring a project or target up to date
|
|
|
|
Keyword argument _attributes: AppleEvent attribute dictionary
|
|
|
|
"""
|
|
|
|
_code = 'CWIE'
|
|
|
|
_subcode = 'UP2D'
|
|
|
|
|
|
|
|
if _arguments: raise TypeError, 'No optional args expected'
|
|
|
|
if _no_object != None: raise TypeError, 'No direct arg expected'
|
|
|
|
|
|
|
|
|
|
|
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
|
|
|
_arguments, _attributes)
|
|
|
|
if _arguments.get('errn', 0):
|
|
|
|
raise aetools.Error, aetools.decodeerror(_arguments)
|
|
|
|
# XXXX Optionally decode result
|
|
|
|
if _arguments.has_key('----'):
|
|
|
|
return _arguments['----']
|
2003-03-28 18:07:22 -04:00
|
|
|
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class single_class_browser(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""single class browser - a single class browser """
|
|
|
|
want = '1BRW'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_inherits(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""inherits - all properties and elements of the given class are inherited by this class. """
|
|
|
|
which = 'c@#^'
|
|
|
|
want = 'TXTD'
|
2003-03-28 18:07:22 -04:00
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
single_class_browsers = single_class_browser
|
2000-08-17 19:16:11 -03:00
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class single_class_hierarchy(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""single class hierarchy - a single class hierarchy document """
|
|
|
|
want = '1HIR'
|
2000-08-17 19:16:11 -03:00
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
single_class_hierarchies = single_class_hierarchy
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
class class_browser(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""class browser - a class browser """
|
|
|
|
want = 'BROW'
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
class_browsers = class_browser
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class file_compare_document(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""file compare document - a file compare document """
|
|
|
|
want = 'COMP'
|
2003-03-30 18:41:53 -04:00
|
|
|
|
|
|
|
file_compare_documents = file_compare_document
|
2000-08-17 19:16:11 -03:00
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class catalog_document(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""catalog document - a browser catalog document """
|
|
|
|
want = 'CTLG'
|
2003-03-30 18:41:53 -04:00
|
|
|
|
|
|
|
catalog_documents = catalog_document
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
class editor_document(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""editor document - an editor document """
|
|
|
|
want = 'EDIT'
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
editor_documents = editor_document
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class class_hierarchy(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""class hierarchy - a class hierarchy document """
|
|
|
|
want = 'HIER'
|
2000-08-17 19:16:11 -03:00
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class_hierarchies = class_hierarchy
|
|
|
|
|
|
|
|
class project_inspector(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""project inspector - the project inspector """
|
|
|
|
want = 'INSP'
|
2003-03-30 18:41:53 -04:00
|
|
|
|
|
|
|
project_inspectors = project_inspector
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
class message_document(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""message document - a message document """
|
|
|
|
want = 'MSSG'
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
message_documents = message_document
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class build_progress_document(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""build progress document - a build progress document """
|
|
|
|
want = 'PRGS'
|
2003-03-30 18:41:53 -04:00
|
|
|
|
|
|
|
build_progress_documents = build_progress_document
|
|
|
|
|
2000-08-17 19:16:11 -03:00
|
|
|
class project_document(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""project document - a project document """
|
|
|
|
want = 'PRJD'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_current_target(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""current target - the current target """
|
|
|
|
which = 'CURT'
|
|
|
|
want = 'TRGT'
|
2000-08-17 19:16:11 -03:00
|
|
|
# element 'TRGT' as ['indx', 'name', 'test', 'rang']
|
|
|
|
|
|
|
|
project_documents = project_document
|
|
|
|
|
|
|
|
class subtarget(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""subtarget - a target that is prerequisite for another target """
|
|
|
|
want = 'SBTG'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_link_against_output(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""link against output - is the output of this subtarget linked into its dependent target? """
|
|
|
|
which = 'LNKO'
|
|
|
|
want = 'bool'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_target(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""target - the target that is dependent on this subtarget """
|
|
|
|
which = 'TrgT'
|
|
|
|
want = 'TRGT'
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
subtargets = subtarget
|
|
|
|
|
|
|
|
class target_file(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""target file - a source or header file in a target """
|
|
|
|
want = 'SRCF'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_code_size(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""code size - the size of the code (in bytes) produced by compiling this source file """
|
|
|
|
which = 'CSZE'
|
|
|
|
want = 'long'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_compiled_date(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""compiled date - the date and this source file was last compiled """
|
|
|
|
which = 'CMPD'
|
|
|
|
want = 'ldt '
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_data_size(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""data size - the size of the date (in bytes) produced by compiling this source file """
|
|
|
|
which = 'DSZE'
|
|
|
|
want = 'long'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_debug(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""debug - is debugging information generated for this source file? """
|
|
|
|
which = 'DBUG'
|
|
|
|
want = 'bool'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_dependents(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""dependents - the source files that need this source file in order to build """
|
|
|
|
which = 'DPND'
|
|
|
|
want = 'list'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_id(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""id - the unique ID number of the target file """
|
|
|
|
which = 'ID '
|
|
|
|
want = 'long'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_init_before(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""init before - is the \xd4initialize before\xd5 flag set for this shared library? """
|
|
|
|
which = 'INIT'
|
|
|
|
want = 'bool'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_link_index(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""link index - the index of the source file in its target\xd5s link order (-1 if source file is not in link order) """
|
|
|
|
which = 'LIDX'
|
|
|
|
want = 'long'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_linked(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""linked - is the source file in the link order of its target? """
|
|
|
|
which = 'LINK'
|
|
|
|
want = 'bool'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_location(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""location - the location of the target file on disk """
|
|
|
|
which = 'FILE'
|
|
|
|
want = 'fss '
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_merge_output(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""merge output - is this shared library merged into another code fragment? """
|
|
|
|
which = 'MRGE'
|
|
|
|
want = 'bool'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_modified_date(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""modified date - the date and time this source file was last modified """
|
|
|
|
which = 'MODD'
|
|
|
|
want = 'ldt '
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_path(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""path - the path of the source file on disk """
|
|
|
|
which = 'Path'
|
|
|
|
want = 'itxt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_prerequisites(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""prerequisites - the source files needed to build this source file """
|
|
|
|
which = 'PRER'
|
|
|
|
want = 'list'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_type(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""type - the type of source file """
|
|
|
|
which = 'FTYP'
|
|
|
|
want = 'FTYP'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_weak_link(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""weak link - is this shared library linked weakly? """
|
|
|
|
which = 'WEAK'
|
|
|
|
want = 'bool'
|
2000-08-17 19:16:11 -03:00
|
|
|
|
|
|
|
target_files = target_file
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class symbol_browser(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""symbol browser - a symbol browser """
|
|
|
|
want = 'SYMB'
|
2003-03-30 18:41:53 -04:00
|
|
|
|
|
|
|
symbol_browsers = symbol_browser
|
|
|
|
|
|
|
|
class ToolServer_worksheet(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""ToolServer worksheet - a ToolServer worksheet """
|
|
|
|
want = 'TOOL'
|
2003-03-30 18:41:53 -04:00
|
|
|
|
|
|
|
ToolServer_worksheets = ToolServer_worksheet
|
|
|
|
|
|
|
|
class target(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""target - a target in a project """
|
|
|
|
want = 'TRGT'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_name(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""name - """
|
|
|
|
which = 'pnam'
|
|
|
|
want = 'itxt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_project_document(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""project document - the project document that contains this target """
|
|
|
|
which = 'PrjD'
|
|
|
|
want = 'PRJD'
|
2003-03-30 18:41:53 -04:00
|
|
|
# element 'SBTG' as ['indx', 'test', 'rang']
|
|
|
|
# element 'SRCF' as ['indx', 'test', 'rang']
|
|
|
|
|
2003-03-28 18:07:22 -04:00
|
|
|
targets = target
|
|
|
|
|
2000-08-17 19:16:11 -03:00
|
|
|
class text_document(aetools.ComponentItem):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""text document - a document that contains text """
|
|
|
|
want = 'TXTD'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_modified(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""modified - Has the document been modified since the last save? """
|
|
|
|
which = 'imod'
|
|
|
|
want = 'bool'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_selection(aetools.NProperty):
|
2003-04-12 19:27:11 -03:00
|
|
|
"""selection - the selection visible to the user """
|
|
|
|
which = 'sele'
|
|
|
|
want = 'csel'
|
2000-08-17 19:16:11 -03:00
|
|
|
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
|
|
|
|
# element 'cins' as ['rele']
|
|
|
|
# element 'clin' as ['indx', 'rang', 'rele']
|
|
|
|
# element 'ctxt' as ['rang']
|
|
|
|
|
|
|
|
text_documents = text_document
|
2003-03-30 18:41:53 -04:00
|
|
|
single_class_browser._superclassnames = ['text_document']
|
|
|
|
single_class_browser._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2003-03-28 18:07:22 -04:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
single_class_browser._privelemdict = {
|
2003-03-28 18:07:22 -04:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
import Standard_Suite
|
2003-03-30 18:41:53 -04:00
|
|
|
single_class_hierarchy._superclassnames = ['document']
|
|
|
|
single_class_hierarchy._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
single_class_hierarchy._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
class_browser._superclassnames = ['text_document']
|
|
|
|
class_browser._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
class_browser._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
file_compare_document._superclassnames = ['text_document']
|
|
|
|
file_compare_document._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
file_compare_document._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
catalog_document._superclassnames = ['text_document']
|
|
|
|
catalog_document._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
catalog_document._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
editor_document._superclassnames = ['text_document']
|
|
|
|
editor_document._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
editor_document._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
class_hierarchy._superclassnames = ['document']
|
|
|
|
class_hierarchy._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
class_hierarchy._privelemdict = {
|
|
|
|
}
|
|
|
|
project_inspector._superclassnames = ['document']
|
|
|
|
project_inspector._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
project_inspector._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
message_document._superclassnames = ['text_document']
|
|
|
|
message_document._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
message_document._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
build_progress_document._superclassnames = ['document']
|
|
|
|
build_progress_document._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
build_progress_document._privelemdict = {
|
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
project_document._superclassnames = ['document']
|
|
|
|
project_document._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'current_target' : _Prop_current_target,
|
|
|
|
'inherits' : _Prop_inherits,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
project_document._privelemdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'target' : target,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
subtarget._superclassnames = ['target']
|
|
|
|
subtarget._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
|
|
|
'link_against_output' : _Prop_link_against_output,
|
|
|
|
'target' : _Prop_target,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
subtarget._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
target_file._superclassnames = []
|
|
|
|
target_file._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'code_size' : _Prop_code_size,
|
|
|
|
'compiled_date' : _Prop_compiled_date,
|
|
|
|
'data_size' : _Prop_data_size,
|
|
|
|
'debug' : _Prop_debug,
|
|
|
|
'dependents' : _Prop_dependents,
|
|
|
|
'id' : _Prop_id,
|
|
|
|
'init_before' : _Prop_init_before,
|
|
|
|
'link_index' : _Prop_link_index,
|
|
|
|
'linked' : _Prop_linked,
|
|
|
|
'location' : _Prop_location,
|
|
|
|
'merge_output' : _Prop_merge_output,
|
|
|
|
'modified_date' : _Prop_modified_date,
|
|
|
|
'path' : _Prop_path,
|
|
|
|
'prerequisites' : _Prop_prerequisites,
|
|
|
|
'type' : _Prop_type,
|
|
|
|
'weak_link' : _Prop_weak_link,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
target_file._privelemdict = {
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
symbol_browser._superclassnames = ['text_document']
|
|
|
|
symbol_browser._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
symbol_browser._privelemdict = {
|
|
|
|
}
|
|
|
|
ToolServer_worksheet._superclassnames = ['text_document']
|
|
|
|
ToolServer_worksheet._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
ToolServer_worksheet._privelemdict = {
|
|
|
|
}
|
|
|
|
target._superclassnames = []
|
|
|
|
target._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'name' : _Prop_name,
|
|
|
|
'project_document' : _Prop_project_document,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
target._privelemdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'subtarget' : subtarget,
|
|
|
|
'target_file' : target_file,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
text_document._superclassnames = ['document']
|
|
|
|
text_document._privpropdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'inherits' : _Prop_inherits,
|
|
|
|
'modified' : _Prop_modified,
|
|
|
|
'selection' : _Prop_selection,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
text_document._privelemdict = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'character' : Standard_Suite.character,
|
|
|
|
'insertion_point' : Standard_Suite.insertion_point,
|
|
|
|
'line' : Standard_Suite.line,
|
|
|
|
'text' : Standard_Suite.text,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
|
|
|
_Enum_DKND = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'project' : 'PRJD', # a project document
|
|
|
|
'editor_document' : 'EDIT', # an editor document
|
|
|
|
'message' : 'MSSG', # a message document
|
|
|
|
'file_compare' : 'COMP', # a file compare document
|
|
|
|
'catalog_document' : 'CTLG', # a browser catalog
|
|
|
|
'class_browser' : 'BROW', # a class browser document
|
|
|
|
'single_class_browser' : '1BRW', # a single class browser document
|
|
|
|
'symbol_browser' : 'SYMB', # a symbol browser document
|
|
|
|
'class_hierarchy' : 'HIER', # a class hierarchy document
|
|
|
|
'single_class_hierarchy' : '1HIR', # a single class hierarchy document
|
|
|
|
'project_inspector' : 'INSP', # a project inspector
|
|
|
|
'ToolServer_worksheet' : 'TOOL', # the ToolServer worksheet
|
|
|
|
'build_progress_document' : 'PRGS', # the build progress window
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
_Enum_FTYP = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'library_file' : 'LIBF', # a library file
|
|
|
|
'project_file' : 'PRJF', # a project file
|
|
|
|
'resource_file' : 'RESF', # a resource file
|
|
|
|
'text_file' : 'TXTF', # a text file
|
|
|
|
'unknown_file' : 'UNKN', # unknown file type
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
|
|
|
|
2003-03-28 18:07:22 -04:00
|
|
|
_Enum_Inte = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'never_interact' : 'eNvr', # never allow user interactions
|
|
|
|
'interact_with_self' : 'eInS', # allow user interaction only when an AppleEvent is sent from within CodeWarrior
|
|
|
|
'interact_with_local' : 'eInL', # allow user interaction when AppleEvents are sent from applications on the same machine (default)
|
|
|
|
'interact_with_all' : 'eInA', # allow user interaction from both local and remote AppleEvents
|
2003-03-28 18:07:22 -04:00
|
|
|
}
|
|
|
|
|
2000-08-17 19:16:11 -03:00
|
|
|
_Enum_PERM = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'read_write' : 'RdWr', # the file is open with read/write permission
|
|
|
|
'read_only' : 'Read', # the file is open with read/only permission
|
|
|
|
'checked_out_read_write' : 'CkRW', # the file is checked out with read/write permission
|
|
|
|
'checked_out_read_only' : 'CkRO', # the file is checked out with read/only permission
|
|
|
|
'checked_out_read_modify' : 'CkRM', # the file is checked out with read/modify permission
|
|
|
|
'locked' : 'Lock', # the file is locked on disk
|
|
|
|
'none' : 'LNNO', # the file is new
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Indices of types declared in this module
|
|
|
|
#
|
|
|
|
_classdeclarations = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'1BRW' : single_class_browser,
|
|
|
|
'1HIR' : single_class_hierarchy,
|
|
|
|
'BROW' : class_browser,
|
|
|
|
'COMP' : file_compare_document,
|
|
|
|
'CTLG' : catalog_document,
|
|
|
|
'EDIT' : editor_document,
|
|
|
|
'HIER' : class_hierarchy,
|
|
|
|
'INSP' : project_inspector,
|
|
|
|
'MSSG' : message_document,
|
|
|
|
'PRGS' : build_progress_document,
|
|
|
|
'PRJD' : project_document,
|
|
|
|
'SBTG' : subtarget,
|
|
|
|
'SRCF' : target_file,
|
|
|
|
'SYMB' : symbol_browser,
|
|
|
|
'TOOL' : ToolServer_worksheet,
|
|
|
|
'TRGT' : target,
|
|
|
|
'TXTD' : text_document,
|
|
|
|
}
|
|
|
|
|
|
|
|
_propdeclarations = {
|
|
|
|
'CMPD' : _Prop_compiled_date,
|
|
|
|
'CSZE' : _Prop_code_size,
|
|
|
|
'CURT' : _Prop_current_target,
|
|
|
|
'DBUG' : _Prop_debug,
|
|
|
|
'DPND' : _Prop_dependents,
|
|
|
|
'DSZE' : _Prop_data_size,
|
|
|
|
'FILE' : _Prop_location,
|
|
|
|
'FTYP' : _Prop_type,
|
|
|
|
'ID ' : _Prop_id,
|
|
|
|
'INIT' : _Prop_init_before,
|
|
|
|
'LIDX' : _Prop_link_index,
|
|
|
|
'LINK' : _Prop_linked,
|
|
|
|
'LNKO' : _Prop_link_against_output,
|
|
|
|
'MODD' : _Prop_modified_date,
|
|
|
|
'MRGE' : _Prop_merge_output,
|
|
|
|
'PRER' : _Prop_prerequisites,
|
|
|
|
'Path' : _Prop_path,
|
|
|
|
'PrjD' : _Prop_project_document,
|
|
|
|
'TrgT' : _Prop_target,
|
|
|
|
'WEAK' : _Prop_weak_link,
|
|
|
|
'c@#^' : _Prop_inherits,
|
|
|
|
'imod' : _Prop_modified,
|
|
|
|
'pnam' : _Prop_name,
|
|
|
|
'sele' : _Prop_selection,
|
|
|
|
}
|
|
|
|
|
|
|
|
_compdeclarations = {
|
|
|
|
}
|
|
|
|
|
|
|
|
_enumdeclarations = {
|
|
|
|
'DKND' : _Enum_DKND,
|
|
|
|
'FTYP' : _Enum_FTYP,
|
|
|
|
'Inte' : _Enum_Inte,
|
|
|
|
'PERM' : _Enum_PERM,
|
2000-08-17 19:16:11 -03:00
|
|
|
}
|