Commit 7377bec6 authored by Jack Jansen's avatar Jack Jansen

Regenerated (from resource files) with sorting version of gensuitemodule.

This is a first step towards regenerating the modules with newer, MacOSX,
versions of these programs, and using the programmatic interface to
get at the terminology in stead of poking in resource files.
parent 03b9c91a
...@@ -43,36 +43,12 @@ class CodeWarrior_suite_Events: ...@@ -43,36 +43,12 @@ class CodeWarrior_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_export = { def build(self, _no_object=None, _attributes={}, **_arguments):
'in_' : 'kfil', """build: build a project or target (equivalent of the Make menu command)
}
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 update(self, _no_object=None, _attributes={}, **_arguments):
"""update: bring a project or target up to date
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'CWIE' _code = 'CWIE'
_subcode = 'UP2D' _subcode = 'MAKE'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' if _no_object != None: raise TypeError, 'No direct arg expected'
...@@ -146,14 +122,19 @@ class CodeWarrior_suite_Events: ...@@ -146,14 +122,19 @@ class CodeWarrior_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def build(self, _no_object=None, _attributes={}, **_arguments): _argmap_export = {
"""build: build a project or target (equivalent of the Make menu command) '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 Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'CWIE' _code = 'CWIE'
_subcode = 'MAKE' _subcode = 'EXPT'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_export)
if _no_object != None: raise TypeError, 'No direct arg expected' if _no_object != None: raise TypeError, 'No direct arg expected'
...@@ -165,16 +146,15 @@ class CodeWarrior_suite_Events: ...@@ -165,16 +146,15 @@ class CodeWarrior_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def remove_target_files(self, _object, _attributes={}, **_arguments): def remove_object_code(self, _no_object=None, _attributes={}, **_arguments):
"""remove target files: remove files from a target """remove object code: remove object code from a project or target
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'CWIE' _code = 'CWIE'
_subcode = 'RMFL' _subcode = 'RMOB'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -185,15 +165,16 @@ class CodeWarrior_suite_Events: ...@@ -185,15 +165,16 @@ class CodeWarrior_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def remove_object_code(self, _no_object=None, _attributes={}, **_arguments): def remove_target_files(self, _object, _attributes={}, **_arguments):
"""remove object code: remove object code from a project or target """remove target files: remove files from a target
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'CWIE' _code = 'CWIE'
_subcode = 'RMOB' _subcode = 'RMFL'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -243,14 +224,39 @@ class CodeWarrior_suite_Events: ...@@ -243,14 +224,39 @@ class CodeWarrior_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] 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'
class build_progress_document(aetools.ComponentItem): if _arguments: raise TypeError, 'No optional args expected'
"""build progress document - a build progress document """ if _no_object != None: raise TypeError, 'No direct arg expected'
want = 'PRGS'
_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['----']
class ToolServer_worksheet(aetools.ComponentItem):
"""ToolServer worksheet - a ToolServer worksheet """
want = 'TOOL'
class inherits(aetools.NProperty): class inherits(aetools.NProperty):
"""inherits - all properties and elements of the given class are inherited by this class. """ """inherits - all properties and elements of the given class are inherited by this class. """
which = 'c@#^' which = 'c@#^'
want = 'docu' want = 'TXTD'
ToolServer_worksheets = ToolServer_worksheet
class build_progress_document(aetools.ComponentItem):
"""build progress document - a build progress document """
want = 'PRGS'
build_progress_documents = build_progress_document build_progress_documents = build_progress_document
...@@ -266,11 +272,11 @@ class class_browser(aetools.ComponentItem): ...@@ -266,11 +272,11 @@ class class_browser(aetools.ComponentItem):
class_browsers = class_browser class_browsers = class_browser
class class_hierarchy(aetools.ComponentItem): class class_hierarchies(aetools.ComponentItem):
"""class hierarchy - a class hierarchy document """ """class hierarchies - more than one class hierarchy document """
want = 'HIER' want = 'HIER'
class_hierarchies = class_hierarchy class_hierarchy = class_hierarchies
class editor_document(aetools.ComponentItem): class editor_document(aetools.ComponentItem):
"""editor document - an editor document """ """editor document - an editor document """
...@@ -313,11 +319,11 @@ class single_class_browser(aetools.ComponentItem): ...@@ -313,11 +319,11 @@ class single_class_browser(aetools.ComponentItem):
single_class_browsers = single_class_browser single_class_browsers = single_class_browser
class single_class_hierarchy(aetools.ComponentItem): class single_class_hierarchies(aetools.ComponentItem):
"""single class hierarchy - a single class hierarchy document """ """single class hierarchies - more than one single class hierarchy document """
want = '1HIR' want = '1HIR'
single_class_hierarchies = single_class_hierarchy single_class_hierarchy = single_class_hierarchies
class subtarget(aetools.ComponentItem): class subtarget(aetools.ComponentItem):
"""subtarget - a target that is prerequisite for another target """ """subtarget - a target that is prerequisite for another target """
...@@ -353,8 +359,6 @@ class project_document(aetools.NProperty): ...@@ -353,8 +359,6 @@ class project_document(aetools.NProperty):
# element 'SRCF' as ['indx', 'test', 'rang'] # element 'SRCF' as ['indx', 'test', 'rang']
# element 'SBTG' as ['indx', 'test', 'rang'] # element 'SBTG' as ['indx', 'test', 'rang']
targets = target
class target_file(aetools.ComponentItem): class target_file(aetools.ComponentItem):
"""target file - a source or header file in a target """ """target file - a source or header file in a target """
want = 'SRCF' want = 'SRCF'
...@@ -425,6 +429,8 @@ class dependents(aetools.NProperty): ...@@ -425,6 +429,8 @@ class dependents(aetools.NProperty):
target_files = target_file target_files = target_file
targets = target
class text_document(aetools.ComponentItem): class text_document(aetools.ComponentItem):
"""text document - a document that contains text """ """text document - a document that contains text """
want = 'TXTD' want = 'TXTD'
...@@ -442,12 +448,12 @@ class selection(aetools.NProperty): ...@@ -442,12 +448,12 @@ class selection(aetools.NProperty):
# element 'ctxt' as ['rang'] # element 'ctxt' as ['rang']
text_documents = text_document text_documents = text_document
ToolServer_worksheet._superclassnames = ['text_document']
class ToolServer_worksheet(aetools.ComponentItem): ToolServer_worksheet._privpropdict = {
"""ToolServer worksheet - a ToolServer worksheet """ 'inherits' : inherits,
want = 'TOOL' }
ToolServer_worksheet._privelemdict = {
ToolServer_worksheets = ToolServer_worksheet }
import Standard_Suite import Standard_Suite
build_progress_document._superclassnames = ['document'] build_progress_document._superclassnames = ['document']
build_progress_document._privpropdict = { build_progress_document._privpropdict = {
...@@ -467,11 +473,10 @@ class_browser._privpropdict = { ...@@ -467,11 +473,10 @@ class_browser._privpropdict = {
} }
class_browser._privelemdict = { class_browser._privelemdict = {
} }
class_hierarchy._superclassnames = ['document'] class_hierarchies._superclassnames = []
class_hierarchy._privpropdict = { class_hierarchies._privpropdict = {
'inherits' : inherits,
} }
class_hierarchy._privelemdict = { class_hierarchies._privelemdict = {
} }
editor_document._superclassnames = ['text_document'] editor_document._superclassnames = ['text_document']
editor_document._privpropdict = { editor_document._privpropdict = {
...@@ -511,11 +516,10 @@ single_class_browser._privpropdict = { ...@@ -511,11 +516,10 @@ single_class_browser._privpropdict = {
} }
single_class_browser._privelemdict = { single_class_browser._privelemdict = {
} }
single_class_hierarchy._superclassnames = ['document'] single_class_hierarchies._superclassnames = []
single_class_hierarchy._privpropdict = { single_class_hierarchies._privpropdict = {
'inherits' : inherits,
} }
single_class_hierarchy._privelemdict = { single_class_hierarchies._privelemdict = {
} }
subtarget._superclassnames = ['target'] subtarget._superclassnames = ['target']
subtarget._privpropdict = { subtarget._privpropdict = {
...@@ -573,19 +577,6 @@ text_document._privelemdict = { ...@@ -573,19 +577,6 @@ text_document._privelemdict = {
'line' : Standard_Suite.line, 'line' : Standard_Suite.line,
'text' : Standard_Suite.text, 'text' : Standard_Suite.text,
} }
ToolServer_worksheet._superclassnames = ['text_document']
ToolServer_worksheet._privpropdict = {
'inherits' : inherits,
}
ToolServer_worksheet._privelemdict = {
}
_Enum_Inte = {
'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
}
_Enum_DKND = { _Enum_DKND = {
'project' : 'PRJD', # a project document 'project' : 'PRJD', # a project document
'editor_document' : 'EDIT', # an editor document 'editor_document' : 'EDIT', # an editor document
...@@ -610,6 +601,13 @@ _Enum_FTYP = { ...@@ -610,6 +601,13 @@ _Enum_FTYP = {
'unknown_file' : 'UNKN', # unknown file type 'unknown_file' : 'UNKN', # unknown file type
} }
_Enum_Inte = {
'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
}
_Enum_PERM = { _Enum_PERM = {
'read_write' : 'RdWr', # the file is open with read/write permission 'read_write' : 'RdWr', # the file is open with read/write permission
'read_only' : 'Read', # the file is open with read/only permission 'read_only' : 'Read', # the file is open with read/only permission
...@@ -630,18 +628,18 @@ _classdeclarations = { ...@@ -630,18 +628,18 @@ _classdeclarations = {
'SYMB' : symbol_browser, 'SYMB' : symbol_browser,
'EDIT' : editor_document, 'EDIT' : editor_document,
'COMP' : file_compare_document, 'COMP' : file_compare_document,
'BROW' : class_browser, 'TOOL' : ToolServer_worksheet,
'SBTG' : subtarget, 'SBTG' : subtarget,
'MSSG' : message_document, 'MSSG' : message_document,
'INSP' : project_inspector, 'INSP' : project_inspector,
'TXTD' : text_document, 'TXTD' : text_document,
'CTLG' : catalog_document, 'CTLG' : catalog_document,
'HIER' : class_hierarchy, 'HIER' : class_hierarchies,
'TRGT' : target, 'TRGT' : target,
'PRGS' : build_progress_document, 'PRGS' : build_progress_document,
'SRCF' : target_file, 'SRCF' : target_file,
'TOOL' : ToolServer_worksheet, 'BROW' : class_browser,
'1HIR' : single_class_hierarchy, '1HIR' : single_class_hierarchies,
} }
_propdeclarations = { _propdeclarations = {
......
...@@ -286,6 +286,47 @@ class Metrowerks_Shell_Suite_Events: ...@@ -286,6 +286,47 @@ class Metrowerks_Shell_Suite_Events:
if _no_object != None: raise TypeError, 'No direct arg 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 Get_member_function_names(self, _object, _attributes={}, **_arguments):
"""Get member function names: Returns a list containing the names of all the member functions of a class object
Required argument: must be a class object
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list'
"""
_code = 'MMPR'
_subcode = 'MbFN'
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 Get_nonsimple_classes(self, _no_object=None, _attributes={}, **_arguments):
"""Get nonsimple classes: Returns an alphabetical list of classes with member functions, bases classes, or subclasses
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list'
"""
_code = 'MMPR'
_subcode = 'NsCl'
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
...@@ -372,6 +413,26 @@ class Metrowerks_Shell_Suite_Events: ...@@ -372,6 +413,26 @@ class Metrowerks_Shell_Suite_Events:
if _no_object != None: raise TypeError, 'No direct arg 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 Open_browser(self, _object, _attributes={}, **_arguments):
"""Open browser: Display a class, member function, or data member object in a single class browser window
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'MMPR'
_subcode = 'Brow'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
...@@ -720,67 +781,6 @@ class Metrowerks_Shell_Suite_Events: ...@@ -720,67 +781,6 @@ class Metrowerks_Shell_Suite_Events:
if _no_object != None: raise TypeError, 'No direct arg 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 Open_browser(self, _object, _attributes={}, **_arguments):
"""Open browser: Display a class, member function, or data member object in a single class browser window
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'MMPR'
_subcode = 'Brow'
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 Get_nonsimple_classes(self, _no_object=None, _attributes={}, **_arguments):
"""Get nonsimple classes: Returns an alphabetical list of classes with member functions, bases classes, or subclasses
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list'
"""
_code = 'MMPR'
_subcode = 'NsCl'
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 Get_member_function_names(self, _object, _attributes={}, **_arguments):
"""Get member function names: Returns a list containing the names of all the member functions of a class object
Required argument: must be a class object
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list'
"""
_code = 'MMPR'
_subcode = 'MbFN'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
...@@ -1554,6 +1554,29 @@ class Local_Path(aetools.NProperty): ...@@ -1554,6 +1554,29 @@ class Local_Path(aetools.NProperty):
which = 'VC10' which = 'VC10'
want = 'RlPt' want = 'RlPt'
class base_class(aetools.ComponentItem):
"""base class - A base class or super class of a class """
want = 'BsCl'
class class_(aetools.NProperty):
"""class - The class object corresponding to this base class """
which = 'Clas'
want = 'obj '
class access(aetools.NProperty):
"""access - """
which = 'Acce'
want = 'Acce'
class virtual(aetools.NProperty):
"""virtual - """
which = 'Virt'
want = 'bool'
base_classes = base_class
class browser_catalog(aetools.ComponentItem):
"""browser catalog - The browser symbol catalog for the current project """
want = 'Cata'
# element 'Clas' as ['indx', 'name']
class class_(aetools.ComponentItem): class class_(aetools.ComponentItem):
"""class - A class, struct, or record type in the current project. """ """class - A class, struct, or record type in the current project. """
want = 'Clas' want = 'Clas'
...@@ -1587,21 +1610,19 @@ class all_subclasses(aetools.NProperty): ...@@ -1587,21 +1610,19 @@ class all_subclasses(aetools.NProperty):
classes = class_ classes = class_
class member_function(aetools.ComponentItem): class data_member(aetools.ComponentItem):
"""member function - A class member function or method. """ """data member - A class data member or field """
want = 'MbFn' want = 'DtMb'
class access(aetools.NProperty):
"""access - """
which = 'Acce'
want = 'Acce'
class virtual(aetools.NProperty):
"""virtual - """
which = 'Virt'
want = 'bool'
class static(aetools.NProperty): class static(aetools.NProperty):
"""static - """ """static - """
which = 'Stat' which = 'Stat'
want = 'bool' want = 'bool'
data_members = data_member
class member_function(aetools.ComponentItem):
"""member function - A class member function or method. """
want = 'MbFn'
class implementation_file(aetools.NProperty): class implementation_file(aetools.NProperty):
"""implementation file - Source file containing the member function definition """ """implementation file - Source file containing the member function definition """
which = 'DfFl' which = 'DfFl'
...@@ -1616,27 +1637,6 @@ class implementation_end_offset(aetools.NProperty): ...@@ -1616,27 +1637,6 @@ class implementation_end_offset(aetools.NProperty):
want = 'long' want = 'long'
member_functions = member_function member_functions = member_function
class data_member(aetools.ComponentItem):
"""data member - A class data member or field """
want = 'DtMb'
data_members = data_member
class base_class(aetools.ComponentItem):
"""base class - A base class or super class of a class """
want = 'BsCl'
class class_(aetools.NProperty):
"""class - The class object corresponding to this base class """
which = 'Clas'
want = 'obj '
base_classes = base_class
class browser_catalog(aetools.ComponentItem):
"""browser catalog - The browser symbol catalog for the current project """
want = 'Cata'
# element 'Clas' as ['indx', 'name']
Access_Paths._superclassnames = [] Access_Paths._superclassnames = []
Access_Paths._privpropdict = { Access_Paths._privpropdict = {
'User_Paths' : User_Paths, 'User_Paths' : User_Paths,
...@@ -1970,6 +1970,20 @@ VCS_Setup._privpropdict = { ...@@ -1970,6 +1970,20 @@ VCS_Setup._privpropdict = {
} }
VCS_Setup._privelemdict = { VCS_Setup._privelemdict = {
} }
base_class._superclassnames = []
base_class._privpropdict = {
'class_' : class_,
'access' : access,
'virtual' : virtual,
}
base_class._privelemdict = {
}
browser_catalog._superclassnames = []
browser_catalog._privpropdict = {
}
browser_catalog._privelemdict = {
'class_' : class_,
}
class_._superclassnames = [] class_._superclassnames = []
class_._privpropdict = { class_._privpropdict = {
'name' : name, 'name' : name,
...@@ -1985,6 +1999,16 @@ class_._privelemdict = { ...@@ -1985,6 +1999,16 @@ class_._privelemdict = {
'member_function' : member_function, 'member_function' : member_function,
'data_member' : data_member, 'data_member' : data_member,
} }
data_member._superclassnames = []
data_member._privpropdict = {
'name' : name,
'access' : access,
'static' : static,
'declaration_start_offset' : declaration_start_offset,
'declaration_end_offset' : declaration_end_offset,
}
data_member._privelemdict = {
}
member_function._superclassnames = [] member_function._superclassnames = []
member_function._privpropdict = { member_function._privpropdict = {
'name' : name, 'name' : name,
...@@ -2000,45 +2024,29 @@ member_function._privpropdict = { ...@@ -2000,45 +2024,29 @@ member_function._privpropdict = {
} }
member_function._privelemdict = { member_function._privelemdict = {
} }
data_member._superclassnames = [] _Enum_Acce = {
data_member._privpropdict = { 'public' : 'Publ', #
'name' : name, 'protected' : 'Prot', #
'access' : access, 'private' : 'Priv', #
'static' : static,
'declaration_start_offset' : declaration_start_offset,
'declaration_end_offset' : declaration_end_offset,
}
data_member._privelemdict = {
}
base_class._superclassnames = []
base_class._privpropdict = {
'class_' : class_,
'access' : access,
'virtual' : virtual,
}
base_class._privelemdict = {
}
browser_catalog._superclassnames = []
browser_catalog._privpropdict = {
}
browser_catalog._privelemdict = {
'class_' : class_,
} }
_Enum_TmpB = {
'User_Specified' : 'Usrs', # Use user specified symbols when setting temporary breakpoints on program launch. _Enum_BXbr = {
'Default' : 'Dflt', # Use system default symbols when setting temporary breakpoints on program launch. 'Always_Build' : 'BXb1', # Always build the target before running.
'Ask_Build' : 'BXb2', # Ask before building the target when running.
'Never_Build' : 'BXb3', # Never before building the target before running.
} }
_Enum_TxtF = { _Enum_DbSA = {
'MacOS' : 'TxF0', # MacOS text format 'No_Action' : 'DSA1', # Don\xd5t do anything to non-debug windows
'DOS' : 'TxF1', # DOS text format 'Hide_Windows' : 'DSA2', # Hide non-debugging windows
'Unix' : 'TxF2', # Unix text format 'Collapse_Windows' : 'DSA3', # Collapse non-debugging windows
'Close_Windows' : 'DSA4', # Close non-debugging windows
} }
_Enum_savo = { _Enum_DgBL = {
'yes' : 'yes ', # Save changes 'Always' : 'DgB0', # Always build before debugging.
'no' : 'no ', # Do not save changes 'Never' : 'DgB1', # Never build before debugging.
'ask' : 'ask ', # Ask the user whether to save 'Ask' : 'DgB2', # Ask about building before debugging.
} }
_Enum_ErrT = { _Enum_ErrT = {
...@@ -2052,24 +2060,11 @@ _Enum_ErrT = { ...@@ -2052,24 +2060,11 @@ _Enum_ErrT = {
'generic_error' : 'ErGn', # 'generic_error' : 'ErGn', #
} }
_Enum_SrcT = { _Enum_Inte = {
'source' : 'FTxt', # A source file (.c, .cp, .p, etc). 'never_interact' : 'eNvr', # Never allow user interactions
'unknown' : 'FUnk', # An unknown file type. '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
_Enum_PPrm = {
'absolute' : 'Abso', # An absolute path name, including volume name.
'project_relative' : 'PRel', # A path relative to the current project\xd5s folder.
'shell_relative' : 'SRel', # A path relative to the CodeWarrior\xaa folder.
'system_relative' : 'YRel', # A path relative to the system folder
'root_relative' : 'RRel', #
}
_Enum_DbSA = {
'No_Action' : 'DSA1', # Don\xd5t do anything to non-debug windows
'Hide_Windows' : 'DSA2', # Hide non-debugging windows
'Collapse_Windows' : 'DSA3', # Collapse non-debugging windows
'Close_Windows' : 'DSA4', # Close non-debugging windows
} }
_Enum_Lang = { _Enum_Lang = {
...@@ -2082,23 +2077,25 @@ _Enum_Lang = { ...@@ -2082,23 +2077,25 @@ _Enum_Lang = {
'Unknown' : 'L? ', # 'Unknown' : 'L? ', #
} }
_Enum_Acce = { _Enum_PPrm = {
'public' : 'Publ', # 'absolute' : 'Abso', # An absolute path name, including volume name.
'protected' : 'Prot', # 'project_relative' : 'PRel', # A path relative to the current project\xd5s folder.
'private' : 'Priv', # 'shell_relative' : 'SRel', # A path relative to the CodeWarrior\xaa folder.
'system_relative' : 'YRel', # A path relative to the system folder
'root_relative' : 'RRel', #
} }
_Enum_Inte = { _Enum_PXdg = {
'never_interact' : 'eNvr', # Never allow user interactions 'Diagnose_None' : 'PXd1', # No Plugin Diagnostics.
'interact_with_self' : 'eInS', # Allow user interaction only when an AppleEvent is sent from within CodeWarrior 'Diagnose_Errors' : 'PXd2', # Plugin Diagnostics for errors only.
'interact_with_local' : 'eInL', # Allow user interaction when AppleEvents are sent from applications on the same machine (default) 'Diagnose_All' : 'PXd3', # Plugin Diagnostics for everything.
'interact_with_all' : 'eInA', # Allow user interaction from both local and remote AppleEvents
} }
_Enum_DgBL = { _Enum_PthF = {
'Always' : 'DgB0', # Always build before debugging. 'Generic_Path' : 'PFGn', #
'Never' : 'DgB1', # Never build before debugging. 'MacOS_Path' : 'PFMc', # MacOS path using colon as separator
'Ask' : 'DgB2', # Ask about building before debugging. 'Windows_Path' : 'PFWn', # Windows path using backslash as separator
'Unix_Path' : 'PFUx', # Unix path using slash as separator
} }
_Enum_RefP = { _Enum_RefP = {
...@@ -2106,29 +2103,32 @@ _Enum_RefP = { ...@@ -2106,29 +2103,32 @@ _Enum_RefP = {
'QuickView' : 'ALTV', # 'QuickView' : 'ALTV', #
} }
_Enum_PXdg = {
'Diagnose_None' : 'PXd1', # No Plugin Diagnostics.
'Diagnose_Errors' : 'PXd2', # Plugin Diagnostics for errors only.
'Diagnose_All' : 'PXd3', # Plugin Diagnostics for everything.
}
_Enum_BXbr = {
'Always_Build' : 'BXb1', # Always build the target before running.
'Ask_Build' : 'BXb2', # Ask before building the target when running.
'Never_Build' : 'BXb3', # Never before building the target before running.
}
_Enum_STKd = { _Enum_STKd = {
'Absolute_Path' : 'STK0', # The \xd2path\xd3 property is an absolute path to the location of the source tree. 'Absolute_Path' : 'STK0', # The \xd2path\xd3 property is an absolute path to the location of the source tree.
'Registry_Key' : 'STK1', # The \xd2path\xd3 property is the name of a registry key that contains the path to the root. 'Registry_Key' : 'STK1', # The \xd2path\xd3 property is the name of a registry key that contains the path to the root.
'Environment_Variable' : 'STK2', # The \xd2path\xd3 property is the name of an environment variable that contains the path to the root. 'Environment_Variable' : 'STK2', # The \xd2path\xd3 property is the name of an environment variable that contains the path to the root.
} }
_Enum_PthF = { _Enum_SrcT = {
'Generic_Path' : 'PFGn', # 'source' : 'FTxt', # A source file (.c, .cp, .p, etc).
'MacOS_Path' : 'PFMc', # MacOS path using colon as separator 'unknown' : 'FUnk', # An unknown file type.
'Windows_Path' : 'PFWn', # Windows path using backslash as separator }
'Unix_Path' : 'PFUx', # Unix path using slash as separator
_Enum_TmpB = {
'User_Specified' : 'Usrs', # Use user specified symbols when setting temporary breakpoints on program launch.
'Default' : 'Dflt', # Use system default symbols when setting temporary breakpoints on program launch.
}
_Enum_TxtF = {
'MacOS' : 'TxF0', # MacOS text format
'DOS' : 'TxF1', # DOS text format
'Unix' : 'TxF2', # Unix text format
}
_Enum_savo = {
'yes' : 'yes ', # Save changes
'no' : 'no ', # Do not save changes
'ask' : 'ask ', # Ask the user whether to save
} }
...@@ -2354,17 +2354,17 @@ _compdeclarations = { ...@@ -2354,17 +2354,17 @@ _compdeclarations = {
} }
_enumdeclarations = { _enumdeclarations = {
'Lang' : _Enum_Lang,
'Inte' : _Enum_Inte, 'Inte' : _Enum_Inte,
'STKd' : _Enum_STKd,
'DgBL' : _Enum_DgBL, 'DgBL' : _Enum_DgBL,
'STKd' : _Enum_STKd,
'Acce' : _Enum_Acce, 'Acce' : _Enum_Acce,
'RefP' : _Enum_RefP, 'RefP' : _Enum_RefP,
'TxtF' : _Enum_TxtF, 'TxtF' : _Enum_TxtF,
'DbSA' : _Enum_DbSA, 'PthF' : _Enum_PthF,
'TmpB' : _Enum_TmpB, 'TmpB' : _Enum_TmpB,
'Lang' : _Enum_Lang,
'savo' : _Enum_savo, 'savo' : _Enum_savo,
'PthF' : _Enum_PthF, 'DbSA' : _Enum_DbSA,
'SrcT' : _Enum_SrcT, 'SrcT' : _Enum_SrcT,
'PXdg' : _Enum_PXdg, 'PXdg' : _Enum_PXdg,
'ErrT' : _Enum_ErrT, 'ErrT' : _Enum_ErrT,
......
...@@ -4,32 +4,32 @@ Resource aete resid 0 AppleEvent Suites ...@@ -4,32 +4,32 @@ Resource aete resid 0 AppleEvent Suites
""" """
import aetools import aetools
Error = aetools.Error Error = aetools.Error
import Required
import Standard_Suite
import CodeWarrior_suite import CodeWarrior_suite
import Standard_Suite
import Metrowerks_Shell_Suite import Metrowerks_Shell_Suite
import Required
_code_to_module = { _code_to_module = {
'reqd' : Required,
'CoRe' : Standard_Suite,
'CWIE' : CodeWarrior_suite, 'CWIE' : CodeWarrior_suite,
'CoRe' : Standard_Suite,
'MMPR' : Metrowerks_Shell_Suite, 'MMPR' : Metrowerks_Shell_Suite,
'reqd' : Required,
} }
_code_to_fullname = { _code_to_fullname = {
'reqd' : ('CodeWarrior.Required', 'Required'),
'CoRe' : ('CodeWarrior.Standard_Suite', 'Standard_Suite'),
'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'), 'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'),
'CoRe' : ('CodeWarrior.Standard_Suite', 'Standard_Suite'),
'MMPR' : ('CodeWarrior.Metrowerks_Shell_Suite', 'Metrowerks_Shell_Suite'), 'MMPR' : ('CodeWarrior.Metrowerks_Shell_Suite', 'Metrowerks_Shell_Suite'),
'reqd' : ('CodeWarrior.Required', 'Required'),
} }
from Required import *
from Standard_Suite import *
from CodeWarrior_suite import * from CodeWarrior_suite import *
from Standard_Suite import *
from Metrowerks_Shell_Suite import * from Metrowerks_Shell_Suite import *
from Required import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
...@@ -48,32 +48,6 @@ import StdSuites ...@@ -48,32 +48,6 @@ import StdSuites
# #
# Set property and element dictionaries now that all classes have been defined # Set property and element dictionaries now that all classes have been defined
# #
getbaseclasses(character)
getbaseclasses(text)
getbaseclasses(window)
getbaseclasses(file)
getbaseclasses(line)
getbaseclasses(selection_2d_object)
getbaseclasses(application)
getbaseclasses(insertion_point)
getbaseclasses(document)
getbaseclasses(single_class_browser)
getbaseclasses(project_document)
getbaseclasses(symbol_browser)
getbaseclasses(editor_document)
getbaseclasses(file_compare_document)
getbaseclasses(class_browser)
getbaseclasses(subtarget)
getbaseclasses(message_document)
getbaseclasses(project_inspector)
getbaseclasses(text_document)
getbaseclasses(catalog_document)
getbaseclasses(class_hierarchy)
getbaseclasses(target)
getbaseclasses(build_progress_document)
getbaseclasses(target_file)
getbaseclasses(ToolServer_worksheet)
getbaseclasses(single_class_hierarchy)
getbaseclasses(File_Mapping) getbaseclasses(File_Mapping)
getbaseclasses(browser_catalog) getbaseclasses(browser_catalog)
getbaseclasses(Build_Settings) getbaseclasses(Build_Settings)
...@@ -110,37 +84,37 @@ getbaseclasses(Font) ...@@ -110,37 +84,37 @@ getbaseclasses(Font)
getbaseclasses(Target_Source_Trees) getbaseclasses(Target_Source_Trees)
getbaseclasses(Debugger_Display) getbaseclasses(Debugger_Display)
getbaseclasses(class_) getbaseclasses(class_)
getbaseclasses(character)
getbaseclasses(text)
getbaseclasses(window)
getbaseclasses(file)
getbaseclasses(line)
getbaseclasses(selection_2d_object)
getbaseclasses(application)
getbaseclasses(insertion_point)
getbaseclasses(document)
getbaseclasses(single_class_browser)
getbaseclasses(project_document)
getbaseclasses(symbol_browser)
getbaseclasses(editor_document)
getbaseclasses(file_compare_document)
getbaseclasses(class_browser)
getbaseclasses(subtarget)
getbaseclasses(message_document)
getbaseclasses(project_inspector)
getbaseclasses(text_document)
getbaseclasses(catalog_document)
getbaseclasses(class_hierarchy)
getbaseclasses(target)
getbaseclasses(build_progress_document)
getbaseclasses(target_file)
getbaseclasses(ToolServer_worksheet)
getbaseclasses(single_class_hierarchy)
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cha ' : character,
'ctxt' : text,
'cwin' : window,
'file' : file,
'clin' : line,
'csel' : selection_2d_object,
'capp' : application,
'cins' : insertion_point,
'docu' : document,
'1BRW' : single_class_browser,
'PRJD' : project_document,
'SYMB' : symbol_browser,
'EDIT' : editor_document,
'COMP' : file_compare_document,
'BROW' : class_browser,
'SBTG' : subtarget,
'MSSG' : message_document,
'INSP' : project_inspector,
'TXTD' : text_document,
'CTLG' : catalog_document,
'HIER' : class_hierarchy,
'TRGT' : target,
'PRGS' : build_progress_document,
'SRCF' : target_file,
'TOOL' : ToolServer_worksheet,
'1HIR' : single_class_hierarchy,
'FMap' : File_Mapping, 'FMap' : File_Mapping,
'Cata' : browser_catalog, 'Cata' : browser_catalog,
'BSTG' : Build_Settings, 'BSTG' : Build_Settings,
...@@ -177,13 +151,39 @@ _classdeclarations = { ...@@ -177,13 +151,39 @@ _classdeclarations = {
'TSTs' : Target_Source_Trees, 'TSTs' : Target_Source_Trees,
'DbDS' : Debugger_Display, 'DbDS' : Debugger_Display,
'Clas' : class_, 'Clas' : class_,
'cha ' : character,
'ctxt' : text,
'cwin' : window,
'file' : file,
'clin' : line,
'csel' : selection_2d_object,
'capp' : application,
'cins' : insertion_point,
'docu' : document,
'1BRW' : single_class_browser,
'PRJD' : project_document,
'SYMB' : symbol_browser,
'EDIT' : editor_document,
'COMP' : file_compare_document,
'BROW' : class_browser,
'SBTG' : subtarget,
'MSSG' : message_document,
'INSP' : project_inspector,
'TXTD' : text_document,
'CTLG' : catalog_document,
'HIER' : class_hierarchy,
'TRGT' : target,
'PRGS' : build_progress_document,
'SRCF' : target_file,
'TOOL' : ToolServer_worksheet,
'1HIR' : single_class_hierarchy,
} }
class CodeWarrior(Required_Events, class CodeWarrior(CodeWarrior_suite_Events,
Standard_Suite_Events, Standard_Suite_Events,
CodeWarrior_suite_Events,
Metrowerks_Shell_Suite_Events, Metrowerks_Shell_Suite_Events,
Required_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'CWIE' _signature = 'CWIE'
......
...@@ -33,21 +33,15 @@ class Microsoft_Internet_Explorer_Events: ...@@ -33,21 +33,15 @@ class Microsoft_Internet_Explorer_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_do_script = { def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments):
'window' : 'WIND', """PrintBrowserWindow: Print contents of browser window (HTML)
} Required argument: Window Identifier of the window to print. No value means print the frontmost browser window.
def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Execute script commands
Required argument: JavaScript text to execute
Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Return value
""" """
_code = 'misc' _code = 'misc'
_subcode = 'dosc' _subcode = 'pWND'
aetools.keysubst(_arguments, self._argmap_do_script) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -59,15 +53,21 @@ class Microsoft_Internet_Explorer_Events: ...@@ -59,15 +53,21 @@ class Microsoft_Internet_Explorer_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments): _argmap_do_script = {
"""PrintBrowserWindow: Print contents of browser window (HTML) 'window' : 'WIND',
Required argument: Window Identifier of the window to print. No value means print the frontmost browser window. }
def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Execute script commands
Required argument: JavaScript text to execute
Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Return value
""" """
_code = 'misc' _code = 'misc'
_subcode = 'pWND' _subcode = 'dosc'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_do_script)
_arguments['----'] = _object _arguments['----'] = _object
......
...@@ -13,15 +13,16 @@ _code = 'reqd' ...@@ -13,15 +13,16 @@ _code = 'reqd'
from StdSuites.Required_Suite import * from StdSuites.Required_Suite import *
class Required_Suite_Events(Required_Suite_Events): class Required_Suite_Events(Required_Suite_Events):
def run(self, _no_object=None, _attributes={}, **_arguments): def open(self, _object, _attributes={}, **_arguments):
"""run: """open: Open documents
Required argument: undocumented, typecode 'alis'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'oapp' _subcode = 'odoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -32,13 +33,13 @@ class Required_Suite_Events(Required_Suite_Events): ...@@ -32,13 +33,13 @@ class Required_Suite_Events(Required_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def open(self, _object, _attributes={}, **_arguments): def print_(self, _object, _attributes={}, **_arguments):
"""open: Open documents """print: Print documents
Required argument: undocumented, typecode 'alis' Required argument: undocumented, typecode 'alis'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'odoc' _subcode = 'pdoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -52,16 +53,15 @@ class Required_Suite_Events(Required_Suite_Events): ...@@ -52,16 +53,15 @@ class Required_Suite_Events(Required_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def print_(self, _object, _attributes={}, **_arguments): def quit(self, _no_object=None, _attributes={}, **_arguments):
"""print: Print documents """quit: Quit application
Required argument: undocumented, typecode 'alis'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'pdoc' _subcode = 'quit'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -72,12 +72,12 @@ class Required_Suite_Events(Required_Suite_Events): ...@@ -72,12 +72,12 @@ class Required_Suite_Events(Required_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def quit(self, _no_object=None, _attributes={}, **_arguments): def run(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit application """run:
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'quit' _subcode = 'oapp'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' if _no_object != None: raise TypeError, 'No direct arg expected'
......
...@@ -12,57 +12,16 @@ _code = 'WWW!' ...@@ -12,57 +12,16 @@ _code = 'WWW!'
class Web_Browser_Suite_Events: class Web_Browser_Suite_Events:
_argmap_OpenURL = { def Activate(self, _object=None, _attributes={}, **_arguments):
'to' : 'INTO', """Activate: Activate Internet Explorer and optionally select window designated by Window Identifier.
'toWindow' : 'WIND', Required argument: Window Identifier
'Flags' : 'FLGS',
'FormData' : 'POST',
'MIME_Type' : 'MIME',
}
def OpenURL(self, _object, _attributes={}, **_arguments):
"""OpenURL: Retrieves URL off the Web.
Required argument: Fully-qualified URL
Keyword argument to: Target file for saving downloaded data
Keyword argument toWindow: Target window for resource at URL (-1 for top window, 0 for new window)
Keyword argument Flags: Valid Flags settings are: 1-Ignore the document cache; 2-Ignore the image cache; 4-Operate in background mode.
Keyword argument FormData: data to post
Keyword argument MIME_Type: MIME type of data being posted
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'WWW!'
_subcode = 'OURL'
aetools.keysubst(_arguments, self._argmap_OpenURL)
_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_ShowFile = {
'MIME_Type' : 'MIME',
'Window_Identifier' : 'WIND',
'URL' : 'URL ',
}
def ShowFile(self, _object, _attributes={}, **_arguments):
"""ShowFile: FileSpec containing data of specified MIME type to be rendered in window specified by Window Identifier.
Required argument: The file
Keyword argument MIME_Type: MIME type
Keyword argument Window_Identifier: Identifier of the target window for the URL. (Can use -1 for top window)
Keyword argument URL: URL that allows this document to be reloaded.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Window Identifier of window to activate
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'SHWF' _subcode = 'ACTV'
aetools.keysubst(_arguments, self._argmap_ShowFile) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -121,14 +80,14 @@ class Web_Browser_Suite_Events: ...@@ -121,14 +80,14 @@ class Web_Browser_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Activate(self, _object=None, _attributes={}, **_arguments): def GetWindowInfo(self, _object, _attributes={}, **_arguments):
"""Activate: Activate Internet Explorer and optionally select window designated by Window Identifier. """GetWindowInfo: Returns a window info record (URL/Title) for the specified window.
Required argument: Window Identifier Required argument: Window Identifier of the window
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Window Identifier of window to activate Returns:
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'ACTV' _subcode = 'WNFO'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -162,16 +121,28 @@ class Web_Browser_Suite_Events: ...@@ -162,16 +121,28 @@ class Web_Browser_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def GetWindowInfo(self, _object, _attributes={}, **_arguments): _argmap_OpenURL = {
"""GetWindowInfo: Returns a window info record (URL/Title) for the specified window. 'to' : 'INTO',
Required argument: Window Identifier of the window 'toWindow' : 'WIND',
'Flags' : 'FLGS',
'FormData' : 'POST',
'MIME_Type' : 'MIME',
}
def OpenURL(self, _object, _attributes={}, **_arguments):
"""OpenURL: Retrieves URL off the Web.
Required argument: Fully-qualified URL
Keyword argument to: Target file for saving downloaded data
Keyword argument toWindow: Target window for resource at URL (-1 for top window, 0 for new window)
Keyword argument Flags: Valid Flags settings are: 1-Ignore the document cache; 2-Ignore the image cache; 4-Operate in background mode.
Keyword argument FormData: data to post
Keyword argument MIME_Type: MIME type of data being posted
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns:
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'WNFO' _subcode = 'OURL'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_OpenURL)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -201,6 +172,35 @@ class Web_Browser_Suite_Events: ...@@ -201,6 +172,35 @@ class Web_Browser_Suite_Events:
_arguments['----'] = _object _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_ShowFile = {
'MIME_Type' : 'MIME',
'Window_Identifier' : 'WIND',
'URL' : 'URL ',
}
def ShowFile(self, _object, _attributes={}, **_arguments):
"""ShowFile: FileSpec containing data of specified MIME type to be rendered in window specified by Window Identifier.
Required argument: The file
Keyword argument MIME_Type: MIME type
Keyword argument Window_Identifier: Identifier of the target window for the URL. (Can use -1 for top window)
Keyword argument URL: URL that allows this document to be reloaded.
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'WWW!'
_subcode = 'SHWF'
aetools.keysubst(_arguments, self._argmap_ShowFile)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
......
...@@ -4,40 +4,40 @@ Resource aete resid 0 ...@@ -4,40 +4,40 @@ Resource aete resid 0
""" """
import aetools import aetools
Error = aetools.Error Error = aetools.Error
import Required_Suite
import Standard_Suite import Standard_Suite
import Web_Browser_Suite
import URL_Suite import URL_Suite
import Microsoft_Internet_Explorer
import Netscape_Suite import Netscape_Suite
import Microsoft_Internet_Explorer
import Web_Browser_Suite
import Required_Suite
_code_to_module = { _code_to_module = {
'reqd' : Required_Suite,
'****' : Standard_Suite, '****' : Standard_Suite,
'WWW!' : Web_Browser_Suite,
'GURL' : URL_Suite, 'GURL' : URL_Suite,
'MSIE' : Microsoft_Internet_Explorer,
'MOSS' : Netscape_Suite, 'MOSS' : Netscape_Suite,
'MSIE' : Microsoft_Internet_Explorer,
'WWW!' : Web_Browser_Suite,
'reqd' : Required_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
'****' : ('Explorer.Standard_Suite', 'Standard_Suite'), '****' : ('Explorer.Standard_Suite', 'Standard_Suite'),
'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'),
'GURL' : ('Explorer.URL_Suite', 'URL_Suite'), 'GURL' : ('Explorer.URL_Suite', 'URL_Suite'),
'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'),
'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'), 'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'),
'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'),
'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'),
'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
} }
from Required_Suite import *
from Standard_Suite import * from Standard_Suite import *
from Web_Browser_Suite import *
from URL_Suite import * from URL_Suite import *
from Microsoft_Internet_Explorer import *
from Netscape_Suite import * from Netscape_Suite import *
from Microsoft_Internet_Explorer import *
from Web_Browser_Suite import *
from Required_Suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
...@@ -66,12 +66,12 @@ _classdeclarations = { ...@@ -66,12 +66,12 @@ _classdeclarations = {
} }
class Explorer(Required_Suite_Events, class Explorer(Standard_Suite_Events,
Standard_Suite_Events,
Web_Browser_Suite_Events,
URL_Suite_Events, URL_Suite_Events,
Microsoft_Internet_Explorer_Events,
Netscape_Suite_Events, Netscape_Suite_Events,
Microsoft_Internet_Explorer_Events,
Web_Browser_Suite_Events,
Required_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'MSIE' _signature = 'MSIE'
......
...@@ -70,52 +70,21 @@ class view_options_window(aetools.NProperty): ...@@ -70,52 +70,21 @@ class view_options_window(aetools.NProperty):
containers = container containers = container
class sharable_container(aetools.ComponentItem): class desktop_2d_object(aetools.ComponentItem):
"""sharable container - A container that may be shared (disks and folders) """ """desktop-object - Desktop-object is the class of the \xd2desktop\xd3 object """
want = 'sctr' want = 'cdsk'
class owner(aetools.NProperty): class startup_disk(aetools.NProperty):
"""owner - the user that owns the container (file sharing must be on to use this property) """ """startup disk - the startup disk """
which = 'sown' which = 'sdsk'
want = 'itxt' want = 'cdis'
class group(aetools.NProperty): class trash(aetools.NProperty):
"""group - the user or group that has special access to the container (file sharing must be on to use this property) """ """trash - the trash """
which = 'sgrp' which = 'trsh'
want = 'itxt' want = 'ctrs'
class owner_privileges(aetools.NProperty):
"""owner privileges - the see folders/see files/make changes privileges for the owner (file sharing must be on to use this property) """
which = 'ownr'
want = 'priv'
class group_privileges(aetools.NProperty):
"""group privileges - the see folders/see files/make changes privileges for the group (file sharing must be on to use this property) """
which = 'gppr'
want = 'priv'
class guest_privileges(aetools.NProperty):
"""guest privileges - the see folders/see files/make changes privileges for everyone (file sharing must be on to use this property) """
which = 'gstp'
want = 'priv'
class privileges_inherited(aetools.NProperty):
"""privileges inherited - Are the privileges of the container always the same as the container in which it is stored? (file sharing must be on to use this property) """
which = 'iprv'
want = 'bool'
class mounted(aetools.NProperty):
"""mounted - Is the container mounted on another machine's desktop? (file sharing must be on to use this property) """
which = 'smou'
want = 'bool'
class exported(aetools.NProperty):
"""exported - Is the container a share point or inside a share point, i.e., can the container be shared? (file sharing must be on to use this property) """
which = 'sexp'
want = 'bool'
class shared(aetools.NProperty):
"""shared - Is the container a share point, i.e., is the container currently being shared? (file sharing must be on to use this property) """
which = 'shar'
want = 'bool'
class protected(aetools.NProperty):
"""protected - Is the container protected from being moved, renamed and deleted? (file sharing must be on to use this property) """
which = 'spro'
want = 'bool'
# element 'cobj' as ['indx', 'name'] # element 'cobj' as ['indx', 'name']
# element 'ctnr' as ['indx', 'name'] # element 'ctnr' as ['indx', 'name']
# element 'sctr' as ['indx', 'name'] # element 'sctr' as ['indx', 'name']
# element 'cdis' as ['indx', 'name']
# element 'cfol' as ['indx', 'name', 'ID '] # element 'cfol' as ['indx', 'name', 'ID ']
# element 'file' as ['indx', 'name'] # element 'file' as ['indx', 'name']
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
...@@ -131,24 +100,6 @@ class protected(aetools.NProperty): ...@@ -131,24 +100,6 @@ class protected(aetools.NProperty):
# element 'fsut' as ['indx', 'name'] # element 'fsut' as ['indx', 'name']
# element 'dsut' as ['indx', 'name'] # element 'dsut' as ['indx', 'name']
sharable_containers = sharable_container
class sharing_privileges(aetools.ComponentItem):
"""sharing privileges - A set of sharing properties (used in sharable containers) """
want = 'priv'
class see_folders(aetools.NProperty):
"""see folders - Can folders be seen? """
which = 'prvs'
want = 'bool'
class see_files(aetools.NProperty):
"""see files - Can files be seen? """
which = 'prvr'
want = 'bool'
class make_changes(aetools.NProperty):
"""make changes - Can changes be made? """
which = 'prvw'
want = 'bool'
class disk(aetools.ComponentItem): class disk(aetools.ComponentItem):
"""disk - A disk """ """disk - A disk """
want = 'cdis' want = 'cdis'
...@@ -215,21 +166,52 @@ class folder(aetools.ComponentItem): ...@@ -215,21 +166,52 @@ class folder(aetools.ComponentItem):
folders = folder folders = folder
class desktop_2d_object(aetools.ComponentItem): class sharable_container(aetools.ComponentItem):
"""desktop-object - Desktop-object is the class of the \xd2desktop\xd3 object """ """sharable container - A container that may be shared (disks and folders) """
want = 'cdsk' want = 'sctr'
class startup_disk(aetools.NProperty): class owner(aetools.NProperty):
"""startup disk - the startup disk """ """owner - the user that owns the container (file sharing must be on to use this property) """
which = 'sdsk' which = 'sown'
want = 'cdis' want = 'itxt'
class trash(aetools.NProperty): class group(aetools.NProperty):
"""trash - the trash """ """group - the user or group that has special access to the container (file sharing must be on to use this property) """
which = 'trsh' which = 'sgrp'
want = 'ctrs' want = 'itxt'
class owner_privileges(aetools.NProperty):
"""owner privileges - the see folders/see files/make changes privileges for the owner (file sharing must be on to use this property) """
which = 'ownr'
want = 'priv'
class group_privileges(aetools.NProperty):
"""group privileges - the see folders/see files/make changes privileges for the group (file sharing must be on to use this property) """
which = 'gppr'
want = 'priv'
class guest_privileges(aetools.NProperty):
"""guest privileges - the see folders/see files/make changes privileges for everyone (file sharing must be on to use this property) """
which = 'gstp'
want = 'priv'
class privileges_inherited(aetools.NProperty):
"""privileges inherited - Are the privileges of the container always the same as the container in which it is stored? (file sharing must be on to use this property) """
which = 'iprv'
want = 'bool'
class mounted(aetools.NProperty):
"""mounted - Is the container mounted on another machine's desktop? (file sharing must be on to use this property) """
which = 'smou'
want = 'bool'
class exported(aetools.NProperty):
"""exported - Is the container a share point or inside a share point, i.e., can the container be shared? (file sharing must be on to use this property) """
which = 'sexp'
want = 'bool'
class shared(aetools.NProperty):
"""shared - Is the container a share point, i.e., is the container currently being shared? (file sharing must be on to use this property) """
which = 'shar'
want = 'bool'
class protected(aetools.NProperty):
"""protected - Is the container protected from being moved, renamed and deleted? (file sharing must be on to use this property) """
which = 'spro'
want = 'bool'
# element 'cobj' as ['indx', 'name'] # element 'cobj' as ['indx', 'name']
# element 'ctnr' as ['indx', 'name'] # element 'ctnr' as ['indx', 'name']
# element 'sctr' as ['indx', 'name'] # element 'sctr' as ['indx', 'name']
# element 'cdis' as ['indx', 'name']
# element 'cfol' as ['indx', 'name', 'ID '] # element 'cfol' as ['indx', 'name', 'ID ']
# element 'file' as ['indx', 'name'] # element 'file' as ['indx', 'name']
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
...@@ -245,6 +227,24 @@ class trash(aetools.NProperty): ...@@ -245,6 +227,24 @@ class trash(aetools.NProperty):
# element 'fsut' as ['indx', 'name'] # element 'fsut' as ['indx', 'name']
# element 'dsut' as ['indx', 'name'] # element 'dsut' as ['indx', 'name']
sharable_containers = sharable_container
class sharing_privileges(aetools.ComponentItem):
"""sharing privileges - A set of sharing properties (used in sharable containers) """
want = 'priv'
class see_folders(aetools.NProperty):
"""see folders - Can folders be seen? """
which = 'prvs'
want = 'bool'
class see_files(aetools.NProperty):
"""see files - Can files be seen? """
which = 'prvr'
want = 'bool'
class make_changes(aetools.NProperty):
"""make changes - Can changes be made? """
which = 'prvw'
want = 'bool'
class trash_2d_object(aetools.ComponentItem): class trash_2d_object(aetools.ComponentItem):
"""trash-object - Trash-object is the class of the \xd2trash\xd3 object """ """trash-object - Trash-object is the class of the \xd2trash\xd3 object """
want = 'ctrs' want = 'ctrs'
...@@ -302,24 +302,17 @@ container._privelemdict = { ...@@ -302,24 +302,17 @@ container._privelemdict = {
'font_suitcase' : Files_and_suitcases.font_suitcase, 'font_suitcase' : Files_and_suitcases.font_suitcase,
'accessory_suitcase' : Earlier_terms.accessory_suitcase, 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
} }
sharable_container._superclassnames = ['container'] desktop_2d_object._superclassnames = ['container']
sharable_container._privpropdict = { desktop_2d_object._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'owner' : owner, 'startup_disk' : startup_disk,
'group' : group, 'trash' : trash,
'owner_privileges' : owner_privileges,
'group_privileges' : group_privileges,
'guest_privileges' : guest_privileges,
'privileges_inherited' : privileges_inherited,
'mounted' : mounted,
'exported' : exported,
'shared' : shared,
'protected' : protected,
} }
sharable_container._privelemdict = { desktop_2d_object._privelemdict = {
'item' : Earlier_terms.item, 'item' : Earlier_terms.item,
'container' : container, 'container' : container,
'sharable_container' : sharable_container, 'sharable_container' : sharable_container,
'disk' : disk,
'folder' : folder, 'folder' : folder,
'file' : Files_and_suitcases.file, 'file' : Files_and_suitcases.file,
'alias_file' : Files_and_suitcases.alias_file, 'alias_file' : Files_and_suitcases.alias_file,
...@@ -335,14 +328,6 @@ sharable_container._privelemdict = { ...@@ -335,14 +328,6 @@ sharable_container._privelemdict = {
'font_suitcase' : Files_and_suitcases.font_suitcase, 'font_suitcase' : Files_and_suitcases.font_suitcase,
'accessory_suitcase' : Earlier_terms.accessory_suitcase, 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
} }
sharing_privileges._superclassnames = []
sharing_privileges._privpropdict = {
'see_folders' : see_folders,
'see_files' : see_files,
'make_changes' : make_changes,
}
sharing_privileges._privelemdict = {
}
disk._superclassnames = ['sharable_container'] disk._superclassnames = ['sharable_container']
disk._privpropdict = { disk._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -394,17 +379,24 @@ folder._privelemdict = { ...@@ -394,17 +379,24 @@ folder._privelemdict = {
'font_suitcase' : Files_and_suitcases.font_suitcase, 'font_suitcase' : Files_and_suitcases.font_suitcase,
'accessory_suitcase' : Earlier_terms.accessory_suitcase, 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
} }
desktop_2d_object._superclassnames = ['container'] sharable_container._superclassnames = ['container']
desktop_2d_object._privpropdict = { sharable_container._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'startup_disk' : startup_disk, 'owner' : owner,
'trash' : trash, 'group' : group,
'owner_privileges' : owner_privileges,
'group_privileges' : group_privileges,
'guest_privileges' : guest_privileges,
'privileges_inherited' : privileges_inherited,
'mounted' : mounted,
'exported' : exported,
'shared' : shared,
'protected' : protected,
} }
desktop_2d_object._privelemdict = { sharable_container._privelemdict = {
'item' : Earlier_terms.item, 'item' : Earlier_terms.item,
'container' : container, 'container' : container,
'sharable_container' : sharable_container, 'sharable_container' : sharable_container,
'disk' : disk,
'folder' : folder, 'folder' : folder,
'file' : Files_and_suitcases.file, 'file' : Files_and_suitcases.file,
'alias_file' : Files_and_suitcases.alias_file, 'alias_file' : Files_and_suitcases.alias_file,
...@@ -420,6 +412,14 @@ desktop_2d_object._privelemdict = { ...@@ -420,6 +412,14 @@ desktop_2d_object._privelemdict = {
'font_suitcase' : Files_and_suitcases.font_suitcase, 'font_suitcase' : Files_and_suitcases.font_suitcase,
'accessory_suitcase' : Earlier_terms.accessory_suitcase, 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
} }
sharing_privileges._superclassnames = []
sharing_privileges._privpropdict = {
'see_folders' : see_folders,
'see_files' : see_files,
'make_changes' : make_changes,
}
sharing_privileges._privelemdict = {
}
trash_2d_object._superclassnames = ['container'] trash_2d_object._superclassnames = ['container']
trash_2d_object._privpropdict = { trash_2d_object._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -452,21 +452,21 @@ _classdeclarations = { ...@@ -452,21 +452,21 @@ _classdeclarations = {
'ctrs' : trash_2d_object, 'ctrs' : trash_2d_object,
'cdsk' : desktop_2d_object, 'cdsk' : desktop_2d_object,
'sctr' : sharable_container, 'sctr' : sharable_container,
'priv' : sharing_privileges,
'cdis' : disk, 'cdis' : disk,
'cfol' : folder,
'ctnr' : container, 'ctnr' : container,
'cfol' : folder,
'priv' : sharing_privileges,
} }
_propdeclarations = { _propdeclarations = {
'pexp' : expanded, 'pexp' : expanded,
'gppr' : group_privileges, 'iprv' : privileges_inherited,
'prvr' : see_files, 'gstp' : guest_privileges,
'ects' : entire_contents, 'ects' : entire_contents,
'lvis' : icon_size, 'lvis' : icon_size,
'iprv' : privileges_inherited, 'gppr' : group_privileges,
'isrv' : local_volume, 'isrv' : local_volume,
'frsp' : free_space, 'prvs' : see_folders,
'pexa' : expandable, 'pexa' : expandable,
'pexc' : completely_expanded, 'pexc' : completely_expanded,
'vwnd' : view_options_window, 'vwnd' : view_options_window,
...@@ -479,13 +479,13 @@ _propdeclarations = { ...@@ -479,13 +479,13 @@ _propdeclarations = {
'sexp' : exported, 'sexp' : exported,
'sdsk' : startup_disk, 'sdsk' : startup_disk,
'istd' : startup, 'istd' : startup,
'gstp' : guest_privileges, 'prvr' : see_files,
'trsh' : trash, 'c@#^' : _3c_Inheritance_3e_,
'smou' : mounted, 'smou' : mounted,
'sele' : selection, 'sele' : selection,
'prvs' : see_folders, 'trsh' : trash,
'sgrp' : group, 'sgrp' : group,
'c@#^' : _3c_Inheritance_3e_, 'frsp' : free_space,
'spro' : protected, 'spro' : protected,
'ownr' : owner_privileges, 'ownr' : owner_privileges,
} }
......
...@@ -16,6 +16,18 @@ class Earlier_terms_Events(Type_Names_Suite_Events): ...@@ -16,6 +16,18 @@ class Earlier_terms_Events(Type_Names_Suite_Events):
pass pass
class accessory_process(aetools.ComponentItem):
"""accessory process - A process launched from a desk accessory file """
want = 'pcda'
accessory_processes = accessory_process
class accessory_suitcase(aetools.ComponentItem):
"""accessory suitcase - A desk accessory suitcase """
want = 'dsut'
accessory_suitcases = accessory_suitcase
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - The Finder """ """application - The Finder """
want = 'capp' want = 'capp'
...@@ -176,24 +188,6 @@ class use_relative_dates(aetools.NProperty): ...@@ -176,24 +188,6 @@ class use_relative_dates(aetools.NProperty):
which = 'urdt' which = 'urdt'
want = 'bool' want = 'bool'
class accessory_process(aetools.ComponentItem):
"""accessory process - A process launched from a desk accessory file """
want = 'pcda'
accessory_processes = accessory_process
class accessory_suitcase(aetools.ComponentItem):
"""accessory suitcase - A desk accessory suitcase """
want = 'dsut'
accessory_suitcases = accessory_suitcase
class internet_location(aetools.ComponentItem):
"""internet location - An file containing an internet location """
want = 'inlf'
internet_locations = internet_location
class information_window(aetools.ComponentItem): class information_window(aetools.ComponentItem):
"""information window - An information window (opened by \xd2Get Info\xd3) """ """information window - An information window (opened by \xd2Get Info\xd3) """
want = 'iwnd' want = 'iwnd'
...@@ -234,6 +228,12 @@ class warn_before_emptying(aetools.NProperty): ...@@ -234,6 +228,12 @@ class warn_before_emptying(aetools.NProperty):
which = 'warn' which = 'warn'
want = 'bool' want = 'bool'
class internet_location(aetools.ComponentItem):
"""internet location - An file containing an internet location """
want = 'inlf'
internet_locations = internet_location
class item(aetools.ComponentItem): class item(aetools.ComponentItem):
"""item - An item """ """item - An item """
want = 'cobj' want = 'cobj'
...@@ -290,6 +290,26 @@ class information_window(aetools.NProperty): ...@@ -290,6 +290,26 @@ class information_window(aetools.NProperty):
which = 'iwnd' which = 'iwnd'
want = 'obj ' want = 'obj '
class preferences(aetools.ComponentItem):
"""preferences - The Finder Preferences """
want = 'cprf'
class delay_before_springing(aetools.NProperty):
"""delay before springing - the delay before springing open a container in ticks (1/60th of a second) (12 is shortest delay, 60 is longest delay) """
which = 'dela'
want = 'shor'
class spring_open_folders(aetools.NProperty):
"""spring open folders - Spring open folders after the specified delay? """
which = 'sprg'
want = 'bool'
class use_simple_menus(aetools.NProperty):
"""use simple menus - Use simplified Finder menus? """
which = 'usme'
want = 'bool'
class use_wide_grid(aetools.NProperty):
"""use wide grid - Space icons on a wide grid? """
which = 'uswg'
want = 'bool'
class process(aetools.ComponentItem): class process(aetools.ComponentItem):
"""process - A process running on this computer """ """process - A process running on this computer """
want = 'prcs' want = 'prcs'
...@@ -362,26 +382,6 @@ class trash_2d_object(aetools.ComponentItem): ...@@ -362,26 +382,6 @@ class trash_2d_object(aetools.ComponentItem):
"""trash-object - Trash-object is the class of the \xd2trash\xd3 object """ """trash-object - Trash-object is the class of the \xd2trash\xd3 object """
want = 'ctrs' want = 'ctrs'
class preferences(aetools.ComponentItem):
"""preferences - The Finder Preferences """
want = 'cprf'
class delay_before_springing(aetools.NProperty):
"""delay before springing - the delay before springing open a container in ticks (1/60th of a second) (12 is shortest delay, 60 is longest delay) """
which = 'dela'
want = 'shor'
class spring_open_folders(aetools.NProperty):
"""spring open folders - Spring open folders after the specified delay? """
which = 'sprg'
want = 'bool'
class use_simple_menus(aetools.NProperty):
"""use simple menus - Use simplified Finder menus? """
which = 'usme'
want = 'bool'
class use_wide_grid(aetools.NProperty):
"""use wide grid - Space icons on a wide grid? """
which = 'uswg'
want = 'bool'
class window(aetools.ComponentItem): class window(aetools.ComponentItem):
"""window - A window """ """window - A window """
want = 'cwin' want = 'cwin'
...@@ -429,6 +429,16 @@ class collapsed(aetools.NProperty): ...@@ -429,6 +429,16 @@ class collapsed(aetools.NProperty):
"""collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """ """collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """
which = 'wshd' which = 'wshd'
want = 'bool' want = 'bool'
accessory_process._superclassnames = []
accessory_process._privpropdict = {
}
accessory_process._privelemdict = {
}
accessory_suitcase._superclassnames = []
accessory_suitcase._privpropdict = {
}
accessory_suitcase._privelemdict = {
}
application._superclassnames = [] application._superclassnames = []
application._privpropdict = { application._privpropdict = {
'properties' : properties, 'properties' : properties,
...@@ -483,21 +493,6 @@ container_window._privpropdict = { ...@@ -483,21 +493,6 @@ container_window._privpropdict = {
} }
container_window._privelemdict = { container_window._privelemdict = {
} }
accessory_process._superclassnames = []
accessory_process._privpropdict = {
}
accessory_process._privelemdict = {
}
accessory_suitcase._superclassnames = []
accessory_suitcase._privpropdict = {
}
accessory_suitcase._privelemdict = {
}
internet_location._superclassnames = []
internet_location._privpropdict = {
}
internet_location._privelemdict = {
}
information_window._superclassnames = ['window'] information_window._superclassnames = ['window']
information_window._privpropdict = { information_window._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -519,6 +514,11 @@ information_window._privpropdict = { ...@@ -519,6 +514,11 @@ information_window._privpropdict = {
} }
information_window._privelemdict = { information_window._privelemdict = {
} }
internet_location._superclassnames = []
internet_location._privpropdict = {
}
internet_location._privelemdict = {
}
item._superclassnames = [] item._superclassnames = []
item._privpropdict = { item._privpropdict = {
'properties' : properties, 'properties' : properties,
...@@ -546,6 +546,25 @@ item._privpropdict = { ...@@ -546,6 +546,25 @@ item._privpropdict = {
} }
item._privelemdict = { item._privelemdict = {
} }
preferences._superclassnames = []
preferences._privpropdict = {
'window' : window,
'calculate_folder_sizes' : calculate_folder_sizes,
'delay_before_springing' : delay_before_springing,
'show_comments' : show_comments,
'show_creation_date' : show_creation_date,
'show_kind' : show_kind,
'show_label' : show_label,
'show_modification_date' : show_modification_date,
'show_size' : show_size,
'show_version' : show_version,
'spring_open_folders' : spring_open_folders,
'use_relative_dates' : use_relative_dates,
'use_simple_menus' : use_simple_menus,
'use_wide_grid' : use_wide_grid,
}
preferences._privelemdict = {
}
process._superclassnames = [] process._superclassnames = []
process._privpropdict = { process._privpropdict = {
'properties' : properties, 'properties' : properties,
...@@ -586,25 +605,6 @@ trash_2d_object._privpropdict = { ...@@ -586,25 +605,6 @@ trash_2d_object._privpropdict = {
} }
trash_2d_object._privelemdict = { trash_2d_object._privelemdict = {
} }
preferences._superclassnames = []
preferences._privpropdict = {
'window' : window,
'calculate_folder_sizes' : calculate_folder_sizes,
'delay_before_springing' : delay_before_springing,
'show_comments' : show_comments,
'show_creation_date' : show_creation_date,
'show_kind' : show_kind,
'show_label' : show_label,
'show_modification_date' : show_modification_date,
'show_size' : show_size,
'show_version' : show_version,
'spring_open_folders' : spring_open_folders,
'use_relative_dates' : use_relative_dates,
'use_simple_menus' : use_simple_menus,
'use_wide_grid' : use_wide_grid,
}
preferences._privelemdict = {
}
window._superclassnames = [] window._superclassnames = []
window._privpropdict = { window._privpropdict = {
'properties' : properties, 'properties' : properties,
...@@ -632,11 +632,11 @@ window._privelemdict = { ...@@ -632,11 +632,11 @@ window._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'ctrs' : trash_2d_object,
'dsut' : accessory_suitcase, 'dsut' : accessory_suitcase,
'cprf' : preferences, 'cprf' : preferences,
'sctr' : sharable_container,
'capp' : application, 'capp' : application,
'ctrs' : trash_2d_object, 'sctr' : sharable_container,
'pcda' : accessory_process, 'pcda' : accessory_process,
'cwin' : window, 'cwin' : window,
'iwnd' : information_window, 'iwnd' : information_window,
......
...@@ -15,6 +15,37 @@ class Enumerations_Events(Type_Names_Suite_Events): ...@@ -15,6 +15,37 @@ class Enumerations_Events(Type_Names_Suite_Events):
pass pass
_Enum_earr = {
'not_arranged' : 'narr', #
'snap_to_grid' : 'grda', #
'arranged_by_name' : 'nama', #
'arranged_by_modification_date' : 'mdta', #
'arranged_by_creation_date' : 'cdta', #
'arranged_by_size' : 'siza', #
'arranged_by_kind' : 'kina', #
'arranged_by_label' : 'laba', #
}
_Enum_ese0 = {
'starting_up' : 'ese2', #
'running' : 'ese3', #
'rebuilding_desktop' : 'ese5', #
'copying' : 'ese4', #
'restarting' : 'ese6', #
'quitting' : 'ese7', #
}
_Enum_gsen = {
'CPU' : 'proc', #
'FPU' : 'fpu ', #
'MMU' : 'mmu ', #
'hardware' : 'hdwr', #
'operating_system' : 'os ', #
'sound_system' : 'snd ', #
'memory_available' : 'lram', #
'memory_installed' : 'ram ', #
}
_Enum_ipnl = { _Enum_ipnl = {
'General_Information_panel' : 'gpnl', # 'General_Information_panel' : 'gpnl', #
'Sharing_panel' : 'spnl', # 'Sharing_panel' : 'spnl', #
...@@ -23,6 +54,12 @@ _Enum_ipnl = { ...@@ -23,6 +54,12 @@ _Enum_ipnl = {
'Fonts_panel' : 'fpnl', # 'Fonts_panel' : 'fpnl', #
} }
_Enum_isiz = {
'mini' : 'miic', #
'small' : 'smic', #
'large' : 'lgic', #
}
_Enum_pple = { _Enum_pple = {
'General_Preferences_panel' : 'pgnp', # 'General_Preferences_panel' : 'pgnp', #
'Label_Preferences_panel' : 'plbp', # 'Label_Preferences_panel' : 'plbp', #
...@@ -31,28 +68,11 @@ _Enum_pple = { ...@@ -31,28 +68,11 @@ _Enum_pple = {
'List_View_Preferences_panel' : 'plvp', # 'List_View_Preferences_panel' : 'plvp', #
} }
_Enum_earr = {
'not_arranged' : 'narr', #
'snap_to_grid' : 'grda', #
'arranged_by_name' : 'nama', #
'arranged_by_modification_date' : 'mdta', #
'arranged_by_creation_date' : 'cdta', #
'arranged_by_size' : 'siza', #
'arranged_by_kind' : 'kina', #
'arranged_by_label' : 'laba', #
}
_Enum_sodr = { _Enum_sodr = {
'normal' : 'snrm', # 'normal' : 'snrm', #
'reversed' : 'srvs', # 'reversed' : 'srvs', #
} }
_Enum_isiz = {
'mini' : 'miic', #
'small' : 'smic', #
'large' : 'lgic', #
}
_Enum_vwby = { _Enum_vwby = {
'conflicts' : 'cflc', # 'conflicts' : 'cflc', #
'existing_items' : 'exsi', # 'existing_items' : 'exsi', #
...@@ -72,26 +92,6 @@ _Enum_vwby = { ...@@ -72,26 +92,6 @@ _Enum_vwby = {
'all' : 'kyal', # 'all' : 'kyal', #
} }
_Enum_gsen = {
'CPU' : 'proc', #
'FPU' : 'fpu ', #
'MMU' : 'mmu ', #
'hardware' : 'hdwr', #
'operating_system' : 'os ', #
'sound_system' : 'snd ', #
'memory_available' : 'lram', #
'memory_installed' : 'ram ', #
}
_Enum_ese0 = {
'starting_up' : 'ese2', #
'running' : 'ese3', #
'rebuilding_desktop' : 'ese5', #
'copying' : 'ese4', #
'restarting' : 'ese6', #
'quitting' : 'ese7', #
}
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -106,12 +106,12 @@ _compdeclarations = { ...@@ -106,12 +106,12 @@ _compdeclarations = {
} }
_enumdeclarations = { _enumdeclarations = {
'sodr' : _Enum_sodr,
'ipnl' : _Enum_ipnl, 'ipnl' : _Enum_ipnl,
'sodr' : _Enum_sodr,
'pple' : _Enum_pple,
'ese0' : _Enum_ese0, 'ese0' : _Enum_ese0,
'vwby' : _Enum_vwby, 'vwby' : _Enum_vwby,
'gsen' : _Enum_gsen,
'isiz' : _Enum_isiz, 'isiz' : _Enum_isiz,
'earr' : _Enum_earr, 'earr' : _Enum_earr,
'pple' : _Enum_pple, 'gsen' : _Enum_gsen,
} }
...@@ -15,43 +15,13 @@ class Files_and_suitcases_Events: ...@@ -15,43 +15,13 @@ class Files_and_suitcases_Events:
pass pass
class file(aetools.ComponentItem):
"""file - A file """
want = 'file'
class _3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the item class """
which = 'c@#^'
want = 'cobj'
class file_type(aetools.NProperty):
"""file type - the OSType identifying the type of data contained in the item """
which = 'asty'
want = 'type'
class creator_type(aetools.NProperty):
"""creator type - the OSType identifying the application that created the item """
which = 'fcrt'
want = 'type'
class locked(aetools.NProperty):
"""locked - Is the file locked? """
which = 'aslk'
want = 'bool'
class stationery(aetools.NProperty):
"""stationery - Is the file a stationery pad? """
which = 'pspd'
want = 'bool'
class product_version(aetools.NProperty):
"""product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """
which = 'ver2'
want = 'itxt'
class version(aetools.NProperty):
"""version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """
which = 'vers'
want = 'itxt'
files = file
class alias_file(aetools.ComponentItem): class alias_file(aetools.ComponentItem):
"""alias file - An alias file (created with \xd2Make Alias\xd3) """ """alias file - An alias file (created with \xd2Make Alias\xd3) """
want = 'alia' want = 'alia'
class _3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the file class """
which = 'c@#^'
want = 'file'
class original_item(aetools.NProperty): class original_item(aetools.NProperty):
"""original item - the original item pointed to by the alias """ """original item - the original item pointed to by the alias """
which = 'orig' which = 'orig'
...@@ -85,23 +55,73 @@ class has_scripting_terminology(aetools.NProperty): ...@@ -85,23 +55,73 @@ class has_scripting_terminology(aetools.NProperty):
application_files = application_file application_files = application_file
class clipping(aetools.ComponentItem):
"""clipping - A clipping """
want = 'clpf'
clippings = clipping
class desk_accessory_file(aetools.ComponentItem):
"""desk accessory file - A desk accessory file """
want = 'dafi'
desk_accessory_files = desk_accessory_file
class desk_accessory_suitcase(aetools.ComponentItem):
"""desk accessory suitcase - A desk accessory suitcase """
want = 'dsut'
# element 'cobj' as ['indx', 'name']
desk_accessory_suitcases = desk_accessory_suitcase
class document_file(aetools.ComponentItem): class document_file(aetools.ComponentItem):
"""document file - A document file """ """document file - A document file """
want = 'docf' want = 'docf'
document_files = document_file document_files = document_file
class file(aetools.ComponentItem):
"""file - A file """
want = 'file'
class file_type(aetools.NProperty):
"""file type - the OSType identifying the type of data contained in the item """
which = 'asty'
want = 'type'
class creator_type(aetools.NProperty):
"""creator type - the OSType identifying the application that created the item """
which = 'fcrt'
want = 'type'
class locked(aetools.NProperty):
"""locked - Is the file locked? """
which = 'aslk'
want = 'bool'
class stationery(aetools.NProperty):
"""stationery - Is the file a stationery pad? """
which = 'pspd'
want = 'bool'
class product_version(aetools.NProperty):
"""product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """
which = 'ver2'
want = 'itxt'
class version(aetools.NProperty):
"""version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """
which = 'vers'
want = 'itxt'
files = file
class font_file(aetools.ComponentItem): class font_file(aetools.ComponentItem):
"""font file - A font file """ """font file - A font file """
want = 'fntf' want = 'fntf'
font_files = font_file font_files = font_file
class desk_accessory_file(aetools.ComponentItem): class font_suitcase(aetools.ComponentItem):
"""desk accessory file - A desk accessory file """ """font suitcase - A font suitcase """
want = 'dafi' want = 'fsut'
# element 'cobj' as ['indx', 'name']
desk_accessory_files = desk_accessory_file font_suitcases = font_suitcase
class internet_location_file(aetools.ComponentItem): class internet_location_file(aetools.ComponentItem):
"""internet location file - An file containing an internet location """ """internet location file - An file containing an internet location """
...@@ -113,6 +133,12 @@ class location(aetools.NProperty): ...@@ -113,6 +133,12 @@ class location(aetools.NProperty):
internet_location_files = internet_location_file internet_location_files = internet_location_file
class package(aetools.ComponentItem):
"""package - A package """
want = 'pack'
packages = package
class sound_file(aetools.ComponentItem): class sound_file(aetools.ComponentItem):
"""sound file - A sound file """ """sound file - A sound file """
want = 'sndf' want = 'sndf'
...@@ -123,51 +149,12 @@ class sound(aetools.NProperty): ...@@ -123,51 +149,12 @@ class sound(aetools.NProperty):
sound_files = sound_file sound_files = sound_file
class clipping(aetools.ComponentItem):
"""clipping - A clipping """
want = 'clpf'
clippings = clipping
class package(aetools.ComponentItem):
"""package - A package """
want = 'pack'
packages = package
class suitcase(aetools.ComponentItem): class suitcase(aetools.ComponentItem):
"""suitcase - A font or desk accessory suitcase """ """suitcase - A font or desk accessory suitcase """
want = 'stcs' want = 'stcs'
# element 'cobj' as ['indx', 'name'] # element 'cobj' as ['indx', 'name']
suitcases = suitcase suitcases = suitcase
class font_suitcase(aetools.ComponentItem):
"""font suitcase - A font suitcase """
want = 'fsut'
# element 'cobj' as ['indx', 'name']
font_suitcases = font_suitcase
class desk_accessory_suitcase(aetools.ComponentItem):
"""desk accessory suitcase - A desk accessory suitcase """
want = 'dsut'
# element 'cobj' as ['indx', 'name']
desk_accessory_suitcases = desk_accessory_suitcase
import Earlier_terms
file._superclassnames = ['item']
file._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'file_type' : file_type,
'creator_type' : creator_type,
'locked' : locked,
'stationery' : stationery,
'product_version' : product_version,
'version' : version,
}
file._privelemdict = {
}
alias_file._superclassnames = ['file'] alias_file._superclassnames = ['file']
alias_file._privpropdict = { alias_file._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -186,23 +173,56 @@ application_file._privpropdict = { ...@@ -186,23 +173,56 @@ application_file._privpropdict = {
} }
application_file._privelemdict = { application_file._privelemdict = {
} }
clipping._superclassnames = ['file']
clipping._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
clipping._privelemdict = {
}
desk_accessory_file._superclassnames = ['file']
desk_accessory_file._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
desk_accessory_file._privelemdict = {
}
desk_accessory_suitcase._superclassnames = ['suitcase']
import Earlier_terms
desk_accessory_suitcase._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
desk_accessory_suitcase._privelemdict = {
'item' : Earlier_terms.item,
}
document_file._superclassnames = ['file'] document_file._superclassnames = ['file']
document_file._privpropdict = { document_file._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
} }
document_file._privelemdict = { document_file._privelemdict = {
} }
file._superclassnames = ['item']
file._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'file_type' : file_type,
'creator_type' : creator_type,
'locked' : locked,
'stationery' : stationery,
'product_version' : product_version,
'version' : version,
}
file._privelemdict = {
}
font_file._superclassnames = ['file'] font_file._superclassnames = ['file']
font_file._privpropdict = { font_file._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
} }
font_file._privelemdict = { font_file._privelemdict = {
} }
desk_accessory_file._superclassnames = ['file'] font_suitcase._superclassnames = ['suitcase']
desk_accessory_file._privpropdict = { font_suitcase._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
} }
desk_accessory_file._privelemdict = { font_suitcase._privelemdict = {
'item' : Earlier_terms.item,
} }
internet_location_file._superclassnames = ['file'] internet_location_file._superclassnames = ['file']
internet_location_file._privpropdict = { internet_location_file._privpropdict = {
...@@ -211,6 +231,12 @@ internet_location_file._privpropdict = { ...@@ -211,6 +231,12 @@ internet_location_file._privpropdict = {
} }
internet_location_file._privelemdict = { internet_location_file._privelemdict = {
} }
package._superclassnames = ['item']
package._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
package._privelemdict = {
}
sound_file._superclassnames = ['file'] sound_file._superclassnames = ['file']
sound_file._privpropdict = { sound_file._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -218,18 +244,6 @@ sound_file._privpropdict = { ...@@ -218,18 +244,6 @@ sound_file._privpropdict = {
} }
sound_file._privelemdict = { sound_file._privelemdict = {
} }
clipping._superclassnames = ['file']
clipping._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
clipping._privelemdict = {
}
package._superclassnames = ['item']
package._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
package._privelemdict = {
}
suitcase._superclassnames = ['file'] suitcase._superclassnames = ['file']
suitcase._privpropdict = { suitcase._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -237,20 +251,6 @@ suitcase._privpropdict = { ...@@ -237,20 +251,6 @@ suitcase._privpropdict = {
suitcase._privelemdict = { suitcase._privelemdict = {
'item' : Earlier_terms.item, 'item' : Earlier_terms.item,
} }
font_suitcase._superclassnames = ['suitcase']
font_suitcase._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
font_suitcase._privelemdict = {
'item' : Earlier_terms.item,
}
desk_accessory_suitcase._superclassnames = ['suitcase']
desk_accessory_suitcase._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
desk_accessory_suitcase._privelemdict = {
'item' : Earlier_terms.item,
}
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -258,24 +258,25 @@ desk_accessory_suitcase._privelemdict = { ...@@ -258,24 +258,25 @@ desk_accessory_suitcase._privelemdict = {
_classdeclarations = { _classdeclarations = {
'sndf' : sound_file, 'sndf' : sound_file,
'fntf' : font_file, 'fntf' : font_file,
'inlf' : internet_location_file, 'stcs' : suitcase,
'clpf' : clipping, 'clpf' : clipping,
'dsut' : desk_accessory_suitcase,
'alia' : alias_file, 'alia' : alias_file,
'dafi' : desk_accessory_file, 'dafi' : desk_accessory_file,
'dsut' : desk_accessory_suitcase,
'fsut' : font_suitcase, 'fsut' : font_suitcase,
'file' : file, 'file' : file,
'appf' : application_file, 'appf' : application_file,
'stcs' : suitcase, 'inlf' : internet_location_file,
'docf' : document_file, 'docf' : document_file,
'pack' : package, 'pack' : package,
} }
_propdeclarations = { _propdeclarations = {
'vers' : version,
'ver2' : product_version, 'ver2' : product_version,
'snd ' : sound, 'vers' : version,
'appt' : preferred_size, 'appt' : preferred_size,
'snd ' : sound,
'pspd' : stationery,
'sprt' : suggested_size, 'sprt' : suggested_size,
'isab' : accepts_high_level_events, 'isab' : accepts_high_level_events,
'hscr' : has_scripting_terminology, 'hscr' : has_scripting_terminology,
...@@ -283,7 +284,6 @@ _propdeclarations = { ...@@ -283,7 +284,6 @@ _propdeclarations = {
'c@#^' : _3c_Inheritance_3e_, 'c@#^' : _3c_Inheritance_3e_,
'fcrt' : creator_type, 'fcrt' : creator_type,
'mprt' : minimum_size, 'mprt' : minimum_size,
'pspd' : stationery,
'iloc' : location, 'iloc' : location,
'aslk' : locked, 'aslk' : locked,
'orig' : original_item, 'orig' : original_item,
......
...@@ -15,6 +15,30 @@ class Process_classes_Events: ...@@ -15,6 +15,30 @@ class Process_classes_Events:
pass pass
class application_process(aetools.ComponentItem):
"""application process - A process launched from an application file """
want = 'pcap'
class _3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the process class """
which = 'c@#^'
want = 'prcs'
class application_file(aetools.NProperty):
"""application file - the application file from which this process was launched """
which = 'appf'
want = 'appf'
application_processes = application_process
class desk_accessory_process(aetools.ComponentItem):
"""desk accessory process - A process launched from a desk accessory file """
want = 'pcda'
class desk_accessory_file(aetools.NProperty):
"""desk accessory file - the desk accessory file from which this process was launched """
which = 'dafi'
want = 'obj '
desk_accessory_processes = desk_accessory_process
class process(aetools.ComponentItem): class process(aetools.ComponentItem):
"""process - A process running on this computer """ """process - A process running on this computer """
want = 'prcs' want = 'prcs'
...@@ -64,30 +88,20 @@ class partition_space_used(aetools.NProperty): ...@@ -64,30 +88,20 @@ class partition_space_used(aetools.NProperty):
want = 'long' want = 'long'
processes = process processes = process
application_process._superclassnames = ['process']
class application_process(aetools.ComponentItem): application_process._privpropdict = {
"""application process - A process launched from an application file """ '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
want = 'pcap' 'application_file' : application_file,
class _3c_Inheritance_3e_(aetools.NProperty): }
"""<Inheritance> - inherits some of its properties from the process class """ application_process._privelemdict = {
which = 'c@#^' }
want = 'prcs' desk_accessory_process._superclassnames = ['process']
class application_file(aetools.NProperty): desk_accessory_process._privpropdict = {
"""application file - the application file from which this process was launched """ '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
which = 'appf' 'desk_accessory_file' : desk_accessory_file,
want = 'appf' }
desk_accessory_process._privelemdict = {
application_processes = application_process }
class desk_accessory_process(aetools.ComponentItem):
"""desk accessory process - A process launched from a desk accessory file """
want = 'pcda'
class desk_accessory_file(aetools.NProperty):
"""desk accessory file - the desk accessory file from which this process was launched """
which = 'dafi'
want = 'obj '
desk_accessory_processes = desk_accessory_process
process._superclassnames = [] process._superclassnames = []
process._privpropdict = { process._privpropdict = {
'name' : name, 'name' : name,
...@@ -104,20 +118,6 @@ process._privpropdict = { ...@@ -104,20 +118,6 @@ process._privpropdict = {
} }
process._privelemdict = { process._privelemdict = {
} }
application_process._superclassnames = ['process']
application_process._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'application_file' : application_file,
}
application_process._privelemdict = {
}
desk_accessory_process._superclassnames = ['process']
desk_accessory_process._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'desk_accessory_file' : desk_accessory_file,
}
desk_accessory_process._privelemdict = {
}
# #
# Indices of types declared in this module # Indices of types declared in this module
......
...@@ -13,77 +13,6 @@ _code = 'CoRe' ...@@ -13,77 +13,6 @@ _code = 'CoRe'
from StdSuites.Standard_Suite import * from StdSuites.Standard_Suite import *
class Standard_Suite_Events(Standard_Suite_Events): class Standard_Suite_Events(Standard_Suite_Events):
_argmap_open = {
'using' : 'usin',
'with_properties' : 'prdt',
}
def open(self, _object, _attributes={}, **_arguments):
"""open: Open the specified object(s)
Required argument: list of objects to open
Keyword argument using: the application file to open the object with
Keyword argument with_properties: the initial values for the properties, to be included with the open command sent to the application that opens the direct object
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'odoc'
aetools.keysubst(_arguments, self._argmap_open)
_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_print_ = {
'with_properties' : 'prdt',
}
def print_(self, _object, _attributes={}, **_arguments):
"""print: Print the specified object(s)
Required argument: list of objects to print
Keyword argument with_properties: optional properties to be included with the print command sent to the application that prints the direct object
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'pdoc'
aetools.keysubst(_arguments, self._argmap_print_)
_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 quit(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit the Finder
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'quit'
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 close(self, _object, _attributes={}, **_arguments): def close(self, _object, _attributes={}, **_arguments):
"""close: Close an object """close: Close an object
Required argument: the object to close Required argument: the object to close
...@@ -288,6 +217,77 @@ class Standard_Suite_Events(Standard_Suite_Events): ...@@ -288,6 +217,77 @@ class Standard_Suite_Events(Standard_Suite_Events):
aetools.enumsubst(_arguments, 'mvpl', _Enum_list) aetools.enumsubst(_arguments, 'mvpl', _Enum_list)
aetools.enumsubst(_arguments, 'rout', _Enum_bool) aetools.enumsubst(_arguments, 'rout', _Enum_bool)
_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_open = {
'using' : 'usin',
'with_properties' : 'prdt',
}
def open(self, _object, _attributes={}, **_arguments):
"""open: Open the specified object(s)
Required argument: list of objects to open
Keyword argument using: the application file to open the object with
Keyword argument with_properties: the initial values for the properties, to be included with the open command sent to the application that opens the direct object
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'odoc'
aetools.keysubst(_arguments, self._argmap_open)
_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_print_ = {
'with_properties' : 'prdt',
}
def print_(self, _object, _attributes={}, **_arguments):
"""print: Print the specified object(s)
Required argument: list of objects to print
Keyword argument with_properties: optional properties to be included with the print command sent to the application that prints the direct object
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'pdoc'
aetools.keysubst(_arguments, self._argmap_print_)
_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 quit(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit the Finder
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'quit'
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
......
...@@ -15,6 +15,68 @@ class Type_Definitions_Events: ...@@ -15,6 +15,68 @@ class Type_Definitions_Events:
pass pass
class alias_list(aetools.ComponentItem):
"""alias list - A list of aliases. Use \xd4as alias list\xd5 when a list of aliases is needed (instead of a list of file system item references). """
want = 'alst'
class icon_family(aetools.ComponentItem):
"""icon family - A family of icons """
want = 'ifam'
class large_monochrome_icon_and_mask(aetools.NProperty):
"""large monochrome icon and mask - the large black-and-white icon and the mask for large icons """
which = 'ICN#'
want = 'ICN#'
class large_8_bit_mask(aetools.NProperty):
"""large 8 bit mask - the large 8-bit mask for large 32-bit icons """
which = 'l8mk'
want = 'l8mk'
class large_32_bit_icon(aetools.NProperty):
"""large 32 bit icon - the large 32-bit color icon """
which = 'il32'
want = 'il32'
class large_8_bit_icon(aetools.NProperty):
"""large 8 bit icon - the large 8-bit color icon """
which = 'icl8'
want = 'icl8'
class large_4_bit_icon(aetools.NProperty):
"""large 4 bit icon - the large 4-bit color icon """
which = 'icl4'
want = 'icl4'
class small_monochrome_icon_and_mask(aetools.NProperty):
"""small monochrome icon and mask - the small black-and-white icon and the mask for small icons """
which = 'ics#'
want = 'ics#'
class small_8_bit_mask(aetools.NProperty):
"""small 8 bit mask - the small 8-bit mask for small 32-bit icons """
which = 'ics8'
want = 's8mk'
class small_32_bit_icon(aetools.NProperty):
"""small 32 bit icon - the small 32-bit color icon """
which = 'is32'
want = 'is32'
small_8_bit_icon = small_8_bit_mask
class small_4_bit_icon(aetools.NProperty):
"""small 4 bit icon - the small 4-bit color icon """
which = 'ics4'
want = 'ics4'
class label(aetools.ComponentItem):
"""label - A Finder label (name and color) """
want = 'clbl'
class name(aetools.NProperty):
"""name - the name associated with the label """
which = 'pnam'
want = 'itxt'
class index(aetools.NProperty):
"""index - the index in the front-to-back ordering within its container """
which = 'pidx'
want = 'long'
class color(aetools.NProperty):
"""color - the color associated with the label """
which = 'colr'
want = 'cRGB'
class preferences(aetools.ComponentItem): class preferences(aetools.ComponentItem):
"""preferences - The Finder Preferences """ """preferences - The Finder Preferences """
want = 'cprf' want = 'cprf'
...@@ -103,68 +165,34 @@ class view_font_size(aetools.NProperty): ...@@ -103,68 +165,34 @@ class view_font_size(aetools.NProperty):
which = 'vfsz' which = 'vfsz'
want = 'long' want = 'long'
# element 'clbl' as ['indx', 'name'] # element 'clbl' as ['indx', 'name']
alias_list._superclassnames = []
class label(aetools.ComponentItem): alias_list._privpropdict = {
"""label - A Finder label (name and color) """ }
want = 'clbl' alias_list._privelemdict = {
class name(aetools.NProperty): }
"""name - the name associated with the label """ icon_family._superclassnames = []
which = 'pnam' icon_family._privpropdict = {
want = 'itxt' 'large_monochrome_icon_and_mask' : large_monochrome_icon_and_mask,
class index(aetools.NProperty): 'large_8_bit_mask' : large_8_bit_mask,
"""index - the index in the front-to-back ordering within its container """ 'large_32_bit_icon' : large_32_bit_icon,
which = 'pidx' 'large_8_bit_icon' : large_8_bit_icon,
want = 'long' 'large_4_bit_icon' : large_4_bit_icon,
class color(aetools.NProperty): 'small_monochrome_icon_and_mask' : small_monochrome_icon_and_mask,
"""color - the color associated with the label """ 'small_8_bit_mask' : small_8_bit_mask,
which = 'colr' 'small_32_bit_icon' : small_32_bit_icon,
want = 'cRGB' 'small_8_bit_icon' : small_8_bit_icon,
'small_4_bit_icon' : small_4_bit_icon,
class icon_family(aetools.ComponentItem): }
"""icon family - A family of icons """ icon_family._privelemdict = {
want = 'ifam' }
class large_monochrome_icon_and_mask(aetools.NProperty): label._superclassnames = []
"""large monochrome icon and mask - the large black-and-white icon and the mask for large icons """ label._privpropdict = {
which = 'ICN#' 'name' : name,
want = 'ICN#' 'index' : index,
class large_8_bit_mask(aetools.NProperty): 'color' : color,
"""large 8 bit mask - the large 8-bit mask for large 32-bit icons """ }
which = 'l8mk' label._privelemdict = {
want = 'l8mk' }
class large_32_bit_icon(aetools.NProperty):
"""large 32 bit icon - the large 32-bit color icon """
which = 'il32'
want = 'il32'
class large_8_bit_icon(aetools.NProperty):
"""large 8 bit icon - the large 8-bit color icon """
which = 'icl8'
want = 'icl8'
class large_4_bit_icon(aetools.NProperty):
"""large 4 bit icon - the large 4-bit color icon """
which = 'icl4'
want = 'icl4'
class small_monochrome_icon_and_mask(aetools.NProperty):
"""small monochrome icon and mask - the small black-and-white icon and the mask for small icons """
which = 'ics#'
want = 'ics#'
class small_8_bit_mask(aetools.NProperty):
"""small 8 bit mask - the small 8-bit mask for small 32-bit icons """
which = 'ics8'
want = 's8mk'
class small_32_bit_icon(aetools.NProperty):
"""small 32 bit icon - the small 32-bit color icon """
which = 'is32'
want = 'is32'
small_8_bit_icon = small_8_bit_mask
class small_4_bit_icon(aetools.NProperty):
"""small 4 bit icon - the small 4-bit color icon """
which = 'ics4'
want = 'ics4'
class alias_list(aetools.ComponentItem):
"""alias list - A list of aliases. Use \xd4as alias list\xd5 when a list of aliases is needed (instead of a list of file system item references). """
want = 'alst'
preferences._superclassnames = [] preferences._superclassnames = []
preferences._privpropdict = { preferences._privpropdict = {
'window' : window, 'window' : window,
...@@ -192,34 +220,6 @@ preferences._privpropdict = { ...@@ -192,34 +220,6 @@ preferences._privpropdict = {
preferences._privelemdict = { preferences._privelemdict = {
'label' : label, 'label' : label,
} }
label._superclassnames = []
label._privpropdict = {
'name' : name,
'index' : index,
'color' : color,
}
label._privelemdict = {
}
icon_family._superclassnames = []
icon_family._privpropdict = {
'large_monochrome_icon_and_mask' : large_monochrome_icon_and_mask,
'large_8_bit_mask' : large_8_bit_mask,
'large_32_bit_icon' : large_32_bit_icon,
'large_8_bit_icon' : large_8_bit_icon,
'large_4_bit_icon' : large_4_bit_icon,
'small_monochrome_icon_and_mask' : small_monochrome_icon_and_mask,
'small_8_bit_mask' : small_8_bit_mask,
'small_32_bit_icon' : small_32_bit_icon,
'small_8_bit_icon' : small_8_bit_icon,
'small_4_bit_icon' : small_4_bit_icon,
}
icon_family._privelemdict = {
}
alias_list._superclassnames = []
alias_list._privpropdict = {
}
alias_list._privelemdict = {
}
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -236,25 +236,25 @@ _propdeclarations = { ...@@ -236,25 +236,25 @@ _propdeclarations = {
'ics4' : small_4_bit_icon, 'ics4' : small_4_bit_icon,
'iarr' : spatial_view_arrangement, 'iarr' : spatial_view_arrangement,
'barr' : button_view_arrangement, 'barr' : button_view_arrangement,
'ics#' : small_monochrome_icon_and_mask, 'vfnt' : view_font,
'sknd' : shows_kind, 'sknd' : shows_kind,
'svrs' : shows_version, 'svrs' : shows_version,
'colr' : color, 'colr' : color,
'ics8' : small_8_bit_mask, 'ics8' : small_8_bit_mask,
'icl8' : large_8_bit_icon, 'icl8' : large_8_bit_icon,
'sprg' : spring_open_folders, 'pidx' : index,
'vfsz' : view_font_size, 'vfsz' : view_font_size,
'sfsz' : calculates_folder_sizes, 'sfsz' : calculates_folder_sizes,
'l8mk' : large_8_bit_mask, 'ics#' : small_monochrome_icon_and_mask,
'vfnt' : view_font,
'urdt' : uses_relative_dates, 'urdt' : uses_relative_dates,
'bisz' : button_view_icon_size,
'usme' : uses_simple_menus, 'usme' : uses_simple_menus,
'sprg' : spring_open_folders,
'icl4' : large_4_bit_icon, 'icl4' : large_4_bit_icon,
'slbl' : shows_label, 'slbl' : shows_label,
'lisz' : list_view_icon_size, 'lisz' : list_view_icon_size,
'scda' : shows_creation_date, 'ssiz' : shows_size,
'bisz' : button_view_icon_size, 'l8mk' : large_8_bit_mask,
'pidx' : index,
'scom' : shows_comments, 'scom' : shows_comments,
'iisz' : spatial_view_icon_size, 'iisz' : spatial_view_icon_size,
'sdat' : shows_modification_date, 'sdat' : shows_modification_date,
...@@ -264,7 +264,7 @@ _propdeclarations = { ...@@ -264,7 +264,7 @@ _propdeclarations = {
'pnam' : name, 'pnam' : name,
'il32' : large_32_bit_icon, 'il32' : large_32_bit_icon,
'uswg' : uses_wide_grid, 'uswg' : uses_wide_grid,
'ssiz' : shows_size, 'scda' : shows_creation_date,
} }
_compdeclarations = { _compdeclarations = {
......
...@@ -15,83 +15,19 @@ class Window_classes_Events: ...@@ -15,83 +15,19 @@ class Window_classes_Events:
pass pass
class window(aetools.ComponentItem): class clipping_window(aetools.ComponentItem):
"""window - A window """ """clipping window - The window containing a clipping """
want = 'lwnd'
class _3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the window class """
which = 'c@#^'
want = 'cwin' want = 'cwin'
class position(aetools.NProperty):
"""position - the upper left position of the window """
which = 'posn'
want = 'QDpt'
class bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window """
which = 'pbnd'
want = 'qdrt'
class titled(aetools.NProperty):
"""titled - Does the window have a title bar? """
which = 'ptit'
want = 'bool'
class name(aetools.NProperty):
"""name - the name of the window """
which = 'pnam'
want = 'itxt'
class index(aetools.NProperty):
"""index - the number of the window in the front-to-back layer ordering """
which = 'pidx'
want = 'long'
class closeable(aetools.NProperty):
"""closeable - Does the window have a close box? """
which = 'hclb'
want = 'bool'
class floating(aetools.NProperty):
"""floating - Does the window have a title bar? """
which = 'isfl'
want = 'bool'
class modal(aetools.NProperty):
"""modal - Is the window modal? """
which = 'pmod'
want = 'bool'
class resizable(aetools.NProperty):
"""resizable - Is the window resizable? """
which = 'prsz'
want = 'bool'
class zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """
which = 'iszm'
want = 'bool'
class zoomed(aetools.NProperty):
"""zoomed - Is the window zoomed? """
which = 'pzum'
want = 'bool'
class zoomed_full_size(aetools.NProperty):
"""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) """
which = 'zumf'
want = 'bool'
class visible(aetools.NProperty):
"""visible - Is the window visible (always true for open Finder windows)? """
which = 'pvis'
want = 'bool'
class popup(aetools.NProperty):
"""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) """
which = 'drwr'
want = 'bool'
class pulled_open(aetools.NProperty):
"""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)? """
which = 'pull'
want = 'bool'
class collapsed(aetools.NProperty):
"""collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """
which = 'wshd'
want = 'bool'
windows = window clipping_windows = clipping_window
class container_window(aetools.ComponentItem): class container_window(aetools.ComponentItem):
"""container window - A window that contains items """ """container window - A window that contains items """
want = 'cwnd' want = 'cwnd'
class _3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the window class """
which = 'c@#^'
want = 'cwin'
class container(aetools.NProperty): class container(aetools.NProperty):
"""container - the container from which the window was opened """ """container - the container from which the window was opened """
which = 'ctnr' which = 'ctnr'
...@@ -163,6 +99,12 @@ class uses_relative_dates(aetools.NProperty): ...@@ -163,6 +99,12 @@ class uses_relative_dates(aetools.NProperty):
container_windows = container_window container_windows = container_window
class content_space(aetools.ComponentItem):
"""content space - All windows, including the desktop window (\xd2Window\xd3 does not include the desktop window) """
want = 'dwnd'
content_spaces = content_space
class information_window(aetools.ComponentItem): class information_window(aetools.ComponentItem):
"""information window - An information window (opened by \xd2Get Info\xd3) """ """information window - An information window (opened by \xd2Get Info\xd3) """
want = 'iwnd' want = 'iwnd'
...@@ -229,47 +171,90 @@ class version(aetools.NProperty): ...@@ -229,47 +171,90 @@ class version(aetools.NProperty):
information_windows = information_window information_windows = information_window
class view_options_window(aetools.ComponentItem):
"""view options window - A View Options window """
want = 'vwnd'
view_options_windows = view_options_window
class preferences_window(aetools.ComponentItem): class preferences_window(aetools.ComponentItem):
"""preferences window - The Finder Preferences window """ """preferences window - The Finder Preferences window """
want = 'pwnd' want = 'pwnd'
class clipping_window(aetools.ComponentItem): class view_options_window(aetools.ComponentItem):
"""clipping window - The window containing a clipping """ """view options window - A View Options window """
want = 'lwnd' want = 'vwnd'
clipping_windows = clipping_window view_options_windows = view_options_window
class content_space(aetools.ComponentItem): class window(aetools.ComponentItem):
"""content space - All windows, including the desktop window (\xd2Window\xd3 does not include the desktop window) """ """window - A window """
want = 'dwnd' want = 'cwin'
class position(aetools.NProperty):
"""position - the upper left position of the window """
which = 'posn'
want = 'QDpt'
class bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window """
which = 'pbnd'
want = 'qdrt'
class titled(aetools.NProperty):
"""titled - Does the window have a title bar? """
which = 'ptit'
want = 'bool'
class name(aetools.NProperty):
"""name - the name of the window """
which = 'pnam'
want = 'itxt'
class index(aetools.NProperty):
"""index - the number of the window in the front-to-back layer ordering """
which = 'pidx'
want = 'long'
class closeable(aetools.NProperty):
"""closeable - Does the window have a close box? """
which = 'hclb'
want = 'bool'
class floating(aetools.NProperty):
"""floating - Does the window have a title bar? """
which = 'isfl'
want = 'bool'
class modal(aetools.NProperty):
"""modal - Is the window modal? """
which = 'pmod'
want = 'bool'
class resizable(aetools.NProperty):
"""resizable - Is the window resizable? """
which = 'prsz'
want = 'bool'
class zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """
which = 'iszm'
want = 'bool'
class zoomed(aetools.NProperty):
"""zoomed - Is the window zoomed? """
which = 'pzum'
want = 'bool'
class zoomed_full_size(aetools.NProperty):
"""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) """
which = 'zumf'
want = 'bool'
class visible(aetools.NProperty):
"""visible - Is the window visible (always true for open Finder windows)? """
which = 'pvis'
want = 'bool'
class popup(aetools.NProperty):
"""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) """
which = 'drwr'
want = 'bool'
class pulled_open(aetools.NProperty):
"""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)? """
which = 'pull'
want = 'bool'
class collapsed(aetools.NProperty):
"""collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """
which = 'wshd'
want = 'bool'
content_spaces = content_space windows = window
window._superclassnames = [] clipping_window._superclassnames = ['window']
window._privpropdict = { clipping_window._privpropdict = {
'position' : position, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'bounds' : bounds,
'titled' : titled,
'name' : name,
'index' : index,
'closeable' : closeable,
'floating' : floating,
'modal' : modal,
'resizable' : resizable,
'zoomable' : zoomable,
'zoomed' : zoomed,
'zoomed_full_size' : zoomed_full_size,
'visible' : visible,
'popup' : popup,
'pulled_open' : pulled_open,
'collapsed' : collapsed,
} }
window._privelemdict = { clipping_window._privelemdict = {
} }
container_window._superclassnames = ['window'] container_window._superclassnames = ['window']
container_window._privpropdict = { container_window._privpropdict = {
...@@ -294,6 +279,11 @@ container_window._privpropdict = { ...@@ -294,6 +279,11 @@ container_window._privpropdict = {
} }
container_window._privelemdict = { container_window._privelemdict = {
} }
content_space._superclassnames = []
content_space._privpropdict = {
}
content_space._privelemdict = {
}
information_window._superclassnames = ['window'] information_window._superclassnames = ['window']
information_window._privpropdict = { information_window._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -316,13 +306,6 @@ information_window._privpropdict = { ...@@ -316,13 +306,6 @@ information_window._privpropdict = {
} }
information_window._privelemdict = { information_window._privelemdict = {
} }
view_options_window._superclassnames = ['window']
view_options_window._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'item' : item,
}
view_options_window._privelemdict = {
}
preferences_window._superclassnames = ['window'] preferences_window._superclassnames = ['window']
preferences_window._privpropdict = { preferences_window._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
...@@ -330,16 +313,33 @@ preferences_window._privpropdict = { ...@@ -330,16 +313,33 @@ preferences_window._privpropdict = {
} }
preferences_window._privelemdict = { preferences_window._privelemdict = {
} }
clipping_window._superclassnames = ['window'] view_options_window._superclassnames = ['window']
clipping_window._privpropdict = { view_options_window._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'item' : item,
} }
clipping_window._privelemdict = { view_options_window._privelemdict = {
} }
content_space._superclassnames = [] window._superclassnames = []
content_space._privpropdict = { window._privpropdict = {
'position' : position,
'bounds' : bounds,
'titled' : titled,
'name' : name,
'index' : index,
'closeable' : closeable,
'floating' : floating,
'modal' : modal,
'resizable' : resizable,
'zoomable' : zoomable,
'zoomed' : zoomed,
'zoomed_full_size' : zoomed_full_size,
'visible' : visible,
'popup' : popup,
'pulled_open' : pulled_open,
'collapsed' : collapsed,
} }
content_space._privelemdict = { window._privelemdict = {
} }
# #
...@@ -347,33 +347,33 @@ content_space._privelemdict = { ...@@ -347,33 +347,33 @@ content_space._privelemdict = {
# #
_classdeclarations = { _classdeclarations = {
'pwnd' : preferences_window, 'pwnd' : preferences_window,
'vwnd' : view_options_window,
'cwin' : window, 'cwin' : window,
'vwnd' : view_options_window,
'lwnd' : clipping_window,
'cwnd' : container_window, 'cwnd' : container_window,
'dwnd' : content_space, 'dwnd' : content_space,
'iwnd' : information_window, 'iwnd' : information_window,
'lwnd' : clipping_window,
} }
_propdeclarations = { _propdeclarations = {
'prsz' : resizable, 'prsz' : resizable,
'barr' : button_view_arrangement, 'barr' : button_view_arrangement,
'pzum' : zoomed, 'pbnd' : bounds,
'appt' : preferred_size,
'iarr' : spatial_view_arrangement, 'iarr' : spatial_view_arrangement,
'hclb' : closeable, 'hclb' : closeable,
'c@#^' : _3c_Inheritance_3e_, 'c@#^' : _3c_Inheritance_3e_,
'ver2' : product_version, 'ver2' : product_version,
'sfsz' : calculates_folder_sizes, 'cuss' : has_custom_view_settings,
'sprt' : suggested_size, 'sprt' : suggested_size,
'zumf' : zoomed_full_size, 'zumf' : zoomed_full_size,
'urdt' : uses_relative_dates, 'urdt' : uses_relative_dates,
'panl' : current_panel, 'panl' : current_panel,
'pmod' : modal, 'pmod' : modal,
'pspd' : stationery,
'scom' : shows_comments, 'scom' : shows_comments,
'appt' : preferred_size, 'pspd' : stationery,
'aslk' : locked, 'aslk' : locked,
'pbnd' : bounds, 'pzum' : zoomed,
'iimg' : icon, 'iimg' : icon,
'mprt' : minimum_size, 'mprt' : minimum_size,
'pnam' : name, 'pnam' : name,
...@@ -382,8 +382,9 @@ _propdeclarations = { ...@@ -382,8 +382,9 @@ _propdeclarations = {
'cobj' : item, 'cobj' : item,
'ptit' : titled, 'ptit' : titled,
'posn' : position, 'posn' : position,
'cuss' : has_custom_view_settings, 'vers' : version,
'phys' : physical_size, 'phys' : physical_size,
'pull' : pulled_open,
'sknd' : shows_kind, 'sknd' : shows_kind,
'svrs' : shows_version, 'svrs' : shows_version,
'svew' : previous_list_view, 'svew' : previous_list_view,
...@@ -394,17 +395,16 @@ _propdeclarations = { ...@@ -394,17 +395,16 @@ _propdeclarations = {
'ctnr' : container, 'ctnr' : container,
'wshd' : collapsed, 'wshd' : collapsed,
'slbl' : shows_label, 'slbl' : shows_label,
'pull' : pulled_open, 'warn' : warns_before_emptying,
'ptsz' : size, 'ptsz' : size,
'pvis' : visible, 'pvis' : visible,
'pidx' : index, 'pidx' : index,
'isfl' : floating, 'isfl' : floating,
'warn' : warns_before_emptying,
'drwr' : popup, 'drwr' : popup,
'sdat' : shows_modification_date, 'sdat' : shows_modification_date,
'pvew' : view, 'pvew' : view,
'sfsz' : calculates_folder_sizes,
'scda' : shows_creation_date, 'scda' : shows_creation_date,
'vers' : version,
} }
_compdeclarations = { _compdeclarations = {
......
...@@ -5,28 +5,28 @@ Resource aete resid 0 ...@@ -5,28 +5,28 @@ Resource aete resid 0
import aetools import aetools
Error = aetools.Error Error = aetools.Error
import Standard_Suite import Standard_Suite
import Earlier_terms
import Finder_Basics
import Finder_items
import Containers_and_folders import Containers_and_folders
import Files_and_suitcases import Files_and_suitcases
import Window_classes import Finder_Basics
import Finder_items
import Process_classes import Process_classes
import Window_classes
import Type_Definitions import Type_Definitions
import Earlier_terms
import Enumerations import Enumerations
import Obsolete_terms import Obsolete_terms
_code_to_module = { _code_to_module = {
'CoRe' : Standard_Suite, 'CoRe' : Standard_Suite,
'tpnm' : Earlier_terms,
'fndr' : Finder_Basics,
'fndr' : Finder_items,
'fndr' : Containers_and_folders, 'fndr' : Containers_and_folders,
'fndr' : Files_and_suitcases, 'fndr' : Files_and_suitcases,
'fndr' : Window_classes, 'fndr' : Finder_Basics,
'fndr' : Finder_items,
'fndr' : Process_classes, 'fndr' : Process_classes,
'fndr' : Window_classes,
'tpdf' : Type_Definitions, 'tpdf' : Type_Definitions,
'tpnm' : Earlier_terms,
'tpnm' : Enumerations, 'tpnm' : Enumerations,
'tpnm' : Obsolete_terms, 'tpnm' : Obsolete_terms,
} }
...@@ -35,27 +35,27 @@ _code_to_module = { ...@@ -35,27 +35,27 @@ _code_to_module = {
_code_to_fullname = { _code_to_fullname = {
'CoRe' : ('Finder.Standard_Suite', 'Standard_Suite'), 'CoRe' : ('Finder.Standard_Suite', 'Standard_Suite'),
'tpnm' : ('Finder.Earlier_terms', 'Earlier_terms'),
'fndr' : ('Finder.Finder_Basics', 'Finder_Basics'),
'fndr' : ('Finder.Finder_items', 'Finder_items'),
'fndr' : ('Finder.Containers_and_folders', 'Containers_and_folders'), 'fndr' : ('Finder.Containers_and_folders', 'Containers_and_folders'),
'fndr' : ('Finder.Files_and_suitcases', 'Files_and_suitcases'), 'fndr' : ('Finder.Files_and_suitcases', 'Files_and_suitcases'),
'fndr' : ('Finder.Window_classes', 'Window_classes'), 'fndr' : ('Finder.Finder_Basics', 'Finder_Basics'),
'fndr' : ('Finder.Finder_items', 'Finder_items'),
'fndr' : ('Finder.Process_classes', 'Process_classes'), 'fndr' : ('Finder.Process_classes', 'Process_classes'),
'fndr' : ('Finder.Window_classes', 'Window_classes'),
'tpdf' : ('Finder.Type_Definitions', 'Type_Definitions'), 'tpdf' : ('Finder.Type_Definitions', 'Type_Definitions'),
'tpnm' : ('Finder.Earlier_terms', 'Earlier_terms'),
'tpnm' : ('Finder.Enumerations', 'Enumerations'), 'tpnm' : ('Finder.Enumerations', 'Enumerations'),
'tpnm' : ('Finder.Obsolete_terms', 'Obsolete_terms'), 'tpnm' : ('Finder.Obsolete_terms', 'Obsolete_terms'),
} }
from Standard_Suite import * from Standard_Suite import *
from Earlier_terms import *
from Finder_Basics import *
from Finder_items import *
from Containers_and_folders import * from Containers_and_folders import *
from Files_and_suitcases import * from Files_and_suitcases import *
from Window_classes import * from Finder_Basics import *
from Finder_items import *
from Process_classes import * from Process_classes import *
from Window_classes import *
from Type_Definitions import * from Type_Definitions import *
from Earlier_terms import *
from Enumerations import * from Enumerations import *
from Obsolete_terms import * from Obsolete_terms import *
...@@ -129,9 +129,6 @@ getbaseclasses(StdSuites.Type_Names_Suite.null) ...@@ -129,9 +129,6 @@ getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.target_id) getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.point) getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(application)
getbaseclasses(special_folders)
getbaseclasses(item)
getbaseclasses(trash_2d_object) getbaseclasses(trash_2d_object)
getbaseclasses(desktop_2d_object) getbaseclasses(desktop_2d_object)
getbaseclasses(sharable_container) getbaseclasses(sharable_container)
...@@ -139,6 +136,9 @@ getbaseclasses(sharing_privileges) ...@@ -139,6 +136,9 @@ getbaseclasses(sharing_privileges)
getbaseclasses(disk) getbaseclasses(disk)
getbaseclasses(folder) getbaseclasses(folder)
getbaseclasses(container) getbaseclasses(container)
getbaseclasses(application)
getbaseclasses(special_folders)
getbaseclasses(item)
getbaseclasses(sound_file) getbaseclasses(sound_file)
getbaseclasses(font_file) getbaseclasses(font_file)
getbaseclasses(internet_location_file) getbaseclasses(internet_location_file)
...@@ -206,17 +206,6 @@ getbaseclasses(StdSuites.Type_Names_Suite.null) ...@@ -206,17 +206,6 @@ getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.target_id) getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.point) getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(status_window)
getbaseclasses(application)
getbaseclasses(sharing_window)
getbaseclasses(control_panel)
getbaseclasses(process)
getbaseclasses(item)
getbaseclasses(file)
getbaseclasses(sharable_container)
getbaseclasses(container_window)
getbaseclasses(container)
getbaseclasses(information_window)
getbaseclasses(StdSuites.Type_Names_Suite.small_integer) getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color) getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary) getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary)
...@@ -257,6 +246,17 @@ getbaseclasses(StdSuites.Type_Names_Suite.null) ...@@ -257,6 +246,17 @@ getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.target_id) getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.point) getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(status_window)
getbaseclasses(application)
getbaseclasses(sharing_window)
getbaseclasses(control_panel)
getbaseclasses(process)
getbaseclasses(item)
getbaseclasses(file)
getbaseclasses(sharable_container)
getbaseclasses(container_window)
getbaseclasses(container)
getbaseclasses(information_window)
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -315,9 +315,6 @@ _classdeclarations = { ...@@ -315,9 +315,6 @@ _classdeclarations = {
'targ' : StdSuites.Type_Names_Suite.target_id, 'targ' : StdSuites.Type_Names_Suite.target_id,
'QDpt' : StdSuites.Type_Names_Suite.point, 'QDpt' : StdSuites.Type_Names_Suite.point,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
'capp' : application,
'spfl' : special_folders,
'cobj' : item,
'ctrs' : trash_2d_object, 'ctrs' : trash_2d_object,
'cdsk' : desktop_2d_object, 'cdsk' : desktop_2d_object,
'sctr' : sharable_container, 'sctr' : sharable_container,
...@@ -325,6 +322,9 @@ _classdeclarations = { ...@@ -325,6 +322,9 @@ _classdeclarations = {
'cdis' : disk, 'cdis' : disk,
'cfol' : folder, 'cfol' : folder,
'ctnr' : container, 'ctnr' : container,
'capp' : application,
'spfl' : special_folders,
'cobj' : item,
'sndf' : sound_file, 'sndf' : sound_file,
'fntf' : font_file, 'fntf' : font_file,
'inlf' : internet_location_file, 'inlf' : internet_location_file,
...@@ -392,17 +392,6 @@ _classdeclarations = { ...@@ -392,17 +392,6 @@ _classdeclarations = {
'targ' : StdSuites.Type_Names_Suite.target_id, 'targ' : StdSuites.Type_Names_Suite.target_id,
'QDpt' : StdSuites.Type_Names_Suite.point, 'QDpt' : StdSuites.Type_Names_Suite.point,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
'qwnd' : status_window,
'capp' : application,
'swnd' : sharing_window,
'ccdv' : control_panel,
'prcs' : process,
'cobj' : item,
'file' : file,
'sctr' : sharable_container,
'cwnd' : container_window,
'ctnr' : container,
'iwnd' : information_window,
'shor' : StdSuites.Type_Names_Suite.small_integer, 'shor' : StdSuites.Type_Names_Suite.small_integer,
'tr16' : StdSuites.Type_Names_Suite.RGB16_color, 'tr16' : StdSuites.Type_Names_Suite.RGB16_color,
'aeut' : StdSuites.Type_Names_Suite.system_dictionary, 'aeut' : StdSuites.Type_Names_Suite.system_dictionary,
...@@ -443,18 +432,29 @@ _classdeclarations = { ...@@ -443,18 +432,29 @@ _classdeclarations = {
'targ' : StdSuites.Type_Names_Suite.target_id, 'targ' : StdSuites.Type_Names_Suite.target_id,
'QDpt' : StdSuites.Type_Names_Suite.point, 'QDpt' : StdSuites.Type_Names_Suite.point,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
'qwnd' : status_window,
'capp' : application,
'swnd' : sharing_window,
'ccdv' : control_panel,
'prcs' : process,
'cobj' : item,
'file' : file,
'sctr' : sharable_container,
'cwnd' : container_window,
'ctnr' : container,
'iwnd' : information_window,
} }
class Finder(Standard_Suite_Events, class Finder(Standard_Suite_Events,
Earlier_terms_Events,
Finder_Basics_Events,
Finder_items_Events,
Containers_and_folders_Events, Containers_and_folders_Events,
Files_and_suitcases_Events, Files_and_suitcases_Events,
Window_classes_Events, Finder_Basics_Events,
Finder_items_Events,
Process_classes_Events, Process_classes_Events,
Window_classes_Events,
Type_Definitions_Events, Type_Definitions_Events,
Earlier_terms_Events,
Enumerations_Events, Enumerations_Events,
Obsolete_terms_Events, Obsolete_terms_Events,
aetools.TalkTo): aetools.TalkTo):
......
...@@ -12,23 +12,16 @@ _code = 'MOSS' ...@@ -12,23 +12,16 @@ _code = 'MOSS'
class Mozilla_suite_Events: class Mozilla_suite_Events:
_argmap_Read_help_file = { def Get_Import_Data(self, _no_object=None, _attributes={}, **_arguments):
'with_index' : 'idid', """Get Import Data: Returns a structure containing information that is of use to an external module in importing data from an external mail application into Communicator.
'search_text' : 'sear',
}
def Read_help_file(self, _object, _attributes={}, **_arguments):
"""Read help file: Reads in the help file (file should be in the help file format)
Required argument: undocumented, typecode 'alis'
Keyword argument with_index: Index to the help file. Defaults to \xd4DEFAULT\xd5)
Keyword argument search_text: Optional text to search for
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: vRefNum and dirID of profile folder (2+4 bytes), vRefNum and DirID of the local mail folder (2+4 bytes), window type of front window (0 if none, \xd4Brwz\xd5 browser, \xd4Addr\xd5 addressbook, \xd4Mesg\xd5 messenger, etc., 4 bytes)
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'help' _subcode = 'Impt'
aetools.keysubst(_arguments, self._argmap_Read_help_file) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -39,16 +32,16 @@ class Mozilla_suite_Events: ...@@ -39,16 +32,16 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_bookmark(self, _object=None, _attributes={}, **_arguments): def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments):
"""Open bookmark: Reads in a bookmark file """Get Profile Name: Get the current User Profile
Required argument: If not available, reloads the current bookmark file
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Name of the current profile, like \xd2Joe Bloggs\xd3. This is the name of the profile folder in the Netscape Users folder.
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'book' _subcode = 'upro'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -59,23 +52,17 @@ class Mozilla_suite_Events: ...@@ -59,23 +52,17 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_Go = { def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments):
'direction' : 'dire', """Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL
}
def Go(self, _object, _attributes={}, **_arguments):
"""Go: navigate a window: back, forward, again(reload), home)
Required argument: window
Keyword argument direction: undocumented, typecode 'dire'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Will return text of the from \xd2FILE://foo/applicationname\xd3
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'gogo' _subcode = 'wurl'
aetools.keysubst(_arguments, self._argmap_Go) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
aetools.enumsubst(_arguments, 'dire', _Enum_dire)
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
...@@ -85,17 +72,23 @@ class Mozilla_suite_Events: ...@@ -85,17 +72,23 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments): _argmap_Go = {
"""Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL 'direction' : 'dire',
}
def Go(self, _object, _attributes={}, **_arguments):
"""Go: navigate a window: back, forward, again(reload), home)
Required argument: window
Keyword argument direction: undocumented, typecode 'dire'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Will return text of the from \xd2FILE://foo/applicationname\xd3
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'wurl' _subcode = 'gogo'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_Go)
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
aetools.enumsubst(_arguments, 'dire', _Enum_dire)
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
...@@ -105,15 +98,16 @@ class Mozilla_suite_Events: ...@@ -105,15 +98,16 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_Profile_Manager(self, _no_object=None, _attributes={}, **_arguments): def Handle_command(self, _object, _attributes={}, **_arguments):
"""Open Profile Manager: Open the user profile manager (obsolete) """Handle command: Handle a command
Required argument: The command to handle
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'prfl' _subcode = 'hcmd'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -124,13 +118,12 @@ class Mozilla_suite_Events: ...@@ -124,13 +118,12 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Get_Import_Data(self, _no_object=None, _attributes={}, **_arguments): def Open_Address_Book(self, _no_object=None, _attributes={}, **_arguments):
"""Get Import Data: Returns a structure containing information that is of use to an external module in importing data from an external mail application into Communicator. """Open Address Book: Opens the address book
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: vRefNum and dirID of profile folder (2+4 bytes), vRefNum and DirID of the local mail folder (2+4 bytes), window type of front window (0 if none, \xd4Brwz\xd5 browser, \xd4Addr\xd5 addressbook, \xd4Mesg\xd5 messenger, etc., 4 bytes)
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'Impt' _subcode = 'addr'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' if _no_object != None: raise TypeError, 'No direct arg expected'
...@@ -144,16 +137,16 @@ class Mozilla_suite_Events: ...@@ -144,16 +137,16 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments): def Open_Component(self, _object, _attributes={}, **_arguments):
"""Get Profile Name: Get the current User Profile """Open Component: Open a Communicator component
Required argument: The component to open
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Name of the current profile, like \xd2Joe Bloggs\xd3. This is the name of the profile folder in the Netscape Users folder.
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'upro' _subcode = 'cpnt'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -164,12 +157,12 @@ class Mozilla_suite_Events: ...@@ -164,12 +157,12 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_Address_Book(self, _no_object=None, _attributes={}, **_arguments): def Open_Profile_Manager(self, _no_object=None, _attributes={}, **_arguments):
"""Open Address Book: Opens the address book """Open Profile Manager: Open the user profile manager (obsolete)
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'addr' _subcode = 'prfl'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' if _no_object != None: raise TypeError, 'No direct arg expected'
...@@ -183,13 +176,13 @@ class Mozilla_suite_Events: ...@@ -183,13 +176,13 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_Component(self, _object, _attributes={}, **_arguments): def Open_bookmark(self, _object=None, _attributes={}, **_arguments):
"""Open Component: Open a Communicator component """Open bookmark: Reads in a bookmark file
Required argument: The component to open Required argument: If not available, reloads the current bookmark file
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'cpnt' _subcode = 'book'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -203,15 +196,22 @@ class Mozilla_suite_Events: ...@@ -203,15 +196,22 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Handle_command(self, _object, _attributes={}, **_arguments): _argmap_Read_help_file = {
"""Handle command: Handle a command 'with_index' : 'idid',
Required argument: The command to handle 'search_text' : 'sear',
}
def Read_help_file(self, _object, _attributes={}, **_arguments):
"""Read help file: Reads in the help file (file should be in the help file format)
Required argument: undocumented, typecode 'alis'
Keyword argument with_index: Index to the help file. Defaults to \xd4DEFAULT\xd5)
Keyword argument search_text: Optional text to search for
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'hcmd' _subcode = 'help'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_Read_help_file)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -223,13 +223,6 @@ class Mozilla_suite_Events: ...@@ -223,13 +223,6 @@ class Mozilla_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_Enum_dire = {
'again' : 'agai', # Again (reload)
'home' : 'home', # Home
'backward' : 'prev', # Previous page
'forward' : 'next', # Next page
}
_Enum_comp = { _Enum_comp = {
'Navigator' : 'navg', # The Navigator component 'Navigator' : 'navg', # The Navigator component
'InBox' : 'inbx', # The InBox component 'InBox' : 'inbx', # The InBox component
...@@ -239,6 +232,13 @@ _Enum_comp = { ...@@ -239,6 +232,13 @@ _Enum_comp = {
'Calendar' : 'cald', # The Calendar Component 'Calendar' : 'cald', # The Calendar Component
} }
_Enum_dire = {
'again' : 'agai', # Again (reload)
'home' : 'home', # Home
'backward' : 'prev', # Previous page
'forward' : 'next', # Next page
}
_Enum_ncmd = { _Enum_ncmd = {
'Get_new_mail' : '\x00\x00\x04W', # 'Get_new_mail' : '\x00\x00\x04W', #
'Send_queued_messages' : '\x00\x00\x04X', # 'Send_queued_messages' : '\x00\x00\x04X', #
......
...@@ -12,21 +12,20 @@ _code = 'ppnt' ...@@ -12,21 +12,20 @@ _code = 'ppnt'
class PowerPlant_Events: class PowerPlant_Events:
_argmap_select = { _argmap_SwitchTellTarget = {
'data' : 'data', 'to' : 'data',
} }
def select(self, _object, _attributes={}, **_arguments): def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments):
"""select: Sets the present selection """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
Required argument: object to select or container of sub-objects to select Keyword argument to: reference to new focus of AppleEvents
Keyword argument data: sub-object(s) to select
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'ppnt'
_subcode = 'slct' _subcode = 'sttg'
aetools.keysubst(_arguments, self._argmap_select) aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -37,20 +36,21 @@ class PowerPlant_Events: ...@@ -37,20 +36,21 @@ class PowerPlant_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_SwitchTellTarget = { _argmap_select = {
'to' : 'data', 'data' : 'data',
} }
def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments): def select(self, _object, _attributes={}, **_arguments):
"""SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents """select: Sets the present selection
Keyword argument to: reference to new focus of AppleEvents Required argument: object to select or container of sub-objects to select
Keyword argument data: sub-object(s) to select
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'ppnt' _code = 'misc'
_subcode = 'sttg' _subcode = 'slct'
aetools.keysubst(_arguments, self._argmap_SwitchTellTarget) aetools.keysubst(_arguments, self._argmap_select)
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
......
...@@ -16,31 +16,6 @@ class Text_Events(Text_Suite_Events): ...@@ -16,31 +16,6 @@ class Text_Events(Text_Suite_Events):
pass pass
class text(aetools.ComponentItem):
"""text - independent text view objects """
want = 'ctxt'
class updateLevel(aetools.NProperty):
"""updateLevel - updating level. Can only be incremented or decremented. Do so only in a try block -- if the level is greater than zero, visual text updating will cease. """
which = 'pUpL'
want = 'long'
class beginning(aetools.NProperty):
"""beginning - Beginning of element """
which = 'bgng'
want = 'obj '
class end(aetools.NProperty):
"""end - Ending of element """
which = 'end '
want = 'obj '
class infront(aetools.NProperty):
"""infront - Immediately before element """
which = 'pBef'
want = 'obj '
class justbehind(aetools.NProperty):
"""justbehind - Immediately after element """
which = 'pAft'
want = 'obj '
# element 'stys' as ['indx', 'name']
class styleset(aetools.ComponentItem): class styleset(aetools.ComponentItem):
"""styleset - A style \xd2set\xd3 that may be used repeatedly in text objects. """ """styleset - A style \xd2set\xd3 that may be used repeatedly in text objects. """
want = 'stys' want = 'stys'
...@@ -70,17 +45,31 @@ class style(aetools.NProperty): ...@@ -70,17 +45,31 @@ class style(aetools.NProperty):
want = 'tsty' want = 'tsty'
stylesets = styleset stylesets = styleset
text._superclassnames = []
text._privpropdict = { class text(aetools.ComponentItem):
'updateLevel' : updateLevel, """text - independent text view objects """
'beginning' : beginning, want = 'ctxt'
'end' : end, class updateLevel(aetools.NProperty):
'infront' : infront, """updateLevel - updating level. Can only be incremented or decremented. Do so only in a try block -- if the level is greater than zero, visual text updating will cease. """
'justbehind' : justbehind, which = 'pUpL'
} want = 'long'
text._privelemdict = { class beginning(aetools.NProperty):
'styleset' : styleset, """beginning - Beginning of element """
} which = 'bgng'
want = 'obj '
class end(aetools.NProperty):
"""end - Ending of element """
which = 'end '
want = 'obj '
class infront(aetools.NProperty):
"""infront - Immediately before element """
which = 'pBef'
want = 'obj '
class justbehind(aetools.NProperty):
"""justbehind - Immediately after element """
which = 'pAft'
want = 'obj '
# element 'stys' as ['indx', 'name']
styleset._superclassnames = [] styleset._superclassnames = []
styleset._privpropdict = { styleset._privpropdict = {
'name' : name, 'name' : name,
...@@ -92,27 +81,38 @@ styleset._privpropdict = { ...@@ -92,27 +81,38 @@ styleset._privpropdict = {
} }
styleset._privelemdict = { styleset._privelemdict = {
} }
text._superclassnames = []
text._privpropdict = {
'updateLevel' : updateLevel,
'beginning' : beginning,
'end' : end,
'infront' : infront,
'justbehind' : justbehind,
}
text._privelemdict = {
'styleset' : styleset,
}
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'ctxt' : text,
'stys' : styleset, 'stys' : styleset,
'ctxt' : text,
} }
_propdeclarations = { _propdeclarations = {
'pBef' : infront, 'ptsz' : size,
'bgng' : beginning, 'bgng' : beginning,
'colr' : color, 'colr' : color,
'txst' : style, 'txst' : style,
'psct' : writing_code, 'psct' : writing_code,
'pAft' : justbehind, 'pAft' : justbehind,
'font' : font,
'end ' : end, 'end ' : end,
'ptsz' : size,
'pUpL' : updateLevel, 'pUpL' : updateLevel,
'pnam' : name, 'pnam' : name,
'font' : font, 'pBef' : infront,
} }
_compdeclarations = { _compdeclarations = {
......
...@@ -70,32 +70,6 @@ class WorldWideWeb_suite_Events: ...@@ -70,32 +70,6 @@ class WorldWideWeb_suite_Events:
_arguments['----'] = _object _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_parse_anchor = {
'relative_to' : 'RELA',
}
def parse_anchor(self, _object, _attributes={}, **_arguments):
"""parse anchor: Resolves the relative URL
Required argument: Main URL
Keyword argument relative_to: Relative URL
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Parsed URL
"""
_code = 'WWW!'
_subcode = 'PRSA'
aetools.keysubst(_arguments, self._argmap_parse_anchor)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
...@@ -150,13 +124,14 @@ class WorldWideWeb_suite_Events: ...@@ -150,13 +124,14 @@ class WorldWideWeb_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def webActivate(self, _object=None, _attributes={}, **_arguments): def get_window_info(self, _object=None, _attributes={}, **_arguments):
"""webActivate: Makes Netscape the frontmost application, and selects a given window. This event is here for suite completeness/ cross-platform compatibility only, you should use standard AppleEvents instead. """get window info: Returns the information about the window as a list. Currently the list contains the window title and the URL. You can get the same information using standard Apple Event GetProperty.
Required argument: window to bring to front Required argument: window ID
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list'
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'ACTV' _subcode = 'WNFO'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -190,16 +165,21 @@ class WorldWideWeb_suite_Events: ...@@ -190,16 +165,21 @@ class WorldWideWeb_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def get_window_info(self, _object=None, _attributes={}, **_arguments): _argmap_parse_anchor = {
"""get window info: Returns the information about the window as a list. Currently the list contains the window title and the URL. You can get the same information using standard Apple Event GetProperty. 'relative_to' : 'RELA',
Required argument: window ID }
def parse_anchor(self, _object, _attributes={}, **_arguments):
"""parse anchor: Resolves the relative URL
Required argument: Main URL
Keyword argument relative_to: Relative URL
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list' Returns: Parsed URL
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'WNFO' _subcode = 'PRSA'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_parse_anchor)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -231,15 +211,21 @@ class WorldWideWeb_suite_Events: ...@@ -231,15 +211,21 @@ class WorldWideWeb_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def unregister_URL_echo(self, _object, _attributes={}, **_arguments): _argmap_register_protocol = {
"""unregister URL echo: cancels URL echo 'for_protocol' : 'PROT',
Required argument: application signature }
def register_protocol(self, _object=None, _attributes={}, **_arguments):
"""register protocol: Registers application as a \xd2handler\xd3 for this protocol with a given prefix. The handler will receive \xd2OpenURL\xd3, or if that fails, \xd2GetURL\xd3 event.
Required argument: Application sig
Keyword argument for_protocol: protocol prefix: \xd2finger:\xd3, \xd2file\xd3,
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if registration has been successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'UNRU' _subcode = 'RGPR'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_register_protocol)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -279,21 +265,21 @@ class WorldWideWeb_suite_Events: ...@@ -279,21 +265,21 @@ class WorldWideWeb_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_unregister_viewer = { _argmap_register_window_close = {
'MIME_type' : 'MIME', 'for_window' : 'WIND',
} }
def unregister_viewer(self, _object, _attributes={}, **_arguments): def register_window_close(self, _object=None, _attributes={}, **_arguments):
"""unregister viewer: Revert to the old way of handling this MIME type """register window close: Netscape will notify registered application when this window closes
Required argument: Application sig Required argument: Application signature
Keyword argument MIME_type: MIME type to be unregistered Keyword argument for_window: window ID
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if the event was successful Returns: true if successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'UNRV' _subcode = 'RGWC'
aetools.keysubst(_arguments, self._argmap_unregister_viewer) aetools.keysubst(_arguments, self._argmap_register_window_close)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -305,21 +291,15 @@ class WorldWideWeb_suite_Events: ...@@ -305,21 +291,15 @@ class WorldWideWeb_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_register_protocol = { def unregister_URL_echo(self, _object, _attributes={}, **_arguments):
'for_protocol' : 'PROT', """unregister URL echo: cancels URL echo
} Required argument: application signature
def register_protocol(self, _object=None, _attributes={}, **_arguments):
"""register protocol: Registers application as a \xd2handler\xd3 for this protocol with a given prefix. The handler will receive \xd2OpenURL\xd3, or if that fails, \xd2GetURL\xd3 event.
Required argument: Application sig
Keyword argument for_protocol: protocol prefix: \xd2finger:\xd3, \xd2file\xd3,
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if registration has been successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'RGPR' _subcode = 'UNRU'
aetools.keysubst(_arguments, self._argmap_register_protocol) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -357,21 +337,21 @@ class WorldWideWeb_suite_Events: ...@@ -357,21 +337,21 @@ class WorldWideWeb_suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_register_window_close = { _argmap_unregister_viewer = {
'for_window' : 'WIND', 'MIME_type' : 'MIME',
} }
def register_window_close(self, _object=None, _attributes={}, **_arguments): def unregister_viewer(self, _object, _attributes={}, **_arguments):
"""register window close: Netscape will notify registered application when this window closes """unregister viewer: Revert to the old way of handling this MIME type
Required argument: Application signature Required argument: Application sig
Keyword argument for_window: window ID Keyword argument MIME_type: MIME type to be unregistered
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: true if successful Returns: TRUE if the event was successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'RGWC' _subcode = 'UNRV'
aetools.keysubst(_arguments, self._argmap_register_window_close) aetools.keysubst(_arguments, self._argmap_unregister_viewer)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -401,6 +381,26 @@ class WorldWideWeb_suite_Events: ...@@ -401,6 +381,26 @@ class WorldWideWeb_suite_Events:
_arguments['----'] = _object _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 webActivate(self, _object=None, _attributes={}, **_arguments):
"""webActivate: Makes Netscape the frontmost application, and selects a given window. This event is here for suite completeness/ cross-platform compatibility only, you should use standard AppleEvents instead.
Required argument: window to bring to front
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'WWW!'
_subcode = 'ACTV'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
......
...@@ -4,44 +4,44 @@ Resource aete resid 0 ...@@ -4,44 +4,44 @@ Resource aete resid 0
""" """
import aetools import aetools
Error = aetools.Error Error = aetools.Error
import Required_suite
import Standard_Suite import Standard_Suite
import Standard_URL_suite import Standard_URL_suite
import WorldWideWeb_suite
import Mozilla_suite import Mozilla_suite
import PowerPlant
import Text import Text
import WorldWideWeb_suite
import PowerPlant
import Required_suite
_code_to_module = { _code_to_module = {
'reqd' : Required_suite,
'CoRe' : Standard_Suite, 'CoRe' : Standard_Suite,
'GURL' : Standard_URL_suite, 'GURL' : Standard_URL_suite,
'WWW!' : WorldWideWeb_suite,
'MOSS' : Mozilla_suite, 'MOSS' : Mozilla_suite,
'ppnt' : PowerPlant,
'TEXT' : Text, 'TEXT' : Text,
'WWW!' : WorldWideWeb_suite,
'ppnt' : PowerPlant,
'reqd' : Required_suite,
} }
_code_to_fullname = { _code_to_fullname = {
'reqd' : ('Netscape.Required_suite', 'Required_suite'),
'CoRe' : ('Netscape.Standard_Suite', 'Standard_Suite'), 'CoRe' : ('Netscape.Standard_Suite', 'Standard_Suite'),
'GURL' : ('Netscape.Standard_URL_suite', 'Standard_URL_suite'), 'GURL' : ('Netscape.Standard_URL_suite', 'Standard_URL_suite'),
'WWW!' : ('Netscape.WorldWideWeb_suite', 'WorldWideWeb_suite'),
'MOSS' : ('Netscape.Mozilla_suite', 'Mozilla_suite'), 'MOSS' : ('Netscape.Mozilla_suite', 'Mozilla_suite'),
'ppnt' : ('Netscape.PowerPlant', 'PowerPlant'),
'TEXT' : ('Netscape.Text', 'Text'), 'TEXT' : ('Netscape.Text', 'Text'),
'WWW!' : ('Netscape.WorldWideWeb_suite', 'WorldWideWeb_suite'),
'ppnt' : ('Netscape.PowerPlant', 'PowerPlant'),
'reqd' : ('Netscape.Required_suite', 'Required_suite'),
} }
from Required_suite import *
from Standard_Suite import * from Standard_Suite import *
from Standard_URL_suite import * from Standard_URL_suite import *
from WorldWideWeb_suite import *
from Mozilla_suite import * from Mozilla_suite import *
from PowerPlant import *
from Text import * from Text import *
from WorldWideWeb_suite import *
from PowerPlant import *
from Required_suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
...@@ -62,8 +62,6 @@ import StdSuites ...@@ -62,8 +62,6 @@ import StdSuites
# #
getbaseclasses(window) getbaseclasses(window)
getbaseclasses(application) getbaseclasses(application)
getbaseclasses(text)
getbaseclasses(styleset)
getbaseclasses(StdSuites.Text_Suite.paragraph) getbaseclasses(StdSuites.Text_Suite.paragraph)
getbaseclasses(StdSuites.Text_Suite.character) getbaseclasses(StdSuites.Text_Suite.character)
getbaseclasses(StdSuites.Text_Suite.text_style_info) getbaseclasses(StdSuites.Text_Suite.text_style_info)
...@@ -71,6 +69,8 @@ getbaseclasses(StdSuites.Text_Suite.word) ...@@ -71,6 +69,8 @@ getbaseclasses(StdSuites.Text_Suite.word)
getbaseclasses(StdSuites.Text_Suite.text_flow) getbaseclasses(StdSuites.Text_Suite.text_flow)
getbaseclasses(StdSuites.Text_Suite.line) getbaseclasses(StdSuites.Text_Suite.line)
getbaseclasses(StdSuites.Text_Suite.text) getbaseclasses(StdSuites.Text_Suite.text)
getbaseclasses(text)
getbaseclasses(styleset)
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -78,8 +78,6 @@ getbaseclasses(StdSuites.Text_Suite.text) ...@@ -78,8 +78,6 @@ getbaseclasses(StdSuites.Text_Suite.text)
_classdeclarations = { _classdeclarations = {
'cwin' : window, 'cwin' : window,
'capp' : application, 'capp' : application,
'ctxt' : text,
'stys' : styleset,
'cpar' : StdSuites.Text_Suite.paragraph, 'cpar' : StdSuites.Text_Suite.paragraph,
'cha ' : StdSuites.Text_Suite.character, 'cha ' : StdSuites.Text_Suite.character,
'tsty' : StdSuites.Text_Suite.text_style_info, 'tsty' : StdSuites.Text_Suite.text_style_info,
...@@ -87,16 +85,18 @@ _classdeclarations = { ...@@ -87,16 +85,18 @@ _classdeclarations = {
'cflo' : StdSuites.Text_Suite.text_flow, 'cflo' : StdSuites.Text_Suite.text_flow,
'clin' : StdSuites.Text_Suite.line, 'clin' : StdSuites.Text_Suite.line,
'ctxt' : StdSuites.Text_Suite.text, 'ctxt' : StdSuites.Text_Suite.text,
'ctxt' : text,
'stys' : styleset,
} }
class Netscape(Required_suite_Events, class Netscape(Standard_Suite_Events,
Standard_Suite_Events,
Standard_URL_suite_Events, Standard_URL_suite_Events,
WorldWideWeb_suite_Events,
Mozilla_suite_Events, Mozilla_suite_Events,
PowerPlant_Events,
Text_Events, Text_Events,
WorldWideWeb_suite_Events,
PowerPlant_Events,
Required_suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'MOSS' _signature = 'MOSS'
......
...@@ -12,32 +12,14 @@ _code = 'ascr' ...@@ -12,32 +12,14 @@ _code = 'ascr'
class AppleScript_Suite_Events: class AppleScript_Suite_Events:
def activate(self, _no_object=None, _attributes={}, **_arguments): def _26_(self, _object, _attributes={}, **_arguments):
"""activate: Bring the targeted application program to the front """&: Concatenation
Keyword argument _attributes: AppleEvent attribute dictionary Required argument: an AE object reference
"""
_code = 'misc'
_subcode = 'actv'
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 log(self, _object, _attributes={}, **_arguments):
"""log: Cause a comment to be logged
Required argument: undocumented, typecode 'TEXT'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'cmnt' _subcode = 'ccat'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -51,34 +33,17 @@ class AppleScript_Suite_Events: ...@@ -51,34 +33,17 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def stop_log(self, _no_object=None, _attributes={}, **_arguments): def _2a_(self, _object, _attributes={}, **_arguments):
"""stop log: Stop event logging in the script editor """*: Multiplication
Keyword argument _attributes: AppleEvent attribute dictionary Required argument: an AE object reference
"""
_code = 'ToyS'
_subcode = 'log0'
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 start_log(self, _no_object=None, _attributes={}, **_arguments):
"""start log: Start event logging in the script editor
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ToyS' _code = 'ascr'
_subcode = 'log1' _subcode = '* '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -89,16 +54,17 @@ class AppleScript_Suite_Events: ...@@ -89,16 +54,17 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def idle(self, _no_object=None, _attributes={}, **_arguments): def _2b_(self, _object, _attributes={}, **_arguments):
"""idle: Sent to a script application when it is idle """+: Addition
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the number of seconds to wait for next idle event Returns: anything
""" """
_code = 'misc' _code = 'ascr'
_subcode = 'idle' _subcode = '+ '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -109,15 +75,17 @@ class AppleScript_Suite_Events: ...@@ -109,15 +75,17 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def launch(self, _no_object=None, _attributes={}, **_arguments): def _2d_(self, _object, _attributes={}, **_arguments):
"""launch: Start an application for scripting """-: Subtraction
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'noop' _subcode = '- '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -128,15 +96,17 @@ class AppleScript_Suite_Events: ...@@ -128,15 +96,17 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def tell(self, _no_object=None, _attributes={}, **_arguments): def _3c_(self, _object, _attributes={}, **_arguments):
"""tell: Record or log a \xd4tell\xd5 statement """<: Less than
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'tell' _subcode = '< '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -147,15 +117,17 @@ class AppleScript_Suite_Events: ...@@ -147,15 +117,17 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def end_tell(self, _no_object=None, _attributes={}, **_arguments): def _3d_(self, _object, _attributes={}, **_arguments):
"""end tell: Record or log an \xd4end tell\xd5 statement """=: Equality
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'tend' _subcode = '= '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -166,26 +138,16 @@ class AppleScript_Suite_Events: ...@@ -166,26 +138,16 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_error = { def _3e_(self, _object, _attributes={}, **_arguments):
'number' : 'errn', """>: Greater than
'partial_result' : 'ptlr', Required argument: an AE object reference
'from_' : 'erob',
'to' : 'errt',
}
def error(self, _object=None, _attributes={}, **_arguments):
"""error: Raise an error
Required argument: anything
Keyword argument number: an error number
Keyword argument partial_result: any partial result occurring before the error
Keyword argument from_: the object that caused the error
Keyword argument to: the desired class for a failed coercion
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'err ' _subcode = '> '
aetools.keysubst(_arguments, self._argmap_error) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -277,14 +239,14 @@ class AppleScript_Suite_Events: ...@@ -277,14 +239,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _3d_(self, _object, _attributes={}, **_arguments): def _5e_(self, _object, _attributes={}, **_arguments):
"""=: Equality """^: Exponentiation
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '= ' _subcode = '^ '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -298,17 +260,15 @@ class AppleScript_Suite_Events: ...@@ -298,17 +260,15 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _ad_(self, _object, _attributes={}, **_arguments): def activate(self, _no_object=None, _attributes={}, **_arguments):
"""\xad: Inequality """activate: Bring the targeted application program to the front
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'misc'
_subcode = '\xad ' _subcode = 'actv'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -319,14 +279,14 @@ class AppleScript_Suite_Events: ...@@ -319,14 +279,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _2b_(self, _object, _attributes={}, **_arguments): def and_(self, _object, _attributes={}, **_arguments):
"""+: Addition """and: Logical conjunction
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '+ ' _subcode = 'AND '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -340,14 +300,14 @@ class AppleScript_Suite_Events: ...@@ -340,14 +300,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _2d_(self, _object, _attributes={}, **_arguments): def as(self, _object, _attributes={}, **_arguments):
"""-: Subtraction """as: Coercion
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '- ' _subcode = 'coer'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -361,14 +321,14 @@ class AppleScript_Suite_Events: ...@@ -361,14 +321,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _2a_(self, _object, _attributes={}, **_arguments): def contains(self, _object, _attributes={}, **_arguments):
"""*: Multiplication """contains: Containment
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '* ' _subcode = 'cont'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -382,14 +342,14 @@ class AppleScript_Suite_Events: ...@@ -382,14 +342,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _d6_(self, _object, _attributes={}, **_arguments): def div(self, _object, _attributes={}, **_arguments):
"""\xd6: Division """div: Quotient
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '/ ' _subcode = 'div '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -403,17 +363,15 @@ class AppleScript_Suite_Events: ...@@ -403,17 +363,15 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def div(self, _object, _attributes={}, **_arguments): def end_tell(self, _no_object=None, _attributes={}, **_arguments):
"""div: Quotient """end tell: Record or log an \xd4end tell\xd5 statement
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'div ' _subcode = 'tend'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -424,14 +382,14 @@ class AppleScript_Suite_Events: ...@@ -424,14 +382,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def mod(self, _object, _attributes={}, **_arguments): def ends_with(self, _object, _attributes={}, **_arguments):
"""mod: Remainder """ends with: Ends with
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'mod ' _subcode = 'ends'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -445,16 +403,26 @@ class AppleScript_Suite_Events: ...@@ -445,16 +403,26 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _5e_(self, _object, _attributes={}, **_arguments): _argmap_error = {
"""^: Exponentiation 'number' : 'errn',
Required argument: an AE object reference 'partial_result' : 'ptlr',
'from_' : 'erob',
'to' : 'errt',
}
def error(self, _object=None, _attributes={}, **_arguments):
"""error: Raise an error
Required argument: anything
Keyword argument number: an error number
Keyword argument partial_result: any partial result occurring before the error
Keyword argument from_: the object that caused the error
Keyword argument to: the desired class for a failed coercion
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '^ ' _subcode = 'err '
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_error)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -466,17 +434,16 @@ class AppleScript_Suite_Events: ...@@ -466,17 +434,16 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _3e_(self, _object, _attributes={}, **_arguments): def idle(self, _no_object=None, _attributes={}, **_arguments):
""">: Greater than """idle: Sent to a script application when it is idle
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: the number of seconds to wait for next idle event
""" """
_code = 'ascr' _code = 'misc'
_subcode = '> ' _subcode = 'idle'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -487,17 +454,15 @@ class AppleScript_Suite_Events: ...@@ -487,17 +454,15 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _b3_(self, _object, _attributes={}, **_arguments): def launch(self, _no_object=None, _attributes={}, **_arguments):
"""\xb3: Greater than or equal to """launch: Start an application for scripting
Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '>= ' _subcode = 'noop'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -508,14 +473,13 @@ class AppleScript_Suite_Events: ...@@ -508,14 +473,13 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _3c_(self, _object, _attributes={}, **_arguments): def log(self, _object, _attributes={}, **_arguments):
"""<: Less than """log: Cause a comment to be logged
Required argument: an AE object reference Required argument: undocumented, typecode 'TEXT'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '< ' _subcode = 'cmnt'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -529,14 +493,14 @@ class AppleScript_Suite_Events: ...@@ -529,14 +493,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _b2_(self, _object, _attributes={}, **_arguments): def mod(self, _object, _attributes={}, **_arguments):
"""\xb2: Less than or equal to """mod: Remainder
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = '<= ' _subcode = 'mod '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -550,14 +514,14 @@ class AppleScript_Suite_Events: ...@@ -550,14 +514,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def _26_(self, _object, _attributes={}, **_arguments): def negate(self, _object, _attributes={}, **_arguments):
"""&: Concatenation """negate: Numeric negation
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'ccat' _subcode = 'neg '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -571,14 +535,14 @@ class AppleScript_Suite_Events: ...@@ -571,14 +535,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def starts_with(self, _object, _attributes={}, **_arguments): def not_(self, _object, _attributes={}, **_arguments):
"""starts with: Starts with """not: Logical negation
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'bgwt' _subcode = 'NOT '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -592,14 +556,14 @@ class AppleScript_Suite_Events: ...@@ -592,14 +556,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def ends_with(self, _object, _attributes={}, **_arguments): def or_(self, _object, _attributes={}, **_arguments):
"""ends with: Ends with """or: Logical disjunction
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'ends' _subcode = 'OR '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -613,14 +577,33 @@ class AppleScript_Suite_Events: ...@@ -613,14 +577,33 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def contains(self, _object, _attributes={}, **_arguments): def start_log(self, _no_object=None, _attributes={}, **_arguments):
"""contains: Containment """start log: Start event logging in the script editor
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ToyS'
_subcode = 'log1'
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 starts_with(self, _object, _attributes={}, **_arguments):
"""starts with: Starts with
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'cont' _subcode = 'bgwt'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -634,17 +617,34 @@ class AppleScript_Suite_Events: ...@@ -634,17 +617,34 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def and_(self, _object, _attributes={}, **_arguments): def stop_log(self, _no_object=None, _attributes={}, **_arguments):
"""and: Logical conjunction """stop log: Stop event logging in the script editor
Required argument: an AE object reference Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ToyS'
_subcode = 'log0'
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 tell(self, _no_object=None, _attributes={}, **_arguments):
"""tell: Record or log a \xd4tell\xd5 statement
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'AND ' _subcode = 'tell'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -655,14 +655,14 @@ class AppleScript_Suite_Events: ...@@ -655,14 +655,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def or_(self, _object, _attributes={}, **_arguments): def _ad_(self, _object, _attributes={}, **_arguments):
"""or: Logical disjunction """\xad: Inequality
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'OR ' _subcode = '\xad '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -676,14 +676,14 @@ class AppleScript_Suite_Events: ...@@ -676,14 +676,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def as(self, _object, _attributes={}, **_arguments): def _b2_(self, _object, _attributes={}, **_arguments):
"""as: Coercion """\xb2: Less than or equal to
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'coer' _subcode = '<= '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -697,14 +697,14 @@ class AppleScript_Suite_Events: ...@@ -697,14 +697,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def not_(self, _object, _attributes={}, **_arguments): def _b3_(self, _object, _attributes={}, **_arguments):
"""not: Logical negation """\xb3: Greater than or equal to
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'NOT ' _subcode = '>= '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -718,14 +718,14 @@ class AppleScript_Suite_Events: ...@@ -718,14 +718,14 @@ class AppleScript_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def negate(self, _object, _attributes={}, **_arguments): def _d6_(self, _object, _attributes={}, **_arguments):
"""negate: Numeric negation """\xd6: Division
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'ascr' _code = 'ascr'
_subcode = 'neg ' _subcode = '/ '
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -740,117 +740,201 @@ class AppleScript_Suite_Events: ...@@ -740,117 +740,201 @@ class AppleScript_Suite_Events:
return _arguments['----'] return _arguments['----']
class boolean(aetools.ComponentItem): class empty_ae_name_(aetools.ComponentItem):
"""boolean - A true or false value """ """ - the undefined value """
want = 'bool' want = 'undf'
booleans = boolean class April(aetools.ComponentItem):
"""April - the month of April """
want = 'apr '
class integer(aetools.ComponentItem): class August(aetools.ComponentItem):
"""integer - An integral number """ """August - the month of August """
want = 'long' want = 'aug '
integers = integer class C_string(aetools.ComponentItem):
"""C string - text followed by a null """
want = 'cstr'
class real(aetools.ComponentItem): C_strings = C_string
"""real - A real number """
want = 'doub'
reals = real class December(aetools.ComponentItem):
"""December - the month of December """
want = 'dec '
class number(aetools.ComponentItem): class February(aetools.ComponentItem):
"""number - an integer or real number """ """February - the month of February """
want = 'nmbr' want = 'feb '
numbers = number class Friday(aetools.ComponentItem):
"""Friday - Friday """
want = 'fri '
class list(aetools.ComponentItem): class January(aetools.ComponentItem):
"""list - An ordered collection of items """ """January - the month of January """
want = 'list' want = 'jan '
class length(aetools.NProperty):
"""length - the length of a list """
which = 'leng'
want = 'long'
class reverse(aetools.NProperty):
"""reverse - the items of the list in reverse order """
which = 'rvse'
want = 'list'
class rest(aetools.NProperty):
"""rest - all items of the list excluding first """
which = 'rest'
want = 'list'
lists = list class July(aetools.ComponentItem):
"""July - the month of July """
want = 'jul '
class linked_list(aetools.ComponentItem): class June(aetools.ComponentItem):
"""linked list - An ordered collection of items """ """June - the month of June """
want = 'llst' want = 'jun '
linked_lists = linked_list class March(aetools.ComponentItem):
"""March - the month of March """
want = 'mar '
class vector(aetools.ComponentItem): class May(aetools.ComponentItem):
"""vector - An ordered collection of items """ """May - the month of May """
want = 'vect' want = 'may '
vectors = vector class Monday(aetools.ComponentItem):
"""Monday - Monday """
want = 'mon '
class record(aetools.ComponentItem): class November(aetools.ComponentItem):
"""record - A set of labeled items """ """November - the month of November """
want = 'reco' want = 'nov '
records = record class October(aetools.ComponentItem):
"""October - the month of October """
want = 'oct '
class item(aetools.ComponentItem): class Pascal_string(aetools.ComponentItem):
"""item - An item of any type """ """Pascal string - text up to 255 characters preceded by a length byte """
want = 'cobj' want = 'pstr'
class id(aetools.NProperty):
"""id - the unique ID number of this object """
which = 'ID '
want = 'long'
items = item Pascal_strings = Pascal_string
class script(aetools.ComponentItem): class RGB_color(aetools.ComponentItem):
"""script - An AppleScript script """ """RGB color - Three integers specifying red, green, blue color values """
want = 'scpt' want = 'cRGB'
class name(aetools.NProperty):
"""name - the name of the script """
which = 'pnam'
want = 'TEXT'
class parent(aetools.NProperty):
"""parent - its parent, i.e. the script that will handle events that this script doesn\xd5t """
which = 'pare'
want = 'scpt'
scripts = script RGB_colors = RGB_color
class list_or_record(aetools.ComponentItem): class Saturday(aetools.ComponentItem):
"""list or record - a list or record """ """Saturday - Saturday """
want = 'lr ' want = 'sat '
class list_or_string(aetools.ComponentItem): class September(aetools.ComponentItem):
"""list or string - a list or string """ """September - the month of September """
want = 'ls ' want = 'sep '
class number_or_string(aetools.ComponentItem): class Sunday(aetools.ComponentItem):
"""number or string - a number or string """ """Sunday - Sunday """
want = 'ns ' want = 'sun '
class Thursday(aetools.ComponentItem):
"""Thursday - Thursday """
want = 'thu '
class Tuesday(aetools.ComponentItem):
"""Tuesday - Tuesday """
want = 'tue '
class Unicode_text(aetools.ComponentItem):
"""Unicode text - """
want = 'utxt'
Unicode_text = Unicode_text
class Wednesday(aetools.ComponentItem):
"""Wednesday - Wednesday """
want = 'wed '
class alias(aetools.ComponentItem):
"""alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
want = 'alis'
class alias_or_string(aetools.ComponentItem): class alias_or_string(aetools.ComponentItem):
"""alias or string - an alias or string """ """alias or string - an alias or string """
want = 'sf ' want = 'sf '
class list_2c__record_or_text(aetools.ComponentItem): aliases = alias
"""list, record or text - a list, record or text """
want = 'lrs '
class number_or_date(aetools.ComponentItem): class anything(aetools.ComponentItem):
"""number or date - a number or date """ """anything - any class or reference """
want = 'nd ' want = '****'
class number_2c__date_or_text(aetools.ComponentItem): class app(aetools.ComponentItem):
"""number, date or text - a number, date or text """ """app - Short name for application """
want = 'nds ' want = 'capp'
application = app
class result(aetools.NProperty):
"""result - the last result of evaluation """
which = 'rslt'
want = '****'
class space(aetools.NProperty):
"""space - a space character """
which = 'spac'
want = 'cha '
class return_(aetools.NProperty):
"""return - a return character """
which = 'ret '
want = 'cha '
class tab(aetools.NProperty):
"""tab - a tab character """
which = 'tab '
want = 'cha '
class minutes(aetools.NProperty):
"""minutes - the number of seconds in a minute """
which = 'min '
want = 'long'
class hours(aetools.NProperty):
"""hours - the number of seconds in an hour """
which = 'hour'
want = 'long'
class days(aetools.NProperty):
"""days - the number of seconds in a day """
which = 'days'
want = 'long'
class weeks(aetools.NProperty):
"""weeks - the number of seconds in a week """
which = 'week'
want = 'long'
class pi(aetools.NProperty):
"""pi - the constant pi """
which = 'pi '
want = 'doub'
class print_length(aetools.NProperty):
"""print length - the maximum length to print """
which = 'prln'
want = 'long'
class print_depth(aetools.NProperty):
"""print depth - the maximum depth to print """
which = 'prdp'
want = 'long'
class text_item_delimiters(aetools.NProperty):
"""text item delimiters - the text item delimiters of a string """
which = 'txdl'
want = 'list'
class AppleScript(aetools.NProperty):
"""AppleScript - the top-level script object """
which = 'ascr'
want = 'scpt'
applications = app
class boolean(aetools.ComponentItem):
"""boolean - A true or false value """
want = 'bool'
booleans = boolean
class centimeters(aetools.ComponentItem):
"""centimeters - a distance measurement in SI centimeters """
want = 'cmtr'
centimetres = centimeters
class character(aetools.ComponentItem):
"""character - an individual text character """
want = 'cha '
characters = character
class class_(aetools.ComponentItem): class class_(aetools.ComponentItem):
"""class - the type of a value """ """class - the type of a value """
...@@ -862,85 +946,85 @@ class _3c_Inheritance_3e_(aetools.NProperty): ...@@ -862,85 +946,85 @@ class _3c_Inheritance_3e_(aetools.NProperty):
classes = class_ classes = class_
class event(aetools.ComponentItem):
"""event - an AppleEvents event """
want = 'evnt'
events = event
class property(aetools.ComponentItem):
"""property - an AppleEvents property """
want = 'prop'
properties = property
class constant(aetools.ComponentItem): class constant(aetools.ComponentItem):
"""constant - A constant value """ """constant - A constant value """
want = 'enum' want = 'enum'
constants = constant constants = constant
class preposition(aetools.ComponentItem): class cubic_centimeters(aetools.ComponentItem):
"""preposition - an AppleEvents preposition """ """cubic centimeters - a volume measurement in SI cubic centimeters """
want = 'prep' want = 'ccmt'
prepositions = preposition cubic_centimetres = cubic_centimeters
class reference_form(aetools.ComponentItem): class cubic_feet(aetools.ComponentItem):
"""reference form - an AppleEvents key form """ """cubic feet - a volume measurement in Imperial cubic feet """
want = 'kfrm' want = 'cfet'
reference_forms = reference_form class cubic_inches(aetools.ComponentItem):
"""cubic inches - a volume measurement in Imperial cubic inches """
want = 'cuin'
class handler(aetools.ComponentItem): class cubic_meters(aetools.ComponentItem):
"""handler - an AppleScript event or subroutine handler """ """cubic meters - a volume measurement in SI cubic meters """
want = 'hand' want = 'cmet'
handlers = handler cubic_metres = cubic_meters
class cubic_yards(aetools.ComponentItem):
"""cubic yards - a distance measurement in Imperial cubic yards """
want = 'cyrd'
class data(aetools.ComponentItem): class data(aetools.ComponentItem):
"""data - an AppleScript raw data object """ """data - an AppleScript raw data object """
want = 'rdat' want = 'rdat'
class text(aetools.ComponentItem): class date(aetools.ComponentItem):
"""text - text with language and style information """ """date - Absolute date and time values """
want = 'ctxt' want = 'ldt '
class weekday(aetools.NProperty):
class international_text(aetools.ComponentItem): """weekday - the day of a week of a date """
"""international text - """ which = 'wkdy'
want = 'itxt' want = 'wkdy'
class month(aetools.NProperty):
international_text = international_text """month - the month of a date """
which = 'mnth'
class string(aetools.ComponentItem): want = 'mnth'
"""string - text in 8-bit Macintosh Roman format """ class day(aetools.NProperty):
"""day - the day of the month of a date """
which = 'day '
want = 'long'
class year(aetools.NProperty):
"""year - the year of a date """
which = 'year'
want = 'long'
class time(aetools.NProperty):
"""time - the time since midnight of a date """
which = 'time'
want = 'long'
class date_string(aetools.NProperty):
"""date string - the date portion of a date-time value as text """
which = 'dstr'
want = 'TEXT'
class time_string(aetools.NProperty):
"""time string - the time portion of a date-time value as text """
which = 'tstr'
want = 'TEXT' want = 'TEXT'
strings = string dates = date
class styled_text(aetools.ComponentItem):
"""styled text - """
want = 'STXT'
styled_text = styled_text
class styled_Clipboard_text(aetools.ComponentItem):
"""styled Clipboard text - """
want = 'styl'
styled_Clipboard_text = styled_Clipboard_text
class Unicode_text(aetools.ComponentItem):
"""Unicode text - """
want = 'utxt'
Unicode_text = Unicode_text class degrees_Celsius(aetools.ComponentItem):
"""degrees Celsius - a temperature measurement in SI degrees Celsius """
want = 'degc'
class styled_Unicode_text(aetools.ComponentItem): class degrees_Fahrenheit(aetools.ComponentItem):
"""styled Unicode text - """ """degrees Fahrenheit - a temperature measurement in degrees Fahrenheit """
want = 'sutx' want = 'degf'
styled_Unicode_text = styled_Unicode_text class degrees_Kelvin(aetools.ComponentItem):
"""degrees Kelvin - a temperature measurement in degrees Kelvin """
want = 'degk'
class encoded_string(aetools.ComponentItem): class encoded_string(aetools.ComponentItem):
"""encoded string - text encoded using the Text Encoding Converter """ """encoded string - text encoded using the Text Encoding Converter """
...@@ -948,105 +1032,131 @@ class encoded_string(aetools.ComponentItem): ...@@ -948,105 +1032,131 @@ class encoded_string(aetools.ComponentItem):
encoded_strings = encoded_string encoded_strings = encoded_string
class C_string(aetools.ComponentItem): class event(aetools.ComponentItem):
"""C string - text followed by a null """ """event - an AppleEvents event """
want = 'cstr' want = 'evnt'
C_strings = C_string events = event
class Pascal_string(aetools.ComponentItem): class feet(aetools.ComponentItem):
"""Pascal string - text up to 255 characters preceded by a length byte """ """feet - a distance measurement in Imperial feet """
want = 'pstr' want = 'feet'
Pascal_strings = Pascal_string class file_specification(aetools.ComponentItem):
"""file specification - a file specification as used by the operating system """
want = 'fss '
class character(aetools.ComponentItem): file_specifications = file_specification
"""character - an individual text character """
want = 'cha '
characters = character class gallons(aetools.ComponentItem):
"""gallons - a volume measurement in Imperial gallons """
want = 'galn'
class text_item(aetools.ComponentItem): class grams(aetools.ComponentItem):
"""text item - text between delimiters """ """grams - a mass measurement in SI meters """
want = 'citm' want = 'gram'
text_items = text_item class handler(aetools.ComponentItem):
"""handler - an AppleScript event or subroutine handler """
want = 'hand'
class writing_code(aetools.ComponentItem): handlers = handler
"""writing code - codes that identify the language and script system """
want = 'psct'
class writing_code_info(aetools.ComponentItem): class inches(aetools.ComponentItem):
"""writing code info - script code and language code of text run """ """inches - a distance measurement in Imperial inches """
want = 'citl' want = 'inch'
class script_code(aetools.NProperty):
"""script code - the script code for the text """
which = 'pscd'
want = 'shor'
class language_code(aetools.NProperty):
"""language code - the language code for the text """
which = 'plcd'
want = 'shor'
writing_code_infos = writing_code_info class integer(aetools.ComponentItem):
"""integer - An integral number """
want = 'long'
class empty_ae_name_(aetools.ComponentItem): integers = integer
""" - the undefined value """
want = 'undf'
class missing_value(aetools.ComponentItem): class international_text(aetools.ComponentItem):
"""missing value - unavailable value, such as properties missing from heterogeneous classes in a Whose clause """ """international text - """
want = 'msng' want = 'itxt'
missing_values = missing_value international_text = international_text
class reference(aetools.ComponentItem): class item(aetools.ComponentItem):
"""reference - an AppleScript reference """ """item - An item of any type """
want = 'obj ' want = 'cobj'
class id(aetools.NProperty):
"""id - the unique ID number of this object """
which = 'ID '
want = 'long'
references = reference items = item
class anything(aetools.ComponentItem): class keystroke(aetools.ComponentItem):
"""anything - any class or reference """ """keystroke - a press of a key combination on a Macintosh keyboard """
want = '****' want = 'kprs'
class key(aetools.NProperty):
"""key - the character for the key was pressed (ignoring modifiers) """
which = 'kMsg'
want = 'cha '
class modifiers(aetools.NProperty):
"""modifiers - the modifier keys pressed in combination """
which = 'kMod'
want = 'eMds'
class key_kind(aetools.NProperty):
"""key kind - the kind of key that was pressed """
which = 'kknd'
want = 'ekst'
class type_class(aetools.ComponentItem): keystrokes = keystroke
"""type class - the name of a particular class (or any four-character code) """
want = 'type'
class RGB_color(aetools.ComponentItem): class kilograms(aetools.ComponentItem):
"""RGB color - Three integers specifying red, green, blue color values """ """kilograms - a mass measurement in SI kilograms """
want = 'cRGB' want = 'kgrm'
RGB_colors = RGB_color class kilometers(aetools.ComponentItem):
"""kilometers - a distance measurement in SI kilometers """
want = 'kmtr'
class picture(aetools.ComponentItem): kilometres = kilometers
"""picture - A QuickDraw picture object """
want = 'PICT'
pictures = picture class linked_list(aetools.ComponentItem):
"""linked list - An ordered collection of items """
want = 'llst'
class length(aetools.NProperty):
"""length - the length of a list """
which = 'leng'
want = 'long'
class sound(aetools.ComponentItem): linked_lists = linked_list
"""sound - a sound object on the clipboard """
want = 'snd '
sounds = sound class list(aetools.ComponentItem):
"""list - An ordered collection of items """
want = 'list'
class reverse(aetools.NProperty):
"""reverse - the items of the list in reverse order """
which = 'rvse'
want = 'list'
class rest(aetools.NProperty):
"""rest - all items of the list excluding first """
which = 'rest'
want = 'list'
class version(aetools.ComponentItem): class list_or_record(aetools.ComponentItem):
"""version - a version value """ """list or record - a list or record """
want = 'vers' want = 'lr '
class file_specification(aetools.ComponentItem): class list_or_string(aetools.ComponentItem):
"""file specification - a file specification as used by the operating system """ """list or string - a list or string """
want = 'fss ' want = 'ls '
file_specifications = file_specification class list_2c__record_or_text(aetools.ComponentItem):
"""list, record or text - a list, record or text """
want = 'lrs '
class alias(aetools.ComponentItem): lists = list
"""alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
want = 'alis'
aliases = alias class liters(aetools.ComponentItem):
"""liters - a volume measurement in SI liters """
want = 'litr'
litres = liters
class machine(aetools.ComponentItem): class machine(aetools.ComponentItem):
"""machine - a computer """ """machine - a computer """
...@@ -1054,67 +1164,21 @@ class machine(aetools.ComponentItem): ...@@ -1054,67 +1164,21 @@ class machine(aetools.ComponentItem):
machines = machine machines = machine
class zone(aetools.ComponentItem): class meters(aetools.ComponentItem):
"""zone - an AppleTalk zone """ """meters - a distance measurement in SI meters """
want = 'zone' want = 'metr'
zones = zone
class keystroke(aetools.ComponentItem):
"""keystroke - a press of a key combination on a Macintosh keyboard """
want = 'kprs'
class key(aetools.NProperty):
"""key - the character for the key was pressed (ignoring modifiers) """
which = 'kMsg'
want = 'cha '
class modifiers(aetools.NProperty):
"""modifiers - the modifier keys pressed in combination """
which = 'kMod'
want = 'eMds'
class key_kind(aetools.NProperty):
"""key kind - the kind of key that was pressed """
which = 'kknd'
want = 'ekst'
keystrokes = keystroke metres = meters
class seconds(aetools.ComponentItem): class miles(aetools.ComponentItem):
"""seconds - more than one second """ """miles - a distance measurement in Imperial miles """
want = 'scnd' want = 'mile'
class date(aetools.ComponentItem): class missing_value(aetools.ComponentItem):
"""date - Absolute date and time values """ """missing value - unavailable value, such as properties missing from heterogeneous classes in a Whose clause """
want = 'ldt ' want = 'msng'
class weekday(aetools.NProperty):
"""weekday - the day of a week of a date """
which = 'wkdy'
want = 'wkdy'
class month(aetools.NProperty):
"""month - the month of a date """
which = 'mnth'
want = 'mnth'
class day(aetools.NProperty):
"""day - the day of the month of a date """
which = 'day '
want = 'long'
class year(aetools.NProperty):
"""year - the year of a date """
which = 'year'
want = 'long'
class time(aetools.NProperty):
"""time - the time since midnight of a date """
which = 'time'
want = 'long'
class date_string(aetools.NProperty):
"""date string - the date portion of a date-time value as text """
which = 'dstr'
want = 'TEXT'
class time_string(aetools.NProperty):
"""time string - the time portion of a date-time value as text """
which = 'tstr'
want = 'TEXT'
dates = date missing_values = missing_value
class month(aetools.ComponentItem): class month(aetools.ComponentItem):
"""month - a month """ """month - a month """
...@@ -1122,570 +1186,499 @@ class month(aetools.ComponentItem): ...@@ -1122,570 +1186,499 @@ class month(aetools.ComponentItem):
months = month months = month
class January(aetools.ComponentItem): class number(aetools.ComponentItem):
"""January - the month of January """ """number - an integer or real number """
want = 'jan ' want = 'nmbr'
class February(aetools.ComponentItem):
"""February - the month of February """
want = 'feb '
class March(aetools.ComponentItem): class number_or_date(aetools.ComponentItem):
"""March - the month of March """ """number or date - a number or date """
want = 'mar ' want = 'nd '
class April(aetools.ComponentItem): class number_or_string(aetools.ComponentItem):
"""April - the month of April """ """number or string - a number or string """
want = 'apr ' want = 'ns '
class May(aetools.ComponentItem): class number_2c__date_or_text(aetools.ComponentItem):
"""May - the month of May """ """number, date or text - a number, date or text """
want = 'may ' want = 'nds '
class June(aetools.ComponentItem): numbers = number
"""June - the month of June """
want = 'jun '
class July(aetools.ComponentItem): class ounces(aetools.ComponentItem):
"""July - the month of July """ """ounces - a weight measurement in SI meters """
want = 'jul ' want = 'ozs '
class August(aetools.ComponentItem): class picture(aetools.ComponentItem):
"""August - the month of August """ """picture - A QuickDraw picture object """
want = 'aug ' want = 'PICT'
class September(aetools.ComponentItem): pictures = picture
"""September - the month of September """
want = 'sep '
class October(aetools.ComponentItem): class pounds(aetools.ComponentItem):
"""October - the month of October """ """pounds - a weight measurement in SI meters """
want = 'oct ' want = 'lbs '
class November(aetools.ComponentItem): class preposition(aetools.ComponentItem):
"""November - the month of November """ """preposition - an AppleEvents preposition """
want = 'nov ' want = 'prep'
class December(aetools.ComponentItem): prepositions = preposition
"""December - the month of December """
want = 'dec '
class weekday(aetools.ComponentItem): class properties(aetools.ComponentItem):
"""weekday - a weekday """ """properties - """
want = 'wkdy' want = 'prop'
weekdays = weekday property = properties
class Sunday(aetools.ComponentItem): class quarts(aetools.ComponentItem):
"""Sunday - Sunday """ """quarts - a volume measurement in Imperial quarts """
want = 'sun ' want = 'qrts'
class Monday(aetools.ComponentItem): class real(aetools.ComponentItem):
"""Monday - Monday """ """real - A real number """
want = 'mon ' want = 'doub'
class Tuesday(aetools.ComponentItem): reals = real
"""Tuesday - Tuesday """
want = 'tue '
class Wednesday(aetools.ComponentItem): class record(aetools.ComponentItem):
"""Wednesday - Wednesday """ """record - A set of labeled items """
want = 'wed ' want = 'reco'
class Thursday(aetools.ComponentItem): records = record
"""Thursday - Thursday """
want = 'thu '
class Friday(aetools.ComponentItem): class reference(aetools.ComponentItem):
"""Friday - Friday """ """reference - an AppleScript reference """
want = 'fri ' want = 'obj '
class Saturday(aetools.ComponentItem): class reference_form(aetools.ComponentItem):
"""Saturday - Saturday """ """reference form - an AppleEvents key form """
want = 'sat ' want = 'kfrm'
class metres(aetools.ComponentItem): reference_forms = reference_form
"""metres - a distance measurement in SI meters """
want = 'metr'
meters = metres references = reference
class inches(aetools.ComponentItem): class script(aetools.ComponentItem):
"""inches - a distance measurement in Imperial inches """ """script - An AppleScript script """
want = 'inch' want = 'scpt'
class name(aetools.NProperty):
"""name - the name of the script """
which = 'pnam'
want = 'TEXT'
class parent(aetools.NProperty):
"""parent - its parent, i.e. the script that will handle events that this script doesn\xd5t """
which = 'pare'
want = 'scpt'
class feet(aetools.ComponentItem): scripts = script
"""feet - a distance measurement in Imperial feet """
want = 'feet'
class yards(aetools.ComponentItem): class seconds(aetools.ComponentItem):
"""yards - a distance measurement in Imperial yards """ """seconds - more than one second """
want = 'yard' want = 'scnd'
class miles(aetools.ComponentItem): class sound(aetools.ComponentItem):
"""miles - a distance measurement in Imperial miles """ """sound - a sound object on the clipboard """
want = 'mile' want = 'snd '
class kilometres(aetools.ComponentItem): sounds = sound
"""kilometres - a distance measurement in SI kilometers """
want = 'kmtr'
kilometers = kilometres class square_feet(aetools.ComponentItem):
"""square feet - an area measurement in Imperial square feet """
want = 'sqft'
class centimetres(aetools.ComponentItem): class square_kilometers(aetools.ComponentItem):
"""centimetres - a distance measurement in SI centimeters """ """square kilometers - an area measurement in SI square kilometers """
want = 'cmtr' want = 'sqkm'
centimeters = centimetres square_kilometres = square_kilometers
class square_metres(aetools.ComponentItem): class square_meters(aetools.ComponentItem):
"""square metres - an area measurement in SI square meters """ """square meters - an area measurement in SI square meters """
want = 'sqrm' want = 'sqrm'
square_meters = square_metres square_metres = square_meters
class square_feet(aetools.ComponentItem):
"""square feet - an area measurement in Imperial square feet """
want = 'sqft'
class square_yards(aetools.ComponentItem):
"""square yards - an area measurement in Imperial square yards """
want = 'sqyd'
class square_miles(aetools.ComponentItem): class square_miles(aetools.ComponentItem):
"""square miles - an area measurement in Imperial square miles """ """square miles - an area measurement in Imperial square miles """
want = 'sqmi' want = 'sqmi'
class square_kilometres(aetools.ComponentItem): class square_yards(aetools.ComponentItem):
"""square kilometres - an area measurement in SI square kilometers """ """square yards - an area measurement in Imperial square yards """
want = 'sqkm' want = 'sqyd'
square_kilometers = square_kilometres class string(aetools.ComponentItem):
"""string - text in 8-bit Macintosh Roman format """
want = 'TEXT'
class litres(aetools.ComponentItem): strings = string
"""litres - a volume measurement in SI liters """
want = 'litr'
liters = litres class styled_Clipboard_text(aetools.ComponentItem):
"""styled Clipboard text - """
want = 'styl'
class gallons(aetools.ComponentItem): styled_Clipboard_text = styled_Clipboard_text
"""gallons - a volume measurement in Imperial gallons """
want = 'galn'
class quarts(aetools.ComponentItem): class styled_Unicode_text(aetools.ComponentItem):
"""quarts - a volume measurement in Imperial quarts """ """styled Unicode text - """
want = 'qrts' want = 'sutx'
class cubic_metres(aetools.ComponentItem): styled_Unicode_text = styled_Unicode_text
"""cubic metres - a volume measurement in SI cubic meters """
want = 'cmet'
cubic_meters = cubic_metres class styled_text(aetools.ComponentItem):
"""styled text - """
want = 'STXT'
class cubic_centimetres(aetools.ComponentItem): styled_text = styled_text
"""cubic centimetres - a volume measurement in SI cubic centimeters """
want = 'ccmt'
cubic_centimeters = cubic_centimetres class text(aetools.ComponentItem):
"""text - text with language and style information """
want = 'ctxt'
class cubic_feet(aetools.ComponentItem): class text_item(aetools.ComponentItem):
"""cubic feet - a volume measurement in Imperial cubic feet """ """text item - text between delimiters """
want = 'cfet' want = 'citm'
class cubic_inches(aetools.ComponentItem): text_items = text_item
"""cubic inches - a volume measurement in Imperial cubic inches """
want = 'cuin'
class cubic_yards(aetools.ComponentItem): class type_class(aetools.ComponentItem):
"""cubic yards - a distance measurement in Imperial cubic yards """ """type class - the name of a particular class (or any four-character code) """
want = 'cyrd' want = 'type'
class kilograms(aetools.ComponentItem): class upper_case(aetools.ComponentItem):
"""kilograms - a mass measurement in SI kilograms """ """upper case - Text with lower case converted to upper case """
want = 'kgrm' want = 'case'
class grams(aetools.ComponentItem): class vector(aetools.ComponentItem):
"""grams - a mass measurement in SI meters """ """vector - An ordered collection of items """
want = 'gram' want = 'vect'
class ounces(aetools.ComponentItem): vectors = vector
"""ounces - a weight measurement in SI meters """
want = 'ozs '
class pounds(aetools.ComponentItem): class version(aetools.ComponentItem):
"""pounds - a weight measurement in SI meters """ """version - a version value """
want = 'lbs ' want = 'vers'
class degrees_Celsius(aetools.ComponentItem): class weekday(aetools.ComponentItem):
"""degrees Celsius - a temperature measurement in SI degrees Celsius """ """weekday - a weekday """
want = 'degc' want = 'wkdy'
class degrees_Fahrenheit(aetools.ComponentItem): weekdays = weekday
"""degrees Fahrenheit - a temperature measurement in degrees Fahrenheit """
want = 'degf'
class degrees_Kelvin(aetools.ComponentItem): class writing_code(aetools.ComponentItem):
"""degrees Kelvin - a temperature measurement in degrees Kelvin """ """writing code - codes that identify the language and script system """
want = 'degk' want = 'psct'
class upper_case(aetools.ComponentItem): class writing_code_info(aetools.ComponentItem):
"""upper case - Text with lower case converted to upper case """ """writing code info - script code and language code of text run """
want = 'case' want = 'citl'
class script_code(aetools.NProperty):
"""script code - the script code for the text """
which = 'pscd'
want = 'shor'
class language_code(aetools.NProperty):
"""language code - the language code for the text """
which = 'plcd'
want = 'shor'
class app(aetools.ComponentItem): writing_code_infos = writing_code_info
"""app - Short name for application """
want = 'capp'
application = app class yards(aetools.ComponentItem):
class result(aetools.NProperty): """yards - a distance measurement in Imperial yards """
"""result - the last result of evaluation """ want = 'yard'
which = 'rslt'
want = '****'
class space(aetools.NProperty):
"""space - a space character """
which = 'spac'
want = 'cha '
class return_(aetools.NProperty):
"""return - a return character """
which = 'ret '
want = 'cha '
class tab(aetools.NProperty):
"""tab - a tab character """
which = 'tab '
want = 'cha '
class minutes(aetools.NProperty):
"""minutes - the number of seconds in a minute """
which = 'min '
want = 'long'
class hours(aetools.NProperty):
"""hours - the number of seconds in an hour """
which = 'hour'
want = 'long'
class days(aetools.NProperty):
"""days - the number of seconds in a day """
which = 'days'
want = 'long'
class weeks(aetools.NProperty):
"""weeks - the number of seconds in a week """
which = 'week'
want = 'long'
class pi(aetools.NProperty):
"""pi - the constant pi """
which = 'pi '
want = 'doub'
class print_length(aetools.NProperty):
"""print length - the maximum length to print """
which = 'prln'
want = 'long'
class print_depth(aetools.NProperty):
"""print depth - the maximum depth to print """
which = 'prdp'
want = 'long'
class text_item_delimiters(aetools.NProperty):
"""text item delimiters - the text item delimiters of a string """
which = 'txdl'
want = 'list'
class AppleScript(aetools.NProperty):
"""AppleScript - the top-level script object """
which = 'ascr'
want = 'scpt'
applications = app class zone(aetools.ComponentItem):
boolean._superclassnames = [] """zone - an AppleTalk zone """
boolean._privpropdict = { want = 'zone'
}
boolean._privelemdict = { zones = zone
} empty_ae_name_._superclassnames = []
integer._superclassnames = [] empty_ae_name_._privpropdict = {
integer._privpropdict = {
} }
integer._privelemdict = { empty_ae_name_._privelemdict = {
} }
real._superclassnames = [] April._superclassnames = []
real._privpropdict = { April._privpropdict = {
} }
real._privelemdict = { April._privelemdict = {
} }
number._superclassnames = [] August._superclassnames = []
number._privpropdict = { August._privpropdict = {
} }
number._privelemdict = { August._privelemdict = {
} }
list._superclassnames = [] C_string._superclassnames = []
list._privpropdict = { C_string._privpropdict = {
'length' : length,
'reverse' : reverse,
'rest' : rest,
} }
list._privelemdict = { C_string._privelemdict = {
} }
linked_list._superclassnames = [] December._superclassnames = []
linked_list._privpropdict = { December._privpropdict = {
'length' : length,
} }
linked_list._privelemdict = { December._privelemdict = {
} }
vector._superclassnames = [] February._superclassnames = []
vector._privpropdict = { February._privpropdict = {
'length' : length,
} }
vector._privelemdict = { February._privelemdict = {
} }
record._superclassnames = [] Friday._superclassnames = []
record._privpropdict = { Friday._privpropdict = {
} }
record._privelemdict = { Friday._privelemdict = {
} }
item._superclassnames = [] January._superclassnames = []
item._privpropdict = { January._privpropdict = {
'id' : id,
} }
item._privelemdict = { January._privelemdict = {
} }
script._superclassnames = [] July._superclassnames = []
script._privpropdict = { July._privpropdict = {
'name' : name,
'parent' : parent,
} }
script._privelemdict = { July._privelemdict = {
} }
list_or_record._superclassnames = [] June._superclassnames = []
list_or_record._privpropdict = { June._privpropdict = {
} }
list_or_record._privelemdict = { June._privelemdict = {
} }
list_or_string._superclassnames = [] March._superclassnames = []
list_or_string._privpropdict = { March._privpropdict = {
} }
list_or_string._privelemdict = { March._privelemdict = {
} }
number_or_string._superclassnames = [] May._superclassnames = []
number_or_string._privpropdict = { May._privpropdict = {
} }
number_or_string._privelemdict = { May._privelemdict = {
} }
alias_or_string._superclassnames = [] Monday._superclassnames = []
alias_or_string._privpropdict = { Monday._privpropdict = {
} }
alias_or_string._privelemdict = { Monday._privelemdict = {
} }
list_2c__record_or_text._superclassnames = [] November._superclassnames = []
list_2c__record_or_text._privpropdict = { November._privpropdict = {
} }
list_2c__record_or_text._privelemdict = { November._privelemdict = {
} }
number_or_date._superclassnames = [] October._superclassnames = []
number_or_date._privpropdict = { October._privpropdict = {
} }
number_or_date._privelemdict = { October._privelemdict = {
} }
number_2c__date_or_text._superclassnames = [] Pascal_string._superclassnames = []
number_2c__date_or_text._privpropdict = { Pascal_string._privpropdict = {
} }
number_2c__date_or_text._privelemdict = { Pascal_string._privelemdict = {
} }
class_._superclassnames = ['type_class'] RGB_color._superclassnames = []
class_._privpropdict = { RGB_color._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
} }
class_._privelemdict = { RGB_color._privelemdict = {
} }
event._superclassnames = [] Saturday._superclassnames = []
event._privpropdict = { Saturday._privpropdict = {
} }
event._privelemdict = { Saturday._privelemdict = {
} }
property._superclassnames = [] September._superclassnames = []
property._privpropdict = { September._privpropdict = {
} }
property._privelemdict = { September._privelemdict = {
} }
constant._superclassnames = [] Sunday._superclassnames = []
constant._privpropdict = { Sunday._privpropdict = {
} }
constant._privelemdict = { Sunday._privelemdict = {
} }
preposition._superclassnames = [] Thursday._superclassnames = []
preposition._privpropdict = { Thursday._privpropdict = {
} }
preposition._privelemdict = { Thursday._privelemdict = {
} }
reference_form._superclassnames = [] Tuesday._superclassnames = []
reference_form._privpropdict = { Tuesday._privpropdict = {
} }
reference_form._privelemdict = { Tuesday._privelemdict = {
} }
handler._superclassnames = [] Unicode_text._superclassnames = []
handler._privpropdict = { Unicode_text._privpropdict = {
} }
handler._privelemdict = { Unicode_text._privelemdict = {
} }
data._superclassnames = [] Unicode_text._superclassnames = []
data._privpropdict = { Unicode_text._privpropdict = {
} }
data._privelemdict = { Unicode_text._privelemdict = {
} }
text._superclassnames = [] Wednesday._superclassnames = []
text._privpropdict = { Wednesday._privpropdict = {
} }
text._privelemdict = { Wednesday._privelemdict = {
} }
international_text._superclassnames = [] alias._superclassnames = []
international_text._privpropdict = { alias._privpropdict = {
} }
international_text._privelemdict = { alias._privelemdict = {
} }
international_text._superclassnames = [] alias_or_string._superclassnames = []
international_text._privpropdict = { alias_or_string._privpropdict = {
} }
international_text._privelemdict = { alias_or_string._privelemdict = {
} }
string._superclassnames = [] anything._superclassnames = []
string._privpropdict = { anything._privpropdict = {
} }
string._privelemdict = { anything._privelemdict = {
} }
styled_text._superclassnames = [] app._superclassnames = []
styled_text._privpropdict = { app._privpropdict = {
} }
styled_text._privelemdict = { app._privelemdict = {
} }
styled_text._superclassnames = [] boolean._superclassnames = []
styled_text._privpropdict = { boolean._privpropdict = {
} }
styled_text._privelemdict = { boolean._privelemdict = {
} }
styled_Clipboard_text._superclassnames = [] centimeters._superclassnames = []
styled_Clipboard_text._privpropdict = { centimeters._privpropdict = {
} }
styled_Clipboard_text._privelemdict = { centimeters._privelemdict = {
} }
styled_Clipboard_text._superclassnames = [] character._superclassnames = []
styled_Clipboard_text._privpropdict = { character._privpropdict = {
} }
styled_Clipboard_text._privelemdict = { character._privelemdict = {
} }
Unicode_text._superclassnames = [] class_._superclassnames = ['type_class']
Unicode_text._privpropdict = { class_._privpropdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
} }
Unicode_text._privelemdict = { class_._privelemdict = {
} }
Unicode_text._superclassnames = [] constant._superclassnames = []
Unicode_text._privpropdict = { constant._privpropdict = {
} }
Unicode_text._privelemdict = { constant._privelemdict = {
} }
styled_Unicode_text._superclassnames = [] cubic_centimeters._superclassnames = []
styled_Unicode_text._privpropdict = { cubic_centimeters._privpropdict = {
} }
styled_Unicode_text._privelemdict = { cubic_centimeters._privelemdict = {
} }
styled_Unicode_text._superclassnames = [] cubic_feet._superclassnames = []
styled_Unicode_text._privpropdict = { cubic_feet._privpropdict = {
} }
styled_Unicode_text._privelemdict = { cubic_feet._privelemdict = {
} }
encoded_string._superclassnames = [] cubic_inches._superclassnames = []
encoded_string._privpropdict = { cubic_inches._privpropdict = {
} }
encoded_string._privelemdict = { cubic_inches._privelemdict = {
} }
C_string._superclassnames = [] cubic_meters._superclassnames = []
C_string._privpropdict = { cubic_meters._privpropdict = {
} }
C_string._privelemdict = { cubic_meters._privelemdict = {
} }
Pascal_string._superclassnames = [] cubic_yards._superclassnames = []
Pascal_string._privpropdict = { cubic_yards._privpropdict = {
} }
Pascal_string._privelemdict = { cubic_yards._privelemdict = {
} }
character._superclassnames = [] data._superclassnames = []
character._privpropdict = { data._privpropdict = {
} }
character._privelemdict = { data._privelemdict = {
} }
text_item._superclassnames = [] date._superclassnames = []
text_item._privpropdict = { date._privpropdict = {
'weekday' : weekday,
'month' : month,
'day' : day,
'year' : year,
'time' : time,
'date_string' : date_string,
'time_string' : time_string,
} }
text_item._privelemdict = { date._privelemdict = {
} }
writing_code._superclassnames = [] degrees_Celsius._superclassnames = []
writing_code._privpropdict = { degrees_Celsius._privpropdict = {
} }
writing_code._privelemdict = { degrees_Celsius._privelemdict = {
} }
writing_code_info._superclassnames = [] degrees_Fahrenheit._superclassnames = []
writing_code_info._privpropdict = { degrees_Fahrenheit._privpropdict = {
'script_code' : script_code,
'language_code' : language_code,
} }
writing_code_info._privelemdict = { degrees_Fahrenheit._privelemdict = {
} }
empty_ae_name_._superclassnames = [] degrees_Kelvin._superclassnames = []
empty_ae_name_._privpropdict = { degrees_Kelvin._privpropdict = {
} }
empty_ae_name_._privelemdict = { degrees_Kelvin._privelemdict = {
} }
missing_value._superclassnames = [] encoded_string._superclassnames = []
missing_value._privpropdict = { encoded_string._privpropdict = {
} }
missing_value._privelemdict = { encoded_string._privelemdict = {
} }
reference._superclassnames = [] event._superclassnames = []
reference._privpropdict = { event._privpropdict = {
} }
reference._privelemdict = { event._privelemdict = {
} }
anything._superclassnames = [] feet._superclassnames = []
anything._privpropdict = { feet._privpropdict = {
} }
anything._privelemdict = { feet._privelemdict = {
} }
type_class._superclassnames = [] file_specification._superclassnames = []
type_class._privpropdict = { file_specification._privpropdict = {
} }
type_class._privelemdict = { file_specification._privelemdict = {
} }
RGB_color._superclassnames = [] gallons._superclassnames = []
RGB_color._privpropdict = { gallons._privpropdict = {
} }
RGB_color._privelemdict = { gallons._privelemdict = {
} }
picture._superclassnames = [] grams._superclassnames = []
picture._privpropdict = { grams._privpropdict = {
} }
picture._privelemdict = { grams._privelemdict = {
} }
sound._superclassnames = [] handler._superclassnames = []
sound._privpropdict = { handler._privpropdict = {
} }
sound._privelemdict = { handler._privelemdict = {
} }
version._superclassnames = [] inches._superclassnames = []
version._privpropdict = { inches._privpropdict = {
} }
version._privelemdict = { inches._privelemdict = {
} }
file_specification._superclassnames = [] integer._superclassnames = []
file_specification._privpropdict = { integer._privpropdict = {
} }
file_specification._privelemdict = { integer._privelemdict = {
} }
alias._superclassnames = [] international_text._superclassnames = []
alias._privpropdict = { international_text._privpropdict = {
} }
alias._privelemdict = { international_text._privelemdict = {
} }
machine._superclassnames = [] international_text._superclassnames = []
machine._privpropdict = { international_text._privpropdict = {
} }
machine._privelemdict = { international_text._privelemdict = {
} }
zone._superclassnames = [] item._superclassnames = []
zone._privpropdict = { item._privpropdict = {
'id' : id,
} }
zone._privelemdict = { item._privelemdict = {
} }
keystroke._superclassnames = [] keystroke._superclassnames = []
keystroke._privpropdict = { keystroke._privpropdict = {
...@@ -1695,273 +1688,285 @@ keystroke._privpropdict = { ...@@ -1695,273 +1688,285 @@ keystroke._privpropdict = {
} }
keystroke._privelemdict = { keystroke._privelemdict = {
} }
seconds._superclassnames = [] kilograms._superclassnames = []
seconds._privpropdict = { kilograms._privpropdict = {
}
seconds._privelemdict = {
}
date._superclassnames = []
date._privpropdict = {
'weekday' : weekday,
'month' : month,
'day' : day,
'year' : year,
'time' : time,
'date_string' : date_string,
'time_string' : time_string,
} }
date._privelemdict = { kilograms._privelemdict = {
} }
month._superclassnames = [] kilometers._superclassnames = []
month._privpropdict = { kilometers._privpropdict = {
} }
month._privelemdict = { kilometers._privelemdict = {
} }
January._superclassnames = [] linked_list._superclassnames = []
January._privpropdict = { linked_list._privpropdict = {
'length' : length,
} }
January._privelemdict = { linked_list._privelemdict = {
} }
February._superclassnames = [] list._superclassnames = []
February._privpropdict = { list._privpropdict = {
'length' : length,
'reverse' : reverse,
'rest' : rest,
} }
February._privelemdict = { list._privelemdict = {
} }
March._superclassnames = [] list_or_record._superclassnames = []
March._privpropdict = { list_or_record._privpropdict = {
} }
March._privelemdict = { list_or_record._privelemdict = {
} }
April._superclassnames = [] list_or_string._superclassnames = []
April._privpropdict = { list_or_string._privpropdict = {
} }
April._privelemdict = { list_or_string._privelemdict = {
} }
May._superclassnames = [] list_2c__record_or_text._superclassnames = []
May._privpropdict = { list_2c__record_or_text._privpropdict = {
} }
May._privelemdict = { list_2c__record_or_text._privelemdict = {
} }
June._superclassnames = [] liters._superclassnames = []
June._privpropdict = { liters._privpropdict = {
} }
June._privelemdict = { liters._privelemdict = {
} }
July._superclassnames = [] machine._superclassnames = []
July._privpropdict = { machine._privpropdict = {
} }
July._privelemdict = { machine._privelemdict = {
} }
August._superclassnames = [] meters._superclassnames = []
August._privpropdict = { meters._privpropdict = {
} }
August._privelemdict = { meters._privelemdict = {
} }
September._superclassnames = [] miles._superclassnames = []
September._privpropdict = { miles._privpropdict = {
} }
September._privelemdict = { miles._privelemdict = {
} }
October._superclassnames = [] missing_value._superclassnames = []
October._privpropdict = { missing_value._privpropdict = {
} }
October._privelemdict = { missing_value._privelemdict = {
} }
November._superclassnames = [] month._superclassnames = []
November._privpropdict = { month._privpropdict = {
} }
November._privelemdict = { month._privelemdict = {
} }
December._superclassnames = [] number._superclassnames = []
December._privpropdict = { number._privpropdict = {
} }
December._privelemdict = { number._privelemdict = {
} }
weekday._superclassnames = [] number_or_date._superclassnames = []
weekday._privpropdict = { number_or_date._privpropdict = {
} }
weekday._privelemdict = { number_or_date._privelemdict = {
} }
Sunday._superclassnames = [] number_or_string._superclassnames = []
Sunday._privpropdict = { number_or_string._privpropdict = {
} }
Sunday._privelemdict = { number_or_string._privelemdict = {
} }
Monday._superclassnames = [] number_2c__date_or_text._superclassnames = []
Monday._privpropdict = { number_2c__date_or_text._privpropdict = {
} }
Monday._privelemdict = { number_2c__date_or_text._privelemdict = {
} }
Tuesday._superclassnames = [] ounces._superclassnames = []
Tuesday._privpropdict = { ounces._privpropdict = {
} }
Tuesday._privelemdict = { ounces._privelemdict = {
} }
Wednesday._superclassnames = [] picture._superclassnames = []
Wednesday._privpropdict = { picture._privpropdict = {
} }
Wednesday._privelemdict = { picture._privelemdict = {
} }
Thursday._superclassnames = [] pounds._superclassnames = []
Thursday._privpropdict = { pounds._privpropdict = {
} }
Thursday._privelemdict = { pounds._privelemdict = {
} }
Friday._superclassnames = [] preposition._superclassnames = []
Friday._privpropdict = { preposition._privpropdict = {
} }
Friday._privelemdict = { preposition._privelemdict = {
} }
Saturday._superclassnames = [] properties._superclassnames = []
Saturday._privpropdict = { properties._privpropdict = {
} }
Saturday._privelemdict = { properties._privelemdict = {
} }
metres._superclassnames = [] quarts._superclassnames = []
metres._privpropdict = { quarts._privpropdict = {
} }
metres._privelemdict = { quarts._privelemdict = {
} }
inches._superclassnames = [] real._superclassnames = []
inches._privpropdict = { real._privpropdict = {
} }
inches._privelemdict = { real._privelemdict = {
} }
feet._superclassnames = [] record._superclassnames = []
feet._privpropdict = { record._privpropdict = {
} }
feet._privelemdict = { record._privelemdict = {
} }
yards._superclassnames = [] reference._superclassnames = []
yards._privpropdict = { reference._privpropdict = {
} }
yards._privelemdict = { reference._privelemdict = {
} }
miles._superclassnames = [] reference_form._superclassnames = []
miles._privpropdict = { reference_form._privpropdict = {
} }
miles._privelemdict = { reference_form._privelemdict = {
} }
kilometres._superclassnames = [] script._superclassnames = []
kilometres._privpropdict = { script._privpropdict = {
'name' : name,
'parent' : parent,
} }
kilometres._privelemdict = { script._privelemdict = {
} }
centimetres._superclassnames = [] seconds._superclassnames = []
centimetres._privpropdict = { seconds._privpropdict = {
} }
centimetres._privelemdict = { seconds._privelemdict = {
} }
square_metres._superclassnames = [] sound._superclassnames = []
square_metres._privpropdict = { sound._privpropdict = {
} }
square_metres._privelemdict = { sound._privelemdict = {
} }
square_feet._superclassnames = [] square_feet._superclassnames = []
square_feet._privpropdict = { square_feet._privpropdict = {
} }
square_feet._privelemdict = { square_feet._privelemdict = {
} }
square_yards._superclassnames = [] square_kilometers._superclassnames = []
square_yards._privpropdict = { square_kilometers._privpropdict = {
} }
square_yards._privelemdict = { square_kilometers._privelemdict = {
}
square_meters._superclassnames = []
square_meters._privpropdict = {
}
square_meters._privelemdict = {
} }
square_miles._superclassnames = [] square_miles._superclassnames = []
square_miles._privpropdict = { square_miles._privpropdict = {
} }
square_miles._privelemdict = { square_miles._privelemdict = {
} }
square_kilometres._superclassnames = [] square_yards._superclassnames = []
square_kilometres._privpropdict = { square_yards._privpropdict = {
} }
square_kilometres._privelemdict = { square_yards._privelemdict = {
} }
litres._superclassnames = [] string._superclassnames = []
litres._privpropdict = { string._privpropdict = {
} }
litres._privelemdict = { string._privelemdict = {
} }
gallons._superclassnames = [] styled_Clipboard_text._superclassnames = []
gallons._privpropdict = { styled_Clipboard_text._privpropdict = {
} }
gallons._privelemdict = { styled_Clipboard_text._privelemdict = {
} }
quarts._superclassnames = [] styled_Clipboard_text._superclassnames = []
quarts._privpropdict = { styled_Clipboard_text._privpropdict = {
} }
quarts._privelemdict = { styled_Clipboard_text._privelemdict = {
} }
cubic_metres._superclassnames = [] styled_Unicode_text._superclassnames = []
cubic_metres._privpropdict = { styled_Unicode_text._privpropdict = {
} }
cubic_metres._privelemdict = { styled_Unicode_text._privelemdict = {
} }
cubic_centimetres._superclassnames = [] styled_Unicode_text._superclassnames = []
cubic_centimetres._privpropdict = { styled_Unicode_text._privpropdict = {
} }
cubic_centimetres._privelemdict = { styled_Unicode_text._privelemdict = {
} }
cubic_feet._superclassnames = [] styled_text._superclassnames = []
cubic_feet._privpropdict = { styled_text._privpropdict = {
} }
cubic_feet._privelemdict = { styled_text._privelemdict = {
} }
cubic_inches._superclassnames = [] styled_text._superclassnames = []
cubic_inches._privpropdict = { styled_text._privpropdict = {
} }
cubic_inches._privelemdict = { styled_text._privelemdict = {
} }
cubic_yards._superclassnames = [] text._superclassnames = []
cubic_yards._privpropdict = { text._privpropdict = {
} }
cubic_yards._privelemdict = { text._privelemdict = {
} }
kilograms._superclassnames = [] text_item._superclassnames = []
kilograms._privpropdict = { text_item._privpropdict = {
} }
kilograms._privelemdict = { text_item._privelemdict = {
} }
grams._superclassnames = [] type_class._superclassnames = []
grams._privpropdict = { type_class._privpropdict = {
} }
grams._privelemdict = { type_class._privelemdict = {
} }
ounces._superclassnames = [] upper_case._superclassnames = []
ounces._privpropdict = { upper_case._privpropdict = {
} }
ounces._privelemdict = { upper_case._privelemdict = {
} }
pounds._superclassnames = [] vector._superclassnames = []
pounds._privpropdict = { vector._privpropdict = {
'length' : length,
} }
pounds._privelemdict = { vector._privelemdict = {
} }
degrees_Celsius._superclassnames = [] version._superclassnames = []
degrees_Celsius._privpropdict = { version._privpropdict = {
} }
degrees_Celsius._privelemdict = { version._privelemdict = {
} }
degrees_Fahrenheit._superclassnames = [] weekday._superclassnames = []
degrees_Fahrenheit._privpropdict = { weekday._privpropdict = {
} }
degrees_Fahrenheit._privelemdict = { weekday._privelemdict = {
} }
degrees_Kelvin._superclassnames = [] writing_code._superclassnames = []
degrees_Kelvin._privpropdict = { writing_code._privpropdict = {
} }
degrees_Kelvin._privelemdict = { writing_code._privelemdict = {
} }
upper_case._superclassnames = [] writing_code_info._superclassnames = []
upper_case._privpropdict = { writing_code_info._privpropdict = {
'script_code' : script_code,
'language_code' : language_code,
} }
upper_case._privelemdict = { writing_code_info._privelemdict = {
} }
app._superclassnames = [] yards._superclassnames = []
app._privpropdict = { yards._privpropdict = {
} }
app._privelemdict = { yards._privelemdict = {
}
zone._superclassnames = []
zone._privpropdict = {
} }
zone._privelemdict = {
}
_Enum_boov = {
'true' : 'true', # the true boolean value
'false' : 'fals', # the false boolean value
}
_Enum_cons = { _Enum_cons = {
'case' : 'case', # case 'case' : 'case', # case
'diacriticals' : 'diac', # diacriticals 'diacriticals' : 'diac', # diacriticals
...@@ -1972,15 +1977,6 @@ _Enum_cons = { ...@@ -1972,15 +1977,6 @@ _Enum_cons = {
'application_responses' : 'rmte', # remote event replies 'application_responses' : 'rmte', # remote event replies
} }
_Enum_boov = {
'true' : 'true', # the true boolean value
'false' : 'fals', # the false boolean value
}
_Enum_misc = {
'current_application' : 'cura', # the current application
}
_Enum_eMds = { _Enum_eMds = {
'option_down' : 'Kopt', # 'option_down' : 'Kopt', #
'command_down' : 'Kcmd', # 'command_down' : 'Kcmd', #
...@@ -2023,6 +2019,10 @@ _Enum_ekst = { ...@@ -2023,6 +2019,10 @@ _Enum_ekst = {
'F15_key' : 'ksq\x00', # 'F15_key' : 'ksq\x00', #
} }
_Enum_misc = {
'current_application' : 'cura', # the current application
}
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -2031,117 +2031,117 @@ _classdeclarations = { ...@@ -2031,117 +2031,117 @@ _classdeclarations = {
'jul ' : July, 'jul ' : July,
'may ' : May, 'may ' : May,
'TEXT' : string, 'TEXT' : string,
'cmet' : cubic_metres, 'cmet' : cubic_meters,
'STXT' : styled_text, 'STXT' : styled_text,
'nds ' : number_2c__date_or_text, 'nds ' : number_2c__date_or_text,
'feet' : feet, 'feet' : feet,
'feb ' : February, 'feb ' : February,
'nmbr' : number, 'degc' : degrees_Celsius,
'mile' : miles,
'kprs' : keystroke, 'kprs' : keystroke,
'psct' : writing_code, 'psct' : writing_code,
'degf' : degrees_Fahrenheit, 'degf' : degrees_Fahrenheit,
'lrs ' : list_2c__record_or_text, 'lrs ' : list_2c__record_or_text,
'ldt ' : date, 'ldt ' : date,
'litr' : litres, 'degk' : degrees_Kelvin,
'nd ' : number_or_date, 'sun ' : Sunday,
'cmtr' : centimetres, 'oct ' : October,
'evnt' : event, 'evnt' : event,
'pstr' : Pascal_string, 'pstr' : Pascal_string,
'zone' : zone, 'cyrd' : cubic_yards,
'PICT' : picture, 'PICT' : picture,
'ls ' : list_or_string, 'ls ' : list_or_string,
'long' : integer, 'long' : integer,
'sf ' : alias_or_string, 'prop' : properties,
'nmbr' : number,
'citl' : writing_code_info, 'citl' : writing_code_info,
'citm' : text_item, 'citm' : text_item,
'mach' : machine, 'apr ' : April,
'thu ' : Thursday,
'type' : type_class, 'type' : type_class,
'prep' : preposition, 'prep' : preposition,
'tue ' : Tuesday, 'tue ' : Tuesday,
'case' : upper_case, 'case' : upper_case,
'vers' : version, 'vers' : version,
'wed ' : Wednesday, 'wed ' : Wednesday,
'dec ' : December, 'capp' : app,
'sqkm' : square_kilometres, 'sqkm' : square_kilometers,
'obj ' : reference, 'obj ' : reference,
'vect' : vector, 'vect' : vector,
'wkdy' : weekday, 'wkdy' : weekday,
'cRGB' : RGB_color, 'cRGB' : RGB_color,
'sun ' : Sunday, 'nd ' : number_or_date,
'itxt' : international_text, 'itxt' : international_text,
'scnd' : seconds, 'scnd' : seconds,
'mar ' : March, 'mar ' : March,
'kmtr' : kilometres, 'kmtr' : kilometers,
'sqft' : square_feet, 'sqft' : square_feet,
'list' : list, 'list' : list,
'doub' : real, 'styl' : styled_Clipboard_text,
'nov ' : November, 'nov ' : November,
'qrts' : quarts, 'qrts' : quarts,
'degc' : degrees_Celsius, 'mile' : miles,
'msng' : missing_value, 'msng' : missing_value,
'alis' : alias, 'alis' : alias,
'jan ' : January, 'jan ' : January,
'metr' : metres, 'metr' : meters,
'mnth' : month, 'mnth' : month,
'ns ' : number_or_string, 'ns ' : number_or_string,
'jun ' : June, 'jun ' : June,
'aug ' : August, 'aug ' : August,
'llst' : linked_list, 'llst' : linked_list,
'styl' : styled_Clipboard_text, 'doub' : real,
'encs' : encoded_string, 'encs' : encoded_string,
'galn' : gallons, 'galn' : gallons,
'cuin' : cubic_inches, 'cuin' : cubic_inches,
'fri ' : Friday, 'fri ' : Friday,
'sutx' : styled_Unicode_text, 'sf ' : alias_or_string,
'lr ' : list_or_record, 'lr ' : list_or_record,
'degk' : degrees_Kelvin,
'mon ' : Monday, 'mon ' : Monday,
'snd ' : sound, 'snd ' : sound,
'pcls' : class_, 'sep ' : September,
'kgrm' : kilograms, 'kgrm' : kilograms,
'scpt' : script, 'scpt' : script,
'****' : anything, '****' : anything,
'prop' : property, 'litr' : liters,
'reco' : record,
'bool' : boolean, 'bool' : boolean,
'oct ' : October, 'cmtr' : centimeters,
'sqrm' : square_metres, 'sqrm' : square_meters,
'inch' : inches, 'inch' : inches,
'zone' : zone,
'kfrm' : reference_form, 'kfrm' : reference_form,
'cobj' : item, 'cobj' : item,
'gram' : grams, 'gram' : grams,
'cha ' : character, 'cha ' : character,
'apr ' : April, 'reco' : record,
'undf' : empty_ae_name_, 'undf' : empty_ae_name_,
'capp' : app, 'dec ' : December,
'enum' : constant, 'enum' : constant,
'hand' : handler, 'hand' : handler,
'sqmi' : square_miles, 'sqmi' : square_miles,
'rdat' : data, 'rdat' : data,
'cstr' : C_string, 'cstr' : C_string,
'utxt' : Unicode_text, 'utxt' : Unicode_text,
'thu ' : Thursday, 'sutx' : styled_Unicode_text,
'mach' : machine,
'sqyd' : square_yards, 'sqyd' : square_yards,
'yard' : yards, 'yard' : yards,
'cyrd' : cubic_yards,
'ozs ' : ounces, 'ozs ' : ounces,
'lbs ' : pounds, 'lbs ' : pounds,
'cfet' : cubic_feet, 'cfet' : cubic_feet,
'ccmt' : cubic_centimetres, 'ccmt' : cubic_centimeters,
'sat ' : Saturday, 'sat ' : Saturday,
'sep ' : September, 'pcls' : class_,
'fss ' : file_specification, 'fss ' : file_specification,
'ctxt' : text, 'ctxt' : text,
} }
_propdeclarations = { _propdeclarations = {
'week' : weeks, 'week' : weeks,
'kMod' : modifiers, 'mnth' : month,
'pare' : parent, 'pare' : parent,
'leng' : length, 'leng' : length,
'hour' : hours, 'pi ' : pi,
'mnth' : month, 'kMod' : modifiers,
'min ' : minutes, 'min ' : minutes,
'wkdy' : weekday, 'wkdy' : weekday,
'dstr' : date_string, 'dstr' : date_string,
...@@ -2154,10 +2154,10 @@ _propdeclarations = { ...@@ -2154,10 +2154,10 @@ _propdeclarations = {
'rvse' : reverse, 'rvse' : reverse,
'tab ' : tab, 'tab ' : tab,
'tstr' : time_string, 'tstr' : time_string,
'pi ' : pi,
'ret ' : return_,
'plcd' : language_code, 'plcd' : language_code,
'ret ' : return_,
'kMsg' : key, 'kMsg' : key,
'hour' : hours,
'spac' : space, 'spac' : space,
'days' : days, 'days' : days,
'txdl' : text_item_delimiters, 'txdl' : text_item_delimiters,
......
...@@ -15,38 +15,6 @@ class Macintosh_Connectivity_Clas_Events: ...@@ -15,38 +15,6 @@ class Macintosh_Connectivity_Clas_Events:
pass pass
class device_specification(aetools.ComponentItem):
"""device specification - A device connected to a computer """
want = 'cdev'
class properties(aetools.NProperty):
"""properties - property that allows getting and setting of multiple properties """
which = 'pALL'
want = 'reco'
class device_type(aetools.NProperty):
"""device type - the kind of device """
which = 'pdvt'
want = 'edvt'
class device_address(aetools.NProperty):
"""device address - the address of the device """
which = 'pdva'
want = 'cadr'
device_specifications = device_specification
class address_specification(aetools.ComponentItem):
"""address specification - Unique designation of a device or service connected to this computer """
want = 'cadr'
class conduit(aetools.NProperty):
"""conduit - How the addressee is physically connected """
which = 'pcon'
want = 'econ'
class protocol(aetools.NProperty):
"""protocol - How to talk to this addressee """
which = 'pprt'
want = 'epro'
address_specifications = address_specification
class ADB_address(aetools.ComponentItem): class ADB_address(aetools.ComponentItem):
"""ADB address - Addresses a device connected via Apple Desktop Bus """ """ADB address - Addresses a device connected via Apple Desktop Bus """
want = 'cadb' want = 'cadb'
...@@ -79,12 +47,6 @@ class AppleTalk_type(aetools.NProperty): ...@@ -79,12 +47,6 @@ class AppleTalk_type(aetools.NProperty):
AppleTalk_addresses = AppleTalk_address AppleTalk_addresses = AppleTalk_address
class bus_slot(aetools.ComponentItem):
"""bus slot - Addresses a PC, PCI, or NuBus card """
want = 'cbus'
bus_slots = bus_slot
class Ethernet_address(aetools.ComponentItem): class Ethernet_address(aetools.ComponentItem):
"""Ethernet address - Addresses a device by its Ethernet address """ """Ethernet address - Addresses a device by its Ethernet address """
want = 'cen ' want = 'cen '
...@@ -149,31 +111,53 @@ class Token_Ring_address(aetools.ComponentItem): ...@@ -149,31 +111,53 @@ class Token_Ring_address(aetools.ComponentItem):
Token_Ring_addresses = Token_Ring_address Token_Ring_addresses = Token_Ring_address
class USB_address(aetools.ComponentItem): class USB_Addresses(aetools.ComponentItem):
"""USB address - Addresses a device on the Universal Serial Bus """ """USB Addresses - """
want = 'cusb' want = 'cusb'
USB_address = USB_Addresses
class name(aetools.NProperty): class name(aetools.NProperty):
"""name - the USB device name """ """name - the USB device name """
which = 'pnam' which = 'pnam'
want = 'TEXT' want = 'TEXT'
USB_Addresses = USB_address class address_specification(aetools.ComponentItem):
device_specification._superclassnames = [] """address specification - Unique designation of a device or service connected to this computer """
device_specification._privpropdict = { want = 'cadr'
'properties' : properties, class properties(aetools.NProperty):
'device_type' : device_type, """properties - property that allows getting and setting of multiple properties """
'device_address' : device_address, which = 'pALL'
} want = 'reco'
device_specification._privelemdict = { class conduit(aetools.NProperty):
} """conduit - How the addressee is physically connected """
address_specification._superclassnames = [] which = 'pcon'
address_specification._privpropdict = { want = 'econ'
'properties' : properties, class protocol(aetools.NProperty):
'conduit' : conduit, """protocol - How to talk to this addressee """
'protocol' : protocol, which = 'pprt'
} want = 'epro'
address_specification._privelemdict = {
} address_specifications = address_specification
class bus_slot(aetools.ComponentItem):
"""bus slot - Addresses a PC, PCI, or NuBus card """
want = 'cbus'
bus_slots = bus_slot
class device_specification(aetools.ComponentItem):
"""device specification - A device connected to a computer """
want = 'cdev'
class device_type(aetools.NProperty):
"""device type - the kind of device """
which = 'pdvt'
want = 'edvt'
class device_address(aetools.NProperty):
"""device address - the address of the device """
which = 'pdva'
want = 'cadr'
device_specifications = device_specification
ADB_address._superclassnames = ['address_specification'] ADB_address._superclassnames = ['address_specification']
ADB_address._privpropdict = { ADB_address._privpropdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_, '_3c_inheritance_3e_' : _3c_inheritance_3e_,
...@@ -190,13 +174,6 @@ AppleTalk_address._privpropdict = { ...@@ -190,13 +174,6 @@ AppleTalk_address._privpropdict = {
} }
AppleTalk_address._privelemdict = { AppleTalk_address._privelemdict = {
} }
bus_slot._superclassnames = ['address_specification']
bus_slot._privpropdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
bus_slot._privelemdict = {
}
Ethernet_address._superclassnames = ['address_specification'] Ethernet_address._superclassnames = ['address_specification']
Ethernet_address._privpropdict = { Ethernet_address._privpropdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_, '_3c_inheritance_3e_' : _3c_inheritance_3e_,
...@@ -245,36 +222,34 @@ Token_Ring_address._privpropdict = { ...@@ -245,36 +222,34 @@ Token_Ring_address._privpropdict = {
} }
Token_Ring_address._privelemdict = { Token_Ring_address._privelemdict = {
} }
USB_address._superclassnames = ['address_specification'] USB_Addresses._superclassnames = []
USB_address._privpropdict = { USB_Addresses._privpropdict = {
}
USB_Addresses._privelemdict = {
}
address_specification._superclassnames = []
address_specification._privpropdict = {
'properties' : properties,
'conduit' : conduit,
'protocol' : protocol,
}
address_specification._privelemdict = {
}
bus_slot._superclassnames = ['address_specification']
bus_slot._privpropdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_, '_3c_inheritance_3e_' : _3c_inheritance_3e_,
'name' : name, 'ID' : ID,
} }
USB_address._privelemdict = { bus_slot._privelemdict = {
} }
_Enum_edvt = { device_specification._superclassnames = []
'hard_disk_drive' : 'ehd ', # device_specification._privpropdict = {
'floppy_disk_drive' : 'efd ', # 'properties' : properties,
'CD_ROM_drive' : 'ecd ', # 'device_type' : device_type,
'DVD_drive' : 'edvd', # 'device_address' : device_address,
'storage_device' : 'edst', # }
'keyboard' : 'ekbd', # device_specification._privelemdict = {
'mouse' : 'emou', #
'trackball' : 'etrk', #
'trackpad' : 'edtp', #
'pointing_device' : 'edpd', #
'video_monitor' : 'edvm', #
'LCD_display' : 'edlc', #
'display' : 'edds', #
'modem' : 'edmm', #
'PC_card' : 'ecpc', #
'PCI_card' : 'edpi', #
'NuBus_card' : 'ednb', #
'printer' : 'edpr', #
'speakers' : 'edsp', #
'microphone' : 'ecmi', #
} }
_Enum_econ = { _Enum_econ = {
'ADB' : 'eadb', # 'ADB' : 'eadb', #
'printer_port' : 'ecpp', # 'printer_port' : 'ecpp', #
...@@ -301,6 +276,29 @@ _Enum_econ = { ...@@ -301,6 +276,29 @@ _Enum_econ = {
'microphone' : 'ecmi', # 'microphone' : 'ecmi', #
} }
_Enum_edvt = {
'hard_disk_drive' : 'ehd ', #
'floppy_disk_drive' : 'efd ', #
'CD_ROM_drive' : 'ecd ', #
'DVD_drive' : 'edvd', #
'storage_device' : 'edst', #
'keyboard' : 'ekbd', #
'mouse' : 'emou', #
'trackball' : 'etrk', #
'trackpad' : 'edtp', #
'pointing_device' : 'edpd', #
'video_monitor' : 'edvm', #
'LCD_display' : 'edlc', #
'display' : 'edds', #
'modem' : 'edmm', #
'PC_card' : 'ecpc', #
'PCI_card' : 'edpi', #
'NuBus_card' : 'ednb', #
'printer' : 'edpr', #
'speakers' : 'edsp', #
'microphone' : 'ecmi', #
}
_Enum_epro = { _Enum_epro = {
'serial' : 'epsr', # 'serial' : 'epsr', #
'AppleTalk' : 'epat', # 'AppleTalk' : 'epat', #
...@@ -335,16 +333,16 @@ _classdeclarations = { ...@@ -335,16 +333,16 @@ _classdeclarations = {
'cbus' : bus_slot, 'cbus' : bus_slot,
'cscs' : SCSI_address, 'cscs' : SCSI_address,
'cadb' : ADB_address, 'cadb' : ADB_address,
'cusb' : USB_address, 'cusb' : USB_Addresses,
'cdev' : device_specification,
'clt ' : LocalTalk_address,
'cip ' : IP_address, 'cip ' : IP_address,
'clt ' : LocalTalk_address,
'cdev' : device_specification,
'cen ' : Ethernet_address, 'cen ' : Ethernet_address,
} }
_propdeclarations = { _propdeclarations = {
'pdns' : DNS_form, 'pdns' : DNS_form,
'ppor' : port, 'pdva' : device_address,
'patt' : AppleTalk_type, 'patt' : AppleTalk_type,
'pprt' : protocol, 'pprt' : protocol,
'pcon' : conduit, 'pcon' : conduit,
...@@ -355,10 +353,10 @@ _propdeclarations = { ...@@ -355,10 +353,10 @@ _propdeclarations = {
'c@#^' : _3c_inheritance_3e_, 'c@#^' : _3c_inheritance_3e_,
'ID ' : ID, 'ID ' : ID,
'pALL' : properties, 'pALL' : properties,
'psoc' : socket,
'pscb' : SCSI_bus, 'pscb' : SCSI_bus,
'pdva' : device_address, 'ppor' : port,
'patm' : AppleTalk_machine, 'patm' : AppleTalk_machine,
'psoc' : socket,
'pslu' : LUN, 'pslu' : LUN,
'pnod' : node, 'pnod' : node,
} }
......
...@@ -119,6 +119,12 @@ class update_on_change(aetools.NProperty): ...@@ -119,6 +119,12 @@ class update_on_change(aetools.NProperty):
drawing_areas = drawing_area drawing_areas = drawing_area
class graphic_group(aetools.ComponentItem):
"""graphic group - Group of graphics """
want = 'cpic'
graphic_groups = graphic_group
class graphic_line(aetools.ComponentItem): class graphic_line(aetools.ComponentItem):
"""graphic line - A graphic line """ """graphic line - A graphic line """
want = 'glin' want = 'glin'
...@@ -173,12 +179,6 @@ class uniform_styles(aetools.NProperty): ...@@ -173,12 +179,6 @@ class uniform_styles(aetools.NProperty):
which = 'ustl' which = 'ustl'
want = 'tsty' want = 'tsty'
class graphic_group(aetools.ComponentItem):
"""graphic group - Group of graphics """
want = 'cpic'
graphic_groups = graphic_group
class oval(aetools.ComponentItem): class oval(aetools.ComponentItem):
"""oval - An oval """ """oval - An oval """
want = 'covl' want = 'covl'
...@@ -189,14 +189,14 @@ class pixel(aetools.ComponentItem): ...@@ -189,14 +189,14 @@ class pixel(aetools.ComponentItem):
"""pixel - A pixel """ """pixel - A pixel """
want = 'cpxl' want = 'cpxl'
pixels = pixel
class pixel_map(aetools.ComponentItem): class pixel_map(aetools.ComponentItem):
"""pixel map - A pixel map """ """pixel map - A pixel map """
want = 'cpix' want = 'cpix'
pixel_maps = pixel_map pixel_maps = pixel_map
pixels = pixel
class polygon(aetools.ComponentItem): class polygon(aetools.ComponentItem):
"""polygon - A polygon """ """polygon - A polygon """
want = 'cpgn' want = 'cpgn'
...@@ -259,6 +259,11 @@ drawing_area._privpropdict = { ...@@ -259,6 +259,11 @@ drawing_area._privpropdict = {
} }
drawing_area._privelemdict = { drawing_area._privelemdict = {
} }
graphic_group._superclassnames = []
graphic_group._privpropdict = {
}
graphic_group._privelemdict = {
}
graphic_line._superclassnames = [] graphic_line._superclassnames = []
graphic_line._privpropdict = { graphic_line._privpropdict = {
'start_point' : start_point, 'start_point' : start_point,
...@@ -287,11 +292,6 @@ graphic_text._privpropdict = { ...@@ -287,11 +292,6 @@ graphic_text._privpropdict = {
} }
graphic_text._privelemdict = { graphic_text._privelemdict = {
} }
graphic_group._superclassnames = []
graphic_group._privpropdict = {
}
graphic_group._privelemdict = {
}
oval._superclassnames = [] oval._superclassnames = []
oval._privpropdict = { oval._privpropdict = {
} }
...@@ -326,6 +326,13 @@ rounded_rectangle._privpropdict = { ...@@ -326,6 +326,13 @@ rounded_rectangle._privpropdict = {
} }
rounded_rectangle._privelemdict = { rounded_rectangle._privelemdict = {
} }
_Enum_arro = {
'no_arrow' : 'arno', # No arrow on line
'arrow_at_start' : 'arst', # Arrow at start of line
'arrow_at_end' : 'aren', # Arrow at end of line
'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
}
_Enum_tran = { _Enum_tran = {
'copy_pixels' : 'cpy ', # 'copy_pixels' : 'cpy ', #
'not_copy_pixels' : 'ncpy', # 'not_copy_pixels' : 'ncpy', #
...@@ -344,13 +351,6 @@ _Enum_tran = { ...@@ -344,13 +351,6 @@ _Enum_tran = {
'blend_pixels' : 'blnd', # 'blend_pixels' : 'blnd', #
} }
_Enum_arro = {
'no_arrow' : 'arno', # No arrow on line
'arrow_at_start' : 'arst', # Arrow at start of line
'arrow_at_end' : 'aren', # Arrow at end of line
'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
}
# #
# Indices of types declared in this module # Indices of types declared in this module
......
...@@ -13,100 +13,23 @@ _code = 'core' ...@@ -13,100 +13,23 @@ _code = 'core'
from _builtinSuites.builtin_Suite import * from _builtinSuites.builtin_Suite import *
class Standard_Suite_Events(builtin_Suite_Events): class Standard_Suite_Events(builtin_Suite_Events):
def open(self, _object, _attributes={}, **_arguments): _argmap_class_info = {
"""open: Open the specified object(s) 'in_' : 'wrcd',
Required argument: list of objects to open
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'odoc'
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(self, _no_object=None, _attributes={}, **_arguments):
"""run: Run an application. Most applications will open an empty, untitled window.
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'oapp'
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 reopen(self, _no_object=None, _attributes={}, **_arguments):
"""reopen: Reactivate a running application. Some applications will open a new untitled window if no window is open.
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'rapp'
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 print_(self, _object, _attributes={}, **_arguments):
"""print: Print the specified object(s)
Required argument: list of objects to print
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'pdoc'
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_quit = {
'saving' : 'savo',
} }
def quit(self, _no_object=None, _attributes={}, **_arguments): def class_info(self, _object=None, _attributes={}, **_arguments):
"""quit: Quit an application """class info: (optional) Get information about an object class
Keyword argument saving: specifies whether to save currently open documents Required argument: the object class about which information is requested
Keyword argument in_: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the object\xd5s properties and elements
""" """
_code = 'aevt' _code = 'core'
_subcode = 'quit' _subcode = 'qobj'
aetools.keysubst(_arguments, self._argmap_quit) aetools.keysubst(_arguments, self._argmap_class_info)
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
...@@ -162,6 +85,32 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -162,6 +85,32 @@ class Standard_Suite_Events(builtin_Suite_Events):
_arguments['----'] = _object _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_data_size = {
'as' : 'rtyp',
}
def data_size(self, _object, _attributes={}, **_arguments):
"""data size: (optional) Return the size in bytes of an object
Required argument: the object whose data size is to be returned
Keyword argument as: the data type for which the size is calculated
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the size of the object in bytes
"""
_code = 'core'
_subcode = 'dsiz'
aetools.keysubst(_arguments, self._argmap_data_size)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
...@@ -210,6 +159,32 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -210,6 +159,32 @@ class Standard_Suite_Events(builtin_Suite_Events):
_arguments['----'] = _object _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_event_info = {
'in_' : 'wrcd',
}
def event_info(self, _object, _attributes={}, **_arguments):
"""event info: (optional) Get information about the Apple events in a suite
Required argument: the event class of the Apple events for which to return information
Keyword argument in_: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the events and their parameters
"""
_code = 'core'
_subcode = 'gtei'
aetools.keysubst(_arguments, self._argmap_event_info)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
...@@ -296,22 +271,15 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -296,22 +271,15 @@ class Standard_Suite_Events(builtin_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_save = { def open(self, _object, _attributes={}, **_arguments):
'in_' : 'kfil', """open: Open the specified object(s)
'as' : 'fltp', Required argument: list of objects to open
}
def save(self, _object, _attributes={}, **_arguments):
"""save: Save an object
Required argument: the object to save, usually a document or window
Keyword argument in_: the file or alias in which to save the object
Keyword argument as: the file type of the document in which to save the data
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'aevt'
_subcode = 'save' _subcode = 'odoc'
aetools.keysubst(_arguments, self._argmap_save) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -323,13 +291,13 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -323,13 +291,13 @@ class Standard_Suite_Events(builtin_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def select(self, _object, _attributes={}, **_arguments): def print_(self, _object, _attributes={}, **_arguments):
"""select: Make a selection """print: Print the specified object(s)
Required argument: the object to select Required argument: list of objects to print
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'aevt'
_subcode = 'slct' _subcode = 'pdoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _arguments['----'] = _object
...@@ -343,23 +311,22 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -343,23 +311,22 @@ class Standard_Suite_Events(builtin_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_data_size = { _argmap_quit = {
'as' : 'rtyp', 'saving' : 'savo',
} }
def data_size(self, _object, _attributes={}, **_arguments): def quit(self, _no_object=None, _attributes={}, **_arguments):
"""data size: (optional) Return the size in bytes of an object """quit: Quit an application
Required argument: the object whose data size is to be returned Keyword argument saving: specifies whether to save currently open documents
Keyword argument as: the data type for which the size is calculated
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the size of the object in bytes
""" """
_code = 'core' _code = 'aevt'
_subcode = 'dsiz' _subcode = 'quit'
aetools.keysubst(_arguments, self._argmap_data_size) aetools.keysubst(_arguments, self._argmap_quit)
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
...@@ -369,22 +336,34 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -369,22 +336,34 @@ class Standard_Suite_Events(builtin_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_suite_info = { def reopen(self, _no_object=None, _attributes={}, **_arguments):
'in_' : 'wrcd', """reopen: Reactivate a running application. Some applications will open a new untitled window if no window is open.
} Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'rapp'
def suite_info(self, _object, _attributes={}, **_arguments): if _arguments: raise TypeError, 'No optional args expected'
"""suite info: (optional) Get information about event suite(s) if _no_object != None: raise TypeError, 'No direct arg expected'
Required argument: the suite for which to return information
Keyword argument in_: the human language and script system in which to return information
_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(self, _no_object=None, _attributes={}, **_arguments):
"""run: Run an application. Most applications will open an empty, untitled window.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the suites and their versions
""" """
_code = 'core' _code = 'aevt'
_subcode = 'gtsi' _subcode = 'oapp'
aetools.keysubst(_arguments, self._argmap_suite_info) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -395,21 +374,22 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -395,21 +374,22 @@ class Standard_Suite_Events(builtin_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_event_info = { _argmap_save = {
'in_' : 'wrcd', 'in_' : 'kfil',
'as' : 'fltp',
} }
def event_info(self, _object, _attributes={}, **_arguments): def save(self, _object, _attributes={}, **_arguments):
"""event info: (optional) Get information about the Apple events in a suite """save: Save an object
Required argument: the event class of the Apple events for which to return information Required argument: the object to save, usually a document or window
Keyword argument in_: the human language and script system in which to return information Keyword argument in_: the file or alias in which to save the object
Keyword argument as: the file type of the document in which to save the data
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the events and their parameters
""" """
_code = 'core' _code = 'core'
_subcode = 'gtei' _subcode = 'save'
aetools.keysubst(_arguments, self._argmap_event_info) aetools.keysubst(_arguments, self._argmap_save)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -421,21 +401,41 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -421,21 +401,41 @@ class Standard_Suite_Events(builtin_Suite_Events):
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_class_info = { def select(self, _object, _attributes={}, **_arguments):
"""select: Make a selection
Required argument: the object to select
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'misc'
_subcode = 'slct'
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_suite_info = {
'in_' : 'wrcd', 'in_' : 'wrcd',
} }
def class_info(self, _object=None, _attributes={}, **_arguments): def suite_info(self, _object, _attributes={}, **_arguments):
"""class info: (optional) Get information about an object class """suite info: (optional) Get information about event suite(s)
Required argument: the object class about which information is requested Required argument: the suite for which to return information
Keyword argument in_: the human language and script system in which to return information Keyword argument in_: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the object\xd5s properties and elements Returns: a record containing the suites and their versions
""" """
_code = 'core' _code = 'core'
_subcode = 'qobj' _subcode = 'gtsi'
aetools.keysubst(_arguments, self._argmap_class_info) aetools.keysubst(_arguments, self._argmap_suite_info)
_arguments['----'] = _object _arguments['----'] = _object
...@@ -448,6 +448,12 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -448,6 +448,12 @@ class Standard_Suite_Events(builtin_Suite_Events):
return _arguments['----'] return _arguments['----']
class alias(aetools.ComponentItem):
"""alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
want = 'alis'
aliases = alias
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - An application program """ """application - An application program """
want = 'capp' want = 'capp'
...@@ -494,11 +500,11 @@ class stationery(aetools.NProperty): ...@@ -494,11 +500,11 @@ class stationery(aetools.NProperty):
files = file files = file
class alias(aetools.ComponentItem): class insertion_point(aetools.ComponentItem):
"""alias - a file on a disk or server. The file must exist when you check the syntax of your script. """ """insertion point - An insertion location between two objects """
want = 'alis' want = 'cins'
aliases = alias insertion_points = insertion_point
class selection_2d_object(aetools.ComponentItem): class selection_2d_object(aetools.ComponentItem):
"""selection-object - A way to refer to the state of the current of the selection. Use the \xd4select\xd5 command to make a new selection. """ """selection-object - A way to refer to the state of the current of the selection. Use the \xd4select\xd5 command to make a new selection. """
...@@ -553,12 +559,11 @@ class visible(aetools.NProperty): ...@@ -553,12 +559,11 @@ class visible(aetools.NProperty):
want = 'bool' want = 'bool'
windows = window windows = window
alias._superclassnames = []
class insertion_point(aetools.ComponentItem): alias._privpropdict = {
"""insertion point - An insertion location between two objects """ }
want = 'cins' alias._privelemdict = {
}
insertion_points = insertion_point
application._superclassnames = [] application._superclassnames = []
application._privpropdict = { application._privpropdict = {
'name' : name, 'name' : name,
...@@ -581,10 +586,10 @@ file._privpropdict = { ...@@ -581,10 +586,10 @@ file._privpropdict = {
} }
file._privelemdict = { file._privelemdict = {
} }
alias._superclassnames = [] insertion_point._superclassnames = []
alias._privpropdict = { insertion_point._privpropdict = {
} }
alias._privelemdict = { insertion_point._privelemdict = {
} }
selection_2d_object._superclassnames = [] selection_2d_object._superclassnames = []
selection_2d_object._privpropdict = { selection_2d_object._privpropdict = {
...@@ -607,39 +612,34 @@ window._privpropdict = { ...@@ -607,39 +612,34 @@ window._privpropdict = {
} }
window._privelemdict = { window._privelemdict = {
} }
insertion_point._superclassnames = [] class _3c_(aetools.NComparison):
insertion_point._privpropdict = { """< - Less than """
}
insertion_point._privelemdict = {
}
class starts_with(aetools.NComparison):
"""starts with - Starts with """
class contains(aetools.NComparison):
"""contains - Contains """
class ends_with(aetools.NComparison):
"""ends with - Ends with """
class _3d_(aetools.NComparison): class _3d_(aetools.NComparison):
"""= - Equal """ """= - Equal """
class _3e_(aetools.NComparison): class _3e_(aetools.NComparison):
"""> - Greater than """ """> - Greater than """
class _b3_(aetools.NComparison): class contains(aetools.NComparison):
"""\xb3 - Greater than or equal to """ """contains - Contains """
class _3c_(aetools.NComparison): class ends_with(aetools.NComparison):
"""< - Less than """ """ends with - Ends with """
class starts_with(aetools.NComparison):
"""starts with - Starts with """
class _b2_(aetools.NComparison): class _b2_(aetools.NComparison):
"""\xb2 - Less than or equal to """ """\xb2 - Less than or equal to """
_Enum_savo = { class _b3_(aetools.NComparison):
'yes' : 'yes ', # Save objects now """\xb3 - Greater than or equal to """
'no' : 'no ', # Do not save objects
'ask' : 'ask ', # Ask the user whether to save
}
_Enum_kfrm = { _Enum_kfrm = {
'index' : 'indx', # keyform designating indexed access 'index' : 'indx', # keyform designating indexed access
'named' : 'name', # keyform designating named access 'named' : 'name', # keyform designating named access
'id' : 'ID ', # keyform designating access by unique identifier 'id' : 'ID ', # keyform designating access by unique identifier
} }
_Enum_savo = {
'yes' : 'yes ', # Save objects now
'no' : 'no ', # Do not save objects
'ask' : 'ask ', # Ask the user whether to save
}
_Enum_styl = { _Enum_styl = {
'plain' : 'plan', # Plain 'plain' : 'plan', # Plain
'bold' : 'bold', # Bold 'bold' : 'bold', # Bold
......
...@@ -15,42 +15,30 @@ class Type_Names_Suite_Events: ...@@ -15,42 +15,30 @@ class Type_Names_Suite_Events:
pass pass
class type_class_info(aetools.ComponentItem): class PostScript_picture(aetools.ComponentItem):
"""type class info - information about properties and elements of a class """ """PostScript picture - """
want = 'gcli' want = 'EPS '
class type_event_info(aetools.ComponentItem): class RGB16_color(aetools.ComponentItem):
"""type event info - information about an event """ """RGB16 color - """
want = 'evin' want = 'tr16'
class plain_text(aetools.ComponentItem): class RGB96_color(aetools.ComponentItem):
"""plain text - """ """RGB96 color - """
want = 'TEXT' want = 'tr96'
plain_text = plain_text class TIFF_picture(aetools.ComponentItem):
"""TIFF picture - """
want = 'TIFF'
string = plain_text class application_dictionary(aetools.ComponentItem):
"""application dictionary - """
want = 'aete'
class bounding_rectangle(aetools.ComponentItem): class bounding_rectangle(aetools.ComponentItem):
"""bounding rectangle - bounding rectangle """ """bounding rectangle - bounding rectangle """
want = 'qdrt' want = 'qdrt'
class point(aetools.ComponentItem):
"""point - point coordinates """
want = 'QDpt'
class fixed(aetools.ComponentItem):
"""fixed - a real number """
want = 'fixd'
class location_reference(aetools.ComponentItem):
"""location reference - """
want = 'insl'
class application_dictionary(aetools.ComponentItem):
"""application dictionary - """
want = 'aete'
class color_table(aetools.ComponentItem): class color_table(aetools.ComponentItem):
"""color table - """ """color table - """
want = 'clrt' want = 'clrt'
...@@ -67,6 +55,10 @@ class extended_real(aetools.ComponentItem): ...@@ -67,6 +55,10 @@ class extended_real(aetools.ComponentItem):
"""extended real - """ """extended real - """
want = 'exte' want = 'exte'
class fixed(aetools.ComponentItem):
"""fixed - a real number """
want = 'fixd'
class fixed_point(aetools.ComponentItem): class fixed_point(aetools.ComponentItem):
"""fixed point - """ """fixed point - """
want = 'fpnt' want = 'fpnt'
...@@ -75,6 +67,10 @@ class fixed_rectangle(aetools.ComponentItem): ...@@ -75,6 +67,10 @@ class fixed_rectangle(aetools.ComponentItem):
"""fixed rectangle - """ """fixed rectangle - """
want = 'frct' want = 'frct'
class location_reference(aetools.ComponentItem):
"""location reference - """
want = 'insl'
class long_fixed(aetools.ComponentItem): class long_fixed(aetools.ComponentItem):
"""long fixed - """ """long fixed - """
want = 'lfxd' want = 'lfxd'
...@@ -115,17 +111,23 @@ class pixel_map_record(aetools.ComponentItem): ...@@ -115,17 +111,23 @@ class pixel_map_record(aetools.ComponentItem):
"""pixel map record - """ """pixel map record - """
want = 'tpmm' want = 'tpmm'
class PostScript_picture(aetools.ComponentItem): class plain_text(aetools.ComponentItem):
"""PostScript picture - """ """plain text - """
want = 'EPS ' want = 'TEXT'
class RGB16_color(aetools.ComponentItem): plain_text = plain_text
"""RGB16 color - """
want = 'tr16'
class RGB96_color(aetools.ComponentItem): class point(aetools.ComponentItem):
"""RGB96 color - """ """point - point coordinates """
want = 'tr96' want = 'QDpt'
class rotation(aetools.ComponentItem):
"""rotation - """
want = 'trot'
class scrap_styles(aetools.ComponentItem):
"""scrap styles - """
want = 'styl'
class small_integer(aetools.ComponentItem): class small_integer(aetools.ComponentItem):
"""small integer - """ """small integer - """
...@@ -135,94 +137,77 @@ class small_real(aetools.ComponentItem): ...@@ -135,94 +137,77 @@ class small_real(aetools.ComponentItem):
"""small real - """ """small real - """
want = 'sing' want = 'sing'
string = plain_text
class system_dictionary(aetools.ComponentItem): class system_dictionary(aetools.ComponentItem):
"""system dictionary - """ """system dictionary - """
want = 'aeut' want = 'aeut'
class rotation(aetools.ComponentItem): class target_id(aetools.ComponentItem):
"""rotation - """ """target id - """
want = 'trot' want = 'targ'
class scrap_styles(aetools.ComponentItem):
"""scrap styles - """
want = 'styl'
class TIFF_picture(aetools.ComponentItem):
"""TIFF picture - """
want = 'TIFF'
class version(aetools.ComponentItem):
"""version - """
want = 'vers'
class unsigned_integer(aetools.ComponentItem):
"""unsigned integer - """
want = 'magn'
class type_property_info(aetools.ComponentItem): class type_class_info(aetools.ComponentItem):
"""type property info - """ """type class info - information about properties and elements of a class """
want = 'pinf' want = 'gcli'
class type_element_info(aetools.ComponentItem): class type_element_info(aetools.ComponentItem):
"""type element info - """ """type element info - """
want = 'elin' want = 'elin'
class type_event_info(aetools.ComponentItem):
"""type event info - information about an event """
want = 'evin'
class type_parameter_info(aetools.ComponentItem): class type_parameter_info(aetools.ComponentItem):
"""type parameter info - """ """type parameter info - """
want = 'pmin' want = 'pmin'
class type_property_info(aetools.ComponentItem):
"""type property info - """
want = 'pinf'
class type_suite_info(aetools.ComponentItem): class type_suite_info(aetools.ComponentItem):
"""type suite info - """ """type suite info - """
want = 'suin' want = 'suin'
class target_id(aetools.ComponentItem): class unsigned_integer(aetools.ComponentItem):
"""target id - """ """unsigned integer - """
want = 'targ' want = 'magn'
type_class_info._superclassnames = []
type_class_info._privpropdict = { class version(aetools.ComponentItem):
} """version - """
type_class_info._privelemdict = { want = 'vers'
} PostScript_picture._superclassnames = []
type_event_info._superclassnames = [] PostScript_picture._privpropdict = {
type_event_info._privpropdict = {
}
type_event_info._privelemdict = {
}
plain_text._superclassnames = []
plain_text._privpropdict = {
}
plain_text._privelemdict = {
}
plain_text._superclassnames = []
plain_text._privpropdict = {
}
plain_text._privelemdict = {
}
bounding_rectangle._superclassnames = []
bounding_rectangle._privpropdict = {
} }
bounding_rectangle._privelemdict = { PostScript_picture._privelemdict = {
} }
point._superclassnames = [] RGB16_color._superclassnames = []
point._privpropdict = { RGB16_color._privpropdict = {
} }
point._privelemdict = { RGB16_color._privelemdict = {
} }
fixed._superclassnames = [] RGB96_color._superclassnames = []
fixed._privpropdict = { RGB96_color._privpropdict = {
} }
fixed._privelemdict = { RGB96_color._privelemdict = {
} }
location_reference._superclassnames = [] TIFF_picture._superclassnames = []
location_reference._privpropdict = { TIFF_picture._privpropdict = {
} }
location_reference._privelemdict = { TIFF_picture._privelemdict = {
} }
application_dictionary._superclassnames = [] application_dictionary._superclassnames = []
application_dictionary._privpropdict = { application_dictionary._privpropdict = {
} }
application_dictionary._privelemdict = { application_dictionary._privelemdict = {
} }
bounding_rectangle._superclassnames = []
bounding_rectangle._privpropdict = {
}
bounding_rectangle._privelemdict = {
}
color_table._superclassnames = [] color_table._superclassnames = []
color_table._privpropdict = { color_table._privpropdict = {
} }
...@@ -243,6 +228,11 @@ extended_real._privpropdict = { ...@@ -243,6 +228,11 @@ extended_real._privpropdict = {
} }
extended_real._privelemdict = { extended_real._privelemdict = {
} }
fixed._superclassnames = []
fixed._privpropdict = {
}
fixed._privelemdict = {
}
fixed_point._superclassnames = [] fixed_point._superclassnames = []
fixed_point._privpropdict = { fixed_point._privpropdict = {
} }
...@@ -253,6 +243,11 @@ fixed_rectangle._privpropdict = { ...@@ -253,6 +243,11 @@ fixed_rectangle._privpropdict = {
} }
fixed_rectangle._privelemdict = { fixed_rectangle._privelemdict = {
} }
location_reference._superclassnames = []
location_reference._privpropdict = {
}
location_reference._privelemdict = {
}
long_fixed._superclassnames = [] long_fixed._superclassnames = []
long_fixed._privpropdict = { long_fixed._privpropdict = {
} }
...@@ -303,20 +298,30 @@ pixel_map_record._privpropdict = { ...@@ -303,20 +298,30 @@ pixel_map_record._privpropdict = {
} }
pixel_map_record._privelemdict = { pixel_map_record._privelemdict = {
} }
PostScript_picture._superclassnames = [] plain_text._superclassnames = []
PostScript_picture._privpropdict = { plain_text._privpropdict = {
} }
PostScript_picture._privelemdict = { plain_text._privelemdict = {
} }
RGB16_color._superclassnames = [] plain_text._superclassnames = []
RGB16_color._privpropdict = { plain_text._privpropdict = {
} }
RGB16_color._privelemdict = { plain_text._privelemdict = {
} }
RGB96_color._superclassnames = [] point._superclassnames = []
RGB96_color._privpropdict = { point._privpropdict = {
} }
RGB96_color._privelemdict = { point._privelemdict = {
}
rotation._superclassnames = []
rotation._privpropdict = {
}
rotation._privelemdict = {
}
scrap_styles._superclassnames = []
scrap_styles._privpropdict = {
}
scrap_styles._privelemdict = {
} }
small_integer._superclassnames = [] small_integer._superclassnames = []
small_integer._privpropdict = { small_integer._privpropdict = {
...@@ -333,55 +338,50 @@ system_dictionary._privpropdict = { ...@@ -333,55 +338,50 @@ system_dictionary._privpropdict = {
} }
system_dictionary._privelemdict = { system_dictionary._privelemdict = {
} }
rotation._superclassnames = [] target_id._superclassnames = []
rotation._privpropdict = { target_id._privpropdict = {
} }
rotation._privelemdict = { target_id._privelemdict = {
} }
scrap_styles._superclassnames = [] type_class_info._superclassnames = []
scrap_styles._privpropdict = { type_class_info._privpropdict = {
} }
scrap_styles._privelemdict = { type_class_info._privelemdict = {
} }
TIFF_picture._superclassnames = [] type_element_info._superclassnames = []
TIFF_picture._privpropdict = { type_element_info._privpropdict = {
} }
TIFF_picture._privelemdict = { type_element_info._privelemdict = {
} }
version._superclassnames = [] type_event_info._superclassnames = []
version._privpropdict = { type_event_info._privpropdict = {
} }
version._privelemdict = { type_event_info._privelemdict = {
} }
unsigned_integer._superclassnames = [] type_parameter_info._superclassnames = []
unsigned_integer._privpropdict = { type_parameter_info._privpropdict = {
} }
unsigned_integer._privelemdict = { type_parameter_info._privelemdict = {
} }
type_property_info._superclassnames = [] type_property_info._superclassnames = []
type_property_info._privpropdict = { type_property_info._privpropdict = {
} }
type_property_info._privelemdict = { type_property_info._privelemdict = {
} }
type_element_info._superclassnames = []
type_element_info._privpropdict = {
}
type_element_info._privelemdict = {
}
type_parameter_info._superclassnames = []
type_parameter_info._privpropdict = {
}
type_parameter_info._privelemdict = {
}
type_suite_info._superclassnames = [] type_suite_info._superclassnames = []
type_suite_info._privpropdict = { type_suite_info._privpropdict = {
} }
type_suite_info._privelemdict = { type_suite_info._privelemdict = {
} }
target_id._superclassnames = [] unsigned_integer._superclassnames = []
target_id._privpropdict = { unsigned_integer._privpropdict = {
} }
target_id._privelemdict = { unsigned_integer._privelemdict = {
}
version._superclassnames = []
version._privpropdict = {
}
version._privelemdict = {
} }
# #
...@@ -394,7 +394,7 @@ _classdeclarations = { ...@@ -394,7 +394,7 @@ _classdeclarations = {
'aeut' : system_dictionary, 'aeut' : system_dictionary,
'clrt' : color_table, 'clrt' : color_table,
'fpnt' : fixed_point, 'fpnt' : fixed_point,
'TEXT' : plain_text, 'TIFF' : TIFF_picture,
'elin' : type_element_info, 'elin' : type_element_info,
'insl' : location_reference, 'insl' : location_reference,
'mLoc' : machine_location, 'mLoc' : machine_location,
...@@ -403,24 +403,24 @@ _classdeclarations = { ...@@ -403,24 +403,24 @@ _classdeclarations = {
'cmen' : menu_item, 'cmen' : menu_item,
'tpmm' : pixel_map_record, 'tpmm' : pixel_map_record,
'aete' : application_dictionary, 'aete' : application_dictionary,
'TEXT' : plain_text,
'magn' : unsigned_integer, 'magn' : unsigned_integer,
'cmnu' : menu, 'cmnu' : menu,
'frct' : fixed_rectangle, 'frct' : fixed_rectangle,
'pinf' : type_property_info,
'lfrc' : long_fixed_rectangle, 'lfrc' : long_fixed_rectangle,
'evin' : type_event_info, 'evin' : type_event_info,
'sing' : small_real, 'sing' : small_real,
'suin' : type_suite_info, 'suin' : type_suite_info,
'trot' : rotation, 'trot' : rotation,
'pmin' : type_parameter_info,
'fixd' : fixed, 'fixd' : fixed,
'styl' : scrap_styles, 'styl' : scrap_styles,
'lpnt' : long_point, 'lpnt' : long_point,
'gcli' : type_class_info, 'gcli' : type_class_info,
'TIFF' : TIFF_picture,
'tr96' : RGB96_color, 'tr96' : RGB96_color,
'tdas' : dash_style, 'tdas' : dash_style,
'exte' : extended_real, 'exte' : extended_real,
'pinf' : type_property_info, 'pmin' : type_parameter_info,
'lfpt' : long_fixed_point, 'lfpt' : long_fixed_point,
'lrct' : long_rectangle, 'lrct' : long_rectangle,
'qdrt' : bounding_rectangle, 'qdrt' : bounding_rectangle,
......
...@@ -4,51 +4,51 @@ Resource aeut resid 0 Standard Event Suites for English ...@@ -4,51 +4,51 @@ Resource aeut resid 0 Standard Event Suites for English
""" """
import aetools import aetools
Error = aetools.Error Error = aetools.Error
import Text_Suite
import AppleScript_Suite import AppleScript_Suite
import Required_Suite
import Standard_Suite import Standard_Suite
import Text_Suite import Macintosh_Connectivity_Clas
import QuickDraw_Graphics_Suite import QuickDraw_Graphics_Suite
import QuickDraw_Graphics_Suppleme import QuickDraw_Graphics_Suppleme
import Required_Suite
import Table_Suite import Table_Suite
import Macintosh_Connectivity_Clas
import Type_Names_Suite import Type_Names_Suite
_code_to_module = { _code_to_module = {
'TEXT' : Text_Suite,
'ascr' : AppleScript_Suite, 'ascr' : AppleScript_Suite,
'reqd' : Required_Suite,
'core' : Standard_Suite, 'core' : Standard_Suite,
'TEXT' : Text_Suite, 'macc' : Macintosh_Connectivity_Clas,
'qdrw' : QuickDraw_Graphics_Suite, 'qdrw' : QuickDraw_Graphics_Suite,
'qdsp' : QuickDraw_Graphics_Suppleme, 'qdsp' : QuickDraw_Graphics_Suppleme,
'reqd' : Required_Suite,
'tbls' : Table_Suite, 'tbls' : Table_Suite,
'macc' : Macintosh_Connectivity_Clas,
'tpnm' : Type_Names_Suite, 'tpnm' : Type_Names_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'),
'ascr' : ('StdSuites.AppleScript_Suite', 'AppleScript_Suite'), 'ascr' : ('StdSuites.AppleScript_Suite', 'AppleScript_Suite'),
'reqd' : ('StdSuites.Required_Suite', 'Required_Suite'),
'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'), 'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'),
'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'), 'macc' : ('StdSuites.Macintosh_Connectivity_Clas', 'Macintosh_Connectivity_Clas'),
'qdrw' : ('StdSuites.QuickDraw_Graphics_Suite', 'QuickDraw_Graphics_Suite'), 'qdrw' : ('StdSuites.QuickDraw_Graphics_Suite', 'QuickDraw_Graphics_Suite'),
'qdsp' : ('StdSuites.QuickDraw_Graphics_Suppleme', 'QuickDraw_Graphics_Suppleme'), 'qdsp' : ('StdSuites.QuickDraw_Graphics_Suppleme', 'QuickDraw_Graphics_Suppleme'),
'reqd' : ('StdSuites.Required_Suite', 'Required_Suite'),
'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'), 'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'),
'macc' : ('StdSuites.Macintosh_Connectivity_Clas', 'Macintosh_Connectivity_Clas'),
'tpnm' : ('StdSuites.Type_Names_Suite', 'Type_Names_Suite'), 'tpnm' : ('StdSuites.Type_Names_Suite', 'Type_Names_Suite'),
} }
from Text_Suite import *
from AppleScript_Suite import * from AppleScript_Suite import *
from Required_Suite import *
from Standard_Suite import * from Standard_Suite import *
from Text_Suite import * from Macintosh_Connectivity_Clas import *
from QuickDraw_Graphics_Suite import * from QuickDraw_Graphics_Suite import *
from QuickDraw_Graphics_Suppleme import * from QuickDraw_Graphics_Suppleme import *
from Required_Suite import *
from Table_Suite import * from Table_Suite import *
from Macintosh_Connectivity_Clas import *
from Type_Names_Suite import * from Type_Names_Suite import *
def getbaseclasses(v): def getbaseclasses(v):
...@@ -68,6 +68,91 @@ import StdSuites ...@@ -68,6 +68,91 @@ import StdSuites
# #
# Set property and element dictionaries now that all classes have been defined # Set property and element dictionaries now that all classes have been defined
# #
getbaseclasses(window)
getbaseclasses(file)
getbaseclasses(selection_2d_object)
getbaseclasses(alias)
getbaseclasses(application)
getbaseclasses(insertion_point)
getbaseclasses(document)
getbaseclasses(small_integer)
getbaseclasses(RGB16_color)
getbaseclasses(version)
getbaseclasses(system_dictionary)
getbaseclasses(color_table)
getbaseclasses(fixed_point)
getbaseclasses(plain_text)
getbaseclasses(type_element_info)
getbaseclasses(location_reference)
getbaseclasses(machine_location)
getbaseclasses(PostScript_picture)
getbaseclasses(point)
getbaseclasses(menu_item)
getbaseclasses(pixel_map_record)
getbaseclasses(application_dictionary)
getbaseclasses(unsigned_integer)
getbaseclasses(menu)
getbaseclasses(fixed_rectangle)
getbaseclasses(long_fixed_rectangle)
getbaseclasses(type_event_info)
getbaseclasses(small_real)
getbaseclasses(type_suite_info)
getbaseclasses(rotation)
getbaseclasses(type_parameter_info)
getbaseclasses(fixed)
getbaseclasses(scrap_styles)
getbaseclasses(long_point)
getbaseclasses(type_class_info)
getbaseclasses(TIFF_picture)
getbaseclasses(RGB96_color)
getbaseclasses(dash_style)
getbaseclasses(extended_real)
getbaseclasses(type_property_info)
getbaseclasses(long_fixed_point)
getbaseclasses(long_rectangle)
getbaseclasses(bounding_rectangle)
getbaseclasses(double_integer)
getbaseclasses(long_fixed)
getbaseclasses(null)
getbaseclasses(target_id)
getbaseclasses(paragraph)
getbaseclasses(character)
getbaseclasses(text_flow)
getbaseclasses(text_style_info)
getbaseclasses(line)
getbaseclasses(word)
getbaseclasses(text)
getbaseclasses(graphic_group)
getbaseclasses(oval)
getbaseclasses(graphic_text)
getbaseclasses(graphic_shape)
getbaseclasses(graphic_line)
getbaseclasses(graphic_object)
getbaseclasses(drawing_area)
getbaseclasses(polygon)
getbaseclasses(pixel)
getbaseclasses(rounded_rectangle)
getbaseclasses(arc)
getbaseclasses(pixel_map)
getbaseclasses(rectangle)
getbaseclasses(graphic_group)
getbaseclasses(drawing_area)
getbaseclasses(cell)
getbaseclasses(column)
getbaseclasses(table)
getbaseclasses(row)
getbaseclasses(AppleTalk_address)
getbaseclasses(address_specification)
getbaseclasses(Token_Ring_address)
getbaseclasses(FireWire_address)
getbaseclasses(bus_slot)
getbaseclasses(SCSI_address)
getbaseclasses(ADB_address)
getbaseclasses(USB_address)
getbaseclasses(device_specification)
getbaseclasses(LocalTalk_address)
getbaseclasses(IP_address)
getbaseclasses(Ethernet_address)
getbaseclasses(July) getbaseclasses(July)
getbaseclasses(May) getbaseclasses(May)
getbaseclasses(string) getbaseclasses(string)
...@@ -173,96 +258,96 @@ getbaseclasses(Saturday) ...@@ -173,96 +258,96 @@ getbaseclasses(Saturday)
getbaseclasses(September) getbaseclasses(September)
getbaseclasses(file_specification) getbaseclasses(file_specification)
getbaseclasses(text) getbaseclasses(text)
getbaseclasses(window)
getbaseclasses(file)
getbaseclasses(selection_2d_object)
getbaseclasses(alias)
getbaseclasses(application)
getbaseclasses(insertion_point)
getbaseclasses(document)
getbaseclasses(paragraph)
getbaseclasses(character)
getbaseclasses(text_flow)
getbaseclasses(text_style_info)
getbaseclasses(line)
getbaseclasses(word)
getbaseclasses(text)
getbaseclasses(graphic_group)
getbaseclasses(oval)
getbaseclasses(graphic_text)
getbaseclasses(graphic_shape)
getbaseclasses(graphic_line)
getbaseclasses(graphic_object)
getbaseclasses(drawing_area)
getbaseclasses(polygon)
getbaseclasses(pixel)
getbaseclasses(rounded_rectangle)
getbaseclasses(arc)
getbaseclasses(pixel_map)
getbaseclasses(rectangle)
getbaseclasses(graphic_group)
getbaseclasses(drawing_area)
getbaseclasses(cell)
getbaseclasses(column)
getbaseclasses(table)
getbaseclasses(row)
getbaseclasses(AppleTalk_address)
getbaseclasses(address_specification)
getbaseclasses(Token_Ring_address)
getbaseclasses(FireWire_address)
getbaseclasses(bus_slot)
getbaseclasses(SCSI_address)
getbaseclasses(ADB_address)
getbaseclasses(USB_address)
getbaseclasses(device_specification)
getbaseclasses(LocalTalk_address)
getbaseclasses(IP_address)
getbaseclasses(Ethernet_address)
getbaseclasses(small_integer)
getbaseclasses(RGB16_color)
getbaseclasses(version)
getbaseclasses(system_dictionary)
getbaseclasses(color_table)
getbaseclasses(fixed_point)
getbaseclasses(plain_text)
getbaseclasses(type_element_info)
getbaseclasses(location_reference)
getbaseclasses(machine_location)
getbaseclasses(PostScript_picture)
getbaseclasses(point)
getbaseclasses(menu_item)
getbaseclasses(pixel_map_record)
getbaseclasses(application_dictionary)
getbaseclasses(unsigned_integer)
getbaseclasses(menu)
getbaseclasses(fixed_rectangle)
getbaseclasses(long_fixed_rectangle)
getbaseclasses(type_event_info)
getbaseclasses(small_real)
getbaseclasses(type_suite_info)
getbaseclasses(rotation)
getbaseclasses(type_parameter_info)
getbaseclasses(fixed)
getbaseclasses(scrap_styles)
getbaseclasses(long_point)
getbaseclasses(type_class_info)
getbaseclasses(TIFF_picture)
getbaseclasses(RGB96_color)
getbaseclasses(dash_style)
getbaseclasses(extended_real)
getbaseclasses(type_property_info)
getbaseclasses(long_fixed_point)
getbaseclasses(long_rectangle)
getbaseclasses(bounding_rectangle)
getbaseclasses(double_integer)
getbaseclasses(long_fixed)
getbaseclasses(null)
getbaseclasses(target_id)
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cwin' : window,
'file' : file,
'csel' : selection_2d_object,
'alis' : alias,
'capp' : application,
'cins' : insertion_point,
'docu' : document,
'shor' : small_integer,
'tr16' : RGB16_color,
'vers' : version,
'aeut' : system_dictionary,
'clrt' : color_table,
'fpnt' : fixed_point,
'TEXT' : plain_text,
'elin' : type_element_info,
'insl' : location_reference,
'mLoc' : machine_location,
'EPS ' : PostScript_picture,
'QDpt' : point,
'cmen' : menu_item,
'tpmm' : pixel_map_record,
'aete' : application_dictionary,
'magn' : unsigned_integer,
'cmnu' : menu,
'frct' : fixed_rectangle,
'lfrc' : long_fixed_rectangle,
'evin' : type_event_info,
'sing' : small_real,
'suin' : type_suite_info,
'trot' : rotation,
'pmin' : type_parameter_info,
'fixd' : fixed,
'styl' : scrap_styles,
'lpnt' : long_point,
'gcli' : type_class_info,
'TIFF' : TIFF_picture,
'tr96' : RGB96_color,
'tdas' : dash_style,
'exte' : extended_real,
'pinf' : type_property_info,
'lfpt' : long_fixed_point,
'lrct' : long_rectangle,
'qdrt' : bounding_rectangle,
'comp' : double_integer,
'lfxd' : long_fixed,
'null' : null,
'targ' : target_id,
'cpar' : paragraph,
'cha ' : character,
'cflo' : text_flow,
'tsty' : text_style_info,
'clin' : line,
'cwor' : word,
'ctxt' : text,
'cpic' : graphic_group,
'covl' : oval,
'cgtx' : graphic_text,
'cgsh' : graphic_shape,
'glin' : graphic_line,
'cgob' : graphic_object,
'cdrw' : drawing_area,
'cpgn' : polygon,
'cpxl' : pixel,
'crrc' : rounded_rectangle,
'carc' : arc,
'cpix' : pixel_map,
'crec' : rectangle,
'cpic' : graphic_group,
'cdrw' : drawing_area,
'ccel' : cell,
'ccol' : column,
'ctbl' : table,
'crow' : row,
'cat ' : AppleTalk_address,
'cadr' : address_specification,
'ctok' : Token_Ring_address,
'cfw ' : FireWire_address,
'cbus' : bus_slot,
'cscs' : SCSI_address,
'cadb' : ADB_address,
'cusb' : USB_address,
'cdev' : device_specification,
'clt ' : LocalTalk_address,
'cip ' : IP_address,
'cen ' : Ethernet_address,
'jul ' : July, 'jul ' : July,
'may ' : May, 'may ' : May,
'TEXT' : string, 'TEXT' : string,
...@@ -368,102 +453,17 @@ _classdeclarations = { ...@@ -368,102 +453,17 @@ _classdeclarations = {
'sep ' : September, 'sep ' : September,
'fss ' : file_specification, 'fss ' : file_specification,
'ctxt' : text, 'ctxt' : text,
'cwin' : window,
'file' : file,
'csel' : selection_2d_object,
'alis' : alias,
'capp' : application,
'cins' : insertion_point,
'docu' : document,
'cpar' : paragraph,
'cha ' : character,
'cflo' : text_flow,
'tsty' : text_style_info,
'clin' : line,
'cwor' : word,
'ctxt' : text,
'cpic' : graphic_group,
'covl' : oval,
'cgtx' : graphic_text,
'cgsh' : graphic_shape,
'glin' : graphic_line,
'cgob' : graphic_object,
'cdrw' : drawing_area,
'cpgn' : polygon,
'cpxl' : pixel,
'crrc' : rounded_rectangle,
'carc' : arc,
'cpix' : pixel_map,
'crec' : rectangle,
'cpic' : graphic_group,
'cdrw' : drawing_area,
'ccel' : cell,
'ccol' : column,
'ctbl' : table,
'crow' : row,
'cat ' : AppleTalk_address,
'cadr' : address_specification,
'ctok' : Token_Ring_address,
'cfw ' : FireWire_address,
'cbus' : bus_slot,
'cscs' : SCSI_address,
'cadb' : ADB_address,
'cusb' : USB_address,
'cdev' : device_specification,
'clt ' : LocalTalk_address,
'cip ' : IP_address,
'cen ' : Ethernet_address,
'shor' : small_integer,
'tr16' : RGB16_color,
'vers' : version,
'aeut' : system_dictionary,
'clrt' : color_table,
'fpnt' : fixed_point,
'TEXT' : plain_text,
'elin' : type_element_info,
'insl' : location_reference,
'mLoc' : machine_location,
'EPS ' : PostScript_picture,
'QDpt' : point,
'cmen' : menu_item,
'tpmm' : pixel_map_record,
'aete' : application_dictionary,
'magn' : unsigned_integer,
'cmnu' : menu,
'frct' : fixed_rectangle,
'lfrc' : long_fixed_rectangle,
'evin' : type_event_info,
'sing' : small_real,
'suin' : type_suite_info,
'trot' : rotation,
'pmin' : type_parameter_info,
'fixd' : fixed,
'styl' : scrap_styles,
'lpnt' : long_point,
'gcli' : type_class_info,
'TIFF' : TIFF_picture,
'tr96' : RGB96_color,
'tdas' : dash_style,
'exte' : extended_real,
'pinf' : type_property_info,
'lfpt' : long_fixed_point,
'lrct' : long_rectangle,
'qdrt' : bounding_rectangle,
'comp' : double_integer,
'lfxd' : long_fixed,
'null' : null,
'targ' : target_id,
} }
class StdSuites(AppleScript_Suite_Events, class StdSuites(Text_Suite_Events,
Required_Suite_Events, AppleScript_Suite_Events,
Standard_Suite_Events, Standard_Suite_Events,
Text_Suite_Events, Macintosh_Connectivity_Clas_Events,
QuickDraw_Graphics_Suite_Events, QuickDraw_Graphics_Suite_Events,
QuickDraw_Graphics_Suppleme_Events, QuickDraw_Graphics_Suppleme_Events,
Required_Suite_Events,
Table_Suite_Events, Table_Suite_Events,
Macintosh_Connectivity_Clas_Events,
Type_Names_Suite_Events, Type_Names_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'ascr' _signature = 'ascr'
......
...@@ -12,15 +12,17 @@ _code = 'trmx' ...@@ -12,15 +12,17 @@ _code = 'trmx'
class Terminal_Suite_Events: class Terminal_Suite_Events:
def run(self, _no_object=None, _attributes={}, **_arguments): def count(self, _object=None, _attributes={}, **_arguments):
"""run: Run the Terminal application """count: Return the number of elements of a particular class within an object
Required argument: a reference to the objects to be counted
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the number of objects counted
""" """
_code = 'aevt' _code = 'core'
_subcode = 'oapp' _subcode = 'cnte'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -31,15 +33,23 @@ class Terminal_Suite_Events: ...@@ -31,15 +33,23 @@ class Terminal_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def quit(self, _no_object=None, _attributes={}, **_arguments): _argmap_do_script = {
"""quit: Quit the Terminal application 'with_command' : 'cmnd',
'in_' : 'kfil',
}
def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Run a UNIX shell script or command
Required argument: data to be passed to the Terminal application as the command line
Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
Keyword argument in_: the window in which to execute the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'core'
_subcode = 'quit' _subcode = 'dosc'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_do_script)
if _no_object != None: raise TypeError, 'No direct arg expected' _arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -50,17 +60,15 @@ class Terminal_Suite_Events: ...@@ -50,17 +60,15 @@ class Terminal_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def count(self, _object=None, _attributes={}, **_arguments): def quit(self, _no_object=None, _attributes={}, **_arguments):
"""count: Return the number of elements of a particular class within an object """quit: Quit the Terminal application
Required argument: a reference to the objects to be counted
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the number of objects counted
""" """
_code = 'core' _code = 'aevt'
_subcode = 'cnte' _subcode = 'quit'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
...@@ -71,23 +79,15 @@ class Terminal_Suite_Events: ...@@ -71,23 +79,15 @@ class Terminal_Suite_Events:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_do_script = { def run(self, _no_object=None, _attributes={}, **_arguments):
'with_command' : 'cmnd', """run: Run the Terminal application
'in_' : 'kfil',
}
def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Run a UNIX shell script or command
Required argument: data to be passed to the Terminal application as the command line
Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
Keyword argument in_: the window in which to execute the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'aevt'
_subcode = 'dosc' _subcode = 'oapp'
aetools.keysubst(_arguments, self._argmap_do_script) if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
......
...@@ -4,24 +4,24 @@ Resource aete resid 0 Terminal Terminology ...@@ -4,24 +4,24 @@ Resource aete resid 0 Terminal Terminology
""" """
import aetools import aetools
Error = aetools.Error Error = aetools.Error
import Terminal_Suite
import Invisible_Suite import Invisible_Suite
import Terminal_Suite
_code_to_module = { _code_to_module = {
'trmx' : Terminal_Suite,
'tpnm' : Invisible_Suite, 'tpnm' : Invisible_Suite,
'trmx' : Terminal_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
'tpnm' : ('Terminal.Invisible_Suite', 'Invisible_Suite'), 'tpnm' : ('Terminal.Invisible_Suite', 'Invisible_Suite'),
'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
} }
from Terminal_Suite import *
from Invisible_Suite import * from Invisible_Suite import *
from Terminal_Suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
...@@ -42,7 +42,6 @@ import StdSuites ...@@ -42,7 +42,6 @@ import StdSuites
# #
getbaseclasses(window) getbaseclasses(window)
getbaseclasses(application) getbaseclasses(application)
getbaseclasses(application)
getbaseclasses(StdSuites.Type_Names_Suite.small_integer) getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color) getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary) getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary)
...@@ -83,6 +82,7 @@ getbaseclasses(StdSuites.Type_Names_Suite.null) ...@@ -83,6 +82,7 @@ getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.target_id) getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.point) getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(application)
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -90,7 +90,6 @@ getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) ...@@ -90,7 +90,6 @@ getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
_classdeclarations = { _classdeclarations = {
'cwin' : window, 'cwin' : window,
'capp' : application, 'capp' : application,
'capp' : application,
'shor' : StdSuites.Type_Names_Suite.small_integer, 'shor' : StdSuites.Type_Names_Suite.small_integer,
'tr16' : StdSuites.Type_Names_Suite.RGB16_color, 'tr16' : StdSuites.Type_Names_Suite.RGB16_color,
'aeut' : StdSuites.Type_Names_Suite.system_dictionary, 'aeut' : StdSuites.Type_Names_Suite.system_dictionary,
...@@ -131,11 +130,12 @@ _classdeclarations = { ...@@ -131,11 +130,12 @@ _classdeclarations = {
'targ' : StdSuites.Type_Names_Suite.target_id, 'targ' : StdSuites.Type_Names_Suite.target_id,
'QDpt' : StdSuites.Type_Names_Suite.point, 'QDpt' : StdSuites.Type_Names_Suite.point,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
'capp' : application,
} }
class Terminal(Terminal_Suite_Events, class Terminal(Invisible_Suite_Events,
Invisible_Suite_Events, Terminal_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'trmx' _signature = 'trmx'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment