Oops, _propdeclarations and friends are needed: gensuitemodule uses them

to lookup properties declared in base classes. Looking at it I'm not sure
what the official scope if the property codes is, maybe it is only the
(OSA) class in which they are used. But giving them global scope hasn't been
a problem so far.

Regenerated the standard suites, which are now also space-indented.
This commit is contained in:
Jack Jansen 2003-04-12 22:27:11 +00:00
parent 7b01a83488
commit 3576066cad
56 changed files with 13056 additions and 11895 deletions

View file

@ -26,9 +26,9 @@ else:
# end of lines, so don't worry about that. # end of lines, so don't worry about that.
# #
if sys.platform == 'mac': if sys.platform == 'mac':
_MWERKSDIR="Sap:Applications (Mac OS 9):Metrowerks CodeWarrior 7.0:Metrowerks CodeWarrior" _MWERKSDIR="Moes:Applications (Mac OS 9):Metrowerks CodeWarrior 7.0:Metrowerks CodeWarrior"
else: else:
_MWERKSDIR="/Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/" _MWERKSDIR="/Volumes/Moes/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/"
INCLUDEDIR=os.path.join(_MWERKSDIR, "MacOS Support", "Universal", "Interfaces", "CIncludes") INCLUDEDIR=os.path.join(_MWERKSDIR, "MacOS Support", "Universal", "Interfaces", "CIncludes")
# #

View file

@ -987,8 +987,6 @@ class ObjectCompiler:
if self.fp: if self.fp:
self.fp.write("\n_Prop_%s = _Prop_%s\n"%(pname, othername)) self.fp.write("\n_Prop_%s = _Prop_%s\n"%(pname, othername))
else: else:
if self.hasname(pname):
pass
if self.fp: if self.fp:
self.fp.write("class _Prop_%s(aetools.NProperty):\n" % pname) self.fp.write("class _Prop_%s(aetools.NProperty):\n" % pname)
self.fp.write(' """%s - %s """\n' % (ascii(name), ascii(what[1]))) self.fp.write(' """%s - %s """\n' % (ascii(name), ascii(what[1])))
@ -1108,26 +1106,26 @@ class ObjectCompiler:
self.fp.write(" %s : %s,\n" % (`k`, v)) self.fp.write(" %s : %s,\n" % (`k`, v))
self.fp.write("}\n") self.fp.write("}\n")
## self.fp.write("\n_propdeclarations = {\n") self.fp.write("\n_propdeclarations = {\n")
## proplist = self.namemappers[0].getall('property') proplist = self.namemappers[0].getall('property')
## proplist.sort() proplist.sort()
## for k, v in proplist: for k, v in proplist:
## self.fp.write(" %s : _Prop_%s,\n" % (`k`, v)) self.fp.write(" %s : _Prop_%s,\n" % (`k`, v))
## self.fp.write("}\n") self.fp.write("}\n")
##
## self.fp.write("\n_compdeclarations = {\n") self.fp.write("\n_compdeclarations = {\n")
## complist = self.namemappers[0].getall('comparison') complist = self.namemappers[0].getall('comparison')
## complist.sort() complist.sort()
## for k, v in complist: for k, v in complist:
## self.fp.write(" %s : %s,\n" % (`k`, v)) self.fp.write(" %s : %s,\n" % (`k`, v))
## self.fp.write("}\n") self.fp.write("}\n")
##
## self.fp.write("\n_enumdeclarations = {\n") self.fp.write("\n_enumdeclarations = {\n")
## enumlist = self.namemappers[0].getall('enum') enumlist = self.namemappers[0].getall('enum')
## enumlist.sort() enumlist.sort()
## for k, v in enumlist: for k, v in enumlist:
## self.fp.write(" %s : %s,\n" % (`k`, v)) self.fp.write(" %s : %s,\n" % (`k`, v))
## self.fp.write("}\n") self.fp.write("}\n")
def compiledata(data): def compiledata(data):
[type, description, flags] = data [type, description, flags] = data

View file

@ -13,35 +13,35 @@ _code = 'reqd'
from StdSuites.Required_Suite import * from StdSuites.Required_Suite import *
class Required_Events(Required_Suite_Events): class Required_Events(Required_Suite_Events):
_argmap_open = { _argmap_open = {
'converting' : 'Conv', 'converting' : 'Conv',
} }
def open(self, _object, _attributes={}, **_arguments): def open(self, _object, _attributes={}, **_arguments):
"""open: Open the specified object(s) """open: Open the specified object(s)
Required argument: list of objects to open Required argument: list of objects to open
Keyword argument converting: Whether to convert project to latest version (yes/no; default is ask). Keyword argument converting: Whether to convert project to latest version (yes/no; default is ask).
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'odoc' _subcode = 'odoc'
aetools.keysubst(_arguments, self._argmap_open) aetools.keysubst(_arguments, self._argmap_open)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'Conv', _Enum_Conv) aetools.enumsubst(_arguments, 'Conv', _Enum_Conv)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_Enum_Conv = { _Enum_Conv = {
'yes' : 'yes ', # Convert the project if necessary on open 'yes' : 'yes ', # Convert the project if necessary on open
'no' : 'no ', # Do not convert the project if needed on open 'no' : 'no ', # Do not convert the project if needed on open
} }
@ -50,3 +50,13 @@ _Enum_Conv = {
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
'Conv' : _Enum_Conv,
}

View file

@ -13,351 +13,351 @@ _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_close = { _argmap_close = {
'saving' : 'savo', 'saving' : 'savo',
'saving_in' : 'kfil', 'saving_in' : 'kfil',
} }
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
Keyword argument saving: specifies whether or not changes should be saved before closing Keyword argument saving: specifies whether or not changes should be saved before closing
Keyword argument saving_in: the file in which to save the object Keyword argument saving_in: the file in which to save the object
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'clos' _subcode = 'clos'
aetools.keysubst(_arguments, self._argmap_close) aetools.keysubst(_arguments, self._argmap_close)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'savo', _Enum_savo) aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_count = { _argmap_count = {
'each' : 'kocl', 'each' : 'kocl',
} }
def count(self, _object, _attributes={}, **_arguments): def count(self, _object, _attributes={}, **_arguments):
"""count: return the number of elements of a particular class within an object """count: return the number of elements of a particular class within an object
Required argument: the object whose elements are to be counted Required argument: the object whose elements are to be counted
Keyword argument each: the class of the elements to be counted. Keyword 'each' is optional in AppleScript Keyword argument each: the class of the elements to be counted. Keyword 'each' is optional in AppleScript
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the number of elements Returns: the number of elements
""" """
_code = 'core' _code = 'core'
_subcode = 'cnte' _subcode = 'cnte'
aetools.keysubst(_arguments, self._argmap_count) aetools.keysubst(_arguments, self._argmap_count)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_get = { _argmap_get = {
'as' : 'rtyp', 'as' : 'rtyp',
} }
def get(self, _object, _attributes={}, **_arguments): def get(self, _object, _attributes={}, **_arguments):
"""get: get the data for an object """get: get the data for an object
Required argument: the object whose data is to be returned Required argument: the object whose data is to be returned
Keyword argument as: the desired types for the data, in order of preference Keyword argument as: the desired types for the data, in order of preference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: The data from the object Returns: The data from the object
""" """
_code = 'core' _code = 'core'
_subcode = 'getd' _subcode = 'getd'
aetools.keysubst(_arguments, self._argmap_get) aetools.keysubst(_arguments, self._argmap_get)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_make = { _argmap_make = {
'new' : 'kocl', 'new' : 'kocl',
'as' : 'rtyp', 'as' : 'rtyp',
'at' : 'insh', 'at' : 'insh',
'with_data' : 'data', 'with_data' : 'data',
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def make(self, _no_object=None, _attributes={}, **_arguments): def make(self, _no_object=None, _attributes={}, **_arguments):
"""make: make a new element """make: make a new element
Keyword argument new: the class of the new element\xd1keyword 'new' is optional in AppleScript Keyword argument new: the class of the new element\xd1keyword 'new' is optional in AppleScript
Keyword argument as: the desired types for the data, in order of preference Keyword argument as: the desired types for the data, in order of preference
Keyword argument at: the location at which to insert the element Keyword argument at: the location at which to insert the element
Keyword argument with_data: the initial data for the element Keyword argument with_data: the initial data for the element
Keyword argument with_properties: the initial values for the properties of the element Keyword argument with_properties: the initial values for the properties of the element
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: to the new object(s) Returns: to the new object(s)
""" """
_code = 'core' _code = 'core'
_subcode = 'crel' _subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make) aetools.keysubst(_arguments, self._argmap_make)
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def select(self, _object=None, _attributes={}, **_arguments): def select(self, _object=None, _attributes={}, **_arguments):
"""select: select the specified object """select: select the specified object
Required argument: the object to select Required argument: the object to select
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'misc'
_subcode = 'slct' _subcode = 'slct'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_set = { _argmap_set = {
'to' : 'data', 'to' : 'data',
} }
def set(self, _object, _attributes={}, **_arguments): def set(self, _object, _attributes={}, **_arguments):
"""set: set an object's data """set: set an object's data
Required argument: the object to change Required argument: the object to change
Keyword argument to: the new value Keyword argument to: the new value
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'setd' _subcode = 'setd'
aetools.keysubst(_arguments, self._argmap_set) aetools.keysubst(_arguments, self._argmap_set)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - an application program """ """application - an application program """
want = 'capp' want = 'capp'
class _Prop_user_interaction(aetools.NProperty): class _Prop_user_interaction(aetools.NProperty):
"""user interaction - user interaction level """ """user interaction - user interaction level """
which = 'inte' which = 'inte'
want = 'Inte' want = 'Inte'
# element 'cwin' as ['indx', 'name', 'rang'] # element 'cwin' as ['indx', 'name', 'rang']
# element 'docu' as ['indx', 'name', 'rang'] # element 'docu' as ['indx', 'name', 'rang']
class character(aetools.ComponentItem): class character(aetools.ComponentItem):
"""character - a character """ """character - a character """
want = 'cha ' want = 'cha '
class _Prop_length(aetools.NProperty): class _Prop_length(aetools.NProperty):
"""length - length in characters of this object """ """length - length in characters of this object """
which = 'pLen' which = 'pLen'
want = 'long' want = 'long'
class _Prop_offset(aetools.NProperty): class _Prop_offset(aetools.NProperty):
"""offset - offset of a text object from the beginning of the document (first char has offset 1) """ """offset - offset of a text object from the beginning of the document (first char has offset 1) """
which = 'pOff' which = 'pOff'
want = 'long' want = 'long'
class insertion_point(aetools.ComponentItem): class insertion_point(aetools.ComponentItem):
"""insertion point - An insertion location between two objects """ """insertion point - An insertion location between two objects """
want = 'cins' want = 'cins'
class line(aetools.ComponentItem): class line(aetools.ComponentItem):
"""line - lines of text """ """line - lines of text """
want = 'clin' want = 'clin'
class _Prop_index(aetools.NProperty): class _Prop_index(aetools.NProperty):
"""index - index of a line object from the beginning of the document (first line has index 1) """ """index - index of a line object from the beginning of the document (first line has index 1) """
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
# element 'cha ' as ['indx', 'rang', 'rele'] # element 'cha ' as ['indx', 'rang', 'rele']
lines = line lines = line
class selection_2d_object(aetools.ComponentItem): class selection_2d_object(aetools.ComponentItem):
"""selection-object - the selection visible to the user """ """selection-object - the selection visible to the user """
want = 'csel' want = 'csel'
class _Prop_contents(aetools.NProperty): class _Prop_contents(aetools.NProperty):
"""contents - the contents of the selection """ """contents - the contents of the selection """
which = 'pcnt' which = 'pcnt'
want = 'type' want = 'type'
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'clin' as ['indx', 'rang', 'rele'] # element 'clin' as ['indx', 'rang', 'rele']
# element 'ctxt' as ['rang'] # element 'ctxt' as ['rang']
class text(aetools.ComponentItem): class text(aetools.ComponentItem):
"""text - Text """ """text - Text """
want = 'ctxt' want = 'ctxt'
# element 'cha ' as ['indx', 'rele', 'rang'] # element 'cha ' as ['indx', 'rele', 'rang']
# element 'cins' as ['rele'] # element 'cins' as ['rele']
# element 'clin' as ['indx', 'rang', 'rele'] # element 'clin' as ['indx', 'rang', 'rele']
# element 'ctxt' as ['rang'] # element 'ctxt' as ['rang']
class window(aetools.ComponentItem): class window(aetools.ComponentItem):
"""window - A window """ """window - A window """
want = 'cwin' want = 'cwin'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window """ """bounds - the boundary rectangle for the window """
which = 'pbnd' which = 'pbnd'
want = 'qdrt' want = 'qdrt'
class _Prop_document(aetools.NProperty): class _Prop_document(aetools.NProperty):
"""document - the document that owns this window """ """document - the document that owns this window """
which = 'docu' which = 'docu'
want = 'docu' want = 'docu'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the title of the window """ """name - the title of the window """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
class _Prop_position(aetools.NProperty): class _Prop_position(aetools.NProperty):
"""position - upper left coordinates of window """ """position - upper left coordinates of window """
which = 'ppos' which = 'ppos'
want = 'QDpt' want = 'QDpt'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - is the window visible? """ """visible - is the window visible? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class _Prop_zoomed(aetools.NProperty): class _Prop_zoomed(aetools.NProperty):
"""zoomed - Is the window zoomed? """ """zoomed - Is the window zoomed? """
which = 'pzum' which = 'pzum'
want = 'bool' want = 'bool'
windows = window windows = window
class document(aetools.ComponentItem): class document(aetools.ComponentItem):
"""document - a document """ """document - a document """
want = 'docu' want = 'docu'
class _Prop_file_permissions(aetools.NProperty): class _Prop_file_permissions(aetools.NProperty):
"""file permissions - the file permissions for the document """ """file permissions - the file permissions for the document """
which = 'PERM' which = 'PERM'
want = 'PERM' want = 'PERM'
class _Prop_kind(aetools.NProperty): class _Prop_kind(aetools.NProperty):
"""kind - the kind of document """ """kind - the kind of document """
which = 'DKND' which = 'DKND'
want = 'DKND' want = 'DKND'
class _Prop_location(aetools.NProperty): class _Prop_location(aetools.NProperty):
"""location - the file of the document """ """location - the file of the document """
which = 'FILE' which = 'FILE'
want = 'fss ' want = 'fss '
class _Prop_window(aetools.NProperty): class _Prop_window(aetools.NProperty):
"""window - the window of the document. """ """window - the window of the document. """
which = 'cwin' which = 'cwin'
want = 'cwin' want = 'cwin'
documents = document documents = document
class files(aetools.ComponentItem): class files(aetools.ComponentItem):
"""files - Every file """ """files - Every file """
want = 'file' want = 'file'
file = files file = files
application._superclassnames = [] application._superclassnames = []
application._privpropdict = { application._privpropdict = {
'user_interaction' : _Prop_user_interaction, 'user_interaction' : _Prop_user_interaction,
} }
application._privelemdict = { application._privelemdict = {
'document' : document, 'document' : document,
'window' : window, 'window' : window,
} }
character._superclassnames = [] character._superclassnames = []
character._privpropdict = { character._privpropdict = {
'length' : _Prop_length, 'length' : _Prop_length,
'offset' : _Prop_offset, 'offset' : _Prop_offset,
} }
character._privelemdict = { character._privelemdict = {
} }
insertion_point._superclassnames = [] insertion_point._superclassnames = []
insertion_point._privpropdict = { insertion_point._privpropdict = {
'length' : _Prop_length, 'length' : _Prop_length,
'offset' : _Prop_offset, 'offset' : _Prop_offset,
} }
insertion_point._privelemdict = { insertion_point._privelemdict = {
} }
line._superclassnames = [] line._superclassnames = []
line._privpropdict = { line._privpropdict = {
'index' : _Prop_index, 'index' : _Prop_index,
'length' : _Prop_length, 'length' : _Prop_length,
'offset' : _Prop_offset, 'offset' : _Prop_offset,
} }
line._privelemdict = { line._privelemdict = {
'character' : character, 'character' : character,
} }
selection_2d_object._superclassnames = [] selection_2d_object._superclassnames = []
selection_2d_object._privpropdict = { selection_2d_object._privpropdict = {
'contents' : _Prop_contents, 'contents' : _Prop_contents,
'length' : _Prop_length, 'length' : _Prop_length,
'offset' : _Prop_offset, 'offset' : _Prop_offset,
} }
selection_2d_object._privelemdict = { selection_2d_object._privelemdict = {
'character' : character, 'character' : character,
'line' : line, 'line' : line,
'text' : text, 'text' : text,
} }
text._superclassnames = [] text._superclassnames = []
text._privpropdict = { text._privpropdict = {
'length' : _Prop_length, 'length' : _Prop_length,
'offset' : _Prop_offset, 'offset' : _Prop_offset,
} }
text._privelemdict = { text._privelemdict = {
'character' : character, 'character' : character,
'insertion_point' : insertion_point, 'insertion_point' : insertion_point,
'line' : line, 'line' : line,
'text' : text, 'text' : text,
} }
window._superclassnames = [] window._superclassnames = []
window._privpropdict = { window._privpropdict = {
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'document' : _Prop_document, 'document' : _Prop_document,
'index' : _Prop_index, 'index' : _Prop_index,
'name' : _Prop_name, 'name' : _Prop_name,
'position' : _Prop_position, 'position' : _Prop_position,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
'zoomed' : _Prop_zoomed, 'zoomed' : _Prop_zoomed,
} }
window._privelemdict = { window._privelemdict = {
} }
document._superclassnames = [] document._superclassnames = []
document._privpropdict = { document._privpropdict = {
'file_permissions' : _Prop_file_permissions, 'file_permissions' : _Prop_file_permissions,
'index' : _Prop_index, 'index' : _Prop_index,
'kind' : _Prop_kind, 'kind' : _Prop_kind,
'location' : _Prop_location, 'location' : _Prop_location,
'name' : _Prop_name, 'name' : _Prop_name,
'window' : _Prop_window, 'window' : _Prop_window,
} }
document._privelemdict = { document._privelemdict = {
} }
@ -371,13 +371,37 @@ files._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
'cha ' : character, 'cha ' : character,
'cins' : insertion_point, 'cins' : insertion_point,
'clin' : line, 'clin' : line,
'csel' : selection_2d_object, 'csel' : selection_2d_object,
'ctxt' : text, 'ctxt' : text,
'cwin' : window, 'cwin' : window,
'docu' : document, 'docu' : document,
'file' : files, 'file' : files,
}
_propdeclarations = {
'DKND' : _Prop_kind,
'FILE' : _Prop_location,
'PERM' : _Prop_file_permissions,
'cwin' : _Prop_window,
'docu' : _Prop_document,
'inte' : _Prop_user_interaction,
'pLen' : _Prop_length,
'pOff' : _Prop_offset,
'pbnd' : _Prop_bounds,
'pcnt' : _Prop_contents,
'pidx' : _Prop_index,
'pnam' : _Prop_name,
'ppos' : _Prop_position,
'pvis' : _Prop_visible,
'pzum' : _Prop_zoomed,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -10,19 +10,19 @@ import Required
_code_to_module = { _code_to_module = {
'CWIE' : CodeWarrior_suite, 'CWIE' : CodeWarrior_suite,
'CoRe' : Standard_Suite, 'CoRe' : Standard_Suite,
'MMPR' : Metrowerks_Shell_Suite, 'MMPR' : Metrowerks_Shell_Suite,
'reqd' : Required, 'reqd' : Required,
} }
_code_to_fullname = { _code_to_fullname = {
'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'), 'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'),
'CoRe' : ('CodeWarrior.Standard_Suite', 'Standard_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'), 'reqd' : ('CodeWarrior.Required', 'Required'),
} }
from CodeWarrior_suite import * from CodeWarrior_suite import *
@ -31,31 +31,22 @@ from Metrowerks_Shell_Suite import *
from Required import * from Required import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
v._propdict = {} v._propdict = {}
v._elemdict = {} v._elemdict = {}
for superclassname in getattr(v, '_superclassnames', []): for superclassname in getattr(v, '_superclassnames', []):
superclass = eval(superclassname) superclass = eval(superclassname)
getbaseclasses(superclass) getbaseclasses(superclass)
v._propdict.update(getattr(superclass, '_propdict', {})) v._propdict.update(getattr(superclass, '_propdict', {}))
v._elemdict.update(getattr(superclass, '_elemdict', {})) v._elemdict.update(getattr(superclass, '_elemdict', {}))
v._propdict.update(getattr(v, '_privpropdict', {})) v._propdict.update(getattr(v, '_privpropdict', {}))
v._elemdict.update(getattr(v, '_privelemdict', {})) v._elemdict.update(getattr(v, '_privelemdict', {}))
import StdSuites 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(single_class_browser)
getbaseclasses(project_document) getbaseclasses(project_document)
getbaseclasses(symbol_browser) getbaseclasses(symbol_browser)
@ -109,82 +100,91 @@ 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)
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cha ' : character, '1BRW' : single_class_browser,
'ctxt' : text, 'PRJD' : project_document,
'cwin' : window, 'SYMB' : symbol_browser,
'file' : file, 'EDIT' : editor_document,
'clin' : line, 'COMP' : file_compare_document,
'csel' : selection_2d_object, 'BROW' : class_browser,
'capp' : application, 'SBTG' : subtarget,
'cins' : insertion_point, 'MSSG' : message_document,
'docu' : document, 'INSP' : project_inspector,
'1BRW' : single_class_browser, 'TXTD' : text_document,
'PRJD' : project_document, 'CTLG' : catalog_document,
'SYMB' : symbol_browser, 'HIER' : class_hierarchy,
'EDIT' : editor_document, 'TRGT' : target,
'COMP' : file_compare_document, 'PRGS' : build_progress_document,
'BROW' : class_browser, 'SRCF' : target_file,
'SBTG' : subtarget, 'TOOL' : ToolServer_worksheet,
'MSSG' : message_document, '1HIR' : single_class_hierarchy,
'INSP' : project_inspector, 'FMap' : File_Mapping,
'TXTD' : text_document, 'Cata' : browser_catalog,
'CTLG' : catalog_document, 'BSTG' : Build_Settings,
'HIER' : class_hierarchy, 'SrcF' : ProjectFile,
'TRGT' : target, 'BRKW' : Browser_Coloring,
'PRGS' : build_progress_document, 'ErrM' : Error_Information,
'SRCF' : target_file, 'VCSs' : VCS_Setup,
'TOOL' : ToolServer_worksheet, 'EDTR' : Editor,
'1HIR' : single_class_hierarchy, 'SHFL' : Shielded_Folders,
'FMap' : File_Mapping, 'SFit' : Shielded_Folder,
'Cata' : browser_catalog, 'CUKW' : Custom_Keywords,
'BSTG' : Build_Settings, 'PInf' : Path_Information,
'SrcF' : ProjectFile, 'FLMP' : File_Mappings,
'BRKW' : Browser_Coloring, 'Seg ' : Segment,
'ErrM' : Error_Information, 'DbTG' : Debugger_Target,
'VCSs' : VCS_Setup, 'FDef' : Function_Information,
'EDTR' : Editor, 'PATH' : Access_Paths,
'SHFL' : Shielded_Folders, 'GXTR' : Extras,
'SFit' : Shielded_Folder, 'DbWN' : Debugger_Windowing,
'CUKW' : Custom_Keywords, 'GSTs' : Global_Source_Trees,
'PInf' : Path_Information, 'SNTX' : Syntax_Coloring,
'FLMP' : File_Mappings, 'BsCl' : base_class,
'Seg ' : Segment, 'RlPt' : Relative_Path,
'DbTG' : Debugger_Target, 'TARG' : Target_Settings,
'FDef' : Function_Information, 'EnvV' : Environment_Variable,
'PATH' : Access_Paths, 'SrcT' : Source_Tree,
'GXTR' : Extras, 'DbGL' : Debugger_Global,
'DbWN' : Debugger_Windowing, 'MbFn' : member_function,
'GSTs' : Global_Source_Trees, 'RSTG' : Runtime_Settings,
'SNTX' : Syntax_Coloring, 'PSTG' : Plugin_Settings,
'BsCl' : base_class, 'DtMb' : data_member,
'RlPt' : Relative_Path, 'LXTR' : Build_Extras,
'TARG' : Target_Settings, 'mFNT' : Font,
'EnvV' : Environment_Variable, 'TSTs' : Target_Source_Trees,
'SrcT' : Source_Tree, 'DbDS' : Debugger_Display,
'DbGL' : Debugger_Global, 'Clas' : class_,
'MbFn' : member_function, 'cha ' : character,
'RSTG' : Runtime_Settings, 'ctxt' : text,
'PSTG' : Plugin_Settings, 'cwin' : window,
'DtMb' : data_member, 'file' : file,
'LXTR' : Build_Extras, 'clin' : line,
'mFNT' : Font, 'csel' : selection_2d_object,
'TSTs' : Target_Source_Trees, 'capp' : application,
'DbDS' : Debugger_Display, 'cins' : insertion_point,
'Clas' : class_, 'docu' : document,
} }
class CodeWarrior(CodeWarrior_suite_Events, class CodeWarrior(CodeWarrior_suite_Events,
Standard_Suite_Events, Standard_Suite_Events,
Metrowerks_Shell_Suite_Events, Metrowerks_Shell_Suite_Events,
Required_Events, Required_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'CWIE' _signature = 'CWIE'
_moduleName = 'CodeWarrior' _moduleName = 'CodeWarrior'

View file

@ -12,72 +12,72 @@ _code = 'MSIE'
class Microsoft_Internet_Explorer_Events: class Microsoft_Internet_Explorer_Events:
def GetSource(self, _object=None, _attributes={}, **_arguments): def GetSource(self, _object=None, _attributes={}, **_arguments):
"""GetSource: Get the HTML source of a browser window """GetSource: Get the HTML source of a browser window
Required argument: Window Identifier of window from which to get the source. No value means get the source from the frontmost window. Required argument: Window Identifier of window from which to get the source. No value means get the source from the frontmost window.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'TEXT' Returns: undocumented, typecode 'TEXT'
""" """
_code = 'MSIE' _code = 'MSIE'
_subcode = 'SORC' _subcode = 'SORC'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments): def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments):
"""PrintBrowserWindow: Print contents of browser window (HTML) """PrintBrowserWindow: Print contents of browser window (HTML)
Required argument: Window Identifier of the window to print. No value means print the frontmost browser window. Required argument: Window Identifier of the window to print. No value means print the frontmost browser window.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'misc'
_subcode = 'pWND' _subcode = 'pWND'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_do_script = { _argmap_do_script = {
'window' : 'WIND', 'window' : 'WIND',
} }
def do_script(self, _object, _attributes={}, **_arguments): def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Execute script commands """do script: Execute script commands
Required argument: JavaScript text to execute 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 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 Returns: Return value
""" """
_code = 'misc' _code = 'misc'
_subcode = 'dosc' _subcode = 'dosc'
aetools.keysubst(_arguments, self._argmap_do_script) aetools.keysubst(_arguments, self._argmap_do_script)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -85,3 +85,12 @@ class Microsoft_Internet_Explorer_Events:
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -12,25 +12,25 @@ _code = 'MOSS'
class Netscape_Suite_Events: class Netscape_Suite_Events:
def Open_bookmark(self, _object=None, _attributes={}, **_arguments): def Open_bookmark(self, _object=None, _attributes={}, **_arguments):
"""Open bookmark: Opens a bookmark file """Open bookmark: Opens a bookmark file
Required argument: If not available, reloads the current bookmark file 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 = 'book' _subcode = 'book'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -38,3 +38,12 @@ class Netscape_Suite_Events:
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -13,83 +13,83 @@ _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 open(self, _object, _attributes={}, **_arguments): def open(self, _object, _attributes={}, **_arguments):
"""open: Open documents """open: Open 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 = 'odoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def print_(self, _object, _attributes={}, **_arguments): def print_(self, _object, _attributes={}, **_arguments):
"""print: Print 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 = 'pdoc' _subcode = 'pdoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def quit(self, _no_object=None, _attributes={}, **_arguments): def quit(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit application """quit: Quit application
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'quit' _subcode = 'quit'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def run(self, _no_object=None, _attributes={}, **_arguments): def run(self, _no_object=None, _attributes={}, **_arguments):
"""run: """run:
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'oapp' _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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -97,3 +97,12 @@ class Required_Suite_Events(Required_Suite_Events):
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -12,43 +12,43 @@ _code = '****'
class Standard_Suite_Events: class Standard_Suite_Events:
_argmap_get = { _argmap_get = {
'as' : 'rtyp', 'as' : 'rtyp',
} }
def get(self, _object, _attributes={}, **_arguments): def get(self, _object, _attributes={}, **_arguments):
"""get: """get:
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument as: undocumented, typecode 'type' Keyword argument as: undocumented, typecode 'type'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
""" """
_code = 'core' _code = 'core'
_subcode = 'getd' _subcode = 'getd'
aetools.keysubst(_arguments, self._argmap_get) aetools.keysubst(_arguments, self._argmap_get)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - An application program """ """application - An application program """
want = 'capp' want = 'capp'
class _Prop_selected_text(aetools.NProperty): class _Prop_selected_text(aetools.NProperty):
"""selected text - the selected text """ """selected text - the selected text """
which = 'stxt' which = 'stxt'
want = 'TEXT' want = 'TEXT'
application._superclassnames = [] application._superclassnames = []
application._privpropdict = { application._privpropdict = {
'selected_text' : _Prop_selected_text, 'selected_text' : _Prop_selected_text,
} }
application._privelemdict = { application._privelemdict = {
} }
@ -57,5 +57,15 @@ application._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
}
_propdeclarations = {
'stxt' : _Prop_selected_text,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,30 +12,30 @@ _code = 'GURL'
class URL_Suite_Events: class URL_Suite_Events:
_argmap_GetURL = { _argmap_GetURL = {
'to' : 'dest', 'to' : 'dest',
} }
def GetURL(self, _object, _attributes={}, **_arguments): def GetURL(self, _object, _attributes={}, **_arguments):
"""GetURL: Open the URL (and optionally save it to disk) """GetURL: Open the URL (and optionally save it to disk)
Required argument: URL to open Required argument: URL to open
Keyword argument to: File into which to save resource located at URL. Keyword argument to: File into which to save resource located at URL.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'GURL' _code = 'GURL'
_subcode = 'GURL' _subcode = 'GURL'
aetools.keysubst(_arguments, self._argmap_GetURL) aetools.keysubst(_arguments, self._argmap_GetURL)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -43,3 +43,12 @@ class URL_Suite_Events:
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -12,202 +12,202 @@ _code = 'WWW!'
class Web_Browser_Suite_Events: class Web_Browser_Suite_Events:
def Activate(self, _object=None, _attributes={}, **_arguments): def Activate(self, _object=None, _attributes={}, **_arguments):
"""Activate: Activate Internet Explorer and optionally select window designated by Window Identifier. """Activate: Activate Internet Explorer and optionally select window designated by Window Identifier.
Required argument: Window Identifier Required argument: Window Identifier
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Window Identifier of window to activate Returns: Window Identifier of window to activate
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'ACTV' _subcode = 'ACTV'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def CloseAllWindows(self, _no_object=None, _attributes={}, **_arguments): def CloseAllWindows(self, _no_object=None, _attributes={}, **_arguments):
"""CloseAllWindows: Closes all windows """CloseAllWindows: Closes all windows
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Success Returns: Success
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'CLSA' _subcode = 'CLSA'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_CloseWindow = { _argmap_CloseWindow = {
'ID' : 'WIND', 'ID' : 'WIND',
'Title' : 'TITL', 'Title' : 'TITL',
} }
def CloseWindow(self, _no_object=None, _attributes={}, **_arguments): def CloseWindow(self, _no_object=None, _attributes={}, **_arguments):
"""CloseWindow: Close the window specified by either Window Identifier or Title. If no parameter is specified, close the top window. """CloseWindow: Close the window specified by either Window Identifier or Title. If no parameter is specified, close the top window.
Keyword argument ID: ID of the window to close. (Can use -1 for top window) Keyword argument ID: ID of the window to close. (Can use -1 for top window)
Keyword argument Title: Title of the window to close Keyword argument Title: Title of the window to close
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Success Returns: Success
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'CLOS' _subcode = 'CLOS'
aetools.keysubst(_arguments, self._argmap_CloseWindow) aetools.keysubst(_arguments, self._argmap_CloseWindow)
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def GetWindowInfo(self, _object, _attributes={}, **_arguments): def GetWindowInfo(self, _object, _attributes={}, **_arguments):
"""GetWindowInfo: Returns a window info record (URL/Title) for the specified window. """GetWindowInfo: Returns a window info record (URL/Title) for the specified window.
Required argument: Window Identifier of the window Required argument: Window Identifier of the window
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Returns:
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'WNFO' _subcode = 'WNFO'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def ListWindows(self, _no_object=None, _attributes={}, **_arguments): def ListWindows(self, _no_object=None, _attributes={}, **_arguments):
"""ListWindows: Returns list of Window Identifiers for all open windows. """ListWindows: Returns list of Window Identifiers for all open windows.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list' Returns: undocumented, typecode 'list'
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'LSTW' _subcode = 'LSTW'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_OpenURL = { _argmap_OpenURL = {
'to' : 'INTO', 'to' : 'INTO',
'toWindow' : 'WIND', 'toWindow' : 'WIND',
'Flags' : 'FLGS', 'Flags' : 'FLGS',
'FormData' : 'POST', 'FormData' : 'POST',
'MIME_Type' : 'MIME', 'MIME_Type' : 'MIME',
} }
def OpenURL(self, _object, _attributes={}, **_arguments): def OpenURL(self, _object, _attributes={}, **_arguments):
"""OpenURL: Retrieves URL off the Web. """OpenURL: Retrieves URL off the Web.
Required argument: Fully-qualified URL Required argument: Fully-qualified URL
Keyword argument to: Target file for saving downloaded data 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 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 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 FormData: data to post
Keyword argument MIME_Type: MIME type of data being posted Keyword argument MIME_Type: MIME type of data being posted
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'OURL' _subcode = 'OURL'
aetools.keysubst(_arguments, self._argmap_OpenURL) aetools.keysubst(_arguments, self._argmap_OpenURL)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_ParseAnchor = { _argmap_ParseAnchor = {
'withURL' : 'RELA', 'withURL' : 'RELA',
} }
def ParseAnchor(self, _object, _attributes={}, **_arguments): def ParseAnchor(self, _object, _attributes={}, **_arguments):
"""ParseAnchor: Combines a base URL and a relative URL to produce a fully-qualified URL """ParseAnchor: Combines a base URL and a relative URL to produce a fully-qualified URL
Required argument: Base URL Required argument: Base URL
Keyword argument withURL: Relative URL that is combined with the Base URL (in the direct object) to produce a fully-qualified URL. Keyword argument withURL: Relative URL that is combined with the Base URL (in the direct object) to produce a fully-qualified URL.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Fully-qualified URL Returns: Fully-qualified URL
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'PRSA' _subcode = 'PRSA'
aetools.keysubst(_arguments, self._argmap_ParseAnchor) aetools.keysubst(_arguments, self._argmap_ParseAnchor)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_ShowFile = { _argmap_ShowFile = {
'MIME_Type' : 'MIME', 'MIME_Type' : 'MIME',
'Window_Identifier' : 'WIND', 'Window_Identifier' : 'WIND',
'URL' : 'URL ', 'URL' : 'URL ',
} }
def ShowFile(self, _object, _attributes={}, **_arguments): def ShowFile(self, _object, _attributes={}, **_arguments):
"""ShowFile: FileSpec containing data of specified MIME type to be rendered in window specified by Window Identifier. """ShowFile: FileSpec containing data of specified MIME type to be rendered in window specified by Window Identifier.
Required argument: The file Required argument: The file
Keyword argument MIME_Type: MIME type 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 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 URL: URL that allows this document to be reloaded.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'SHWF' _subcode = 'SHWF'
aetools.keysubst(_arguments, self._argmap_ShowFile) aetools.keysubst(_arguments, self._argmap_ShowFile)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -215,3 +215,12 @@ class Web_Browser_Suite_Events:
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -12,23 +12,23 @@ import Required_Suite
_code_to_module = { _code_to_module = {
'****' : Standard_Suite, '****' : Standard_Suite,
'GURL' : URL_Suite, 'GURL' : URL_Suite,
'MOSS' : Netscape_Suite, 'MOSS' : Netscape_Suite,
'MSIE' : Microsoft_Internet_Explorer, 'MSIE' : Microsoft_Internet_Explorer,
'WWW!' : Web_Browser_Suite, 'WWW!' : Web_Browser_Suite,
'reqd' : Required_Suite, 'reqd' : Required_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'****' : ('Explorer.Standard_Suite', 'Standard_Suite'), '****' : ('Explorer.Standard_Suite', 'Standard_Suite'),
'GURL' : ('Explorer.URL_Suite', 'URL_Suite'), 'GURL' : ('Explorer.URL_Suite', 'URL_Suite'),
'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'), 'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'),
'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'), 'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'),
'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'), 'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'),
'reqd' : ('Explorer.Required_Suite', 'Required_Suite'), 'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
} }
from Standard_Suite import * from Standard_Suite import *
@ -39,16 +39,16 @@ from Web_Browser_Suite import *
from Required_Suite import * from Required_Suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
v._propdict = {} v._propdict = {}
v._elemdict = {} v._elemdict = {}
for superclassname in getattr(v, '_superclassnames', []): for superclassname in getattr(v, '_superclassnames', []):
superclass = eval(superclassname) superclass = eval(superclassname)
getbaseclasses(superclass) getbaseclasses(superclass)
v._propdict.update(getattr(superclass, '_propdict', {})) v._propdict.update(getattr(superclass, '_propdict', {}))
v._elemdict.update(getattr(superclass, '_elemdict', {})) v._elemdict.update(getattr(superclass, '_elemdict', {}))
v._propdict.update(getattr(v, '_privpropdict', {})) v._propdict.update(getattr(v, '_privpropdict', {}))
v._elemdict.update(getattr(v, '_privelemdict', {})) v._elemdict.update(getattr(v, '_privelemdict', {}))
import StdSuites import StdSuites
@ -61,18 +61,18 @@ getbaseclasses(application)
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
} }
class Explorer(Standard_Suite_Events, class Explorer(Standard_Suite_Events,
URL_Suite_Events, URL_Suite_Events,
Netscape_Suite_Events, Netscape_Suite_Events,
Microsoft_Internet_Explorer_Events, Microsoft_Internet_Explorer_Events,
Web_Browser_Suite_Events, Web_Browser_Suite_Events,
Required_Suite_Events, Required_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'MSIE' _signature = 'MSIE'
_moduleName = 'Explorer' _moduleName = 'Explorer'

View file

@ -12,44 +12,44 @@ _code = 'fndr'
class Containers_and_folders_Events: class Containers_and_folders_Events:
pass pass
class disk(aetools.ComponentItem): class disk(aetools.ComponentItem):
"""disk - A disk """ """disk - A disk """
want = 'cdis' want = 'cdis'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the container class """ """<Inheritance> - inherits some of its properties from the container class """
which = 'c@#^' which = 'c@#^'
want = 'ctnr' want = 'ctnr'
class _Prop_capacity(aetools.NProperty): class _Prop_capacity(aetools.NProperty):
"""capacity - the total number of bytes (free or used) on the disk """ """capacity - the total number of bytes (free or used) on the disk """
which = 'capa' which = 'capa'
want = 'comp' want = 'comp'
class _Prop_ejectable(aetools.NProperty): class _Prop_ejectable(aetools.NProperty):
"""ejectable - Can the media be ejected (floppies, CD's, and so on)? """ """ejectable - Can the media be ejected (floppies, CD's, and so on)? """
which = 'isej' which = 'isej'
want = 'bool' want = 'bool'
class _Prop_format(aetools.NProperty): class _Prop_format(aetools.NProperty):
"""format - the filesystem format of this disk """ """format - the filesystem format of this disk """
which = 'dfmt' which = 'dfmt'
want = 'edfm' want = 'edfm'
class _Prop_free_space(aetools.NProperty): class _Prop_free_space(aetools.NProperty):
"""free space - the number of free bytes left on the disk """ """free space - the number of free bytes left on the disk """
which = 'frsp' which = 'frsp'
want = 'comp' want = 'comp'
class _Prop_ignore_privileges(aetools.NProperty): class _Prop_ignore_privileges(aetools.NProperty):
"""ignore privileges - Ignore permissions on this disk? """ """ignore privileges - Ignore permissions on this disk? """
which = 'igpr' which = 'igpr'
want = 'bool' want = 'bool'
class _Prop_local_volume(aetools.NProperty): class _Prop_local_volume(aetools.NProperty):
"""local volume - Is the media a local volume (as opposed to a file server)? """ """local volume - Is the media a local volume (as opposed to a file server)? """
which = 'isrv' which = 'isrv'
want = 'bool' want = 'bool'
class _Prop_startup(aetools.NProperty): class _Prop_startup(aetools.NProperty):
"""startup - Is this disk the boot disk? """ """startup - Is this disk the boot disk? """
which = 'istd' which = 'istd'
want = 'bool' want = 'bool'
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
# element 'appf' as ['indx', 'name', 'ID '] # element 'appf' as ['indx', 'name', 'ID ']
# element 'cfol' as ['indx', 'name', 'ID '] # element 'cfol' as ['indx', 'name', 'ID ']
@ -64,8 +64,8 @@ class _Prop_startup(aetools.NProperty):
disks = disk disks = disk
class desktop_2d_object(aetools.ComponentItem): class desktop_2d_object(aetools.ComponentItem):
"""desktop-object - Desktop-object is the class of the \xd2desktop\xd3 object """ """desktop-object - Desktop-object is the class of the \xd2desktop\xd3 object """
want = 'cdsk' want = 'cdsk'
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
# element 'appf' as ['indx', 'name', 'ID '] # element 'appf' as ['indx', 'name', 'ID ']
# element 'cdis' as ['indx', 'name'] # element 'cdis' as ['indx', 'name']
@ -79,8 +79,8 @@ class desktop_2d_object(aetools.ComponentItem):
# element 'pack' as ['indx', 'name'] # element 'pack' as ['indx', 'name']
class folder(aetools.ComponentItem): class folder(aetools.ComponentItem):
"""folder - A folder """ """folder - A folder """
want = 'cfol' want = 'cfol'
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
# element 'appf' as ['indx', 'name', 'ID '] # element 'appf' as ['indx', 'name', 'ID ']
# element 'cfol' as ['indx', 'name', 'ID '] # element 'cfol' as ['indx', 'name', 'ID ']
@ -95,28 +95,28 @@ class folder(aetools.ComponentItem):
folders = folder folders = folder
class container(aetools.ComponentItem): class container(aetools.ComponentItem):
"""container - An item that contains other items """ """container - An item that contains other items """
want = 'ctnr' want = 'ctnr'
class _Prop_completely_expanded(aetools.NProperty): class _Prop_completely_expanded(aetools.NProperty):
"""completely expanded - (NOT AVAILABLE YET) Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists) """ """completely expanded - (NOT AVAILABLE YET) Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists) """
which = 'pexc' which = 'pexc'
want = 'bool' want = 'bool'
class _Prop_container_window(aetools.NProperty): class _Prop_container_window(aetools.NProperty):
"""container window - the container window for this folder """ """container window - the container window for this folder """
which = 'cwnd' which = 'cwnd'
want = 'obj ' want = 'obj '
class _Prop_entire_contents(aetools.NProperty): class _Prop_entire_contents(aetools.NProperty):
"""entire contents - the entire contents of the container, including the contents of its children """ """entire contents - the entire contents of the container, including the contents of its children """
which = 'ects' which = 'ects'
want = 'obj ' want = 'obj '
class _Prop_expandable(aetools.NProperty): class _Prop_expandable(aetools.NProperty):
"""expandable - (NOT AVAILABLE YET) Is the container capable of being expanded as an outline? """ """expandable - (NOT AVAILABLE YET) Is the container capable of being expanded as an outline? """
which = 'pexa' which = 'pexa'
want = 'bool' want = 'bool'
class _Prop_expanded(aetools.NProperty): class _Prop_expanded(aetools.NProperty):
"""expanded - (NOT AVAILABLE YET) Is the container opened as an outline? (can only be set for containers viewed as lists) """ """expanded - (NOT AVAILABLE YET) Is the container opened as an outline? (can only be set for containers viewed as lists) """
which = 'pexp' which = 'pexp'
want = 'bool' want = 'bool'
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
# element 'appf' as ['indx', 'name', 'ID '] # element 'appf' as ['indx', 'name', 'ID ']
# element 'cfol' as ['indx', 'name', 'ID '] # element 'cfol' as ['indx', 'name', 'ID ']
@ -131,12 +131,12 @@ class _Prop_expanded(aetools.NProperty):
containers = container containers = container
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'
class _Prop_warns_before_emptying(aetools.NProperty): class _Prop_warns_before_emptying(aetools.NProperty):
"""warns before emptying - Display a dialog when emptying the trash? """ """warns before emptying - Display a dialog when emptying the trash? """
which = 'warn' which = 'warn'
want = 'bool' want = 'bool'
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
# element 'appf' as ['indx', 'name', 'ID '] # element 'appf' as ['indx', 'name', 'ID ']
# element 'cfol' as ['indx', 'name', 'ID '] # element 'cfol' as ['indx', 'name', 'ID ']
@ -151,106 +151,129 @@ disk._superclassnames = ['container']
import Files import Files
import Finder_items import Finder_items
disk._privpropdict = { disk._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'capacity' : _Prop_capacity, 'capacity' : _Prop_capacity,
'ejectable' : _Prop_ejectable, 'ejectable' : _Prop_ejectable,
'format' : _Prop_format, 'format' : _Prop_format,
'free_space' : _Prop_free_space, 'free_space' : _Prop_free_space,
'ignore_privileges' : _Prop_ignore_privileges, 'ignore_privileges' : _Prop_ignore_privileges,
'local_volume' : _Prop_local_volume, 'local_volume' : _Prop_local_volume,
'startup' : _Prop_startup, 'startup' : _Prop_startup,
} }
disk._privelemdict = { disk._privelemdict = {
'alias_file' : Files.alias_file, 'alias_file' : Files.alias_file,
'application_file' : Files.application_file, 'application_file' : Files.application_file,
'clipping' : Files.clipping, 'clipping' : Files.clipping,
'container' : container, 'container' : container,
'document_file' : Files.document_file, 'document_file' : Files.document_file,
'file' : Files.file, 'file' : Files.file,
'folder' : folder, 'folder' : folder,
'internet_location_file' : Files.internet_location_file, 'internet_location_file' : Files.internet_location_file,
'item' : Finder_items.item, 'item' : Finder_items.item,
'package' : Files.package, 'package' : Files.package,
} }
desktop_2d_object._superclassnames = ['container'] desktop_2d_object._superclassnames = ['container']
desktop_2d_object._privpropdict = { desktop_2d_object._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
} }
desktop_2d_object._privelemdict = { desktop_2d_object._privelemdict = {
'alias_file' : Files.alias_file, 'alias_file' : Files.alias_file,
'application_file' : Files.application_file, 'application_file' : Files.application_file,
'clipping' : Files.clipping, 'clipping' : Files.clipping,
'container' : container, 'container' : container,
'disk' : disk, 'disk' : disk,
'document_file' : Files.document_file, 'document_file' : Files.document_file,
'file' : Files.file, 'file' : Files.file,
'folder' : folder, 'folder' : folder,
'internet_location_file' : Files.internet_location_file, 'internet_location_file' : Files.internet_location_file,
'item' : Finder_items.item, 'item' : Finder_items.item,
'package' : Files.package, 'package' : Files.package,
} }
folder._superclassnames = ['container'] folder._superclassnames = ['container']
folder._privpropdict = { folder._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
} }
folder._privelemdict = { folder._privelemdict = {
'alias_file' : Files.alias_file, 'alias_file' : Files.alias_file,
'application_file' : Files.application_file, 'application_file' : Files.application_file,
'clipping' : Files.clipping, 'clipping' : Files.clipping,
'container' : container, 'container' : container,
'document_file' : Files.document_file, 'document_file' : Files.document_file,
'file' : Files.file, 'file' : Files.file,
'folder' : folder, 'folder' : folder,
'internet_location_file' : Files.internet_location_file, 'internet_location_file' : Files.internet_location_file,
'item' : Finder_items.item, 'item' : Finder_items.item,
'package' : Files.package, 'package' : Files.package,
} }
container._superclassnames = ['item'] container._superclassnames = ['item']
container._privpropdict = { container._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'completely_expanded' : _Prop_completely_expanded, 'completely_expanded' : _Prop_completely_expanded,
'container_window' : _Prop_container_window, 'container_window' : _Prop_container_window,
'entire_contents' : _Prop_entire_contents, 'entire_contents' : _Prop_entire_contents,
'expandable' : _Prop_expandable, 'expandable' : _Prop_expandable,
'expanded' : _Prop_expanded, 'expanded' : _Prop_expanded,
} }
container._privelemdict = { container._privelemdict = {
'alias_file' : Files.alias_file, 'alias_file' : Files.alias_file,
'application_file' : Files.application_file, 'application_file' : Files.application_file,
'clipping' : Files.clipping, 'clipping' : Files.clipping,
'container' : container, 'container' : container,
'document_file' : Files.document_file, 'document_file' : Files.document_file,
'file' : Files.file, 'file' : Files.file,
'folder' : folder, 'folder' : folder,
'internet_location_file' : Files.internet_location_file, 'internet_location_file' : Files.internet_location_file,
'item' : Finder_items.item, 'item' : Finder_items.item,
'package' : Files.package, 'package' : Files.package,
} }
trash_2d_object._superclassnames = ['container'] trash_2d_object._superclassnames = ['container']
trash_2d_object._privpropdict = { trash_2d_object._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'warns_before_emptying' : _Prop_warns_before_emptying, 'warns_before_emptying' : _Prop_warns_before_emptying,
} }
trash_2d_object._privelemdict = { trash_2d_object._privelemdict = {
'alias_file' : Files.alias_file, 'alias_file' : Files.alias_file,
'application_file' : Files.application_file, 'application_file' : Files.application_file,
'clipping' : Files.clipping, 'clipping' : Files.clipping,
'container' : container, 'container' : container,
'document_file' : Files.document_file, 'document_file' : Files.document_file,
'file' : Files.file, 'file' : Files.file,
'folder' : folder, 'folder' : folder,
'internet_location_file' : Files.internet_location_file, 'internet_location_file' : Files.internet_location_file,
'item' : Finder_items.item, 'item' : Finder_items.item,
'package' : Files.package, 'package' : Files.package,
} }
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cdis' : disk, 'cdis' : disk,
'cdsk' : desktop_2d_object, 'cdsk' : desktop_2d_object,
'cfol' : folder, 'cfol' : folder,
'ctnr' : container, 'ctnr' : container,
'ctrs' : trash_2d_object, 'ctrs' : trash_2d_object,
}
_propdeclarations = {
'c@#^' : _Prop__3c_Inheritance_3e_,
'capa' : _Prop_capacity,
'cwnd' : _Prop_container_window,
'dfmt' : _Prop_format,
'ects' : _Prop_entire_contents,
'frsp' : _Prop_free_space,
'igpr' : _Prop_ignore_privileges,
'isej' : _Prop_ejectable,
'isrv' : _Prop_local_volume,
'istd' : _Prop_startup,
'pexa' : _Prop_expandable,
'pexc' : _Prop_completely_expanded,
'pexp' : _Prop_expanded,
'warn' : _Prop_warns_before_emptying,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -13,109 +13,109 @@ _code = 'tpnm'
from StdSuites.Type_Names_Suite import * from StdSuites.Type_Names_Suite import *
class Enumerations_Events(Type_Names_Suite_Events): class Enumerations_Events(Type_Names_Suite_Events):
pass pass
_Enum_earr = { _Enum_earr = {
'not_arranged' : 'narr', # 'not_arranged' : 'narr', #
'snap_to_grid' : 'grda', # 'snap_to_grid' : 'grda', #
'arranged_by_name' : 'nama', # 'arranged_by_name' : 'nama', #
'arranged_by_modification_date' : 'mdta', # 'arranged_by_modification_date' : 'mdta', #
'arranged_by_creation_date' : 'cdta', # 'arranged_by_creation_date' : 'cdta', #
'arranged_by_size' : 'siza', # 'arranged_by_size' : 'siza', #
'arranged_by_kind' : 'kina', # 'arranged_by_kind' : 'kina', #
'arranged_by_label' : 'laba', # 'arranged_by_label' : 'laba', #
} }
_Enum_ecvw = { _Enum_ecvw = {
'icon_view' : 'icnv', # 'icon_view' : 'icnv', #
'list_view' : 'lsvw', # 'list_view' : 'lsvw', #
'column_view' : 'clvw', # 'column_view' : 'clvw', #
} }
_Enum_edfm = { _Enum_edfm = {
'Mac_OS_format' : 'dfhf', # 'Mac_OS_format' : 'dfhf', #
'Mac_OS_Extended_format' : 'dfh+', # 'Mac_OS_Extended_format' : 'dfh+', #
'UFS_format' : 'dfuf', # 'UFS_format' : 'dfuf', #
'NFS_format' : 'dfnf', # 'NFS_format' : 'dfnf', #
'audio_format' : 'dfau', # 'audio_format' : 'dfau', #
'ProDOS_format' : 'dfpr', # 'ProDOS_format' : 'dfpr', #
'MS_2d_DOS_format' : 'dfms', # 'MS_2d_DOS_format' : 'dfms', #
'ISO_9660_format' : 'df96', # 'ISO_9660_format' : 'df96', #
'High_Sierra_format' : 'dfhs', # 'High_Sierra_format' : 'dfhs', #
'QuickTake_format' : 'dfqt', # 'QuickTake_format' : 'dfqt', #
'Apple_Photo_format' : 'dfph', # 'Apple_Photo_format' : 'dfph', #
'AppleShare_format' : 'dfas', # 'AppleShare_format' : 'dfas', #
'UDF_format' : 'dfud', # 'UDF_format' : 'dfud', #
'WebDAV_format' : 'dfwd', # 'WebDAV_format' : 'dfwd', #
'FTP_format' : 'dfft', # 'FTP_format' : 'dfft', #
'Packet_2d_written_UDF_format' : 'dfpu', # 'Packet_2d_written_UDF_format' : 'dfpu', #
'unknown_format' : 'df??', # 'unknown_format' : 'df??', #
} }
_Enum_elsv = { _Enum_elsv = {
'name_column' : 'elsn', # 'name_column' : 'elsn', #
'modification_date_column' : 'elsm', # 'modification_date_column' : 'elsm', #
'creation_date_column' : 'elsc', # 'creation_date_column' : 'elsc', #
'size_column' : 'elss', # 'size_column' : 'elss', #
'kind_column' : 'elsk', # 'kind_column' : 'elsk', #
'label_column' : 'elsl', # 'label_column' : 'elsl', #
'version_column' : 'elsv', # 'version_column' : 'elsv', #
'comment_column' : 'elsC', # 'comment_column' : 'elsC', #
} }
_Enum_ipnl = { _Enum_ipnl = {
'General_Information_panel' : 'gpnl', # 'General_Information_panel' : 'gpnl', #
'Sharing_panel' : 'spnl', # 'Sharing_panel' : 'spnl', #
'Memory_panel' : 'mpnl', # 'Memory_panel' : 'mpnl', #
'Preview_panel' : 'vpnl', # 'Preview_panel' : 'vpnl', #
'Application_panel' : 'apnl', # 'Application_panel' : 'apnl', #
'Languages_panel' : 'pklg', # 'Languages_panel' : 'pklg', #
'Plugins_panel' : 'pkpg', # 'Plugins_panel' : 'pkpg', #
'Name__26__Extension_panel' : 'npnl', # 'Name__26__Extension_panel' : 'npnl', #
'Comments_panel' : 'cpnl', # 'Comments_panel' : 'cpnl', #
'Content_Index_panel' : 'cinl', # 'Content_Index_panel' : 'cinl', #
} }
_Enum_isiz = { _Enum_isiz = {
'mini' : 'miic', # 'mini' : 'miic', #
'small' : 'smic', # 'small' : 'smic', #
'large' : 'lgic', # 'large' : 'lgic', #
} }
_Enum_lvic = { _Enum_lvic = {
'small_icon' : 'smic', # 'small_icon' : 'smic', #
'large_icon' : 'lgic', # 'large_icon' : 'lgic', #
} }
_Enum_priv = { _Enum_priv = {
'read_only' : 'read', # 'read_only' : 'read', #
'read_write' : 'rdwr', # 'read_write' : 'rdwr', #
'write_only' : 'writ', # 'write_only' : 'writ', #
'none' : 'none', # 'none' : 'none', #
} }
_Enum_sodr = { _Enum_sodr = {
'normal' : 'snrm', # 'normal' : 'snrm', #
'reversed' : 'srvs', # 'reversed' : 'srvs', #
} }
_Enum_vwby = { _Enum_vwby = {
'conflicts' : 'cflc', # 'conflicts' : 'cflc', #
'existing_items' : 'exsi', # 'existing_items' : 'exsi', #
'small_icon' : 'smic', # 'small_icon' : 'smic', #
'icon' : 'iimg', # 'icon' : 'iimg', #
'name' : 'pnam', # 'name' : 'pnam', #
'modification_date' : 'asmo', # 'modification_date' : 'asmo', #
'size' : 'ptsz', # 'size' : 'ptsz', #
'kind' : 'kind', # 'kind' : 'kind', #
'comment' : 'comt', # 'comment' : 'comt', #
'label' : 'labi', # 'label' : 'labi', #
'version' : 'vers', # 'version' : 'vers', #
'creation_date' : 'ascd', # 'creation_date' : 'ascd', #
'small_button' : 'smbu', # 'small_button' : 'smbu', #
'large_button' : 'lgbu', # 'large_button' : 'lgbu', #
'grid' : 'grid', # 'grid' : 'grid', #
'all' : 'kyal', # 'all' : 'kyal', #
} }
@ -124,3 +124,22 @@ _Enum_vwby = {
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
'earr' : _Enum_earr,
'ecvw' : _Enum_ecvw,
'edfm' : _Enum_edfm,
'elsv' : _Enum_elsv,
'ipnl' : _Enum_ipnl,
'isiz' : _Enum_isiz,
'lvic' : _Enum_lvic,
'priv' : _Enum_priv,
'sodr' : _Enum_sodr,
'vwby' : _Enum_vwby,
}

View file

@ -12,164 +12,164 @@ _code = 'fndr'
class Files_Events: class Files_Events:
pass pass
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 _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the file class """ """<Inheritance> - inherits some of its properties from the file class """
which = 'c@#^' which = 'c@#^'
want = 'file' want = 'file'
class _Prop_original_item(aetools.NProperty): class _Prop_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'
want = 'obj ' want = 'obj '
alias_files = alias_file alias_files = alias_file
class application_file(aetools.ComponentItem): class application_file(aetools.ComponentItem):
"""application file - An application's file on disk """ """application file - An application's file on disk """
want = 'appf' want = 'appf'
class _Prop_accepts_high_level_events(aetools.NProperty): class _Prop_accepts_high_level_events(aetools.NProperty):
"""accepts high level events - Is the application high-level event aware? (OBSOLETE: always returns true) """ """accepts high level events - Is the application high-level event aware? (OBSOLETE: always returns true) """
which = 'isab' which = 'isab'
want = 'bool' want = 'bool'
class _Prop_has_scripting_terminology(aetools.NProperty): class _Prop_has_scripting_terminology(aetools.NProperty):
"""has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """ """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """
which = 'hscr' which = 'hscr'
want = 'bool' want = 'bool'
class _Prop_minimum_size(aetools.NProperty): class _Prop_minimum_size(aetools.NProperty):
"""minimum size - the smallest memory size with which the application can be launched """ """minimum size - the smallest memory size with which the application can be launched """
which = 'mprt' which = 'mprt'
want = 'long' want = 'long'
class _Prop_opens_in_Classic(aetools.NProperty): class _Prop_opens_in_Classic(aetools.NProperty):
"""opens in Classic - Should the application launch in the Classic environment? """ """opens in Classic - Should the application launch in the Classic environment? """
which = 'Clsc' which = 'Clsc'
want = 'bool' want = 'bool'
class _Prop_preferred_size(aetools.NProperty): class _Prop_preferred_size(aetools.NProperty):
"""preferred size - the memory size with which the application will be launched """ """preferred size - the memory size with which the application will be launched """
which = 'appt' which = 'appt'
want = 'long' want = 'long'
class _Prop_suggested_size(aetools.NProperty): class _Prop_suggested_size(aetools.NProperty):
"""suggested size - the memory size with which the developer recommends the application be launched """ """suggested size - the memory size with which the developer recommends the application be launched """
which = 'sprt' which = 'sprt'
want = 'long' want = 'long'
application_files = application_file application_files = application_file
class clipping(aetools.ComponentItem): class clipping(aetools.ComponentItem):
"""clipping - A clipping """ """clipping - A clipping """
want = 'clpf' want = 'clpf'
class _Prop_clipping_window(aetools.NProperty): class _Prop_clipping_window(aetools.NProperty):
"""clipping window - (NOT AVAILABLE YET) the clipping window for this clipping """ """clipping window - (NOT AVAILABLE YET) the clipping window for this clipping """
which = 'lwnd' which = 'lwnd'
want = 'obj ' want = 'obj '
clippings = clipping clippings = clipping
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): class file(aetools.ComponentItem):
"""file - A file """ """file - A file """
want = 'file' want = 'file'
class _Prop_creator_type(aetools.NProperty): class _Prop_creator_type(aetools.NProperty):
"""creator type - the OSType identifying the application that created the item """ """creator type - the OSType identifying the application that created the item """
which = 'fcrt' which = 'fcrt'
want = 'type' want = 'type'
class _Prop_file_type(aetools.NProperty): class _Prop_file_type(aetools.NProperty):
"""file type - the OSType identifying the type of data contained in the item """ """file type - the OSType identifying the type of data contained in the item """
which = 'asty' which = 'asty'
want = 'type' want = 'type'
class _Prop_product_version(aetools.NProperty): class _Prop_product_version(aetools.NProperty):
"""product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """ """product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """
which = 'ver2' which = 'ver2'
want = 'utxt' want = 'utxt'
class _Prop_stationery(aetools.NProperty): class _Prop_stationery(aetools.NProperty):
"""stationery - Is the file a stationery pad? """ """stationery - Is the file a stationery pad? """
which = 'pspd' which = 'pspd'
want = 'bool' want = 'bool'
class _Prop_version(aetools.NProperty): class _Prop_version(aetools.NProperty):
"""version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """ """version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """
which = 'vers' which = 'vers'
want = 'utxt' want = 'utxt'
files = file files = file
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 """
want = 'inlf' want = 'inlf'
class _Prop_location(aetools.NProperty): class _Prop_location(aetools.NProperty):
"""location - the internet location """ """location - the internet location """
which = 'iloc' which = 'iloc'
want = 'utxt' want = 'utxt'
internet_location_files = internet_location_file internet_location_files = internet_location_file
class package(aetools.ComponentItem): class package(aetools.ComponentItem):
"""package - A package """ """package - A package """
want = 'pack' want = 'pack'
packages = package packages = package
alias_file._superclassnames = ['file'] alias_file._superclassnames = ['file']
alias_file._privpropdict = { alias_file._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'original_item' : _Prop_original_item, 'original_item' : _Prop_original_item,
} }
alias_file._privelemdict = { alias_file._privelemdict = {
} }
application_file._superclassnames = ['file'] application_file._superclassnames = ['file']
application_file._privpropdict = { application_file._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'accepts_high_level_events' : _Prop_accepts_high_level_events, 'accepts_high_level_events' : _Prop_accepts_high_level_events,
'has_scripting_terminology' : _Prop_has_scripting_terminology, 'has_scripting_terminology' : _Prop_has_scripting_terminology,
'minimum_size' : _Prop_minimum_size, 'minimum_size' : _Prop_minimum_size,
'opens_in_Classic' : _Prop_opens_in_Classic, 'opens_in_Classic' : _Prop_opens_in_Classic,
'preferred_size' : _Prop_preferred_size, 'preferred_size' : _Prop_preferred_size,
'suggested_size' : _Prop_suggested_size, 'suggested_size' : _Prop_suggested_size,
} }
application_file._privelemdict = { application_file._privelemdict = {
} }
clipping._superclassnames = ['file'] clipping._superclassnames = ['file']
clipping._privpropdict = { clipping._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'clipping_window' : _Prop_clipping_window, 'clipping_window' : _Prop_clipping_window,
} }
clipping._privelemdict = { clipping._privelemdict = {
} }
document_file._superclassnames = ['file'] document_file._superclassnames = ['file']
document_file._privpropdict = { document_file._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
} }
document_file._privelemdict = { document_file._privelemdict = {
} }
import Finder_items import Finder_items
file._superclassnames = ['item'] file._superclassnames = ['item']
file._privpropdict = { file._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'creator_type' : _Prop_creator_type, 'creator_type' : _Prop_creator_type,
'file_type' : _Prop_file_type, 'file_type' : _Prop_file_type,
'product_version' : _Prop_product_version, 'product_version' : _Prop_product_version,
'stationery' : _Prop_stationery, 'stationery' : _Prop_stationery,
'version' : _Prop_version, 'version' : _Prop_version,
} }
file._privelemdict = { file._privelemdict = {
} }
internet_location_file._superclassnames = ['file'] internet_location_file._superclassnames = ['file']
internet_location_file._privpropdict = { internet_location_file._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'location' : _Prop_location, 'location' : _Prop_location,
} }
internet_location_file._privelemdict = { internet_location_file._privelemdict = {
} }
package._superclassnames = ['item'] package._superclassnames = ['item']
package._privpropdict = { package._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
} }
package._privelemdict = { package._privelemdict = {
} }
@ -178,11 +178,35 @@ package._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'alia' : alias_file, 'alia' : alias_file,
'appf' : application_file, 'appf' : application_file,
'clpf' : clipping, 'clpf' : clipping,
'docf' : document_file, 'docf' : document_file,
'file' : file, 'file' : file,
'inlf' : internet_location_file, 'inlf' : internet_location_file,
'pack' : package, 'pack' : package,
}
_propdeclarations = {
'Clsc' : _Prop_opens_in_Classic,
'appt' : _Prop_preferred_size,
'asty' : _Prop_file_type,
'c@#^' : _Prop__3c_Inheritance_3e_,
'fcrt' : _Prop_creator_type,
'hscr' : _Prop_has_scripting_terminology,
'iloc' : _Prop_location,
'isab' : _Prop_accepts_high_level_events,
'lwnd' : _Prop_clipping_window,
'mprt' : _Prop_minimum_size,
'orig' : _Prop_original_item,
'pspd' : _Prop_stationery,
'sprt' : _Prop_suggested_size,
'ver2' : _Prop_product_version,
'vers' : _Prop_version,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,107 +12,107 @@ _code = 'fndr'
class Finder_Basics_Events: class Finder_Basics_Events:
def copy(self, _no_object=None, _attributes={}, **_arguments): def copy(self, _no_object=None, _attributes={}, **_arguments):
"""copy: (NOT AVAILABLE YET) Copy the selected items to the clipboard (the Finder must be the front application) """copy: (NOT AVAILABLE YET) Copy the selected items to the clipboard (the Finder must be the front application)
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'misc'
_subcode = 'copy' _subcode = 'copy'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_sort = { _argmap_sort = {
'by' : 'by ', 'by' : 'by ',
} }
def sort(self, _object, _attributes={}, **_arguments): def sort(self, _object, _attributes={}, **_arguments):
"""sort: (NOT AVAILABLE YET) Return the specified object(s) in a sorted list """sort: (NOT AVAILABLE YET) Return the specified object(s) in a sorted list
Required argument: a list of finder objects to sort Required argument: a list of finder objects to sort
Keyword argument by: the property to sort the items by (name, index, date, etc.) Keyword argument by: the property to sort the items by (name, index, date, etc.)
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the sorted items in their new order Returns: the sorted items in their new order
""" """
_code = 'DATA' _code = 'DATA'
_subcode = 'SORT' _subcode = 'SORT'
aetools.keysubst(_arguments, self._argmap_sort) aetools.keysubst(_arguments, self._argmap_sort)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - The Finder """ """application - The Finder """
want = 'capp' want = 'capp'
class _Prop_Finder_preferences(aetools.NProperty): class _Prop_Finder_preferences(aetools.NProperty):
"""Finder preferences - (NOT AVAILABLE YET) Various preferences that apply to the Finder as a whole """ """Finder preferences - (NOT AVAILABLE YET) Various preferences that apply to the Finder as a whole """
which = 'pfrp' which = 'pfrp'
want = 'cprf' want = 'cprf'
class _Prop_clipboard(aetools.NProperty): class _Prop_clipboard(aetools.NProperty):
"""clipboard - (NOT AVAILABLE YET) the Finder\xd5s clipboard window """ """clipboard - (NOT AVAILABLE YET) the Finder\xd5s clipboard window """
which = 'pcli' which = 'pcli'
want = 'obj ' want = 'obj '
class _Prop_desktop(aetools.NProperty): class _Prop_desktop(aetools.NProperty):
"""desktop - the desktop """ """desktop - the desktop """
which = 'desk' which = 'desk'
want = 'cdsk' want = 'cdsk'
class _Prop_frontmost(aetools.NProperty): class _Prop_frontmost(aetools.NProperty):
"""frontmost - Is the Finder the frontmost process? """ """frontmost - Is the Finder the frontmost process? """
which = 'pisf' which = 'pisf'
want = 'bool' want = 'bool'
class _Prop_home(aetools.NProperty): class _Prop_home(aetools.NProperty):
"""home - the home directory """ """home - the home directory """
which = 'home' which = 'home'
want = 'cfol' want = 'cfol'
class _Prop_insertion_location(aetools.NProperty): class _Prop_insertion_location(aetools.NProperty):
"""insertion location - the container in which a new folder would appear if \xd2New Folder\xd3 was selected """ """insertion location - the container in which a new folder would appear if \xd2New Folder\xd3 was selected """
which = 'pins' which = 'pins'
want = 'obj ' want = 'obj '
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the Finder\xd5s name """ """name - the Finder\xd5s name """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
class _Prop_product_version(aetools.NProperty): class _Prop_product_version(aetools.NProperty):
"""product version - the version of the System software running on this computer """ """product version - the version of the System software running on this computer """
which = 'ver2' which = 'ver2'
want = 'utxt' want = 'utxt'
class _Prop_selection(aetools.NProperty): class _Prop_selection(aetools.NProperty):
"""selection - the selection in the frontmost Finder window """ """selection - the selection in the frontmost Finder window """
which = 'sele' which = 'sele'
want = 'obj ' want = 'obj '
class _Prop_startup_disk(aetools.NProperty): class _Prop_startup_disk(aetools.NProperty):
"""startup disk - the startup disk """ """startup disk - the startup disk """
which = 'sdsk' which = 'sdsk'
want = 'cdis' want = 'cdis'
class _Prop_trash(aetools.NProperty): class _Prop_trash(aetools.NProperty):
"""trash - the trash """ """trash - the trash """
which = 'trsh' which = 'trsh'
want = 'ctrs' want = 'ctrs'
class _Prop_version(aetools.NProperty): class _Prop_version(aetools.NProperty):
"""version - the version of the Finder """ """version - the version of the Finder """
which = 'vers' which = 'vers'
want = 'utxt' want = 'utxt'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - Is the Finder\xd5s layer visible? """ """visible - Is the Finder\xd5s layer visible? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
# element 'appf' as ['indx', 'name', 'ID '] # element 'appf' as ['indx', 'name', 'ID ']
# element 'brow' as ['indx', 'ID '] # element 'brow' as ['indx', 'ID ']
@ -133,40 +133,62 @@ import Window_classes
import Containers_and_folders import Containers_and_folders
import Finder_items import Finder_items
application._privpropdict = { application._privpropdict = {
'Finder_preferences' : _Prop_Finder_preferences, 'Finder_preferences' : _Prop_Finder_preferences,
'clipboard' : _Prop_clipboard, 'clipboard' : _Prop_clipboard,
'desktop' : _Prop_desktop, 'desktop' : _Prop_desktop,
'frontmost' : _Prop_frontmost, 'frontmost' : _Prop_frontmost,
'home' : _Prop_home, 'home' : _Prop_home,
'insertion_location' : _Prop_insertion_location, 'insertion_location' : _Prop_insertion_location,
'name' : _Prop_name, 'name' : _Prop_name,
'product_version' : _Prop_product_version, 'product_version' : _Prop_product_version,
'selection' : _Prop_selection, 'selection' : _Prop_selection,
'startup_disk' : _Prop_startup_disk, 'startup_disk' : _Prop_startup_disk,
'trash' : _Prop_trash, 'trash' : _Prop_trash,
'version' : _Prop_version, 'version' : _Prop_version,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
} }
application._privelemdict = { application._privelemdict = {
'Finder_window' : Window_classes.Finder_window, 'Finder_window' : Window_classes.Finder_window,
'alias_file' : Files.alias_file, 'alias_file' : Files.alias_file,
'application_file' : Files.application_file, 'application_file' : Files.application_file,
'clipping' : Files.clipping, 'clipping' : Files.clipping,
'clipping_window' : Window_classes.clipping_window, 'clipping_window' : Window_classes.clipping_window,
'container' : Containers_and_folders.container, 'container' : Containers_and_folders.container,
'disk' : Containers_and_folders.disk, 'disk' : Containers_and_folders.disk,
'document_file' : Files.document_file, 'document_file' : Files.document_file,
'file' : Files.file, 'file' : Files.file,
'folder' : Containers_and_folders.folder, 'folder' : Containers_and_folders.folder,
'internet_location_file' : Files.internet_location_file, 'internet_location_file' : Files.internet_location_file,
'item' : Finder_items.item, 'item' : Finder_items.item,
'package' : Files.package, 'package' : Files.package,
'window' : Window_classes.window, 'window' : Window_classes.window,
} }
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
}
_propdeclarations = {
'desk' : _Prop_desktop,
'home' : _Prop_home,
'pcli' : _Prop_clipboard,
'pfrp' : _Prop_Finder_preferences,
'pins' : _Prop_insertion_location,
'pisf' : _Prop_frontmost,
'pnam' : _Prop_name,
'pvis' : _Prop_visible,
'sdsk' : _Prop_startup_disk,
'sele' : _Prop_selection,
'trsh' : _Prop_trash,
'ver2' : _Prop_product_version,
'vers' : _Prop_version,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,301 +12,301 @@ _code = 'fndr'
class Finder_items_Events: class Finder_items_Events:
def add_to_favorites(self, _object, _attributes={}, **_arguments): def add_to_favorites(self, _object, _attributes={}, **_arguments):
"""add to favorites: (NOT AVAILABLE YET) Add the items to the user\xd5s Favorites """add to favorites: (NOT AVAILABLE YET) Add the items to the user\xd5s Favorites
Required argument: the items to add to the collection of Favorites Required argument: the items to add to the collection of Favorites
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'ffav' _subcode = 'ffav'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_clean_up = { _argmap_clean_up = {
'by' : 'by ', 'by' : 'by ',
} }
def clean_up(self, _object, _attributes={}, **_arguments): def clean_up(self, _object, _attributes={}, **_arguments):
"""clean up: (NOT AVAILABLE YET) Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged) """clean up: (NOT AVAILABLE YET) Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
Required argument: the window to clean up Required argument: the window to clean up
Keyword argument by: the order in which to clean up the objects (name, index, date, etc.) Keyword argument by: the order in which to clean up the objects (name, index, date, etc.)
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'fclu' _subcode = 'fclu'
aetools.keysubst(_arguments, self._argmap_clean_up) aetools.keysubst(_arguments, self._argmap_clean_up)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def eject(self, _object=None, _attributes={}, **_arguments): def eject(self, _object=None, _attributes={}, **_arguments):
"""eject: Eject the specified disk(s) """eject: Eject the specified disk(s)
Required argument: the disk(s) to eject Required argument: the disk(s) to eject
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'ejct' _subcode = 'ejct'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def empty(self, _object=None, _attributes={}, **_arguments): def empty(self, _object=None, _attributes={}, **_arguments):
"""empty: Empty the trash """empty: Empty the trash
Required argument: \xd2empty\xd3 and \xd2empty trash\xd3 both do the same thing Required argument: \xd2empty\xd3 and \xd2empty trash\xd3 both do the same thing
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'empt' _subcode = 'empt'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def erase(self, _object, _attributes={}, **_arguments): def erase(self, _object, _attributes={}, **_arguments):
"""erase: (NOT AVAILABLE) Erase the specified disk(s) """erase: (NOT AVAILABLE) Erase the specified disk(s)
Required argument: the items to erase Required argument: the items to erase
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'fera' _subcode = 'fera'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def reveal(self, _object, _attributes={}, **_arguments): def reveal(self, _object, _attributes={}, **_arguments):
"""reveal: Bring the specified object(s) into view """reveal: Bring the specified object(s) into view
Required argument: the object to be made visible Required argument: the object to be made visible
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'misc'
_subcode = 'mvis' _subcode = 'mvis'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_update = { _argmap_update = {
'necessity' : 'nec?', 'necessity' : 'nec?',
'registering_applications' : 'reg?', 'registering_applications' : 'reg?',
} }
def update(self, _object, _attributes={}, **_arguments): def update(self, _object, _attributes={}, **_arguments):
"""update: Update the display of the specified object(s) to match their on-disk representation """update: Update the display of the specified object(s) to match their on-disk representation
Required argument: the item to update Required argument: the item to update
Keyword argument necessity: only update if necessary (i.e. a finder window is open). default is false Keyword argument necessity: only update if necessary (i.e. a finder window is open). default is false
Keyword argument registering_applications: register applications. default is true Keyword argument registering_applications: register applications. default is true
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'fupd' _subcode = 'fupd'
aetools.keysubst(_arguments, self._argmap_update) aetools.keysubst(_arguments, self._argmap_update)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class item(aetools.ComponentItem): class item(aetools.ComponentItem):
"""item - An item """ """item - An item """
want = 'cobj' want = 'cobj'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons) """ """bounds - the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons) """
which = 'pbnd' which = 'pbnd'
want = 'qdrt' want = 'qdrt'
class _Prop_comment(aetools.NProperty): class _Prop_comment(aetools.NProperty):
"""comment - the comment of the item, displayed in the \xd2Get Info\xd3 window """ """comment - the comment of the item, displayed in the \xd2Get Info\xd3 window """
which = 'comt' which = 'comt'
want = 'utxt' want = 'utxt'
class _Prop_container(aetools.NProperty): class _Prop_container(aetools.NProperty):
"""container - the container of the item """ """container - the container of the item """
which = 'ctnr' which = 'ctnr'
want = 'obj ' want = 'obj '
class _Prop_creation_date(aetools.NProperty): class _Prop_creation_date(aetools.NProperty):
"""creation date - the date on which the item was created """ """creation date - the date on which the item was created """
which = 'ascd' which = 'ascd'
want = 'ldt ' want = 'ldt '
class _Prop_description(aetools.NProperty): class _Prop_description(aetools.NProperty):
"""description - a description of the item """ """description - a description of the item """
which = 'dscr' which = 'dscr'
want = 'utxt' want = 'utxt'
class _Prop_disk(aetools.NProperty): class _Prop_disk(aetools.NProperty):
"""disk - the disk on which the item is stored """ """disk - the disk on which the item is stored """
which = 'cdis' which = 'cdis'
want = 'obj ' want = 'obj '
class _Prop_displayed_name(aetools.NProperty): class _Prop_displayed_name(aetools.NProperty):
"""displayed name - the user-visible name of the item """ """displayed name - the user-visible name of the item """
which = 'dnam' which = 'dnam'
want = 'utxt' want = 'utxt'
class _Prop_everyones_privileges(aetools.NProperty): class _Prop_everyones_privileges(aetools.NProperty):
"""everyones privileges - """ """everyones privileges - """
which = 'gstp' which = 'gstp'
want = 'priv' want = 'priv'
class _Prop_extension_hidden(aetools.NProperty): class _Prop_extension_hidden(aetools.NProperty):
"""extension hidden - Is the item's extension hidden from the user? """ """extension hidden - Is the item's extension hidden from the user? """
which = 'hidx' which = 'hidx'
want = 'bool' want = 'bool'
class _Prop_group(aetools.NProperty): class _Prop_group(aetools.NProperty):
"""group - the user or group that has special access to the container """ """group - the user or group that has special access to the container """
which = 'sgrp' which = 'sgrp'
want = 'utxt' want = 'utxt'
class _Prop_group_privileges(aetools.NProperty): class _Prop_group_privileges(aetools.NProperty):
"""group privileges - """ """group privileges - """
which = 'gppr' which = 'gppr'
want = 'priv' want = 'priv'
class _Prop_icon(aetools.NProperty): class _Prop_icon(aetools.NProperty):
"""icon - the icon bitmap of the item """ """icon - the icon bitmap of the item """
which = 'iimg' which = 'iimg'
want = 'ifam' want = 'ifam'
class _Prop_index(aetools.NProperty): class _Prop_index(aetools.NProperty):
"""index - the index in the front-to-back ordering within its container """ """index - the index in the front-to-back ordering within its container """
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
class _Prop_information_window(aetools.NProperty): class _Prop_information_window(aetools.NProperty):
"""information window - the information window for the item """ """information window - the information window for the item """
which = 'iwnd' which = 'iwnd'
want = 'obj ' want = 'obj '
class _Prop_kind(aetools.NProperty): class _Prop_kind(aetools.NProperty):
"""kind - the kind of the item """ """kind - the kind of the item """
which = 'kind' which = 'kind'
want = 'utxt' want = 'utxt'
class _Prop_label_index(aetools.NProperty): class _Prop_label_index(aetools.NProperty):
"""label index - the label of the item """ """label index - the label of the item """
which = 'labi' which = 'labi'
want = 'long' want = 'long'
class _Prop_locked(aetools.NProperty): class _Prop_locked(aetools.NProperty):
"""locked - Is the file locked? """ """locked - Is the file locked? """
which = 'aslk' which = 'aslk'
want = 'bool' want = 'bool'
class _Prop_modification_date(aetools.NProperty): class _Prop_modification_date(aetools.NProperty):
"""modification date - the date on which the item was last modified """ """modification date - the date on which the item was last modified """
which = 'asmo' which = 'asmo'
want = 'ldt ' want = 'ldt '
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name of the item """ """name - the name of the item """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class _Prop_name_extension(aetools.NProperty): class _Prop_name_extension(aetools.NProperty):
"""name extension - the name extension of the item (such as \xd2txt\xd3) """ """name extension - the name extension of the item (such as \xd2txt\xd3) """
which = 'nmxt' which = 'nmxt'
want = 'utxt' want = 'utxt'
class _Prop_owner(aetools.NProperty): class _Prop_owner(aetools.NProperty):
"""owner - the user that owns the container """ """owner - the user that owns the container """
which = 'sown' which = 'sown'
want = 'utxt' want = 'utxt'
class _Prop_owner_privileges(aetools.NProperty): class _Prop_owner_privileges(aetools.NProperty):
"""owner privileges - """ """owner privileges - """
which = 'ownr' which = 'ownr'
want = 'priv' want = 'priv'
class _Prop_physical_size(aetools.NProperty): class _Prop_physical_size(aetools.NProperty):
"""physical size - the actual space used by the item on disk """ """physical size - the actual space used by the item on disk """
which = 'phys' which = 'phys'
want = 'comp' want = 'comp'
class _Prop_position(aetools.NProperty): class _Prop_position(aetools.NProperty):
"""position - the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons) """ """position - the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons) """
which = 'posn' which = 'posn'
want = 'QDpt' want = 'QDpt'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - every property of an item """ """properties - every property of an item """
which = 'pALL' which = 'pALL'
want = 'reco' want = 'reco'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - the logical size of the item """ """size - the logical size of the item """
which = 'ptsz' which = 'ptsz'
want = 'comp' want = 'comp'
class _Prop_url(aetools.NProperty): class _Prop_url(aetools.NProperty):
"""url - the url of the item """ """url - the url of the item """
which = 'pURL' which = 'pURL'
want = 'utxt' want = 'utxt'
items = item items = item
item._superclassnames = [] item._superclassnames = []
item._privpropdict = { item._privpropdict = {
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'comment' : _Prop_comment, 'comment' : _Prop_comment,
'container' : _Prop_container, 'container' : _Prop_container,
'creation_date' : _Prop_creation_date, 'creation_date' : _Prop_creation_date,
'description' : _Prop_description, 'description' : _Prop_description,
'disk' : _Prop_disk, 'disk' : _Prop_disk,
'displayed_name' : _Prop_displayed_name, 'displayed_name' : _Prop_displayed_name,
'everyones_privileges' : _Prop_everyones_privileges, 'everyones_privileges' : _Prop_everyones_privileges,
'extension_hidden' : _Prop_extension_hidden, 'extension_hidden' : _Prop_extension_hidden,
'group' : _Prop_group, 'group' : _Prop_group,
'group_privileges' : _Prop_group_privileges, 'group_privileges' : _Prop_group_privileges,
'icon' : _Prop_icon, 'icon' : _Prop_icon,
'index' : _Prop_index, 'index' : _Prop_index,
'information_window' : _Prop_information_window, 'information_window' : _Prop_information_window,
'kind' : _Prop_kind, 'kind' : _Prop_kind,
'label_index' : _Prop_label_index, 'label_index' : _Prop_label_index,
'locked' : _Prop_locked, 'locked' : _Prop_locked,
'modification_date' : _Prop_modification_date, 'modification_date' : _Prop_modification_date,
'name' : _Prop_name, 'name' : _Prop_name,
'name_extension' : _Prop_name_extension, 'name_extension' : _Prop_name_extension,
'owner' : _Prop_owner, 'owner' : _Prop_owner,
'owner_privileges' : _Prop_owner_privileges, 'owner_privileges' : _Prop_owner_privileges,
'physical_size' : _Prop_physical_size, 'physical_size' : _Prop_physical_size,
'position' : _Prop_position, 'position' : _Prop_position,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'size' : _Prop_size, 'size' : _Prop_size,
'url' : _Prop_url, 'url' : _Prop_url,
} }
item._privelemdict = { item._privelemdict = {
} }
@ -315,5 +315,41 @@ item._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cobj' : item, 'cobj' : item,
}
_propdeclarations = {
'ascd' : _Prop_creation_date,
'aslk' : _Prop_locked,
'asmo' : _Prop_modification_date,
'cdis' : _Prop_disk,
'comt' : _Prop_comment,
'ctnr' : _Prop_container,
'dnam' : _Prop_displayed_name,
'dscr' : _Prop_description,
'gppr' : _Prop_group_privileges,
'gstp' : _Prop_everyones_privileges,
'hidx' : _Prop_extension_hidden,
'iimg' : _Prop_icon,
'iwnd' : _Prop_information_window,
'kind' : _Prop_kind,
'labi' : _Prop_label_index,
'nmxt' : _Prop_name_extension,
'ownr' : _Prop_owner_privileges,
'pALL' : _Prop_properties,
'pURL' : _Prop_url,
'pbnd' : _Prop_bounds,
'phys' : _Prop_physical_size,
'pidx' : _Prop_index,
'pnam' : _Prop_name,
'posn' : _Prop_position,
'ptsz' : _Prop_size,
'sgrp' : _Prop_group,
'sown' : _Prop_owner,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,178 +12,178 @@ _code = 'fleg'
class Legacy_suite_Events: class Legacy_suite_Events:
def restart(self, _no_object=None, _attributes={}, **_arguments): def restart(self, _no_object=None, _attributes={}, **_arguments):
"""restart: Restart the computer """restart: Restart the computer
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'rest' _subcode = 'rest'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def shut_down(self, _no_object=None, _attributes={}, **_arguments): def shut_down(self, _no_object=None, _attributes={}, **_arguments):
"""shut down: Shut Down the computer """shut down: Shut Down the computer
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'shut' _subcode = 'shut'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def sleep(self, _no_object=None, _attributes={}, **_arguments): def sleep(self, _no_object=None, _attributes={}, **_arguments):
"""sleep: Put the computer to sleep """sleep: Put the computer to sleep
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'slep' _subcode = 'slep'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - The Finder """ """application - The Finder """
want = 'capp' want = 'capp'
class _Prop_desktop_picture(aetools.NProperty): class _Prop_desktop_picture(aetools.NProperty):
"""desktop picture - the desktop picture of the main monitor """ """desktop picture - the desktop picture of the main monitor """
which = 'dpic' which = 'dpic'
want = 'file' want = 'file'
class application_process(aetools.ComponentItem): class application_process(aetools.ComponentItem):
"""application process - A process launched from an application file """ """application process - A process launched from an application file """
want = 'pcap' want = 'pcap'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the process class """ """<Inheritance> - inherits some of its properties from the process class """
which = 'c@#^' which = 'c@#^'
want = 'prcs' want = 'prcs'
class _Prop_application_file(aetools.NProperty): class _Prop_application_file(aetools.NProperty):
"""application file - the application file from which this process was launched """ """application file - the application file from which this process was launched """
which = 'appf' which = 'appf'
want = 'appf' want = 'appf'
application_processes = application_process application_processes = application_process
class desk_accessory_process(aetools.ComponentItem): class desk_accessory_process(aetools.ComponentItem):
"""desk accessory process - A process launched from a desk accessory file """ """desk accessory process - A process launched from a desk accessory file """
want = 'pcda' want = 'pcda'
class _Prop_desk_accessory_file(aetools.NProperty): class _Prop_desk_accessory_file(aetools.NProperty):
"""desk accessory file - the desk accessory file from which this process was launched """ """desk accessory file - the desk accessory file from which this process was launched """
which = 'dafi' which = 'dafi'
want = 'obj ' want = 'obj '
desk_accessory_processes = desk_accessory_process 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'
class _Prop_accepts_high_level_events(aetools.NProperty): class _Prop_accepts_high_level_events(aetools.NProperty):
"""accepts high level events - Is the process high-level event aware (accepts open application, open document, print document, and quit)? """ """accepts high level events - Is the process high-level event aware (accepts open application, open document, print document, and quit)? """
which = 'isab' which = 'isab'
want = 'bool' want = 'bool'
class _Prop_accepts_remote_events(aetools.NProperty): class _Prop_accepts_remote_events(aetools.NProperty):
"""accepts remote events - Does the process accept remote events? """ """accepts remote events - Does the process accept remote events? """
which = 'revt' which = 'revt'
want = 'bool' want = 'bool'
class _Prop_creator_type(aetools.NProperty): class _Prop_creator_type(aetools.NProperty):
"""creator type - the OSType of the creator of the process (the signature) """ """creator type - the OSType of the creator of the process (the signature) """
which = 'fcrt' which = 'fcrt'
want = 'type' want = 'type'
class _Prop_file(aetools.NProperty): class _Prop_file(aetools.NProperty):
"""file - the file from which the process was launched """ """file - the file from which the process was launched """
which = 'file' which = 'file'
want = 'obj ' want = 'obj '
class _Prop_file_type(aetools.NProperty): class _Prop_file_type(aetools.NProperty):
"""file type - the OSType of the file type of the process """ """file type - the OSType of the file type of the process """
which = 'asty' which = 'asty'
want = 'type' want = 'type'
class _Prop_frontmost(aetools.NProperty): class _Prop_frontmost(aetools.NProperty):
"""frontmost - Is the process the frontmost process? """ """frontmost - Is the process the frontmost process? """
which = 'pisf' which = 'pisf'
want = 'bool' want = 'bool'
class _Prop_has_scripting_terminology(aetools.NProperty): class _Prop_has_scripting_terminology(aetools.NProperty):
"""has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """ """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """
which = 'hscr' which = 'hscr'
want = 'bool' want = 'bool'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name of the process """ """name - the name of the process """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
class _Prop_partition_space_used(aetools.NProperty): class _Prop_partition_space_used(aetools.NProperty):
"""partition space used - the number of bytes currently used in the process' partition """ """partition space used - the number of bytes currently used in the process' partition """
which = 'pusd' which = 'pusd'
want = 'long' want = 'long'
class _Prop_total_partition_size(aetools.NProperty): class _Prop_total_partition_size(aetools.NProperty):
"""total partition size - the size of the partition with which the process was launched """ """total partition size - the size of the partition with which the process was launched """
which = 'appt' which = 'appt'
want = 'long' want = 'long'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - Is the process' layer visible? """ """visible - Is the process' layer visible? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
processes = process processes = process
application._superclassnames = [] application._superclassnames = []
application._privpropdict = { application._privpropdict = {
'desktop_picture' : _Prop_desktop_picture, 'desktop_picture' : _Prop_desktop_picture,
} }
application._privelemdict = { application._privelemdict = {
} }
application_process._superclassnames = ['process'] application_process._superclassnames = ['process']
application_process._privpropdict = { application_process._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'application_file' : _Prop_application_file, 'application_file' : _Prop_application_file,
} }
application_process._privelemdict = { application_process._privelemdict = {
} }
desk_accessory_process._superclassnames = ['process'] desk_accessory_process._superclassnames = ['process']
desk_accessory_process._privpropdict = { desk_accessory_process._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'desk_accessory_file' : _Prop_desk_accessory_file, 'desk_accessory_file' : _Prop_desk_accessory_file,
} }
desk_accessory_process._privelemdict = { desk_accessory_process._privelemdict = {
} }
process._superclassnames = [] process._superclassnames = []
process._privpropdict = { process._privpropdict = {
'accepts_high_level_events' : _Prop_accepts_high_level_events, 'accepts_high_level_events' : _Prop_accepts_high_level_events,
'accepts_remote_events' : _Prop_accepts_remote_events, 'accepts_remote_events' : _Prop_accepts_remote_events,
'creator_type' : _Prop_creator_type, 'creator_type' : _Prop_creator_type,
'file' : _Prop_file, 'file' : _Prop_file,
'file_type' : _Prop_file_type, 'file_type' : _Prop_file_type,
'frontmost' : _Prop_frontmost, 'frontmost' : _Prop_frontmost,
'has_scripting_terminology' : _Prop_has_scripting_terminology, 'has_scripting_terminology' : _Prop_has_scripting_terminology,
'name' : _Prop_name, 'name' : _Prop_name,
'partition_space_used' : _Prop_partition_space_used, 'partition_space_used' : _Prop_partition_space_used,
'total_partition_size' : _Prop_total_partition_size, 'total_partition_size' : _Prop_total_partition_size,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
} }
process._privelemdict = { process._privelemdict = {
} }
@ -192,8 +192,32 @@ process._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
'pcap' : application_process, 'pcap' : application_process,
'pcda' : desk_accessory_process, 'pcda' : desk_accessory_process,
'prcs' : process, 'prcs' : process,
}
_propdeclarations = {
'appf' : _Prop_application_file,
'appt' : _Prop_total_partition_size,
'asty' : _Prop_file_type,
'c@#^' : _Prop__3c_Inheritance_3e_,
'dafi' : _Prop_desk_accessory_file,
'dpic' : _Prop_desktop_picture,
'fcrt' : _Prop_creator_type,
'file' : _Prop_file,
'hscr' : _Prop_has_scripting_terminology,
'isab' : _Prop_accepts_high_level_events,
'pisf' : _Prop_frontmost,
'pnam' : _Prop_name,
'pusd' : _Prop_partition_space_used,
'pvis' : _Prop_visible,
'revt' : _Prop_accepts_remote_events,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -13,308 +13,308 @@ _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):
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
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'clos' _subcode = 'clos'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_count = { _argmap_count = {
'each' : 'kocl', 'each' : 'kocl',
} }
def count(self, _object, _attributes={}, **_arguments): def count(self, _object, _attributes={}, **_arguments):
"""count: Return the number of elements of a particular class within an object """count: Return the number of elements of a particular class within an object
Required argument: the object whose elements are to be counted Required argument: the object whose elements are to be counted
Keyword argument each: the class of the elements to be counted Keyword argument each: the class of the elements to be counted
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the number of elements Returns: the number of elements
""" """
_code = 'core' _code = 'core'
_subcode = 'cnte' _subcode = 'cnte'
aetools.keysubst(_arguments, self._argmap_count) aetools.keysubst(_arguments, self._argmap_count)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_data_size = { _argmap_data_size = {
'as' : 'rtyp', 'as' : 'rtyp',
} }
def data_size(self, _object, _attributes={}, **_arguments): def data_size(self, _object, _attributes={}, **_arguments):
"""data size: Return the size in bytes of an object """data size: Return the size in bytes of an object
Required argument: the object whose data size is to be returned 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 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 Returns: the size of the object in bytes
""" """
_code = 'core' _code = 'core'
_subcode = 'dsiz' _subcode = 'dsiz'
aetools.keysubst(_arguments, self._argmap_data_size) aetools.keysubst(_arguments, self._argmap_data_size)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def delete(self, _object, _attributes={}, **_arguments): def delete(self, _object, _attributes={}, **_arguments):
"""delete: Move an item from its container to the trash """delete: Move an item from its container to the trash
Required argument: the item to delete Required argument: the item to delete
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: to the item that was just deleted Returns: to the item that was just deleted
""" """
_code = 'core' _code = 'core'
_subcode = 'delo' _subcode = 'delo'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_duplicate = { _argmap_duplicate = {
'to' : 'insh', 'to' : 'insh',
'replacing' : 'alrp', 'replacing' : 'alrp',
'routing_suppressed' : 'rout', 'routing_suppressed' : 'rout',
} }
def duplicate(self, _object, _attributes={}, **_arguments): def duplicate(self, _object, _attributes={}, **_arguments):
"""duplicate: Duplicate one or more object(s) """duplicate: Duplicate one or more object(s)
Required argument: the object(s) to duplicate Required argument: the object(s) to duplicate
Keyword argument to: the new location for the object(s) Keyword argument to: the new location for the object(s)
Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being duplicated Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being duplicated
Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when copying to the system folder. Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when copying to the system folder.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: to the duplicated object(s) Returns: to the duplicated object(s)
""" """
_code = 'core' _code = 'core'
_subcode = 'clon' _subcode = 'clon'
aetools.keysubst(_arguments, self._argmap_duplicate) aetools.keysubst(_arguments, self._argmap_duplicate)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'alrp', _Enum_bool) aetools.enumsubst(_arguments, 'alrp', _Enum_bool)
aetools.enumsubst(_arguments, 'rout', _Enum_bool) aetools.enumsubst(_arguments, 'rout', _Enum_bool)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def exists(self, _object, _attributes={}, **_arguments): def exists(self, _object, _attributes={}, **_arguments):
"""exists: Verify if an object exists """exists: Verify if an object exists
Required argument: the object in question Required argument: the object in question
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: true if it exists, false if not Returns: true if it exists, false if not
""" """
_code = 'core' _code = 'core'
_subcode = 'doex' _subcode = 'doex'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_make = { _argmap_make = {
'new' : 'kocl', 'new' : 'kocl',
'at' : 'insh', 'at' : 'insh',
'to' : 'to ', 'to' : 'to ',
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def make(self, _no_object=None, _attributes={}, **_arguments): def make(self, _no_object=None, _attributes={}, **_arguments):
"""make: Make a new element """make: Make a new element
Keyword argument new: the class of the new element Keyword argument new: the class of the new element
Keyword argument at: the location at which to insert the element Keyword argument at: the location at which to insert the element
Keyword argument to: when creating an alias file, the original item to create an alias to or when creating a file viewer window, the target of the window Keyword argument to: when creating an alias file, the original item to create an alias to or when creating a file viewer window, the target of the window
Keyword argument with_properties: the initial values for the properties of the element Keyword argument with_properties: the initial values for the properties of the element
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: to the new object(s) Returns: to the new object(s)
""" """
_code = 'core' _code = 'core'
_subcode = 'crel' _subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make) aetools.keysubst(_arguments, self._argmap_make)
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_move = { _argmap_move = {
'to' : 'insh', 'to' : 'insh',
'replacing' : 'alrp', 'replacing' : 'alrp',
'positioned_at' : 'mvpl', 'positioned_at' : 'mvpl',
'routing_suppressed' : 'rout', 'routing_suppressed' : 'rout',
} }
def move(self, _object, _attributes={}, **_arguments): def move(self, _object, _attributes={}, **_arguments):
"""move: Move object(s) to a new location """move: Move object(s) to a new location
Required argument: the object(s) to move Required argument: the object(s) to move
Keyword argument to: the new location for the object(s) Keyword argument to: the new location for the object(s)
Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being moved Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being moved
Keyword argument positioned_at: Gives a list (in local window coordinates) of positions for the destination items Keyword argument positioned_at: Gives a list (in local window coordinates) of positions for the destination items
Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when moving to the system folder. Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when moving to the system folder.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: to the object(s) after they have been moved Returns: to the object(s) after they have been moved
""" """
_code = 'core' _code = 'core'
_subcode = 'move' _subcode = 'move'
aetools.keysubst(_arguments, self._argmap_move) aetools.keysubst(_arguments, self._argmap_move)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'alrp', _Enum_bool) aetools.enumsubst(_arguments, 'alrp', _Enum_bool)
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_open = { _argmap_open = {
'using' : 'usin', 'using' : 'usin',
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def open(self, _object, _attributes={}, **_arguments): def open(self, _object, _attributes={}, **_arguments):
"""open: Open the specified object(s) """open: Open the specified object(s)
Required argument: list of objects to open Required argument: list of objects to open
Keyword argument using: the application file to open the object with 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 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 Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'odoc' _subcode = 'odoc'
aetools.keysubst(_arguments, self._argmap_open) aetools.keysubst(_arguments, self._argmap_open)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_print_ = { _argmap_print_ = {
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def print_(self, _object, _attributes={}, **_arguments): def print_(self, _object, _attributes={}, **_arguments):
"""print: Print the specified object(s) """print: Print the specified object(s)
Required argument: list of objects to print 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 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 Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'pdoc' _subcode = 'pdoc'
aetools.keysubst(_arguments, self._argmap_print_) aetools.keysubst(_arguments, self._argmap_print_)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def quit(self, _no_object=None, _attributes={}, **_arguments): def quit(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit the Finder """quit: Quit the Finder
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'quit' _subcode = 'quit'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def select(self, _object, _attributes={}, **_arguments): def select(self, _object, _attributes={}, **_arguments):
"""select: Select the specified object(s) """select: Select the specified object(s)
Required argument: the object to select Required argument: the object to select
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'misc'
_subcode = 'slct' _subcode = 'slct'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_Enum_list = None # XXXX enum list not found!! _Enum_list = None # XXXX enum list not found!!
_Enum_bool = None # XXXX enum bool not found!! _Enum_bool = None # XXXX enum bool not found!!
@ -324,3 +324,12 @@ _Enum_bool = None # XXXX enum bool not found!!
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -12,195 +12,195 @@ _code = 'tpdf'
class Type_Definitions_Events: class Type_Definitions_Events:
pass pass
class alias_list(aetools.ComponentItem): 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). """ """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' want = 'alst'
class label(aetools.ComponentItem): class label(aetools.ComponentItem):
"""label - (NOT AVAILABLE YET) A Finder label (name and color) """ """label - (NOT AVAILABLE YET) A Finder label (name and color) """
want = 'clbl' want = 'clbl'
class _Prop_color(aetools.NProperty): class _Prop_color(aetools.NProperty):
"""color - the color associated with the label """ """color - the color associated with the label """
which = 'colr' which = 'colr'
want = 'cRGB' want = 'cRGB'
class _Prop_index(aetools.NProperty): class _Prop_index(aetools.NProperty):
"""index - the index in the front-to-back ordering within its container """ """index - the index in the front-to-back ordering within its container """
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name associated with the label """ """name - the name associated with the label """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class preferences(aetools.ComponentItem): class preferences(aetools.ComponentItem):
"""preferences - (NOT AVAILABLE, SUBJECT TO CHANGE) The Finder Preferences """ """preferences - (NOT AVAILABLE, SUBJECT TO CHANGE) The Finder Preferences """
want = 'cprf' want = 'cprf'
class _Prop_button_view_arrangement(aetools.NProperty): class _Prop_button_view_arrangement(aetools.NProperty):
"""button view arrangement - the method of arrangement of icons in default Finder button view windows """ """button view arrangement - the method of arrangement of icons in default Finder button view windows """
which = 'barr' which = 'barr'
want = 'earr' want = 'earr'
class _Prop_button_view_icon_size(aetools.NProperty): class _Prop_button_view_icon_size(aetools.NProperty):
"""button view icon size - the size of icons displayed in Finder button view windows. """ """button view icon size - the size of icons displayed in Finder button view windows. """
which = 'bisz' which = 'bisz'
want = 'long' want = 'long'
class _Prop_calculates_folder_sizes(aetools.NProperty): class _Prop_calculates_folder_sizes(aetools.NProperty):
"""calculates folder sizes - Are folder sizes calculated and displayed in Finder list view windows? """ """calculates folder sizes - Are folder sizes calculated and displayed in Finder list view windows? """
which = 'sfsz' which = 'sfsz'
want = 'bool' want = 'bool'
class _Prop_delay_before_springing(aetools.NProperty): class _Prop_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) """ """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' which = 'dela'
want = 'shor' want = 'shor'
class _Prop_list_view_icon_size(aetools.NProperty): class _Prop_list_view_icon_size(aetools.NProperty):
"""list view icon size - the size of icons displayed in Finder list view windows. """ """list view icon size - the size of icons displayed in Finder list view windows. """
which = 'lisz' which = 'lisz'
want = 'long' want = 'long'
class _Prop_shows_comments(aetools.NProperty): class _Prop_shows_comments(aetools.NProperty):
"""shows comments - Are comments displayed in default Finder list view windows? """ """shows comments - Are comments displayed in default Finder list view windows? """
which = 'scom' which = 'scom'
want = 'bool' want = 'bool'
class _Prop_shows_creation_date(aetools.NProperty): class _Prop_shows_creation_date(aetools.NProperty):
"""shows creation date - Are creation dates displayed in default Finder list view windows? """ """shows creation date - Are creation dates displayed in default Finder list view windows? """
which = 'scda' which = 'scda'
want = 'bool' want = 'bool'
class _Prop_shows_kind(aetools.NProperty): class _Prop_shows_kind(aetools.NProperty):
"""shows kind - Are document kinds displayed in default Finder list view windows? """ """shows kind - Are document kinds displayed in default Finder list view windows? """
which = 'sknd' which = 'sknd'
want = 'bool' want = 'bool'
class _Prop_shows_label(aetools.NProperty): class _Prop_shows_label(aetools.NProperty):
"""shows label - Are labels displayed in default Finder list view windows? """ """shows label - Are labels displayed in default Finder list view windows? """
which = 'slbl' which = 'slbl'
want = 'bool' want = 'bool'
class _Prop_shows_modification_date(aetools.NProperty): class _Prop_shows_modification_date(aetools.NProperty):
"""shows modification date - Are modification dates displayed in default Finder list view windows? """ """shows modification date - Are modification dates displayed in default Finder list view windows? """
which = 'sdat' which = 'sdat'
want = 'bool' want = 'bool'
class _Prop_shows_size(aetools.NProperty): class _Prop_shows_size(aetools.NProperty):
"""shows size - Are file sizes displayed in default Finder list view windows? """ """shows size - Are file sizes displayed in default Finder list view windows? """
which = 'ssiz' which = 'ssiz'
want = 'bool' want = 'bool'
class _Prop_shows_version(aetools.NProperty): class _Prop_shows_version(aetools.NProperty):
"""shows version - Are file versions displayed in default Finder list view windows? """ """shows version - Are file versions displayed in default Finder list view windows? """
which = 'svrs' which = 'svrs'
want = 'bool' want = 'bool'
class _Prop_spatial_view_arrangement(aetools.NProperty): class _Prop_spatial_view_arrangement(aetools.NProperty):
"""spatial view arrangement - the method of arrangement of icons in default Finder spatial view windows """ """spatial view arrangement - the method of arrangement of icons in default Finder spatial view windows """
which = 'iarr' which = 'iarr'
want = 'earr' want = 'earr'
class _Prop_spatial_view_icon_size(aetools.NProperty): class _Prop_spatial_view_icon_size(aetools.NProperty):
"""spatial view icon size - the size of icons displayed in Finder spatial view windows. """ """spatial view icon size - the size of icons displayed in Finder spatial view windows. """
which = 'iisz' which = 'iisz'
want = 'long' want = 'long'
class _Prop_spring_open_folders(aetools.NProperty): class _Prop_spring_open_folders(aetools.NProperty):
"""spring open folders - Spring open folders after the specified delay? """ """spring open folders - Spring open folders after the specified delay? """
which = 'sprg' which = 'sprg'
want = 'bool' want = 'bool'
class _Prop_uses_relative_dates(aetools.NProperty): class _Prop_uses_relative_dates(aetools.NProperty):
"""uses relative dates - Are relative dates (e.g., today, yesterday) shown in Finder list view windows? """ """uses relative dates - Are relative dates (e.g., today, yesterday) shown in Finder list view windows? """
which = 'urdt' which = 'urdt'
want = 'bool' want = 'bool'
class _Prop_uses_simple_menus(aetools.NProperty): class _Prop_uses_simple_menus(aetools.NProperty):
"""uses simple menus - Use simplified Finder menus? """ """uses simple menus - Use simplified Finder menus? """
which = 'usme' which = 'usme'
want = 'bool' want = 'bool'
class _Prop_uses_wide_grid(aetools.NProperty): class _Prop_uses_wide_grid(aetools.NProperty):
"""uses wide grid - Space icons on a wide grid? """ """uses wide grid - Space icons on a wide grid? """
which = 'uswg' which = 'uswg'
want = 'bool' want = 'bool'
class _Prop_view_font(aetools.NProperty): class _Prop_view_font(aetools.NProperty):
"""view font - the id of the font used in Finder views. """ """view font - the id of the font used in Finder views. """
which = 'vfnt' which = 'vfnt'
want = 'long' want = 'long'
class _Prop_view_font_size(aetools.NProperty): class _Prop_view_font_size(aetools.NProperty):
"""view font size - the size of the font used in Finder views """ """view font size - the size of the font used in Finder views """
which = 'vfsz' which = 'vfsz'
want = 'long' want = 'long'
class _Prop_window(aetools.NProperty): class _Prop_window(aetools.NProperty):
"""window - the window that would open if Finder preferences was opened """ """window - the window that would open if Finder preferences was opened """
which = 'cwin' which = 'cwin'
want = 'pwnd' want = 'pwnd'
# element 'clbl' as ['indx', 'name'] # element 'clbl' as ['indx', 'name']
class icon_view_options(aetools.ComponentItem): class icon_view_options(aetools.ComponentItem):
"""icon view options - the icon view options """ """icon view options - the icon view options """
want = 'icop' want = 'icop'
_Prop_arrangement = _Prop_spatial_view_arrangement _Prop_arrangement = _Prop_spatial_view_arrangement
class _Prop_icon_size(aetools.NProperty): class _Prop_icon_size(aetools.NProperty):
"""icon size - the size of icons displayed in the icon view """ """icon size - the size of icons displayed in the icon view """
which = 'lvis' which = 'lvis'
want = 'shor' want = 'shor'
class icon_family(aetools.ComponentItem): class icon_family(aetools.ComponentItem):
"""icon family - (NOT AVAILABLE YET) A family of icons """ """icon family - (NOT AVAILABLE YET) A family of icons """
want = 'ifam' want = 'ifam'
class _Prop_large_32_bit_icon(aetools.NProperty): class _Prop_large_32_bit_icon(aetools.NProperty):
"""large 32 bit icon - the large 32-bit color icon """ """large 32 bit icon - the large 32-bit color icon """
which = 'il32' which = 'il32'
want = 'il32' want = 'il32'
class _Prop_large_4_bit_icon(aetools.NProperty): class _Prop_large_4_bit_icon(aetools.NProperty):
"""large 4 bit icon - the large 4-bit color icon """ """large 4 bit icon - the large 4-bit color icon """
which = 'icl4' which = 'icl4'
want = 'icl4' want = 'icl4'
class _Prop_large_8_bit_icon(aetools.NProperty): class _Prop_large_8_bit_icon(aetools.NProperty):
"""large 8 bit icon - the large 8-bit color icon """ """large 8 bit icon - the large 8-bit color icon """
which = 'icl8' which = 'icl8'
want = 'icl8' want = 'icl8'
class _Prop_large_8_bit_mask(aetools.NProperty): class _Prop_large_8_bit_mask(aetools.NProperty):
"""large 8 bit mask - the large 8-bit mask for large 32-bit icons """ """large 8 bit mask - the large 8-bit mask for large 32-bit icons """
which = 'l8mk' which = 'l8mk'
want = 'l8mk' want = 'l8mk'
class _Prop_large_monochrome_icon_and_mask(aetools.NProperty): class _Prop_large_monochrome_icon_and_mask(aetools.NProperty):
"""large monochrome icon and mask - the large black-and-white icon and the mask for large icons """ """large monochrome icon and mask - the large black-and-white icon and the mask for large icons """
which = 'ICN#' which = 'ICN#'
want = 'ICN#' want = 'ICN#'
class _Prop_small_32_bit_icon(aetools.NProperty): class _Prop_small_32_bit_icon(aetools.NProperty):
"""small 32 bit icon - the small 32-bit color icon """ """small 32 bit icon - the small 32-bit color icon """
which = 'is32' which = 'is32'
want = 'is32' want = 'is32'
class _Prop_small_4_bit_icon(aetools.NProperty): class _Prop_small_4_bit_icon(aetools.NProperty):
"""small 4 bit icon - the small 4-bit color icon """ """small 4 bit icon - the small 4-bit color icon """
which = 'ics4' which = 'ics4'
want = 'ics4' want = 'ics4'
class _Prop_small_8_bit_icon(aetools.NProperty): class _Prop_small_8_bit_icon(aetools.NProperty):
"""small 8 bit icon - the small 8-bit color icon """ """small 8 bit icon - the small 8-bit color icon """
which = 'ics8' which = 'ics8'
want = 'ics8' want = 'ics8'
_Prop_small_8_bit_mask = _Prop_small_8_bit_icon _Prop_small_8_bit_mask = _Prop_small_8_bit_icon
class _Prop_small_monochrome_icon_and_mask(aetools.NProperty): class _Prop_small_monochrome_icon_and_mask(aetools.NProperty):
"""small monochrome icon and mask - the small black-and-white icon and the mask for small icons """ """small monochrome icon and mask - the small black-and-white icon and the mask for small icons """
which = 'ics#' which = 'ics#'
want = 'ics#' want = 'ics#'
class column(aetools.ComponentItem): class column(aetools.ComponentItem):
"""column - a column of a list view """ """column - a column of a list view """
want = 'lvcl' want = 'lvcl'
class _Prop_sort_direction(aetools.NProperty): class _Prop_sort_direction(aetools.NProperty):
"""sort direction - The direction in which the window is sorted """ """sort direction - The direction in which the window is sorted """
which = 'sord' which = 'sord'
want = 'sodr' want = 'sodr'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - is this column visible """ """visible - is this column visible """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class _Prop_width(aetools.NProperty): class _Prop_width(aetools.NProperty):
"""width - the width of this column """ """width - the width of this column """
which = 'clwd' which = 'clwd'
want = 'shor' want = 'shor'
columns = column columns = column
class list_view_options(aetools.ComponentItem): class list_view_options(aetools.ComponentItem):
"""list view options - the list view options """ """list view options - the list view options """
want = 'lvop' want = 'lvop'
class _Prop_sort_column(aetools.NProperty): class _Prop_sort_column(aetools.NProperty):
"""sort column - the column that the list view is sorted on """ """sort column - the column that the list view is sorted on """
which = 'srtc' which = 'srtc'
want = 'lvcl' want = 'lvcl'
# element 'lvcl' as ['indx', 'rele', 'rang', 'test'] # element 'lvcl' as ['indx', 'rele', 'rang', 'test']
alias_list._superclassnames = [] alias_list._superclassnames = []
alias_list._privpropdict = { alias_list._privpropdict = {
@ -209,91 +209,138 @@ alias_list._privelemdict = {
} }
label._superclassnames = [] label._superclassnames = []
label._privpropdict = { label._privpropdict = {
'color' : _Prop_color, 'color' : _Prop_color,
'index' : _Prop_index, 'index' : _Prop_index,
'name' : _Prop_name, 'name' : _Prop_name,
} }
label._privelemdict = { label._privelemdict = {
} }
preferences._superclassnames = [] preferences._superclassnames = []
preferences._privpropdict = { preferences._privpropdict = {
'button_view_arrangement' : _Prop_button_view_arrangement, 'button_view_arrangement' : _Prop_button_view_arrangement,
'button_view_icon_size' : _Prop_button_view_icon_size, 'button_view_icon_size' : _Prop_button_view_icon_size,
'calculates_folder_sizes' : _Prop_calculates_folder_sizes, 'calculates_folder_sizes' : _Prop_calculates_folder_sizes,
'delay_before_springing' : _Prop_delay_before_springing, 'delay_before_springing' : _Prop_delay_before_springing,
'list_view_icon_size' : _Prop_list_view_icon_size, 'list_view_icon_size' : _Prop_list_view_icon_size,
'shows_comments' : _Prop_shows_comments, 'shows_comments' : _Prop_shows_comments,
'shows_creation_date' : _Prop_shows_creation_date, 'shows_creation_date' : _Prop_shows_creation_date,
'shows_kind' : _Prop_shows_kind, 'shows_kind' : _Prop_shows_kind,
'shows_label' : _Prop_shows_label, 'shows_label' : _Prop_shows_label,
'shows_modification_date' : _Prop_shows_modification_date, 'shows_modification_date' : _Prop_shows_modification_date,
'shows_size' : _Prop_shows_size, 'shows_size' : _Prop_shows_size,
'shows_version' : _Prop_shows_version, 'shows_version' : _Prop_shows_version,
'spatial_view_arrangement' : _Prop_spatial_view_arrangement, 'spatial_view_arrangement' : _Prop_spatial_view_arrangement,
'spatial_view_icon_size' : _Prop_spatial_view_icon_size, 'spatial_view_icon_size' : _Prop_spatial_view_icon_size,
'spring_open_folders' : _Prop_spring_open_folders, 'spring_open_folders' : _Prop_spring_open_folders,
'uses_relative_dates' : _Prop_uses_relative_dates, 'uses_relative_dates' : _Prop_uses_relative_dates,
'uses_simple_menus' : _Prop_uses_simple_menus, 'uses_simple_menus' : _Prop_uses_simple_menus,
'uses_wide_grid' : _Prop_uses_wide_grid, 'uses_wide_grid' : _Prop_uses_wide_grid,
'view_font' : _Prop_view_font, 'view_font' : _Prop_view_font,
'view_font_size' : _Prop_view_font_size, 'view_font_size' : _Prop_view_font_size,
'window' : _Prop_window, 'window' : _Prop_window,
} }
preferences._privelemdict = { preferences._privelemdict = {
'label' : label, 'label' : label,
} }
icon_view_options._superclassnames = [] icon_view_options._superclassnames = []
icon_view_options._privpropdict = { icon_view_options._privpropdict = {
'arrangement' : _Prop_arrangement, 'arrangement' : _Prop_arrangement,
'icon_size' : _Prop_icon_size, 'icon_size' : _Prop_icon_size,
} }
icon_view_options._privelemdict = { icon_view_options._privelemdict = {
} }
icon_family._superclassnames = [] icon_family._superclassnames = []
icon_family._privpropdict = { icon_family._privpropdict = {
'large_32_bit_icon' : _Prop_large_32_bit_icon, 'large_32_bit_icon' : _Prop_large_32_bit_icon,
'large_4_bit_icon' : _Prop_large_4_bit_icon, 'large_4_bit_icon' : _Prop_large_4_bit_icon,
'large_8_bit_icon' : _Prop_large_8_bit_icon, 'large_8_bit_icon' : _Prop_large_8_bit_icon,
'large_8_bit_mask' : _Prop_large_8_bit_mask, 'large_8_bit_mask' : _Prop_large_8_bit_mask,
'large_monochrome_icon_and_mask' : _Prop_large_monochrome_icon_and_mask, 'large_monochrome_icon_and_mask' : _Prop_large_monochrome_icon_and_mask,
'small_32_bit_icon' : _Prop_small_32_bit_icon, 'small_32_bit_icon' : _Prop_small_32_bit_icon,
'small_4_bit_icon' : _Prop_small_4_bit_icon, 'small_4_bit_icon' : _Prop_small_4_bit_icon,
'small_8_bit_icon' : _Prop_small_8_bit_icon, 'small_8_bit_icon' : _Prop_small_8_bit_icon,
'small_8_bit_mask' : _Prop_small_8_bit_mask, 'small_8_bit_mask' : _Prop_small_8_bit_mask,
'small_monochrome_icon_and_mask' : _Prop_small_monochrome_icon_and_mask, 'small_monochrome_icon_and_mask' : _Prop_small_monochrome_icon_and_mask,
} }
icon_family._privelemdict = { icon_family._privelemdict = {
} }
column._superclassnames = [] column._superclassnames = []
column._privpropdict = { column._privpropdict = {
'index' : _Prop_index, 'index' : _Prop_index,
'name' : _Prop_name, 'name' : _Prop_name,
'sort_direction' : _Prop_sort_direction, 'sort_direction' : _Prop_sort_direction,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
'width' : _Prop_width, 'width' : _Prop_width,
} }
column._privelemdict = { column._privelemdict = {
} }
list_view_options._superclassnames = [] list_view_options._superclassnames = []
list_view_options._privpropdict = { list_view_options._privpropdict = {
'calculates_folder_sizes' : _Prop_calculates_folder_sizes, 'calculates_folder_sizes' : _Prop_calculates_folder_sizes,
'icon_size' : _Prop_icon_size, 'icon_size' : _Prop_icon_size,
'sort_column' : _Prop_sort_column, 'sort_column' : _Prop_sort_column,
'uses_relative_dates' : _Prop_uses_relative_dates, 'uses_relative_dates' : _Prop_uses_relative_dates,
} }
list_view_options._privelemdict = { list_view_options._privelemdict = {
'column' : column, 'column' : column,
} }
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'alst' : alias_list, 'alst' : alias_list,
'clbl' : label, 'clbl' : label,
'cprf' : preferences, 'cprf' : preferences,
'icop' : icon_view_options, 'icop' : icon_view_options,
'ifam' : icon_family, 'ifam' : icon_family,
'lvcl' : column, 'lvcl' : column,
'lvop' : list_view_options, 'lvop' : list_view_options,
}
_propdeclarations = {
'ICN#' : _Prop_large_monochrome_icon_and_mask,
'barr' : _Prop_button_view_arrangement,
'bisz' : _Prop_button_view_icon_size,
'clwd' : _Prop_width,
'colr' : _Prop_color,
'cwin' : _Prop_window,
'dela' : _Prop_delay_before_springing,
'iarr' : _Prop_spatial_view_arrangement,
'icl4' : _Prop_large_4_bit_icon,
'icl8' : _Prop_large_8_bit_icon,
'ics#' : _Prop_small_monochrome_icon_and_mask,
'ics4' : _Prop_small_4_bit_icon,
'ics8' : _Prop_small_8_bit_icon,
'iisz' : _Prop_spatial_view_icon_size,
'il32' : _Prop_large_32_bit_icon,
'is32' : _Prop_small_32_bit_icon,
'l8mk' : _Prop_large_8_bit_mask,
'lisz' : _Prop_list_view_icon_size,
'lvis' : _Prop_icon_size,
'pidx' : _Prop_index,
'pnam' : _Prop_name,
'pvis' : _Prop_visible,
'scda' : _Prop_shows_creation_date,
'scom' : _Prop_shows_comments,
'sdat' : _Prop_shows_modification_date,
'sfsz' : _Prop_calculates_folder_sizes,
'sknd' : _Prop_shows_kind,
'slbl' : _Prop_shows_label,
'sord' : _Prop_sort_direction,
'sprg' : _Prop_spring_open_folders,
'srtc' : _Prop_sort_column,
'ssiz' : _Prop_shows_size,
'svrs' : _Prop_shows_version,
'urdt' : _Prop_uses_relative_dates,
'usme' : _Prop_uses_simple_menus,
'uswg' : _Prop_uses_wide_grid,
'vfnt' : _Prop_view_font,
'vfsz' : _Prop_view_font_size,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,175 +12,175 @@ _code = 'fndr'
class Window_classes_Events: class Window_classes_Events:
pass pass
class Finder_window(aetools.ComponentItem): class Finder_window(aetools.ComponentItem):
"""Finder window - A file viewer window """ """Finder window - A file viewer window """
want = 'brow' want = 'brow'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from the window class """ """<Inheritance> - inherits some of its properties from the window class """
which = 'c@#^' which = 'c@#^'
want = 'cwin' want = 'cwin'
class _Prop_current_view(aetools.NProperty): class _Prop_current_view(aetools.NProperty):
"""current view - the current view for the container window """ """current view - the current view for the container window """
which = 'pvew' which = 'pvew'
want = 'ecvw' want = 'ecvw'
class _Prop_icon_view_options(aetools.NProperty): class _Prop_icon_view_options(aetools.NProperty):
"""icon view options - the icon view options for the container window """ """icon view options - the icon view options for the container window """
which = 'icop' which = 'icop'
want = 'icop' want = 'icop'
class _Prop_list_view_options(aetools.NProperty): class _Prop_list_view_options(aetools.NProperty):
"""list view options - the list view options for the container window """ """list view options - the list view options for the container window """
which = 'lvop' which = 'lvop'
want = 'lvop' want = 'lvop'
class _Prop_target(aetools.NProperty): class _Prop_target(aetools.NProperty):
"""target - the container at which this file viewer is targeted """ """target - the container at which this file viewer is targeted """
which = 'fvtg' which = 'fvtg'
want = 'obj ' want = 'obj '
Finder_windows = Finder_window Finder_windows = Finder_window
class window(aetools.ComponentItem): class window(aetools.ComponentItem):
"""window - A window """ """window - A window """
want = 'cwin' want = 'cwin'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window """ """bounds - the boundary rectangle for the window """
which = 'pbnd' which = 'pbnd'
want = 'qdrt' want = 'qdrt'
class _Prop_closeable(aetools.NProperty): class _Prop_closeable(aetools.NProperty):
"""closeable - Does the window have a close box? """ """closeable - Does the window have a close box? """
which = 'hclb' which = 'hclb'
want = 'bool' want = 'bool'
class _Prop_collapsed(aetools.NProperty): class _Prop_collapsed(aetools.NProperty):
"""collapsed - Is the window collapsed """ """collapsed - Is the window collapsed """
which = 'wshd' which = 'wshd'
want = 'bool' want = 'bool'
class _Prop_floating(aetools.NProperty): class _Prop_floating(aetools.NProperty):
"""floating - Does the window have a title bar? """ """floating - Does the window have a title bar? """
which = 'isfl' which = 'isfl'
want = 'bool' want = 'bool'
class _Prop_id(aetools.NProperty): class _Prop_id(aetools.NProperty):
"""id - the unique id for this window """ """id - the unique id for this window """
which = 'ID ' which = 'ID '
want = 'magn' want = 'magn'
class _Prop_index(aetools.NProperty): class _Prop_index(aetools.NProperty):
"""index - the number of the window in the front-to-back layer ordering """ """index - the number of the window in the front-to-back layer ordering """
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
class _Prop_modal(aetools.NProperty): class _Prop_modal(aetools.NProperty):
"""modal - Is the window modal? """ """modal - Is the window modal? """
which = 'pmod' which = 'pmod'
want = 'bool' want = 'bool'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name of the window """ """name - the name of the window """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class _Prop_position(aetools.NProperty): class _Prop_position(aetools.NProperty):
"""position - the upper left position of the window """ """position - the upper left position of the window """
which = 'posn' which = 'posn'
want = 'QDpt' want = 'QDpt'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - every property of a window """ """properties - every property of a window """
which = 'pALL' which = 'pALL'
want = 'reco' want = 'reco'
class _Prop_resizable(aetools.NProperty): class _Prop_resizable(aetools.NProperty):
"""resizable - Is the window resizable? """ """resizable - Is the window resizable? """
which = 'prsz' which = 'prsz'
want = 'bool' want = 'bool'
class _Prop_titled(aetools.NProperty): class _Prop_titled(aetools.NProperty):
"""titled - Does the window have a title bar? """ """titled - Does the window have a title bar? """
which = 'ptit' which = 'ptit'
want = 'bool' want = 'bool'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - Is the window visible (always true for open Finder windows)? """ """visible - Is the window visible (always true for open Finder windows)? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class _Prop_zoomable(aetools.NProperty): class _Prop_zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """ """zoomable - Is the window zoomable? """
which = 'iszm' which = 'iszm'
want = 'bool' want = 'bool'
class _Prop_zoomed(aetools.NProperty): class _Prop_zoomed(aetools.NProperty):
"""zoomed - Is the window zoomed? """ """zoomed - Is the window zoomed? """
which = 'pzum' which = 'pzum'
want = 'bool' want = 'bool'
class _Prop_zoomed_full_size(aetools.NProperty): class _Prop_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) """ """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read) """
which = 'zumf' which = 'zumf'
want = 'bool' want = 'bool'
windows = window windows = window
class information_window(aetools.ComponentItem): class information_window(aetools.ComponentItem):
"""information window - An inspector window (opened by \xd2Show Info\xd3) """ """information window - An inspector window (opened by \xd2Show Info\xd3) """
want = 'iwnd' want = 'iwnd'
class _Prop_current_panel(aetools.NProperty): class _Prop_current_panel(aetools.NProperty):
"""current panel - the current panel in the information window """ """current panel - the current panel in the information window """
which = 'panl' which = 'panl'
want = 'ipnl' want = 'ipnl'
class _Prop_item(aetools.NProperty): class _Prop_item(aetools.NProperty):
"""item - the item from which this window was opened """ """item - the item from which this window was opened """
which = 'cobj' which = 'cobj'
want = 'obj ' want = 'obj '
class clipping_window(aetools.ComponentItem): class clipping_window(aetools.ComponentItem):
"""clipping window - The window containing a clipping """ """clipping window - The window containing a clipping """
want = 'lwnd' want = 'lwnd'
clipping_windows = clipping_window clipping_windows = clipping_window
class preferences_window(aetools.ComponentItem): class preferences_window(aetools.ComponentItem):
"""preferences window - (NOT AVAILABLE YET) The Finder Preferences window """ """preferences window - (NOT AVAILABLE YET) The Finder Preferences window """
want = 'pwnd' want = 'pwnd'
Finder_window._superclassnames = ['window'] Finder_window._superclassnames = ['window']
Finder_window._privpropdict = { Finder_window._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'current_view' : _Prop_current_view, 'current_view' : _Prop_current_view,
'icon_view_options' : _Prop_icon_view_options, 'icon_view_options' : _Prop_icon_view_options,
'list_view_options' : _Prop_list_view_options, 'list_view_options' : _Prop_list_view_options,
'target' : _Prop_target, 'target' : _Prop_target,
} }
Finder_window._privelemdict = { Finder_window._privelemdict = {
} }
window._superclassnames = [] window._superclassnames = []
window._privpropdict = { window._privpropdict = {
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'closeable' : _Prop_closeable, 'closeable' : _Prop_closeable,
'collapsed' : _Prop_collapsed, 'collapsed' : _Prop_collapsed,
'floating' : _Prop_floating, 'floating' : _Prop_floating,
'id' : _Prop_id, 'id' : _Prop_id,
'index' : _Prop_index, 'index' : _Prop_index,
'modal' : _Prop_modal, 'modal' : _Prop_modal,
'name' : _Prop_name, 'name' : _Prop_name,
'position' : _Prop_position, 'position' : _Prop_position,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'resizable' : _Prop_resizable, 'resizable' : _Prop_resizable,
'titled' : _Prop_titled, 'titled' : _Prop_titled,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
'zoomable' : _Prop_zoomable, 'zoomable' : _Prop_zoomable,
'zoomed' : _Prop_zoomed, 'zoomed' : _Prop_zoomed,
'zoomed_full_size' : _Prop_zoomed_full_size, 'zoomed_full_size' : _Prop_zoomed_full_size,
} }
window._privelemdict = { window._privelemdict = {
} }
information_window._superclassnames = ['window'] information_window._superclassnames = ['window']
information_window._privpropdict = { information_window._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'current_panel' : _Prop_current_panel, 'current_panel' : _Prop_current_panel,
'item' : _Prop_item, 'item' : _Prop_item,
} }
information_window._privelemdict = { information_window._privelemdict = {
} }
clipping_window._superclassnames = ['window'] clipping_window._superclassnames = ['window']
clipping_window._privpropdict = { clipping_window._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
} }
clipping_window._privelemdict = { clipping_window._privelemdict = {
} }
preferences_window._superclassnames = ['window'] preferences_window._superclassnames = ['window']
preferences_window._privpropdict = { preferences_window._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'current_panel' : _Prop_current_panel, 'current_panel' : _Prop_current_panel,
} }
preferences_window._privelemdict = { preferences_window._privelemdict = {
} }
@ -189,9 +189,41 @@ preferences_window._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'brow' : Finder_window, 'brow' : Finder_window,
'cwin' : window, 'cwin' : window,
'iwnd' : information_window, 'iwnd' : information_window,
'lwnd' : clipping_window, 'lwnd' : clipping_window,
'pwnd' : preferences_window, 'pwnd' : preferences_window,
}
_propdeclarations = {
'ID ' : _Prop_id,
'c@#^' : _Prop__3c_Inheritance_3e_,
'cobj' : _Prop_item,
'fvtg' : _Prop_target,
'hclb' : _Prop_closeable,
'icop' : _Prop_icon_view_options,
'isfl' : _Prop_floating,
'iszm' : _Prop_zoomable,
'lvop' : _Prop_list_view_options,
'pALL' : _Prop_properties,
'panl' : _Prop_current_panel,
'pbnd' : _Prop_bounds,
'pidx' : _Prop_index,
'pmod' : _Prop_modal,
'pnam' : _Prop_name,
'posn' : _Prop_position,
'prsz' : _Prop_resizable,
'ptit' : _Prop_titled,
'pvew' : _Prop_current_view,
'pvis' : _Prop_visible,
'pzum' : _Prop_zoomed,
'wshd' : _Prop_collapsed,
'zumf' : _Prop_zoomed_full_size,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -15,29 +15,29 @@ import Enumerations
_code_to_module = { _code_to_module = {
'CoRe' : Standard_Suite, 'CoRe' : Standard_Suite,
'fleg' : Legacy_suite, 'fleg' : Legacy_suite,
'fndr' : Containers_and_folders, 'fndr' : Containers_and_folders,
'fndr' : Files, 'fndr' : Files,
'fndr' : Finder_Basics, 'fndr' : Finder_Basics,
'fndr' : Finder_items, 'fndr' : Finder_items,
'fndr' : Window_classes, 'fndr' : Window_classes,
'tpdf' : Type_Definitions, 'tpdf' : Type_Definitions,
'tpnm' : Enumerations, 'tpnm' : Enumerations,
} }
_code_to_fullname = { _code_to_fullname = {
'CoRe' : ('Finder.Standard_Suite', 'Standard_Suite'), 'CoRe' : ('Finder.Standard_Suite', 'Standard_Suite'),
'fleg' : ('Finder.Legacy_suite', 'Legacy_suite'), 'fleg' : ('Finder.Legacy_suite', 'Legacy_suite'),
'fndr' : ('Finder.Containers_and_folders', 'Containers_and_folders'), 'fndr' : ('Finder.Containers_and_folders', 'Containers_and_folders'),
'fndr' : ('Finder.Files', 'Files'), 'fndr' : ('Finder.Files', 'Files'),
'fndr' : ('Finder.Finder_Basics', 'Finder_Basics'), 'fndr' : ('Finder.Finder_Basics', 'Finder_Basics'),
'fndr' : ('Finder.Finder_items', 'Finder_items'), 'fndr' : ('Finder.Finder_items', 'Finder_items'),
'fndr' : ('Finder.Window_classes', 'Window_classes'), 'fndr' : ('Finder.Window_classes', 'Window_classes'),
'tpdf' : ('Finder.Type_Definitions', 'Type_Definitions'), 'tpdf' : ('Finder.Type_Definitions', 'Type_Definitions'),
'tpnm' : ('Finder.Enumerations', 'Enumerations'), 'tpnm' : ('Finder.Enumerations', 'Enumerations'),
} }
from Standard_Suite import * from Standard_Suite import *
@ -51,29 +51,26 @@ from Type_Definitions import *
from Enumerations import * from Enumerations import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
v._propdict = {} v._propdict = {}
v._elemdict = {} v._elemdict = {}
for superclassname in getattr(v, '_superclassnames', []): for superclassname in getattr(v, '_superclassnames', []):
superclass = eval(superclassname) superclass = eval(superclassname)
getbaseclasses(superclass) getbaseclasses(superclass)
v._propdict.update(getattr(superclass, '_propdict', {})) v._propdict.update(getattr(superclass, '_propdict', {}))
v._elemdict.update(getattr(superclass, '_elemdict', {})) v._elemdict.update(getattr(superclass, '_elemdict', {}))
v._propdict.update(getattr(v, '_privpropdict', {})) v._propdict.update(getattr(v, '_privpropdict', {}))
v._elemdict.update(getattr(v, '_privelemdict', {})) v._elemdict.update(getattr(v, '_privelemdict', {}))
import StdSuites 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(process)
getbaseclasses(application_process)
getbaseclasses(desk_accessory_process)
getbaseclasses(application) getbaseclasses(application)
getbaseclasses(trash_2d_object)
getbaseclasses(desktop_2d_object)
getbaseclasses(container)
getbaseclasses(folder)
getbaseclasses(disk)
getbaseclasses(item)
getbaseclasses(package) getbaseclasses(package)
getbaseclasses(file) getbaseclasses(file)
getbaseclasses(application_file) getbaseclasses(application_file)
@ -81,15 +78,6 @@ getbaseclasses(alias_file)
getbaseclasses(internet_location_file) getbaseclasses(internet_location_file)
getbaseclasses(document_file) getbaseclasses(document_file)
getbaseclasses(clipping) getbaseclasses(clipping)
getbaseclasses(preferences_window)
getbaseclasses(Finder_window)
getbaseclasses(window)
getbaseclasses(clipping_window)
getbaseclasses(information_window)
getbaseclasses(process)
getbaseclasses(application_process)
getbaseclasses(desk_accessory_process)
getbaseclasses(application)
getbaseclasses(icon_view_options) getbaseclasses(icon_view_options)
getbaseclasses(label) getbaseclasses(label)
getbaseclasses(column) getbaseclasses(column)
@ -97,6 +85,18 @@ getbaseclasses(preferences)
getbaseclasses(alias_list) getbaseclasses(alias_list)
getbaseclasses(icon_family) getbaseclasses(icon_family)
getbaseclasses(list_view_options) getbaseclasses(list_view_options)
getbaseclasses(application)
getbaseclasses(item)
getbaseclasses(trash_2d_object)
getbaseclasses(desktop_2d_object)
getbaseclasses(container)
getbaseclasses(folder)
getbaseclasses(disk)
getbaseclasses(preferences_window)
getbaseclasses(Finder_window)
getbaseclasses(window)
getbaseclasses(clipping_window)
getbaseclasses(information_window)
getbaseclasses(StdSuites.Type_Names_Suite.double_integer) getbaseclasses(StdSuites.Type_Names_Suite.double_integer)
getbaseclasses(StdSuites.Type_Names_Suite.version) getbaseclasses(StdSuites.Type_Names_Suite.version)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color) getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
@ -142,90 +142,90 @@ getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'prcs' : process,
'ctrs' : trash_2d_object, 'pcap' : application_process,
'cdsk' : desktop_2d_object, 'pcda' : desk_accessory_process,
'ctnr' : container, 'capp' : application,
'cfol' : folder, 'pack' : package,
'cdis' : disk, 'file' : file,
'cobj' : item, 'appf' : application_file,
'pack' : package, 'alia' : alias_file,
'file' : file, 'inlf' : internet_location_file,
'appf' : application_file, 'docf' : document_file,
'alia' : alias_file, 'clpf' : clipping,
'inlf' : internet_location_file, 'icop' : icon_view_options,
'docf' : document_file, 'clbl' : label,
'clpf' : clipping, 'lvcl' : column,
'pwnd' : preferences_window, 'cprf' : preferences,
'brow' : Finder_window, 'alst' : alias_list,
'cwin' : window, 'ifam' : icon_family,
'lwnd' : clipping_window, 'lvop' : list_view_options,
'iwnd' : information_window, 'capp' : application,
'prcs' : process, 'cobj' : item,
'pcap' : application_process, 'ctrs' : trash_2d_object,
'pcda' : desk_accessory_process, 'cdsk' : desktop_2d_object,
'capp' : application, 'ctnr' : container,
'icop' : icon_view_options, 'cfol' : folder,
'clbl' : label, 'cdis' : disk,
'lvcl' : column, 'pwnd' : preferences_window,
'cprf' : preferences, 'brow' : Finder_window,
'alst' : alias_list, 'cwin' : window,
'ifam' : icon_family, 'lwnd' : clipping_window,
'lvop' : list_view_options, 'iwnd' : information_window,
'comp' : StdSuites.Type_Names_Suite.double_integer, 'comp' : StdSuites.Type_Names_Suite.double_integer,
'vers' : StdSuites.Type_Names_Suite.version, 'vers' : StdSuites.Type_Names_Suite.version,
'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,
'clrt' : StdSuites.Type_Names_Suite.color_table, 'clrt' : StdSuites.Type_Names_Suite.color_table,
'fpnt' : StdSuites.Type_Names_Suite.fixed_point, 'fpnt' : StdSuites.Type_Names_Suite.fixed_point,
'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture, 'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture,
'elin' : StdSuites.Type_Names_Suite.type_element_info, 'elin' : StdSuites.Type_Names_Suite.type_element_info,
'evin' : StdSuites.Type_Names_Suite.type_event_info, 'evin' : StdSuites.Type_Names_Suite.type_event_info,
'mLoc' : StdSuites.Type_Names_Suite.machine_location, 'mLoc' : StdSuites.Type_Names_Suite.machine_location,
'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture, 'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture,
'QDpt' : StdSuites.Type_Names_Suite.point, 'QDpt' : StdSuites.Type_Names_Suite.point,
'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point, 'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point,
'cmen' : StdSuites.Type_Names_Suite.menu_item, 'cmen' : StdSuites.Type_Names_Suite.menu_item,
'styl' : StdSuites.Type_Names_Suite.scrap_styles, 'styl' : StdSuites.Type_Names_Suite.scrap_styles,
'aete' : StdSuites.Type_Names_Suite.application_dictionary, 'aete' : StdSuites.Type_Names_Suite.application_dictionary,
'magn' : StdSuites.Type_Names_Suite.unsigned_integer, 'magn' : StdSuites.Type_Names_Suite.unsigned_integer,
'cmnu' : StdSuites.Type_Names_Suite.menu, 'cmnu' : StdSuites.Type_Names_Suite.menu,
'frct' : StdSuites.Type_Names_Suite.fixed_rectangle, 'frct' : StdSuites.Type_Names_Suite.fixed_rectangle,
'pinf' : StdSuites.Type_Names_Suite.type_property_info, 'pinf' : StdSuites.Type_Names_Suite.type_property_info,
'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle, 'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle,
'lfxd' : StdSuites.Type_Names_Suite.long_fixed, 'lfxd' : StdSuites.Type_Names_Suite.long_fixed,
'suin' : StdSuites.Type_Names_Suite.type_suite_info, 'suin' : StdSuites.Type_Names_Suite.type_suite_info,
'trot' : StdSuites.Type_Names_Suite.rotation, 'trot' : StdSuites.Type_Names_Suite.rotation,
'shor' : StdSuites.Type_Names_Suite.small_integer, 'shor' : StdSuites.Type_Names_Suite.small_integer,
'fixd' : StdSuites.Type_Names_Suite.fixed, 'fixd' : StdSuites.Type_Names_Suite.fixed,
'lpnt' : StdSuites.Type_Names_Suite.long_point, 'lpnt' : StdSuites.Type_Names_Suite.long_point,
'gcli' : StdSuites.Type_Names_Suite.type_class_info, 'gcli' : StdSuites.Type_Names_Suite.type_class_info,
'tr96' : StdSuites.Type_Names_Suite.RGB96_color, 'tr96' : StdSuites.Type_Names_Suite.RGB96_color,
'targ' : StdSuites.Type_Names_Suite.target_id, 'targ' : StdSuites.Type_Names_Suite.target_id,
'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record, 'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record,
'pmin' : StdSuites.Type_Names_Suite.type_parameter_info, 'pmin' : StdSuites.Type_Names_Suite.type_parameter_info,
'exte' : StdSuites.Type_Names_Suite.extended_real, 'exte' : StdSuites.Type_Names_Suite.extended_real,
'lrct' : StdSuites.Type_Names_Suite.long_rectangle, 'lrct' : StdSuites.Type_Names_Suite.long_rectangle,
'tdas' : StdSuites.Type_Names_Suite.dash_style, 'tdas' : StdSuites.Type_Names_Suite.dash_style,
'TEXT' : StdSuites.Type_Names_Suite.string, 'TEXT' : StdSuites.Type_Names_Suite.string,
'sing' : StdSuites.Type_Names_Suite.small_real, 'sing' : StdSuites.Type_Names_Suite.small_real,
'null' : StdSuites.Type_Names_Suite.null, 'null' : StdSuites.Type_Names_Suite.null,
'insl' : StdSuites.Type_Names_Suite.location_reference, 'insl' : StdSuites.Type_Names_Suite.location_reference,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
} }
class Finder(Standard_Suite_Events, class Finder(Standard_Suite_Events,
Legacy_suite_Events, Legacy_suite_Events,
Containers_and_folders_Events, Containers_and_folders_Events,
Files_Events, Files_Events,
Finder_Basics_Events, Finder_Basics_Events,
Finder_items_Events, Finder_items_Events,
Window_classes_Events, Window_classes_Events,
Type_Definitions_Events, Type_Definitions_Events,
Enumerations_Events, Enumerations_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'MACS' _signature = 'MACS'
_moduleName = 'Finder' _moduleName = 'Finder'

View file

@ -12,241 +12,241 @@ _code = 'MOSS'
class Mozilla_suite_Events: class Mozilla_suite_Events:
def Get_Import_Data(self, _no_object=None, _attributes={}, **_arguments): def Get_Import_Data(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. """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.
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) 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 = 'Impt'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments): def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments):
"""Get Profile Name: Get the current User Profile """Get Profile Name: Get the current User Profile
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. 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 = 'upro'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments): def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments):
"""Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL """Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Will return text of the from \xd2FILE://foo/applicationname\xd3 Returns: Will return text of the from \xd2FILE://foo/applicationname\xd3
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'wurl' _subcode = 'wurl'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_Go = { _argmap_Go = {
'direction' : 'dire', 'direction' : 'dire',
} }
def Go(self, _object, _attributes={}, **_arguments): def Go(self, _object, _attributes={}, **_arguments):
"""Go: navigate a window: back, forward, again(reload), home) """Go: navigate a window: back, forward, again(reload), home)
Required argument: window Required argument: window
Keyword argument direction: undocumented, typecode 'dire' Keyword argument direction: undocumented, typecode 'dire'
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'gogo' _subcode = 'gogo'
aetools.keysubst(_arguments, self._argmap_Go) aetools.keysubst(_arguments, self._argmap_Go)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'dire', _Enum_dire) aetools.enumsubst(_arguments, 'dire', _Enum_dire)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Handle_command(self, _object, _attributes={}, **_arguments): def Handle_command(self, _object, _attributes={}, **_arguments):
"""Handle command: Handle a command """Handle command: Handle a command
Required argument: The command to handle Required argument: The command to handle
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'hcmd' _subcode = 'hcmd'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_Address_Book(self, _no_object=None, _attributes={}, **_arguments): def Open_Address_Book(self, _no_object=None, _attributes={}, **_arguments):
"""Open Address Book: Opens the address book """Open Address Book: Opens the address book
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'addr' _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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_Component(self, _object, _attributes={}, **_arguments): def Open_Component(self, _object, _attributes={}, **_arguments):
"""Open Component: Open a Communicator component """Open Component: Open a Communicator component
Required argument: The component to open Required argument: The component to open
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'cpnt' _subcode = 'cpnt'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_Profile_Manager(self, _no_object=None, _attributes={}, **_arguments): def Open_Profile_Manager(self, _no_object=None, _attributes={}, **_arguments):
"""Open Profile Manager: Open the user profile manager (obsolete) """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 = 'prfl' _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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def Open_bookmark(self, _object=None, _attributes={}, **_arguments): def Open_bookmark(self, _object=None, _attributes={}, **_arguments):
"""Open bookmark: Reads in a bookmark file """Open bookmark: Reads in a bookmark file
Required argument: If not available, reloads the current bookmark file 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 = 'book' _subcode = 'book'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_Read_help_file = { _argmap_Read_help_file = {
'with_index' : 'idid', 'with_index' : 'idid',
'search_text' : 'sear', 'search_text' : 'sear',
} }
def Read_help_file(self, _object, _attributes={}, **_arguments): def Read_help_file(self, _object, _attributes={}, **_arguments):
"""Read help file: Reads in the help file (file should be in the help file format) """Read help file: Reads in the help file (file should be in the help file format)
Required argument: undocumented, typecode 'alis' Required argument: undocumented, typecode 'alis'
Keyword argument with_index: Index to the help file. Defaults to \xd4DEFAULT\xd5) Keyword argument with_index: Index to the help file. Defaults to \xd4DEFAULT\xd5)
Keyword argument search_text: Optional text to search for 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 = 'help' _subcode = 'help'
aetools.keysubst(_arguments, self._argmap_Read_help_file) aetools.keysubst(_arguments, self._argmap_Read_help_file)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_Enum_comp = { _Enum_comp = {
'Navigator' : 'navg', # The Navigator component 'Navigator' : 'navg', # The Navigator component
'InBox' : 'inbx', # The InBox component 'InBox' : 'inbx', # The InBox component
'Newsgroups' : 'colb', # The Newsgroups component 'Newsgroups' : 'colb', # The Newsgroups component
'Composer' : 'cpsr', # The Page Composer component 'Composer' : 'cpsr', # The Page Composer component
'Conference' : 'conf', # The Conference Component 'Conference' : 'conf', # The Conference Component
'Calendar' : 'cald', # The Calendar Component 'Calendar' : 'cald', # The Calendar Component
} }
_Enum_dire = { _Enum_dire = {
'again' : 'agai', # Again (reload) 'again' : 'agai', # Again (reload)
'home' : 'home', # Home 'home' : 'home', # Home
'backward' : 'prev', # Previous page 'backward' : 'prev', # Previous page
'forward' : 'next', # Next 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', #
'Read_newsgroups' : '\x00\x00\x04\x04', # 'Read_newsgroups' : '\x00\x00\x04\x04', #
'Show_Inbox' : '\x00\x00\x04\x05', # 'Show_Inbox' : '\x00\x00\x04\x05', #
'Show_Bookmarks_window' : '\x00\x00\x04\x06', # 'Show_Bookmarks_window' : '\x00\x00\x04\x06', #
'Show_History_window' : '\x00\x00\x04\x07', # 'Show_History_window' : '\x00\x00\x04\x07', #
'Show_Address_Book_window' : '\x00\x00\x04\t', # 'Show_Address_Book_window' : '\x00\x00\x04\t', #
} }
@ -255,3 +255,15 @@ _Enum_ncmd = {
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
'comp' : _Enum_comp,
'dire' : _Enum_dire,
'ncmd' : _Enum_ncmd,
}

View file

@ -12,60 +12,60 @@ _code = 'ppnt'
class PowerPlant_Events: class PowerPlant_Events:
_argmap_SwitchTellTarget = { _argmap_SwitchTellTarget = {
'to' : 'data', 'to' : 'data',
} }
def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments): def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments):
"""SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
Keyword argument to: reference to new focus of AppleEvents Keyword argument to: reference to new focus of AppleEvents
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'ppnt' _code = 'ppnt'
_subcode = 'sttg' _subcode = 'sttg'
aetools.keysubst(_arguments, self._argmap_SwitchTellTarget) aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_select = { _argmap_select = {
'data' : 'data', 'data' : 'data',
} }
def select(self, _object, _attributes={}, **_arguments): def select(self, _object, _attributes={}, **_arguments):
"""select: Sets the present selection """select: Sets the present selection
Required argument: object to select or container of sub-objects to select Required argument: object to select or container of sub-objects to select
Keyword argument data: sub-object(s) to select Keyword argument data: sub-object(s) to select
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'misc'
_subcode = 'slct' _subcode = 'slct'
aetools.keysubst(_arguments, self._argmap_select) aetools.keysubst(_arguments, self._argmap_select)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_Enum_dbac = { _Enum_dbac = {
'DoNothing' : '\x00\x00\x00\x00', # No debugging action is taken. 'DoNothing' : '\x00\x00\x00\x00', # No debugging action is taken.
'PostAlert' : '\x00\x00\x00\x01', # Post an alert. 'PostAlert' : '\x00\x00\x00\x01', # Post an alert.
'LowLevelDebugger' : '\x00\x00\x00\x02', # Break into the low level debugger (MacsBug). 'LowLevelDebugger' : '\x00\x00\x00\x02', # Break into the low level debugger (MacsBug).
'SourceDebugger' : '\x00\x00\x00\x03', # Break into the source level debugger (if source debugger is executing). 'SourceDebugger' : '\x00\x00\x00\x03', # Break into the source level debugger (if source debugger is executing).
} }
@ -74,3 +74,13 @@ _Enum_dbac = {
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
'dbac' : _Enum_dbac,
}

View file

@ -13,83 +13,83 @@ _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 open(self, _object, _attributes={}, **_arguments): def open(self, _object, _attributes={}, **_arguments):
"""open: Open the specified object(s) """open: Open the specified object(s)
Required argument: list of objects to open Required argument: list of objects to open
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'odoc' _subcode = 'odoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def print_(self, _object, _attributes={}, **_arguments): def print_(self, _object, _attributes={}, **_arguments):
"""print: Print the specified object(s) """print: Print the specified object(s)
Required argument: list of objects to print Required argument: list of objects to print
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'pdoc' _subcode = 'pdoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def quit(self, _no_object=None, _attributes={}, **_arguments): def quit(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit Navigator """quit: Quit Navigator
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'quit' _subcode = 'quit'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def run(self, _no_object=None, _attributes={}, **_arguments): def run(self, _no_object=None, _attributes={}, **_arguments):
"""run: Sent to an application when it is double-clicked """run: Sent to an application when it is double-clicked
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'oapp' _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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -97,3 +97,12 @@ class Required_suite_Events(Required_Suite_Events):
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -13,195 +13,195 @@ _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):
def close(self, _object, _attributes={}, **_arguments): def close(self, _object, _attributes={}, **_arguments):
"""close: Close an object """close: Close an object
Required argument: the objects to close Required argument: the objects to close
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'clos' _subcode = 'clos'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def data_size(self, _object, _attributes={}, **_arguments): def data_size(self, _object, _attributes={}, **_arguments):
"""data size: Return the size in bytes of an object """data size: Return the size in bytes of an object
Required argument: the object whose data size is to be returned Required argument: the object whose data size is to be returned
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the size of the object in bytes Returns: the size of the object in bytes
""" """
_code = 'core' _code = 'core'
_subcode = 'dsiz' _subcode = 'dsiz'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def get(self, _object, _attributes={}, **_arguments): def get(self, _object, _attributes={}, **_arguments):
"""get: Get the data for an object """get: Get the data for an object
Required argument: the object whose data is to be returned Required argument: the object whose data is to be returned
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: The data from the object Returns: The data from the object
""" """
_code = 'core' _code = 'core'
_subcode = 'getd' _subcode = 'getd'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_set = { _argmap_set = {
'to' : 'data', 'to' : 'data',
} }
def set(self, _object, _attributes={}, **_arguments): def set(self, _object, _attributes={}, **_arguments):
"""set: Set an object\xd5s data """set: Set an object\xd5s data
Required argument: the object to change Required argument: the object to change
Keyword argument to: the new value Keyword argument to: the new value
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'setd' _subcode = 'setd'
aetools.keysubst(_arguments, self._argmap_set) aetools.keysubst(_arguments, self._argmap_set)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - An application program """ """application - An application program """
want = 'capp' want = 'capp'
class _Prop_alert_application(aetools.NProperty): class _Prop_alert_application(aetools.NProperty):
"""alert application - Most of the alerts will be sent to this application using yet unspecified AE interface. We need a few alert boxes: alert, confirm and notify. Any ideas on how to design this event? mailto:atotic@netscape.com. I\xd5d like to conform to the standard. """ """alert application - Most of the alerts will be sent to this application using yet unspecified AE interface. We need a few alert boxes: alert, confirm and notify. Any ideas on how to design this event? mailto:atotic@netscape.com. I\xd5d like to conform to the standard. """
which = 'ALAP' which = 'ALAP'
want = 'type' want = 'type'
class _Prop_kiosk_mode(aetools.NProperty): class _Prop_kiosk_mode(aetools.NProperty):
"""kiosk mode - Kiosk mode leaves very few menus enabled """ """kiosk mode - Kiosk mode leaves very few menus enabled """
which = 'KOSK' which = 'KOSK'
want = 'long' want = 'long'
# element 'cwin' as ['indx', 'name', 'ID '] # element 'cwin' as ['indx', 'name', 'ID ']
class window(aetools.ComponentItem): class window(aetools.ComponentItem):
"""window - A Window """ """window - A Window """
want = 'cwin' want = 'cwin'
class _Prop_URL(aetools.NProperty): class _Prop_URL(aetools.NProperty):
"""URL - Current URL """ """URL - Current URL """
which = 'curl' which = 'curl'
want = 'TEXT' want = 'TEXT'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window """ """bounds - the boundary rectangle for the window """
which = 'pbnd' which = 'pbnd'
want = 'qdrt' want = 'qdrt'
class _Prop_busy(aetools.NProperty): class _Prop_busy(aetools.NProperty):
"""busy - Is window loading something right now. 2, window is busy and will reject load requests. 1, window is busy, but will interrupt outstanding loads """ """busy - Is window loading something right now. 2, window is busy and will reject load requests. 1, window is busy, but will interrupt outstanding loads """
which = 'busy' which = 'busy'
want = 'long' want = 'long'
class _Prop_closeable(aetools.NProperty): class _Prop_closeable(aetools.NProperty):
"""closeable - Does the window have a close box? """ """closeable - Does the window have a close box? """
which = 'hclb' which = 'hclb'
want = 'bool' want = 'bool'
class _Prop_floating(aetools.NProperty): class _Prop_floating(aetools.NProperty):
"""floating - Does the window float? """ """floating - Does the window float? """
which = 'isfl' which = 'isfl'
want = 'bool' want = 'bool'
class _Prop_index(aetools.NProperty): class _Prop_index(aetools.NProperty):
"""index - the number of the window """ """index - the number of the window """
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
class _Prop_modal(aetools.NProperty): class _Prop_modal(aetools.NProperty):
"""modal - Is the window modal? """ """modal - Is the window modal? """
which = 'pmod' which = 'pmod'
want = 'bool' want = 'bool'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the title of the window """ """name - the title of the window """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
class _Prop_position(aetools.NProperty): class _Prop_position(aetools.NProperty):
"""position - upper left coordinates of window """ """position - upper left coordinates of window """
which = 'ppos' which = 'ppos'
want = 'QDpt' want = 'QDpt'
class _Prop_resizable(aetools.NProperty): class _Prop_resizable(aetools.NProperty):
"""resizable - Is the window resizable? """ """resizable - Is the window resizable? """
which = 'prsz' which = 'prsz'
want = 'bool' want = 'bool'
class _Prop_titled(aetools.NProperty): class _Prop_titled(aetools.NProperty):
"""titled - Does the window have a title bar? """ """titled - Does the window have a title bar? """
which = 'ptit' which = 'ptit'
want = 'bool' want = 'bool'
class _Prop_unique_ID(aetools.NProperty): class _Prop_unique_ID(aetools.NProperty):
"""unique ID - Window\xd5s unique ID (a bridge between WWW! suite window id\xd5s and standard AE windows) """ """unique ID - Window\xd5s unique ID (a bridge between WWW! suite window id\xd5s and standard AE windows) """
which = 'wiid' which = 'wiid'
want = 'long' want = 'long'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - is the window visible? """ """visible - is the window visible? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class _Prop_zoomable(aetools.NProperty): class _Prop_zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """ """zoomable - Is the window zoomable? """
which = 'iszm' which = 'iszm'
want = 'bool' want = 'bool'
class _Prop_zoomed(aetools.NProperty): class _Prop_zoomed(aetools.NProperty):
"""zoomed - Is the window zoomed? """ """zoomed - Is the window zoomed? """
which = 'pzum' which = 'pzum'
want = 'bool' want = 'bool'
application._superclassnames = [] application._superclassnames = []
application._privpropdict = { application._privpropdict = {
'alert_application' : _Prop_alert_application, 'alert_application' : _Prop_alert_application,
'kiosk_mode' : _Prop_kiosk_mode, 'kiosk_mode' : _Prop_kiosk_mode,
} }
application._privelemdict = { application._privelemdict = {
'window' : window, 'window' : window,
} }
window._superclassnames = [] window._superclassnames = []
window._privpropdict = { window._privpropdict = {
'URL' : _Prop_URL, 'URL' : _Prop_URL,
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'busy' : _Prop_busy, 'busy' : _Prop_busy,
'closeable' : _Prop_closeable, 'closeable' : _Prop_closeable,
'floating' : _Prop_floating, 'floating' : _Prop_floating,
'index' : _Prop_index, 'index' : _Prop_index,
'modal' : _Prop_modal, 'modal' : _Prop_modal,
'name' : _Prop_name, 'name' : _Prop_name,
'position' : _Prop_position, 'position' : _Prop_position,
'resizable' : _Prop_resizable, 'resizable' : _Prop_resizable,
'titled' : _Prop_titled, 'titled' : _Prop_titled,
'unique_ID' : _Prop_unique_ID, 'unique_ID' : _Prop_unique_ID,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
'zoomable' : _Prop_zoomable, 'zoomable' : _Prop_zoomable,
'zoomed' : _Prop_zoomed, 'zoomed' : _Prop_zoomed,
} }
window._privelemdict = { window._privelemdict = {
} }
@ -210,6 +210,32 @@ window._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
'cwin' : window, 'cwin' : window,
}
_propdeclarations = {
'ALAP' : _Prop_alert_application,
'KOSK' : _Prop_kiosk_mode,
'busy' : _Prop_busy,
'curl' : _Prop_URL,
'hclb' : _Prop_closeable,
'isfl' : _Prop_floating,
'iszm' : _Prop_zoomable,
'pbnd' : _Prop_bounds,
'pidx' : _Prop_index,
'pmod' : _Prop_modal,
'pnam' : _Prop_name,
'ppos' : _Prop_position,
'prsz' : _Prop_resizable,
'ptit' : _Prop_titled,
'pvis' : _Prop_visible,
'pzum' : _Prop_zoomed,
'wiid' : _Prop_unique_ID,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -14,34 +14,34 @@ _code = 'GURL'
class Standard_URL_suite_Events: class Standard_URL_suite_Events:
_argmap_GetURL = { _argmap_GetURL = {
'to' : 'dest', 'to' : 'dest',
'inside' : 'HWIN', 'inside' : 'HWIN',
'from_' : 'refe', 'from_' : 'refe',
} }
def GetURL(self, _object, _attributes={}, **_arguments): def GetURL(self, _object, _attributes={}, **_arguments):
"""GetURL: Loads the URL (optionally to disk) """GetURL: Loads the URL (optionally to disk)
Required argument: The url Required argument: The url
Keyword argument to: file the URL should be loaded into Keyword argument to: file the URL should be loaded into
Keyword argument inside: Window the URL should be loaded to Keyword argument inside: Window the URL should be loaded to
Keyword argument from_: Referrer, to be sent with the HTTP request Keyword argument from_: Referrer, to be sent with the HTTP request
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'GURL' _code = 'GURL'
_subcode = 'GURL' _subcode = 'GURL'
aetools.keysubst(_arguments, self._argmap_GetURL) aetools.keysubst(_arguments, self._argmap_GetURL)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -49,3 +49,12 @@ class Standard_URL_suite_Events:
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -13,82 +13,82 @@ _code = 'TEXT'
from StdSuites.Text_Suite import * from StdSuites.Text_Suite import *
class Text_Events(Text_Suite_Events): class Text_Events(Text_Suite_Events):
pass pass
class text(aetools.ComponentItem): class text(aetools.ComponentItem):
"""text - independent text view objects """ """text - independent text view objects """
want = 'ctxt' want = 'ctxt'
class _Prop_beginning(aetools.NProperty): class _Prop_beginning(aetools.NProperty):
"""beginning - Beginning of element """ """beginning - Beginning of element """
which = 'bgng' which = 'bgng'
want = 'obj ' want = 'obj '
class _Prop_end(aetools.NProperty): class _Prop_end(aetools.NProperty):
"""end - Ending of element """ """end - Ending of element """
which = 'end ' which = 'end '
want = 'obj ' want = 'obj '
class _Prop_infront(aetools.NProperty): class _Prop_infront(aetools.NProperty):
"""infront - Immediately before element """ """infront - Immediately before element """
which = 'pBef' which = 'pBef'
want = 'obj ' want = 'obj '
class _Prop_justbehind(aetools.NProperty): class _Prop_justbehind(aetools.NProperty):
"""justbehind - Immediately after element """ """justbehind - Immediately after element """
which = 'pAft' which = 'pAft'
want = 'obj ' want = 'obj '
class _Prop_updateLevel(aetools.NProperty): class _Prop_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. """ """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' which = 'pUpL'
want = 'long' want = 'long'
# element 'stys' as ['indx', 'name'] # 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'
class _Prop_color(aetools.NProperty): class _Prop_color(aetools.NProperty):
"""color - the color """ """color - the color """
which = 'colr' which = 'colr'
want = 'RGB ' want = 'RGB '
class _Prop_font(aetools.NProperty): class _Prop_font(aetools.NProperty):
"""font - font name """ """font - font name """
which = 'font' which = 'font'
want = 'TEXT' want = 'TEXT'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - style name """ """name - style name """
which = 'pnam' which = 'pnam'
want = 'TEXT' want = 'TEXT'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - the size in points """ """size - the size in points """
which = 'ptsz' which = 'ptsz'
want = 'long' want = 'long'
class _Prop_style(aetools.NProperty): class _Prop_style(aetools.NProperty):
"""style - the text styles or face attributes """ """style - the text styles or face attributes """
which = 'txst' which = 'txst'
want = 'tsty' want = 'tsty'
class _Prop_writing_code(aetools.NProperty): class _Prop_writing_code(aetools.NProperty):
"""writing code - the script system and language """ """writing code - the script system and language """
which = 'psct' which = 'psct'
want = 'tsty' want = 'tsty'
stylesets = styleset stylesets = styleset
text._superclassnames = [] text._superclassnames = []
text._privpropdict = { text._privpropdict = {
'beginning' : _Prop_beginning, 'beginning' : _Prop_beginning,
'end' : _Prop_end, 'end' : _Prop_end,
'infront' : _Prop_infront, 'infront' : _Prop_infront,
'justbehind' : _Prop_justbehind, 'justbehind' : _Prop_justbehind,
'updateLevel' : _Prop_updateLevel, 'updateLevel' : _Prop_updateLevel,
} }
text._privelemdict = { text._privelemdict = {
'styleset' : styleset, 'styleset' : styleset,
} }
styleset._superclassnames = [] styleset._superclassnames = []
styleset._privpropdict = { styleset._privpropdict = {
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'name' : _Prop_name, 'name' : _Prop_name,
'size' : _Prop_size, 'size' : _Prop_size,
'style' : _Prop_style, 'style' : _Prop_style,
'writing_code' : _Prop_writing_code, 'writing_code' : _Prop_writing_code,
} }
styleset._privelemdict = { styleset._privelemdict = {
} }
@ -97,6 +97,26 @@ styleset._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'ctxt' : text, 'ctxt' : text,
'stys' : styleset, 'stys' : styleset,
}
_propdeclarations = {
'bgng' : _Prop_beginning,
'colr' : _Prop_color,
'end ' : _Prop_end,
'font' : _Prop_font,
'pAft' : _Prop_justbehind,
'pBef' : _Prop_infront,
'pUpL' : _Prop_updateLevel,
'pnam' : _Prop_name,
'psct' : _Prop_writing_code,
'ptsz' : _Prop_size,
'txst' : _Prop_style,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,402 +12,402 @@ _code = 'WWW!'
class WorldWideWeb_suite_Events: class WorldWideWeb_suite_Events:
_argmap_OpenURL = { _argmap_OpenURL = {
'to' : 'INTO', 'to' : 'INTO',
'toWindow' : 'WIND', 'toWindow' : 'WIND',
'flags' : 'FLGS', 'flags' : 'FLGS',
'post_data' : 'POST', 'post_data' : 'POST',
'post_type' : 'MIME', 'post_type' : 'MIME',
'progressApp' : 'PROG', 'progressApp' : 'PROG',
} }
def OpenURL(self, _object, _attributes={}, **_arguments): def OpenURL(self, _object, _attributes={}, **_arguments):
"""OpenURL: Opens a URL. Allows for more options than GetURL event """OpenURL: Opens a URL. Allows for more options than GetURL event
Required argument: URL Required argument: URL
Keyword argument to: file destination Keyword argument to: file destination
Keyword argument toWindow: window iD Keyword argument toWindow: window iD
Keyword argument flags: Binary: any combination of 1, 2 and 4 is allowed: 1 and 2 mean force reload the document. 4 is ignored Keyword argument flags: Binary: any combination of 1, 2 and 4 is allowed: 1 and 2 mean force reload the document. 4 is ignored
Keyword argument post_data: Form posting data Keyword argument post_data: Form posting data
Keyword argument post_type: MIME type of the posting data. Defaults to application/x-www-form-urlencoded Keyword argument post_type: MIME type of the posting data. Defaults to application/x-www-form-urlencoded
Keyword argument progressApp: Application that will display progress Keyword argument progressApp: Application that will display progress
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: ID of the loading window Returns: ID of the loading window
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'OURL' _subcode = 'OURL'
aetools.keysubst(_arguments, self._argmap_OpenURL) aetools.keysubst(_arguments, self._argmap_OpenURL)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_ShowFile = { _argmap_ShowFile = {
'MIME_type' : 'MIME', 'MIME_type' : 'MIME',
'Window_ID' : 'WIND', 'Window_ID' : 'WIND',
'URL' : 'URL ', 'URL' : 'URL ',
} }
def ShowFile(self, _object, _attributes={}, **_arguments): def ShowFile(self, _object, _attributes={}, **_arguments):
"""ShowFile: Similar to OpenDocuments, except that it specifies the parent URL, and MIME type of the file """ShowFile: Similar to OpenDocuments, except that it specifies the parent URL, and MIME type of the file
Required argument: File to open Required argument: File to open
Keyword argument MIME_type: MIME type Keyword argument MIME_type: MIME type
Keyword argument Window_ID: Window to open the file in Keyword argument Window_ID: Window to open the file in
Keyword argument URL: Use this as a base URL Keyword argument URL: Use this as a base URL
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Window ID of the loaded window. 0 means ShowFile failed, FFFFFFF means that data was not appropriate type to display in the browser. Returns: Window ID of the loaded window. 0 means ShowFile failed, FFFFFFF means that data was not appropriate type to display in the browser.
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'SHWF' _subcode = 'SHWF'
aetools.keysubst(_arguments, self._argmap_ShowFile) aetools.keysubst(_arguments, self._argmap_ShowFile)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_cancel_progress = { _argmap_cancel_progress = {
'in_window' : 'WIND', 'in_window' : 'WIND',
} }
def cancel_progress(self, _object=None, _attributes={}, **_arguments): def cancel_progress(self, _object=None, _attributes={}, **_arguments):
"""cancel progress: Interrupts the download of the document in the given window """cancel progress: Interrupts the download of the document in the given window
Required argument: progress ID, obtained from the progress app Required argument: progress ID, obtained from the progress app
Keyword argument in_window: window ID of the progress to cancel Keyword argument in_window: window ID of the progress to cancel
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'CNCL' _subcode = 'CNCL'
aetools.keysubst(_arguments, self._argmap_cancel_progress) aetools.keysubst(_arguments, self._argmap_cancel_progress)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def find_URL(self, _object, _attributes={}, **_arguments): def find_URL(self, _object, _attributes={}, **_arguments):
"""find URL: If the file was downloaded by Netscape, you can call FindURL to find out the URL used to download the file. """find URL: If the file was downloaded by Netscape, you can call FindURL to find out the URL used to download the file.
Required argument: File spec Required argument: File spec
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: The URL Returns: The URL
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'FURL' _subcode = 'FURL'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def get_window_info(self, _object=None, _attributes={}, **_arguments): def get_window_info(self, _object=None, _attributes={}, **_arguments):
"""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. """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 ID Required argument: window ID
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'list' Returns: undocumented, typecode 'list'
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'WNFO' _subcode = 'WNFO'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def list_windows(self, _no_object=None, _attributes={}, **_arguments): def list_windows(self, _no_object=None, _attributes={}, **_arguments):
"""list windows: Lists the IDs of all the hypertext windows """list windows: Lists the IDs of all the hypertext windows
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: List of unique IDs of all the hypertext windows Returns: List of unique IDs of all the hypertext windows
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'LSTW' _subcode = 'LSTW'
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'
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_parse_anchor = { _argmap_parse_anchor = {
'relative_to' : 'RELA', 'relative_to' : 'RELA',
} }
def parse_anchor(self, _object, _attributes={}, **_arguments): def parse_anchor(self, _object, _attributes={}, **_arguments):
"""parse anchor: Resolves the relative URL """parse anchor: Resolves the relative URL
Required argument: Main URL Required argument: Main URL
Keyword argument relative_to: Relative URL Keyword argument relative_to: Relative URL
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Parsed URL Returns: Parsed URL
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'PRSA' _subcode = 'PRSA'
aetools.keysubst(_arguments, self._argmap_parse_anchor) aetools.keysubst(_arguments, self._argmap_parse_anchor)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def register_URL_echo(self, _object=None, _attributes={}, **_arguments): def register_URL_echo(self, _object=None, _attributes={}, **_arguments):
"""register URL echo: Registers the \xd2echo\xd3 application. Each download from now on will be echoed to this application. """register URL echo: Registers the \xd2echo\xd3 application. Each download from now on will be echoed to this application.
Required argument: Application signature Required argument: Application signature
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'RGUE' _subcode = 'RGUE'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_register_protocol = { _argmap_register_protocol = {
'for_protocol' : 'PROT', 'for_protocol' : 'PROT',
} }
def register_protocol(self, _object=None, _attributes={}, **_arguments): 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. """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 Required argument: Application sig
Keyword argument for_protocol: protocol prefix: \xd2finger:\xd3, \xd2file\xd3, 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 Returns: TRUE if registration has been successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'RGPR' _subcode = 'RGPR'
aetools.keysubst(_arguments, self._argmap_register_protocol) aetools.keysubst(_arguments, self._argmap_register_protocol)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_register_viewer = { _argmap_register_viewer = {
'MIME_type' : 'MIME', 'MIME_type' : 'MIME',
'with_file_type' : 'FTYP', 'with_file_type' : 'FTYP',
} }
def register_viewer(self, _object, _attributes={}, **_arguments): def register_viewer(self, _object, _attributes={}, **_arguments):
"""register viewer: Registers an application as a \xd4special\xd5 viewer for this MIME type. The application will be launched with ViewDoc events """register viewer: Registers an application as a \xd4special\xd5 viewer for this MIME type. The application will be launched with ViewDoc events
Required argument: Application sig Required argument: Application sig
Keyword argument MIME_type: MIME type viewer is registering for Keyword argument MIME_type: MIME type viewer is registering for
Keyword argument with_file_type: Mac file type for the downloaded files Keyword argument with_file_type: Mac file type for the downloaded files
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if registration has been successful Returns: TRUE if registration has been successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'RGVW' _subcode = 'RGVW'
aetools.keysubst(_arguments, self._argmap_register_viewer) aetools.keysubst(_arguments, self._argmap_register_viewer)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_register_window_close = { _argmap_register_window_close = {
'for_window' : 'WIND', 'for_window' : 'WIND',
} }
def register_window_close(self, _object=None, _attributes={}, **_arguments): def register_window_close(self, _object=None, _attributes={}, **_arguments):
"""register window close: Netscape will notify registered application when this window closes """register window close: Netscape will notify registered application when this window closes
Required argument: Application signature Required argument: Application signature
Keyword argument for_window: window ID Keyword argument for_window: window ID
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: true if successful Returns: true if successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'RGWC' _subcode = 'RGWC'
aetools.keysubst(_arguments, self._argmap_register_window_close) aetools.keysubst(_arguments, self._argmap_register_window_close)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def unregister_URL_echo(self, _object, _attributes={}, **_arguments): def unregister_URL_echo(self, _object, _attributes={}, **_arguments):
"""unregister URL echo: cancels URL echo """unregister URL echo: cancels URL echo
Required argument: application signature Required argument: application signature
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'UNRU' _subcode = 'UNRU'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_unregister_protocol = { _argmap_unregister_protocol = {
'for_protocol' : 'PROT', 'for_protocol' : 'PROT',
} }
def unregister_protocol(self, _object=None, _attributes={}, **_arguments): def unregister_protocol(self, _object=None, _attributes={}, **_arguments):
"""unregister protocol: reverses the effects of \xd2register protocol\xd3 """unregister protocol: reverses the effects of \xd2register protocol\xd3
Required argument: Application sig. Required argument: Application sig.
Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if successful Returns: TRUE if successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'UNRP' _subcode = 'UNRP'
aetools.keysubst(_arguments, self._argmap_unregister_protocol) aetools.keysubst(_arguments, self._argmap_unregister_protocol)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_unregister_viewer = { _argmap_unregister_viewer = {
'MIME_type' : 'MIME', 'MIME_type' : 'MIME',
} }
def unregister_viewer(self, _object, _attributes={}, **_arguments): def unregister_viewer(self, _object, _attributes={}, **_arguments):
"""unregister viewer: Revert to the old way of handling this MIME type """unregister viewer: Revert to the old way of handling this MIME type
Required argument: Application sig Required argument: Application sig
Keyword argument MIME_type: MIME type to be unregistered Keyword argument MIME_type: MIME type to be unregistered
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if the event was successful Returns: TRUE if the event was successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'UNRV' _subcode = 'UNRV'
aetools.keysubst(_arguments, self._argmap_unregister_viewer) aetools.keysubst(_arguments, self._argmap_unregister_viewer)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_unregister_window_close = { _argmap_unregister_window_close = {
'for_window' : 'WIND', 'for_window' : 'WIND',
} }
def unregister_window_close(self, _object=None, _attributes={}, **_arguments): def unregister_window_close(self, _object=None, _attributes={}, **_arguments):
"""unregister window close: Undo for register window close """unregister window close: Undo for register window close
Required argument: Application signature Required argument: Application signature
Keyword argument for_window: window ID Keyword argument for_window: window ID
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: true if successful Returns: true if successful
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'UNRC' _subcode = 'UNRC'
aetools.keysubst(_arguments, self._argmap_unregister_window_close) aetools.keysubst(_arguments, self._argmap_unregister_window_close)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def webActivate(self, _object=None, _attributes={}, **_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. """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 Required argument: window to bring to front
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'WWW!' _code = 'WWW!'
_subcode = 'ACTV' _subcode = 'ACTV'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -415,3 +415,12 @@ class WorldWideWeb_suite_Events:
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -13,25 +13,25 @@ import Required_suite
_code_to_module = { _code_to_module = {
'CoRe' : Standard_Suite, 'CoRe' : Standard_Suite,
'GURL' : Standard_URL_suite, 'GURL' : Standard_URL_suite,
'MOSS' : Mozilla_suite, 'MOSS' : Mozilla_suite,
'TEXT' : Text, 'TEXT' : Text,
'WWW!' : WorldWideWeb_suite, 'WWW!' : WorldWideWeb_suite,
'ppnt' : PowerPlant, 'ppnt' : PowerPlant,
'reqd' : Required_suite, 'reqd' : Required_suite,
} }
_code_to_fullname = { _code_to_fullname = {
'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'),
'MOSS' : ('Netscape.Mozilla_suite', 'Mozilla_suite'), 'MOSS' : ('Netscape.Mozilla_suite', 'Mozilla_suite'),
'TEXT' : ('Netscape.Text', 'Text'), 'TEXT' : ('Netscape.Text', 'Text'),
'WWW!' : ('Netscape.WorldWideWeb_suite', 'WorldWideWeb_suite'), 'WWW!' : ('Netscape.WorldWideWeb_suite', 'WorldWideWeb_suite'),
'ppnt' : ('Netscape.PowerPlant', 'PowerPlant'), 'ppnt' : ('Netscape.PowerPlant', 'PowerPlant'),
'reqd' : ('Netscape.Required_suite', 'Required_suite'), 'reqd' : ('Netscape.Required_suite', 'Required_suite'),
} }
from Standard_Suite import * from Standard_Suite import *
@ -43,16 +43,16 @@ from PowerPlant import *
from Required_suite import * from Required_suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
v._propdict = {} v._propdict = {}
v._elemdict = {} v._elemdict = {}
for superclassname in getattr(v, '_superclassnames', []): for superclassname in getattr(v, '_superclassnames', []):
superclass = eval(superclassname) superclass = eval(superclassname)
getbaseclasses(superclass) getbaseclasses(superclass)
v._propdict.update(getattr(superclass, '_propdict', {})) v._propdict.update(getattr(superclass, '_propdict', {}))
v._elemdict.update(getattr(superclass, '_elemdict', {})) v._elemdict.update(getattr(superclass, '_elemdict', {}))
v._propdict.update(getattr(v, '_privpropdict', {})) v._propdict.update(getattr(v, '_privpropdict', {}))
v._elemdict.update(getattr(v, '_privelemdict', {})) v._elemdict.update(getattr(v, '_privelemdict', {}))
import StdSuites import StdSuites
@ -61,6 +61,8 @@ import StdSuites
# #
getbaseclasses(window) getbaseclasses(window)
getbaseclasses(application) getbaseclasses(application)
getbaseclasses(text)
getbaseclasses(styleset)
getbaseclasses(StdSuites.Text_Suite.text_flow) getbaseclasses(StdSuites.Text_Suite.text_flow)
getbaseclasses(StdSuites.Text_Suite.character) getbaseclasses(StdSuites.Text_Suite.character)
getbaseclasses(StdSuites.Text_Suite.text_style_info) getbaseclasses(StdSuites.Text_Suite.text_style_info)
@ -68,36 +70,34 @@ getbaseclasses(StdSuites.Text_Suite.line)
getbaseclasses(StdSuites.Text_Suite.word) getbaseclasses(StdSuites.Text_Suite.word)
getbaseclasses(StdSuites.Text_Suite.paragraph) getbaseclasses(StdSuites.Text_Suite.paragraph)
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
# #
_classdeclarations = { _classdeclarations = {
'cwin' : window, 'cwin' : window,
'capp' : application, 'capp' : application,
'cflo' : StdSuites.Text_Suite.text_flow, 'ctxt' : text,
'cha ' : StdSuites.Text_Suite.character, 'stys' : styleset,
'tsty' : StdSuites.Text_Suite.text_style_info, 'cflo' : StdSuites.Text_Suite.text_flow,
'clin' : StdSuites.Text_Suite.line, 'cha ' : StdSuites.Text_Suite.character,
'cwor' : StdSuites.Text_Suite.word, 'tsty' : StdSuites.Text_Suite.text_style_info,
'cpar' : StdSuites.Text_Suite.paragraph, 'clin' : StdSuites.Text_Suite.line,
'ctxt' : StdSuites.Text_Suite.text, 'cwor' : StdSuites.Text_Suite.word,
'ctxt' : text, 'cpar' : StdSuites.Text_Suite.paragraph,
'stys' : styleset, 'ctxt' : StdSuites.Text_Suite.text,
} }
class Netscape(Standard_Suite_Events, class Netscape(Standard_Suite_Events,
Standard_URL_suite_Events, Standard_URL_suite_Events,
Mozilla_suite_Events, Mozilla_suite_Events,
Text_Events, Text_Events,
WorldWideWeb_suite_Events, WorldWideWeb_suite_Events,
PowerPlant_Events, PowerPlant_Events,
Required_suite_Events, Required_suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'MOSS' _signature = 'MOSS'
_moduleName = 'Netscape' _moduleName = 'Netscape'

File diff suppressed because it is too large Load diff

View file

@ -12,315 +12,315 @@ _code = 'macc'
class Macintosh_Connectivity_Clas_Events: class Macintosh_Connectivity_Clas_Events:
pass pass
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'
class _Prop__3c_inheritance_3e_(aetools.NProperty): class _Prop__3c_inheritance_3e_(aetools.NProperty):
"""<inheritance> - inherits some of its properties from this class """ """<inheritance> - inherits some of its properties from this class """
which = 'c@#^' which = 'c@#^'
want = 'cadr' want = 'cadr'
class _Prop_ID(aetools.NProperty): class _Prop_ID(aetools.NProperty):
"""ID - the Apple Desktop Bus device ID """ """ID - the Apple Desktop Bus device ID """
which = 'ID ' which = 'ID '
want = 'shor' want = 'shor'
ADB_addresses = ADB_address ADB_addresses = ADB_address
class address_specification(aetools.ComponentItem): class address_specification(aetools.ComponentItem):
"""address specification - Unique designation of a device or service connected to this computer """ """address specification - Unique designation of a device or service connected to this computer """
want = 'cadr' want = 'cadr'
class _Prop_conduit(aetools.NProperty): class _Prop_conduit(aetools.NProperty):
"""conduit - How the addressee is physically connected """ """conduit - How the addressee is physically connected """
which = 'pcon' which = 'pcon'
want = 'econ' want = 'econ'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - property that allows getting and setting of multiple properties """ """properties - property that allows getting and setting of multiple properties """
which = 'pALL' which = 'pALL'
want = 'reco' want = 'reco'
class _Prop_protocol(aetools.NProperty): class _Prop_protocol(aetools.NProperty):
"""protocol - How to talk to this addressee """ """protocol - How to talk to this addressee """
which = 'pprt' which = 'pprt'
want = 'epro' want = 'epro'
address_specifications = address_specification address_specifications = address_specification
class AppleTalk_address(aetools.ComponentItem): class AppleTalk_address(aetools.ComponentItem):
"""AppleTalk address - Addresses a device or service connected via the AppleTalk protocol """ """AppleTalk address - Addresses a device or service connected via the AppleTalk protocol """
want = 'cat ' want = 'cat '
class _Prop_AppleTalk_machine(aetools.NProperty): class _Prop_AppleTalk_machine(aetools.NProperty):
"""AppleTalk machine - the machine name part of the address """ """AppleTalk machine - the machine name part of the address """
which = 'patm' which = 'patm'
want = 'TEXT' want = 'TEXT'
class _Prop_AppleTalk_type(aetools.NProperty): class _Prop_AppleTalk_type(aetools.NProperty):
"""AppleTalk type - the type part of the AppleTalk address """ """AppleTalk type - the type part of the AppleTalk address """
which = 'patt' which = 'patt'
want = 'TEXT' want = 'TEXT'
class _Prop_AppleTalk_zone(aetools.NProperty): class _Prop_AppleTalk_zone(aetools.NProperty):
"""AppleTalk zone - the zone part of the address """ """AppleTalk zone - the zone part of the address """
which = 'patz' which = 'patz'
want = 'TEXT' want = 'TEXT'
AppleTalk_addresses = AppleTalk_address AppleTalk_addresses = AppleTalk_address
class bus_slot(aetools.ComponentItem): class bus_slot(aetools.ComponentItem):
"""bus slot - Addresses a PC, PCI, or NuBus card """ """bus slot - Addresses a PC, PCI, or NuBus card """
want = 'cbus' want = 'cbus'
bus_slots = bus_slot bus_slots = bus_slot
class device_specification(aetools.ComponentItem): class device_specification(aetools.ComponentItem):
"""device specification - A device connected to a computer """ """device specification - A device connected to a computer """
want = 'cdev' want = 'cdev'
class _Prop_device_address(aetools.NProperty): class _Prop_device_address(aetools.NProperty):
"""device address - the address of the device """ """device address - the address of the device """
which = 'pdva' which = 'pdva'
want = 'cadr' want = 'cadr'
class _Prop_device_type(aetools.NProperty): class _Prop_device_type(aetools.NProperty):
"""device type - the kind of device """ """device type - the kind of device """
which = 'pdvt' which = 'pdvt'
want = 'edvt' want = 'edvt'
device_specifications = device_specification device_specifications = device_specification
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 '
Ethernet_addresses = Ethernet_address Ethernet_addresses = Ethernet_address
class FireWire_address(aetools.ComponentItem): class FireWire_address(aetools.ComponentItem):
"""FireWire address - Addresses a device on the FireWire bus """ """FireWire address - Addresses a device on the FireWire bus """
want = 'cfw ' want = 'cfw '
FireWire_addresses = FireWire_address FireWire_addresses = FireWire_address
class IP_address(aetools.ComponentItem): class IP_address(aetools.ComponentItem):
"""IP address - Addresses a device or service via the Internet Protocol (IP) """ """IP address - Addresses a device or service via the Internet Protocol (IP) """
want = 'cip ' want = 'cip '
class _Prop_DNS_form(aetools.NProperty): class _Prop_DNS_form(aetools.NProperty):
"""DNS form - the address in the form "apple.com" """ """DNS form - the address in the form "apple.com" """
which = 'pdns' which = 'pdns'
want = 'TEXT' want = 'TEXT'
class _Prop_port(aetools.NProperty): class _Prop_port(aetools.NProperty):
"""port - the port number of the service or client being addressed """ """port - the port number of the service or client being addressed """
which = 'ppor' which = 'ppor'
want = 'TEXT' want = 'TEXT'
IP_addresses = IP_address IP_addresses = IP_address
class LocalTalk_address(aetools.ComponentItem): class LocalTalk_address(aetools.ComponentItem):
"""LocalTalk address - Addresses a device by its LocalTalk address """ """LocalTalk address - Addresses a device by its LocalTalk address """
want = 'clt ' want = 'clt '
class _Prop_network(aetools.NProperty): class _Prop_network(aetools.NProperty):
"""network - the LocalTalk network number """ """network - the LocalTalk network number """
which = 'pnet' which = 'pnet'
want = 'shor' want = 'shor'
class _Prop_node(aetools.NProperty): class _Prop_node(aetools.NProperty):
"""node - the LocalTalk node number """ """node - the LocalTalk node number """
which = 'pnod' which = 'pnod'
want = 'shor' want = 'shor'
class _Prop_socket(aetools.NProperty): class _Prop_socket(aetools.NProperty):
"""socket - the LocalTalk socket number """ """socket - the LocalTalk socket number """
which = 'psoc' which = 'psoc'
want = 'shor' want = 'shor'
LocalTalk_addresses = LocalTalk_address LocalTalk_addresses = LocalTalk_address
class SCSI_address(aetools.ComponentItem): class SCSI_address(aetools.ComponentItem):
"""SCSI address - Addresses a SCSI device """ """SCSI address - Addresses a SCSI device """
want = 'cscs' want = 'cscs'
class _Prop_LUN(aetools.NProperty): class _Prop_LUN(aetools.NProperty):
"""LUN - the SCSI logical unit number """ """LUN - the SCSI logical unit number """
which = 'pslu' which = 'pslu'
want = 'shor' want = 'shor'
class _Prop_SCSI_bus(aetools.NProperty): class _Prop_SCSI_bus(aetools.NProperty):
"""SCSI bus - the SCSI bus number """ """SCSI bus - the SCSI bus number """
which = 'pscb' which = 'pscb'
want = 'shor' want = 'shor'
SCSI_addresses = SCSI_address SCSI_addresses = SCSI_address
class Token_Ring_address(aetools.ComponentItem): class Token_Ring_address(aetools.ComponentItem):
"""Token Ring address - Addresses a device or service via the Token Ring protocol """ """Token Ring address - Addresses a device or service via the Token Ring protocol """
want = 'ctok' want = 'ctok'
Token_Ring_addresses = Token_Ring_address Token_Ring_addresses = Token_Ring_address
class USB_address(aetools.ComponentItem): class USB_address(aetools.ComponentItem):
"""USB address - Addresses a device on the Universal Serial Bus """ """USB address - Addresses a device on the Universal Serial Bus """
want = 'cusb' want = 'cusb'
class _Prop_name(aetools.NProperty): class _Prop_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 USB_Addresses = USB_address
ADB_address._superclassnames = ['address_specification'] ADB_address._superclassnames = ['address_specification']
ADB_address._privpropdict = { ADB_address._privpropdict = {
'ID' : _Prop_ID, 'ID' : _Prop_ID,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
ADB_address._privelemdict = { ADB_address._privelemdict = {
} }
address_specification._superclassnames = [] address_specification._superclassnames = []
address_specification._privpropdict = { address_specification._privpropdict = {
'conduit' : _Prop_conduit, 'conduit' : _Prop_conduit,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'protocol' : _Prop_protocol, 'protocol' : _Prop_protocol,
} }
address_specification._privelemdict = { address_specification._privelemdict = {
} }
AppleTalk_address._superclassnames = ['address_specification'] AppleTalk_address._superclassnames = ['address_specification']
AppleTalk_address._privpropdict = { AppleTalk_address._privpropdict = {
'AppleTalk_machine' : _Prop_AppleTalk_machine, 'AppleTalk_machine' : _Prop_AppleTalk_machine,
'AppleTalk_type' : _Prop_AppleTalk_type, 'AppleTalk_type' : _Prop_AppleTalk_type,
'AppleTalk_zone' : _Prop_AppleTalk_zone, 'AppleTalk_zone' : _Prop_AppleTalk_zone,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
AppleTalk_address._privelemdict = { AppleTalk_address._privelemdict = {
} }
bus_slot._superclassnames = ['address_specification'] bus_slot._superclassnames = ['address_specification']
bus_slot._privpropdict = { bus_slot._privpropdict = {
'ID' : _Prop_ID, 'ID' : _Prop_ID,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
bus_slot._privelemdict = { bus_slot._privelemdict = {
} }
device_specification._superclassnames = [] device_specification._superclassnames = []
device_specification._privpropdict = { device_specification._privpropdict = {
'device_address' : _Prop_device_address, 'device_address' : _Prop_device_address,
'device_type' : _Prop_device_type, 'device_type' : _Prop_device_type,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
} }
device_specification._privelemdict = { device_specification._privelemdict = {
} }
Ethernet_address._superclassnames = ['address_specification'] Ethernet_address._superclassnames = ['address_specification']
Ethernet_address._privpropdict = { Ethernet_address._privpropdict = {
'ID' : _Prop_ID, 'ID' : _Prop_ID,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
Ethernet_address._privelemdict = { Ethernet_address._privelemdict = {
} }
FireWire_address._superclassnames = ['address_specification'] FireWire_address._superclassnames = ['address_specification']
FireWire_address._privpropdict = { FireWire_address._privpropdict = {
'ID' : _Prop_ID, 'ID' : _Prop_ID,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
FireWire_address._privelemdict = { FireWire_address._privelemdict = {
} }
IP_address._superclassnames = ['address_specification'] IP_address._superclassnames = ['address_specification']
IP_address._privpropdict = { IP_address._privpropdict = {
'DNS_form' : _Prop_DNS_form, 'DNS_form' : _Prop_DNS_form,
'ID' : _Prop_ID, 'ID' : _Prop_ID,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
'port' : _Prop_port, 'port' : _Prop_port,
} }
IP_address._privelemdict = { IP_address._privelemdict = {
} }
LocalTalk_address._superclassnames = ['address_specification'] LocalTalk_address._superclassnames = ['address_specification']
LocalTalk_address._privpropdict = { LocalTalk_address._privpropdict = {
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
'network' : _Prop_network, 'network' : _Prop_network,
'node' : _Prop_node, 'node' : _Prop_node,
'socket' : _Prop_socket, 'socket' : _Prop_socket,
} }
LocalTalk_address._privelemdict = { LocalTalk_address._privelemdict = {
} }
SCSI_address._superclassnames = ['address_specification'] SCSI_address._superclassnames = ['address_specification']
SCSI_address._privpropdict = { SCSI_address._privpropdict = {
'ID' : _Prop_ID, 'ID' : _Prop_ID,
'LUN' : _Prop_LUN, 'LUN' : _Prop_LUN,
'SCSI_bus' : _Prop_SCSI_bus, 'SCSI_bus' : _Prop_SCSI_bus,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
SCSI_address._privelemdict = { SCSI_address._privelemdict = {
} }
Token_Ring_address._superclassnames = ['address_specification'] Token_Ring_address._superclassnames = ['address_specification']
Token_Ring_address._privpropdict = { Token_Ring_address._privpropdict = {
'ID' : _Prop_ID, 'ID' : _Prop_ID,
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
Token_Ring_address._privelemdict = { Token_Ring_address._privelemdict = {
} }
USB_address._superclassnames = ['address_specification'] USB_address._superclassnames = ['address_specification']
USB_address._privpropdict = { USB_address._privpropdict = {
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
'name' : _Prop_name, 'name' : _Prop_name,
} }
USB_address._privelemdict = { USB_address._privelemdict = {
} }
_Enum_econ = { _Enum_econ = {
'ADB' : 'eadb', # 'ADB' : 'eadb', #
'printer_port' : 'ecpp', # 'printer_port' : 'ecpp', #
'modem_port' : 'ecmp', # 'modem_port' : 'ecmp', #
'modem_printer_port' : 'empp', # 'modem_printer_port' : 'empp', #
'LocalTalk' : 'eclt', # 'LocalTalk' : 'eclt', #
'Ethernet' : 'ecen', # 'Ethernet' : 'ecen', #
'Token_Ring' : 'etok', # 'Token_Ring' : 'etok', #
'SCSI' : 'ecsc', # 'SCSI' : 'ecsc', #
'USB' : 'ecus', # 'USB' : 'ecus', #
'FireWire' : 'ecfw', # 'FireWire' : 'ecfw', #
'infrared' : 'ecir', # 'infrared' : 'ecir', #
'PC_card' : 'ecpc', # 'PC_card' : 'ecpc', #
'PCI_bus' : 'ecpi', # 'PCI_bus' : 'ecpi', #
'NuBus' : 'enub', # 'NuBus' : 'enub', #
'PDS_slot' : 'ecpd', # 'PDS_slot' : 'ecpd', #
'Comm_slot' : 'eccm', # 'Comm_slot' : 'eccm', #
'monitor_out' : 'ecmn', # 'monitor_out' : 'ecmn', #
'video_out' : 'ecvo', # 'video_out' : 'ecvo', #
'video_in' : 'ecvi', # 'video_in' : 'ecvi', #
'audio_out' : 'ecao', # 'audio_out' : 'ecao', #
'audio_line_in' : 'ecai', # 'audio_line_in' : 'ecai', #
'audio_line_out' : 'ecal', # 'audio_line_out' : 'ecal', #
'microphone' : 'ecmi', # 'microphone' : 'ecmi', #
} }
_Enum_edvt = { _Enum_edvt = {
'hard_disk_drive' : 'ehd ', # 'hard_disk_drive' : 'ehd ', #
'floppy_disk_drive' : 'efd ', # 'floppy_disk_drive' : 'efd ', #
'CD_ROM_drive' : 'ecd ', # 'CD_ROM_drive' : 'ecd ', #
'DVD_drive' : 'edvd', # 'DVD_drive' : 'edvd', #
'storage_device' : 'edst', # 'storage_device' : 'edst', #
'keyboard' : 'ekbd', # 'keyboard' : 'ekbd', #
'mouse' : 'emou', # 'mouse' : 'emou', #
'trackball' : 'etrk', # 'trackball' : 'etrk', #
'trackpad' : 'edtp', # 'trackpad' : 'edtp', #
'pointing_device' : 'edpd', # 'pointing_device' : 'edpd', #
'video_monitor' : 'edvm', # 'video_monitor' : 'edvm', #
'LCD_display' : 'edlc', # 'LCD_display' : 'edlc', #
'display' : 'edds', # 'display' : 'edds', #
'modem' : 'edmm', # 'modem' : 'edmm', #
'PC_card' : 'ecpc', # 'PC_card' : 'ecpc', #
'PCI_card' : 'edpi', # 'PCI_card' : 'edpi', #
'NuBus_card' : 'ednb', # 'NuBus_card' : 'ednb', #
'printer' : 'edpr', # 'printer' : 'edpr', #
'speakers' : 'edsp', # 'speakers' : 'edsp', #
'microphone' : 'ecmi', # 'microphone' : 'ecmi', #
} }
_Enum_epro = { _Enum_epro = {
'serial' : 'epsr', # 'serial' : 'epsr', #
'AppleTalk' : 'epat', # 'AppleTalk' : 'epat', #
'IP' : 'epip', # 'IP' : 'epip', #
'SCSI' : 'ecsc', # 'SCSI' : 'ecsc', #
'ADB' : 'eadb', # 'ADB' : 'eadb', #
'FireWire' : 'ecfw', # 'FireWire' : 'ecfw', #
'IrDA' : 'epir', # 'IrDA' : 'epir', #
'IRTalk' : 'epit', # 'IRTalk' : 'epit', #
'USB' : 'ecus', # 'USB' : 'ecus', #
'PC_card' : 'ecpc', # 'PC_card' : 'ecpc', #
'PCI_bus' : 'ecpi', # 'PCI_bus' : 'ecpi', #
'NuBus' : 'enub', # 'NuBus' : 'enub', #
'bus' : 'ebus', # 'bus' : 'ebus', #
'Macintosh_video' : 'epmv', # 'Macintosh_video' : 'epmv', #
'SVGA' : 'epsg', # 'SVGA' : 'epsg', #
'S_video' : 'epsv', # 'S_video' : 'epsv', #
'analog_audio' : 'epau', # 'analog_audio' : 'epau', #
'digital_audio' : 'epda', # 'digital_audio' : 'epda', #
'PostScript' : 'epps', # 'PostScript' : 'epps', #
} }
@ -328,16 +328,46 @@ _Enum_epro = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cadb' : ADB_address, 'cadb' : ADB_address,
'cadr' : address_specification, 'cadr' : address_specification,
'cat ' : AppleTalk_address, 'cat ' : AppleTalk_address,
'cbus' : bus_slot, 'cbus' : bus_slot,
'cdev' : device_specification, 'cdev' : device_specification,
'cen ' : Ethernet_address, 'cen ' : Ethernet_address,
'cfw ' : FireWire_address, 'cfw ' : FireWire_address,
'cip ' : IP_address, 'cip ' : IP_address,
'clt ' : LocalTalk_address, 'clt ' : LocalTalk_address,
'cscs' : SCSI_address, 'cscs' : SCSI_address,
'ctok' : Token_Ring_address, 'ctok' : Token_Ring_address,
'cusb' : USB_address, 'cusb' : USB_address,
}
_propdeclarations = {
'ID ' : _Prop_ID,
'c@#^' : _Prop__3c_inheritance_3e_,
'pALL' : _Prop_properties,
'patm' : _Prop_AppleTalk_machine,
'patt' : _Prop_AppleTalk_type,
'patz' : _Prop_AppleTalk_zone,
'pcon' : _Prop_conduit,
'pdns' : _Prop_DNS_form,
'pdva' : _Prop_device_address,
'pdvt' : _Prop_device_type,
'pnam' : _Prop_name,
'pnet' : _Prop_network,
'pnod' : _Prop_node,
'ppor' : _Prop_port,
'pprt' : _Prop_protocol,
'pscb' : _Prop_SCSI_bus,
'pslu' : _Prop_LUN,
'psoc' : _Prop_socket,
}
_compdeclarations = {
}
_enumdeclarations = {
'econ' : _Enum_econ,
'edvt' : _Enum_edvt,
'epro' : _Enum_epro,
} }

View file

@ -12,250 +12,250 @@ _code = 'qdrw'
class QuickDraw_Graphics_Suite_Events: class QuickDraw_Graphics_Suite_Events:
pass pass
class arc(aetools.ComponentItem): class arc(aetools.ComponentItem):
"""arc - An arc """ """arc - An arc """
want = 'carc' want = 'carc'
class _Prop_arc_angle(aetools.NProperty): class _Prop_arc_angle(aetools.NProperty):
"""arc angle - the angle of the arc in degrees """ """arc angle - the angle of the arc in degrees """
which = 'parc' which = 'parc'
want = 'fixd' want = 'fixd'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - the smallest rectangle that contains the entire arc """ """bounds - the smallest rectangle that contains the entire arc """
which = 'pbnd' which = 'pbnd'
want = 'qdrt' want = 'qdrt'
class _Prop_definition_rect(aetools.NProperty): class _Prop_definition_rect(aetools.NProperty):
"""definition rect - the rectangle that contains the circle or oval used to define the arc """ """definition rect - the rectangle that contains the circle or oval used to define the arc """
which = 'pdrt' which = 'pdrt'
want = 'qdrt' want = 'qdrt'
class _Prop_fill_color(aetools.NProperty): class _Prop_fill_color(aetools.NProperty):
"""fill color - the fill color """ """fill color - the fill color """
which = 'flcl' which = 'flcl'
want = 'cRGB' want = 'cRGB'
class _Prop_fill_pattern(aetools.NProperty): class _Prop_fill_pattern(aetools.NProperty):
"""fill pattern - the fill pattern """ """fill pattern - the fill pattern """
which = 'flpt' which = 'flpt'
want = 'cpix' want = 'cpix'
class _Prop_pen_color(aetools.NProperty): class _Prop_pen_color(aetools.NProperty):
"""pen color - the pen color """ """pen color - the pen color """
which = 'ppcl' which = 'ppcl'
want = 'cRGB' want = 'cRGB'
class _Prop_pen_pattern(aetools.NProperty): class _Prop_pen_pattern(aetools.NProperty):
"""pen pattern - the pen pattern """ """pen pattern - the pen pattern """
which = 'pppa' which = 'pppa'
want = 'cpix' want = 'cpix'
class _Prop_pen_width(aetools.NProperty): class _Prop_pen_width(aetools.NProperty):
"""pen width - the pen width """ """pen width - the pen width """
which = 'ppwd' which = 'ppwd'
want = 'shor' want = 'shor'
class _Prop_start_angle(aetools.NProperty): class _Prop_start_angle(aetools.NProperty):
"""start angle - the angle that defines the start of the arc, in degrees """ """start angle - the angle that defines the start of the arc, in degrees """
which = 'pang' which = 'pang'
want = 'fixd' want = 'fixd'
class _Prop_transfer_mode(aetools.NProperty): class _Prop_transfer_mode(aetools.NProperty):
"""transfer mode - the transfer mode """ """transfer mode - the transfer mode """
which = 'pptm' which = 'pptm'
want = 'tran' want = 'tran'
arcs = arc arcs = arc
class drawing_area(aetools.ComponentItem): class drawing_area(aetools.ComponentItem):
"""drawing area - Container for graphics and supporting information """ """drawing area - Container for graphics and supporting information """
want = 'cdrw' want = 'cdrw'
class _Prop_background_color(aetools.NProperty): class _Prop_background_color(aetools.NProperty):
"""background color - the color used to fill in unoccupied areas """ """background color - the color used to fill in unoccupied areas """
which = 'pbcl' which = 'pbcl'
want = 'cRGB' want = 'cRGB'
class _Prop_background_pattern(aetools.NProperty): class _Prop_background_pattern(aetools.NProperty):
"""background pattern - the pattern used to fill in unoccupied areas """ """background pattern - the pattern used to fill in unoccupied areas """
which = 'pbpt' which = 'pbpt'
want = 'cpix' want = 'cpix'
class _Prop_color_table(aetools.NProperty): class _Prop_color_table(aetools.NProperty):
"""color table - the color table """ """color table - the color table """
which = 'cltb' which = 'cltb'
want = 'clrt' want = 'clrt'
class _Prop_default_font(aetools.NProperty): class _Prop_default_font(aetools.NProperty):
"""default font - the name of the default font for text objects """ """default font - the name of the default font for text objects """
which = 'ptxf' which = 'ptxf'
want = 'itxt' want = 'itxt'
class _Prop_default_location(aetools.NProperty): class _Prop_default_location(aetools.NProperty):
"""default location - the default location of each new graphic object """ """default location - the default location of each new graphic object """
which = 'pnel' which = 'pnel'
want = 'QDpt' want = 'QDpt'
class _Prop_default_size(aetools.NProperty): class _Prop_default_size(aetools.NProperty):
"""default size - the default size for text objects """ """default size - the default size for text objects """
which = 'ptps' which = 'ptps'
want = 'fixd' want = 'fixd'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name """ """name - the name """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
class _Prop_ordering(aetools.NProperty): class _Prop_ordering(aetools.NProperty):
"""ordering - the ordered list of graphic objects in the drawing area """ """ordering - the ordered list of graphic objects in the drawing area """
which = 'gobs' which = 'gobs'
want = 'obj ' want = 'obj '
class _Prop_pixel_depth(aetools.NProperty): class _Prop_pixel_depth(aetools.NProperty):
"""pixel depth - the number of bits per pixel """ """pixel depth - the number of bits per pixel """
which = 'pdpt' which = 'pdpt'
want = 'shor' want = 'shor'
class _Prop_style(aetools.NProperty): class _Prop_style(aetools.NProperty):
"""style - the default text style for text objects """ """style - the default text style for text objects """
which = 'txst' which = 'txst'
want = 'tsty' want = 'tsty'
class _Prop_text_color(aetools.NProperty): class _Prop_text_color(aetools.NProperty):
"""text color - the default color for text objects """ """text color - the default color for text objects """
which = 'ptxc' which = 'ptxc'
want = 'cRGB' want = 'cRGB'
class _Prop_update_on_change(aetools.NProperty): class _Prop_update_on_change(aetools.NProperty):
"""update on change - Redraw after each change? """ """update on change - Redraw after each change? """
which = 'pupd' which = 'pupd'
want = 'bool' want = 'bool'
class _Prop_writing_code(aetools.NProperty): class _Prop_writing_code(aetools.NProperty):
"""writing code - the script system and language of text objects in the drawing area """ """writing code - the script system and language of text objects in the drawing area """
which = 'psct' which = 'psct'
want = 'intl' want = 'intl'
drawing_areas = drawing_area drawing_areas = drawing_area
class graphic_objects(aetools.ComponentItem): class graphic_objects(aetools.ComponentItem):
"""graphic objects - """ """graphic objects - """
want = 'cgob' want = 'cgob'
graphic_object = graphic_objects graphic_object = graphic_objects
class graphic_shapes(aetools.ComponentItem): class graphic_shapes(aetools.ComponentItem):
"""graphic shapes - """ """graphic shapes - """
want = 'cgsh' want = 'cgsh'
graphic_shape = graphic_shapes graphic_shape = graphic_shapes
class graphic_text(aetools.ComponentItem): class graphic_text(aetools.ComponentItem):
"""graphic text - A series of characters within a drawing area """ """graphic text - A series of characters within a drawing area """
want = 'cgtx' want = 'cgtx'
class _Prop_color(aetools.NProperty): class _Prop_color(aetools.NProperty):
"""color - the color of the first character """ """color - the color of the first character """
which = 'colr' which = 'colr'
want = 'cRGB' want = 'cRGB'
class _Prop_font(aetools.NProperty): class _Prop_font(aetools.NProperty):
"""font - the name of the font of the first character """ """font - the name of the font of the first character """
which = 'font' which = 'font'
want = 'ctxt' want = 'ctxt'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - the size in points of the first character """ """size - the size in points of the first character """
which = 'ptsz' which = 'ptsz'
want = 'fixd' want = 'fixd'
class _Prop_uniform_styles(aetools.NProperty): class _Prop_uniform_styles(aetools.NProperty):
"""uniform styles - the text styles that are uniform throughout the text """ """uniform styles - the text styles that are uniform throughout the text """
which = 'ustl' which = 'ustl'
want = 'tsty' want = 'tsty'
class ovals(aetools.ComponentItem): class ovals(aetools.ComponentItem):
"""ovals - """ """ovals - """
want = 'covl' want = 'covl'
oval = ovals oval = ovals
class polygon(aetools.ComponentItem): class polygon(aetools.ComponentItem):
"""polygon - A polygon """ """polygon - A polygon """
want = 'cpgn' want = 'cpgn'
class _Prop_point_list(aetools.NProperty): class _Prop_point_list(aetools.NProperty):
"""point list - the list of points that define the polygon """ """point list - the list of points that define the polygon """
which = 'ptlt' which = 'ptlt'
want = 'QDpt' want = 'QDpt'
polygons = polygon polygons = polygon
class graphic_groups(aetools.ComponentItem): class graphic_groups(aetools.ComponentItem):
"""graphic groups - """ """graphic groups - """
want = 'cpic' want = 'cpic'
graphic_group = graphic_groups graphic_group = graphic_groups
class pixel_maps(aetools.ComponentItem): class pixel_maps(aetools.ComponentItem):
"""pixel maps - """ """pixel maps - """
want = 'cpix' want = 'cpix'
pixel_map = pixel_maps pixel_map = pixel_maps
class pixel(aetools.ComponentItem): class pixel(aetools.ComponentItem):
"""pixel - A pixel """ """pixel - A pixel """
want = 'cpxl' want = 'cpxl'
pixels = pixel pixels = pixel
class rectangles(aetools.ComponentItem): class rectangles(aetools.ComponentItem):
"""rectangles - """ """rectangles - """
want = 'crec' want = 'crec'
rectangle = rectangles rectangle = rectangles
class rounded_rectangle(aetools.ComponentItem): class rounded_rectangle(aetools.ComponentItem):
"""rounded rectangle - A rounded rectangle """ """rounded rectangle - A rounded rectangle """
want = 'crrc' want = 'crrc'
class _Prop_corner_curve_height(aetools.NProperty): class _Prop_corner_curve_height(aetools.NProperty):
"""corner curve height - the height of the oval used to define the shape of the rounded corners """ """corner curve height - the height of the oval used to define the shape of the rounded corners """
which = 'pchd' which = 'pchd'
want = 'shor' want = 'shor'
class _Prop_corner_curve_width(aetools.NProperty): class _Prop_corner_curve_width(aetools.NProperty):
"""corner curve width - the width of the oval used to define the shape of the rounded corners """ """corner curve width - the width of the oval used to define the shape of the rounded corners """
which = 'pcwd' which = 'pcwd'
want = 'shor' want = 'shor'
rounded_rectangles = rounded_rectangle rounded_rectangles = rounded_rectangle
class graphic_line(aetools.ComponentItem): class graphic_line(aetools.ComponentItem):
"""graphic line - A graphic line """ """graphic line - A graphic line """
want = 'glin' want = 'glin'
class _Prop_arrow_style(aetools.NProperty): class _Prop_arrow_style(aetools.NProperty):
"""arrow style - the arrow style """ """arrow style - the arrow style """
which = 'arro' which = 'arro'
want = 'arro' want = 'arro'
class _Prop_dash_style(aetools.NProperty): class _Prop_dash_style(aetools.NProperty):
"""dash style - the dash style """ """dash style - the dash style """
which = 'pdst' which = 'pdst'
want = 'tdas' want = 'tdas'
class _Prop_end_point(aetools.NProperty): class _Prop_end_point(aetools.NProperty):
"""end point - the ending point of the line """ """end point - the ending point of the line """
which = 'pend' which = 'pend'
want = 'QDpt' want = 'QDpt'
class _Prop_start_point(aetools.NProperty): class _Prop_start_point(aetools.NProperty):
"""start point - the starting point of the line """ """start point - the starting point of the line """
which = 'pstp' which = 'pstp'
want = 'QDpt' want = 'QDpt'
graphic_lines = graphic_line graphic_lines = graphic_line
arc._superclassnames = [] arc._superclassnames = []
arc._privpropdict = { arc._privpropdict = {
'arc_angle' : _Prop_arc_angle, 'arc_angle' : _Prop_arc_angle,
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'definition_rect' : _Prop_definition_rect, 'definition_rect' : _Prop_definition_rect,
'fill_color' : _Prop_fill_color, 'fill_color' : _Prop_fill_color,
'fill_pattern' : _Prop_fill_pattern, 'fill_pattern' : _Prop_fill_pattern,
'pen_color' : _Prop_pen_color, 'pen_color' : _Prop_pen_color,
'pen_pattern' : _Prop_pen_pattern, 'pen_pattern' : _Prop_pen_pattern,
'pen_width' : _Prop_pen_width, 'pen_width' : _Prop_pen_width,
'start_angle' : _Prop_start_angle, 'start_angle' : _Prop_start_angle,
'transfer_mode' : _Prop_transfer_mode, 'transfer_mode' : _Prop_transfer_mode,
} }
arc._privelemdict = { arc._privelemdict = {
} }
drawing_area._superclassnames = [] drawing_area._superclassnames = []
drawing_area._privpropdict = { drawing_area._privpropdict = {
'background_color' : _Prop_background_color, 'background_color' : _Prop_background_color,
'background_pattern' : _Prop_background_pattern, 'background_pattern' : _Prop_background_pattern,
'color_table' : _Prop_color_table, 'color_table' : _Prop_color_table,
'default_font' : _Prop_default_font, 'default_font' : _Prop_default_font,
'default_location' : _Prop_default_location, 'default_location' : _Prop_default_location,
'default_size' : _Prop_default_size, 'default_size' : _Prop_default_size,
'name' : _Prop_name, 'name' : _Prop_name,
'ordering' : _Prop_ordering, 'ordering' : _Prop_ordering,
'pixel_depth' : _Prop_pixel_depth, 'pixel_depth' : _Prop_pixel_depth,
'style' : _Prop_style, 'style' : _Prop_style,
'text_color' : _Prop_text_color, 'text_color' : _Prop_text_color,
'update_on_change' : _Prop_update_on_change, 'update_on_change' : _Prop_update_on_change,
'writing_code' : _Prop_writing_code, 'writing_code' : _Prop_writing_code,
} }
drawing_area._privelemdict = { drawing_area._privelemdict = {
} }
@ -271,10 +271,10 @@ graphic_shapes._privelemdict = {
} }
graphic_text._superclassnames = [] graphic_text._superclassnames = []
graphic_text._privpropdict = { graphic_text._privpropdict = {
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
'uniform_styles' : _Prop_uniform_styles, 'uniform_styles' : _Prop_uniform_styles,
} }
graphic_text._privelemdict = { graphic_text._privelemdict = {
} }
@ -285,7 +285,7 @@ ovals._privelemdict = {
} }
polygon._superclassnames = [] polygon._superclassnames = []
polygon._privpropdict = { polygon._privpropdict = {
'point_list' : _Prop_point_list, 'point_list' : _Prop_point_list,
} }
polygon._privelemdict = { polygon._privelemdict = {
} }
@ -301,7 +301,7 @@ pixel_maps._privelemdict = {
} }
pixel._superclassnames = [] pixel._superclassnames = []
pixel._privpropdict = { pixel._privpropdict = {
'color' : _Prop_color, 'color' : _Prop_color,
} }
pixel._privelemdict = { pixel._privelemdict = {
} }
@ -312,43 +312,43 @@ rectangles._privelemdict = {
} }
rounded_rectangle._superclassnames = [] rounded_rectangle._superclassnames = []
rounded_rectangle._privpropdict = { rounded_rectangle._privpropdict = {
'corner_curve_height' : _Prop_corner_curve_height, 'corner_curve_height' : _Prop_corner_curve_height,
'corner_curve_width' : _Prop_corner_curve_width, 'corner_curve_width' : _Prop_corner_curve_width,
} }
rounded_rectangle._privelemdict = { rounded_rectangle._privelemdict = {
} }
graphic_line._superclassnames = [] graphic_line._superclassnames = []
graphic_line._privpropdict = { graphic_line._privpropdict = {
'arrow_style' : _Prop_arrow_style, 'arrow_style' : _Prop_arrow_style,
'dash_style' : _Prop_dash_style, 'dash_style' : _Prop_dash_style,
'end_point' : _Prop_end_point, 'end_point' : _Prop_end_point,
'start_point' : _Prop_start_point, 'start_point' : _Prop_start_point,
} }
graphic_line._privelemdict = { graphic_line._privelemdict = {
} }
_Enum_arro = { _Enum_arro = {
'no_arrow' : 'arno', # No arrow on line 'no_arrow' : 'arno', # No arrow on line
'arrow_at_start' : 'arst', # Arrow at start of line 'arrow_at_start' : 'arst', # Arrow at start of line
'arrow_at_end' : 'aren', # Arrow at end 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 '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', #
'or_pixels' : 'or ', # 'or_pixels' : 'or ', #
'not_or_pixels' : 'ntor', # 'not_or_pixels' : 'ntor', #
'bic_pixels' : 'bic ', # 'bic_pixels' : 'bic ', #
'not_bic_pixels' : 'nbic', # 'not_bic_pixels' : 'nbic', #
'xor_pixels' : 'xor ', # 'xor_pixels' : 'xor ', #
'not_xor_pixels' : 'nxor', # 'not_xor_pixels' : 'nxor', #
'add_over_pixels' : 'addo', # 'add_over_pixels' : 'addo', #
'add_pin_pixels' : 'addp', # 'add_pin_pixels' : 'addp', #
'sub_over_pixels' : 'subo', # 'sub_over_pixels' : 'subo', #
'sub_pin_pixels' : 'subp', # 'sub_pin_pixels' : 'subp', #
'ad_max_pixels' : 'admx', # 'ad_max_pixels' : 'admx', #
'ad_min_pixels' : 'admn', # 'ad_min_pixels' : 'admn', #
'blend_pixels' : 'blnd', # 'blend_pixels' : 'blnd', #
} }
@ -356,17 +356,62 @@ _Enum_tran = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'carc' : arc, 'carc' : arc,
'cdrw' : drawing_area, 'cdrw' : drawing_area,
'cgob' : graphic_objects, 'cgob' : graphic_objects,
'cgsh' : graphic_shapes, 'cgsh' : graphic_shapes,
'cgtx' : graphic_text, 'cgtx' : graphic_text,
'covl' : ovals, 'covl' : ovals,
'cpgn' : polygon, 'cpgn' : polygon,
'cpic' : graphic_groups, 'cpic' : graphic_groups,
'cpix' : pixel_maps, 'cpix' : pixel_maps,
'cpxl' : pixel, 'cpxl' : pixel,
'crec' : rectangles, 'crec' : rectangles,
'crrc' : rounded_rectangle, 'crrc' : rounded_rectangle,
'glin' : graphic_line, 'glin' : graphic_line,
}
_propdeclarations = {
'arro' : _Prop_arrow_style,
'cltb' : _Prop_color_table,
'colr' : _Prop_color,
'flcl' : _Prop_fill_color,
'flpt' : _Prop_fill_pattern,
'font' : _Prop_font,
'gobs' : _Prop_ordering,
'pang' : _Prop_start_angle,
'parc' : _Prop_arc_angle,
'pbcl' : _Prop_background_color,
'pbnd' : _Prop_bounds,
'pbpt' : _Prop_background_pattern,
'pchd' : _Prop_corner_curve_height,
'pcwd' : _Prop_corner_curve_width,
'pdpt' : _Prop_pixel_depth,
'pdrt' : _Prop_definition_rect,
'pdst' : _Prop_dash_style,
'pend' : _Prop_end_point,
'pnam' : _Prop_name,
'pnel' : _Prop_default_location,
'ppcl' : _Prop_pen_color,
'pppa' : _Prop_pen_pattern,
'pptm' : _Prop_transfer_mode,
'ppwd' : _Prop_pen_width,
'psct' : _Prop_writing_code,
'pstp' : _Prop_start_point,
'ptlt' : _Prop_point_list,
'ptps' : _Prop_default_size,
'ptsz' : _Prop_size,
'ptxc' : _Prop_text_color,
'ptxf' : _Prop_default_font,
'pupd' : _Prop_update_on_change,
'txst' : _Prop_style,
'ustl' : _Prop_uniform_styles,
}
_compdeclarations = {
}
_enumdeclarations = {
'arro' : _Enum_arro,
'tran' : _Enum_tran,
} }

View file

@ -12,37 +12,37 @@ _code = 'qdsp'
class QuickDraw_Graphics_Suppleme_Events: class QuickDraw_Graphics_Suppleme_Events:
pass pass
class drawing_area(aetools.ComponentItem): class drawing_area(aetools.ComponentItem):
"""drawing area - Container for graphics and supporting information """ """drawing area - Container for graphics and supporting information """
want = 'cdrw' want = 'cdrw'
class _Prop_rotation(aetools.NProperty): class _Prop_rotation(aetools.NProperty):
"""rotation - the default rotation for objects in the drawing area """ """rotation - the default rotation for objects in the drawing area """
which = 'prot' which = 'prot'
want = 'trot' want = 'trot'
class _Prop_scale(aetools.NProperty): class _Prop_scale(aetools.NProperty):
"""scale - the default scaling for objects in the drawing area """ """scale - the default scaling for objects in the drawing area """
which = 'pscl' which = 'pscl'
want = 'fixd' want = 'fixd'
class _Prop_translation(aetools.NProperty): class _Prop_translation(aetools.NProperty):
"""translation - the default repositioning for objects in the drawing area """ """translation - the default repositioning for objects in the drawing area """
which = 'ptrs' which = 'ptrs'
want = 'QDpt' want = 'QDpt'
drawing_areas = drawing_area drawing_areas = drawing_area
class graphic_groups(aetools.ComponentItem): class graphic_groups(aetools.ComponentItem):
"""graphic groups - """ """graphic groups - """
want = 'cpic' want = 'cpic'
graphic_group = graphic_groups graphic_group = graphic_groups
drawing_area._superclassnames = [] drawing_area._superclassnames = []
drawing_area._privpropdict = { drawing_area._privpropdict = {
'rotation' : _Prop_rotation, 'rotation' : _Prop_rotation,
'scale' : _Prop_scale, 'scale' : _Prop_scale,
'translation' : _Prop_translation, 'translation' : _Prop_translation,
} }
drawing_area._privelemdict = { drawing_area._privelemdict = {
} }
@ -56,6 +56,18 @@ graphic_groups._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cdrw' : drawing_area, 'cdrw' : drawing_area,
'cpic' : graphic_groups, 'cpic' : graphic_groups,
}
_propdeclarations = {
'prot' : _Prop_rotation,
'pscl' : _Prop_scale,
'ptrs' : _Prop_translation,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -13,7 +13,7 @@ _code = 'reqd'
from _builtinSuites.builtin_Suite import * from _builtinSuites.builtin_Suite import *
class Required_Suite_Events(builtin_Suite_Events): class Required_Suite_Events(builtin_Suite_Events):
pass pass
# #
@ -21,3 +21,12 @@ class Required_Suite_Events(builtin_Suite_Events):
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

File diff suppressed because it is too large Load diff

View file

@ -12,54 +12,54 @@ _code = 'tbls'
class Table_Suite_Events: class Table_Suite_Events:
pass pass
class cell(aetools.ComponentItem): class cell(aetools.ComponentItem):
"""cell - A cell """ """cell - A cell """
want = 'ccel' want = 'ccel'
class _Prop_formula(aetools.NProperty): class _Prop_formula(aetools.NProperty):
"""formula - the formula of the cell """ """formula - the formula of the cell """
which = 'pfor' which = 'pfor'
want = 'ctxt' want = 'ctxt'
class _Prop_protection(aetools.NProperty): class _Prop_protection(aetools.NProperty):
"""protection - Indicates whether value or formula in the cell can be changed """ """protection - Indicates whether value or formula in the cell can be changed """
which = 'ppro' which = 'ppro'
want = 'prtn' want = 'prtn'
cells = cell cells = cell
class column(aetools.ComponentItem): class column(aetools.ComponentItem):
"""column - A column """ """column - A column """
want = 'ccol' want = 'ccol'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name of the column """ """name - the name of the column """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
columns = column columns = column
class rows(aetools.ComponentItem): class rows(aetools.ComponentItem):
"""rows - """ """rows - """
want = 'crow' want = 'crow'
row = rows row = rows
class tables(aetools.ComponentItem): class tables(aetools.ComponentItem):
"""tables - """ """tables - """
want = 'ctbl' want = 'ctbl'
table = tables table = tables
cell._superclassnames = [] cell._superclassnames = []
cell._privpropdict = { cell._privpropdict = {
'formula' : _Prop_formula, 'formula' : _Prop_formula,
'protection' : _Prop_protection, 'protection' : _Prop_protection,
} }
cell._privelemdict = { cell._privelemdict = {
} }
column._superclassnames = [] column._superclassnames = []
column._privpropdict = { column._privpropdict = {
'name' : _Prop_name, 'name' : _Prop_name,
} }
column._privelemdict = { column._privelemdict = {
} }
@ -74,9 +74,9 @@ tables._privpropdict = {
tables._privelemdict = { tables._privelemdict = {
} }
_Enum_prtn = { _Enum_prtn = {
'read_only' : 'nmod', # Can\xd5t change values or formulas 'read_only' : 'nmod', # Can\xd5t change values or formulas
'formulas_protected' : 'fpro', # Can changes values but not formulas 'formulas_protected' : 'fpro', # Can changes values but not formulas
'read_2f_write' : 'modf', # Can change values and formulas 'read_2f_write' : 'modf', # Can change values and formulas
} }
@ -84,8 +84,21 @@ _Enum_prtn = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'ccel' : cell, 'ccel' : cell,
'ccol' : column, 'ccol' : column,
'crow' : rows, 'crow' : rows,
'ctbl' : tables, 'ctbl' : tables,
}
_propdeclarations = {
'pfor' : _Prop_formula,
'pnam' : _Prop_name,
'ppro' : _Prop_protection,
}
_compdeclarations = {
}
_enumdeclarations = {
'prtn' : _Enum_prtn,
} }

View file

@ -12,70 +12,70 @@ _code = 'TEXT'
class Text_Suite_Events: class Text_Suite_Events:
pass pass
class text_flow(aetools.ComponentItem): class text_flow(aetools.ComponentItem):
"""text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """ """text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """
want = 'cflo' want = 'cflo'
class _Prop__3c_inheritance_3e_(aetools.NProperty): class _Prop__3c_inheritance_3e_(aetools.NProperty):
"""<inheritance> - inherits some of its properties from this class """ """<inheritance> - inherits some of its properties from this class """
which = 'c@#^' which = 'c@#^'
want = 'ctxt' want = 'ctxt'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name """ """name - the name """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
text_flows = text_flow text_flows = text_flow
class character(aetools.ComponentItem): class character(aetools.ComponentItem):
"""character - A character """ """character - A character """
want = 'cha ' want = 'cha '
class line(aetools.ComponentItem): class line(aetools.ComponentItem):
"""line - A line of text """ """line - A line of text """
want = 'clin' want = 'clin'
class _Prop_justification(aetools.NProperty): class _Prop_justification(aetools.NProperty):
"""justification - the justification of the text """ """justification - the justification of the text """
which = 'pjst' which = 'pjst'
want = 'just' want = 'just'
lines = line lines = line
class paragraph(aetools.ComponentItem): class paragraph(aetools.ComponentItem):
"""paragraph - A paragraph """ """paragraph - A paragraph """
want = 'cpar' want = 'cpar'
paragraphs = paragraph paragraphs = paragraph
class text(aetools.ComponentItem): class text(aetools.ComponentItem):
"""text - Text """ """text - Text """
want = 'ctxt' want = 'ctxt'
class _Prop_color(aetools.NProperty): class _Prop_color(aetools.NProperty):
"""color - the color of the first character """ """color - the color of the first character """
which = 'colr' which = 'colr'
want = 'cRGB' want = 'cRGB'
class _Prop_font(aetools.NProperty): class _Prop_font(aetools.NProperty):
"""font - the name of the font of the first character """ """font - the name of the font of the first character """
which = 'font' which = 'font'
want = 'ctxt' want = 'ctxt'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - the size in points of the first character """ """size - the size in points of the first character """
which = 'ptsz' which = 'ptsz'
want = 'fixd' want = 'fixd'
class _Prop_style(aetools.NProperty): class _Prop_style(aetools.NProperty):
"""style - the text style of the first character of the first character """ """style - the text style of the first character of the first character """
which = 'txst' which = 'txst'
want = 'tsty' want = 'tsty'
class _Prop_uniform_styles(aetools.NProperty): class _Prop_uniform_styles(aetools.NProperty):
"""uniform styles - the text styles that are uniform throughout the text """ """uniform styles - the text styles that are uniform throughout the text """
which = 'ustl' which = 'ustl'
want = 'tsty' want = 'tsty'
class _Prop_writing_code(aetools.NProperty): class _Prop_writing_code(aetools.NProperty):
"""writing code - the script system and language """ """writing code - the script system and language """
which = 'psct' which = 'psct'
want = 'intl' want = 'intl'
# element 'cha ' as ['indx'] # element 'cha ' as ['indx']
# element 'clin' as ['indx'] # element 'clin' as ['indx']
# element 'cpar' as ['indx'] # element 'cpar' as ['indx']
@ -83,102 +83,102 @@ class _Prop_writing_code(aetools.NProperty):
# element 'cwor' as ['indx'] # element 'cwor' as ['indx']
class word(aetools.ComponentItem): class word(aetools.ComponentItem):
"""word - A word """ """word - A word """
want = 'cwor' want = 'cwor'
words = word words = word
class text_style_info(aetools.ComponentItem): class text_style_info(aetools.ComponentItem):
"""text style info - On and Off styles of text run """ """text style info - On and Off styles of text run """
want = 'tsty' want = 'tsty'
class _Prop_off_styles(aetools.NProperty): class _Prop_off_styles(aetools.NProperty):
"""off styles - the styles that are off for the text """ """off styles - the styles that are off for the text """
which = 'ofst' which = 'ofst'
want = 'styl' want = 'styl'
class _Prop_on_styles(aetools.NProperty): class _Prop_on_styles(aetools.NProperty):
"""on styles - the styles that are on for the text """ """on styles - the styles that are on for the text """
which = 'onst' which = 'onst'
want = 'styl' want = 'styl'
text_style_infos = text_style_info text_style_infos = text_style_info
text_flow._superclassnames = ['text'] text_flow._superclassnames = ['text']
text_flow._privpropdict = { text_flow._privpropdict = {
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
'name' : _Prop_name, 'name' : _Prop_name,
} }
text_flow._privelemdict = { text_flow._privelemdict = {
} }
character._superclassnames = ['text'] character._superclassnames = ['text']
character._privpropdict = { character._privpropdict = {
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
character._privelemdict = { character._privelemdict = {
} }
line._superclassnames = ['text'] line._superclassnames = ['text']
line._privpropdict = { line._privpropdict = {
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
'justification' : _Prop_justification, 'justification' : _Prop_justification,
} }
line._privelemdict = { line._privelemdict = {
} }
paragraph._superclassnames = ['text'] paragraph._superclassnames = ['text']
paragraph._privpropdict = { paragraph._privpropdict = {
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
paragraph._privelemdict = { paragraph._privelemdict = {
} }
text._superclassnames = [] text._superclassnames = []
text._privpropdict = { text._privpropdict = {
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
'style' : _Prop_style, 'style' : _Prop_style,
'uniform_styles' : _Prop_uniform_styles, 'uniform_styles' : _Prop_uniform_styles,
'writing_code' : _Prop_writing_code, 'writing_code' : _Prop_writing_code,
} }
text._privelemdict = { text._privelemdict = {
'character' : character, 'character' : character,
'line' : line, 'line' : line,
'paragraph' : paragraph, 'paragraph' : paragraph,
'text' : text, 'text' : text,
'word' : word, 'word' : word,
} }
word._superclassnames = ['text'] word._superclassnames = ['text']
word._privpropdict = { word._privpropdict = {
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
} }
word._privelemdict = { word._privelemdict = {
} }
text_style_info._superclassnames = [] text_style_info._superclassnames = []
text_style_info._privpropdict = { text_style_info._privpropdict = {
'off_styles' : _Prop_off_styles, 'off_styles' : _Prop_off_styles,
'on_styles' : _Prop_on_styles, 'on_styles' : _Prop_on_styles,
} }
text_style_info._privelemdict = { text_style_info._privelemdict = {
} }
_Enum_just = { _Enum_just = {
'left' : 'left', # Align with left margin 'left' : 'left', # Align with left margin
'right' : 'rght', # Align with right margin 'right' : 'rght', # Align with right margin
'center' : 'cent', # Align with center 'center' : 'cent', # Align with center
'full' : 'full', # Align with both left and right margins 'full' : 'full', # Align with both left and right margins
} }
_Enum_styl = { _Enum_styl = {
'plain' : 'plan', # Plain 'plain' : 'plan', # Plain
'bold' : 'bold', # Bold 'bold' : 'bold', # Bold
'italic' : 'ital', # Italic 'italic' : 'ital', # Italic
'outline' : 'outl', # Outline 'outline' : 'outl', # Outline
'shadow' : 'shad', # Shadow 'shadow' : 'shad', # Shadow
'underline' : 'undl', # Underline 'underline' : 'undl', # Underline
'superscript' : 'spsc', # Superscript 'superscript' : 'spsc', # Superscript
'subscript' : 'sbsc', # Subscript 'subscript' : 'sbsc', # Subscript
'strikethrough' : 'strk', # Strikethrough 'strikethrough' : 'strk', # Strikethrough
'small_caps' : 'smcp', # Small caps 'small_caps' : 'smcp', # Small caps
'all_caps' : 'alcp', # All capital letters 'all_caps' : 'alcp', # All capital letters
'all_lowercase' : 'lowc', # Lowercase 'all_lowercase' : 'lowc', # Lowercase
'condensed' : 'cond', # Condensed 'condensed' : 'cond', # Condensed
'expanded' : 'pexp', # Expanded 'expanded' : 'pexp', # Expanded
'hidden' : 'hidn', # Hidden 'hidden' : 'hidn', # Hidden
} }
@ -186,11 +186,33 @@ _Enum_styl = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cflo' : text_flow, 'cflo' : text_flow,
'cha ' : character, 'cha ' : character,
'clin' : line, 'clin' : line,
'cpar' : paragraph, 'cpar' : paragraph,
'ctxt' : text, 'ctxt' : text,
'cwor' : word, 'cwor' : word,
'tsty' : text_style_info, 'tsty' : text_style_info,
}
_propdeclarations = {
'c@#^' : _Prop__3c_inheritance_3e_,
'colr' : _Prop_color,
'font' : _Prop_font,
'ofst' : _Prop_off_styles,
'onst' : _Prop_on_styles,
'pjst' : _Prop_justification,
'pnam' : _Prop_name,
'psct' : _Prop_writing_code,
'ptsz' : _Prop_size,
'txst' : _Prop_style,
'ustl' : _Prop_uniform_styles,
}
_compdeclarations = {
}
_enumdeclarations = {
'just' : _Enum_just,
'styl' : _Enum_styl,
} }

View file

@ -12,172 +12,172 @@ _code = 'tpnm'
class Type_Names_Suite_Events: class Type_Names_Suite_Events:
pass pass
class PostScript_picture(aetools.ComponentItem): class PostScript_picture(aetools.ComponentItem):
"""PostScript picture - """ """PostScript picture - """
want = 'EPS ' want = 'EPS '
class point(aetools.ComponentItem): class point(aetools.ComponentItem):
"""point - point coordinates """ """point - point coordinates """
want = 'QDpt' want = 'QDpt'
class string(aetools.ComponentItem): class string(aetools.ComponentItem):
"""string - a string of characters """ """string - a string of characters """
want = 'TEXT' want = 'TEXT'
plain_text = string plain_text = string
plain_text = string plain_text = string
class TIFF_picture(aetools.ComponentItem): class TIFF_picture(aetools.ComponentItem):
"""TIFF picture - """ """TIFF picture - """
want = 'TIFF' want = 'TIFF'
class application_dictionary(aetools.ComponentItem): class application_dictionary(aetools.ComponentItem):
"""application dictionary - """ """application dictionary - """
want = 'aete' want = 'aete'
class system_dictionary(aetools.ComponentItem): class system_dictionary(aetools.ComponentItem):
"""system dictionary - """ """system dictionary - """
want = 'aeut' want = 'aeut'
class color_table(aetools.ComponentItem): class color_table(aetools.ComponentItem):
"""color table - """ """color table - """
want = 'clrt' want = 'clrt'
class menu_item(aetools.ComponentItem): class menu_item(aetools.ComponentItem):
"""menu item - """ """menu item - """
want = 'cmen' want = 'cmen'
class menu(aetools.ComponentItem): class menu(aetools.ComponentItem):
"""menu - """ """menu - """
want = 'cmnu' want = 'cmnu'
class double_integer(aetools.ComponentItem): class double_integer(aetools.ComponentItem):
"""double integer - """ """double integer - """
want = 'comp' want = 'comp'
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): class type_event_info(aetools.ComponentItem):
"""type event info - information about an event """ """type event info - information about an event """
want = 'evin' want = 'evin'
class extended_real(aetools.ComponentItem): class extended_real(aetools.ComponentItem):
"""extended real - """ """extended real - """
want = 'exte' want = 'exte'
class fixed(aetools.ComponentItem): class fixed(aetools.ComponentItem):
"""fixed - a real number """ """fixed - a real number """
want = 'fixd' want = 'fixd'
class fixed_point(aetools.ComponentItem): class fixed_point(aetools.ComponentItem):
"""fixed point - """ """fixed point - """
want = 'fpnt' want = 'fpnt'
class fixed_rectangle(aetools.ComponentItem): class fixed_rectangle(aetools.ComponentItem):
"""fixed rectangle - """ """fixed rectangle - """
want = 'frct' want = 'frct'
class type_class_info(aetools.ComponentItem): class type_class_info(aetools.ComponentItem):
"""type class info - information about properties and elements of a class """ """type class info - information about properties and elements of a class """
want = 'gcli' want = 'gcli'
class location_reference(aetools.ComponentItem): class location_reference(aetools.ComponentItem):
"""location reference - """ """location reference - """
want = 'insl' want = 'insl'
class long_fixed_point(aetools.ComponentItem): class long_fixed_point(aetools.ComponentItem):
"""long fixed point - """ """long fixed point - """
want = 'lfpt' want = 'lfpt'
class long_fixed_rectangle(aetools.ComponentItem): class long_fixed_rectangle(aetools.ComponentItem):
"""long fixed rectangle - """ """long fixed rectangle - """
want = 'lfrc' want = 'lfrc'
class long_fixed(aetools.ComponentItem): class long_fixed(aetools.ComponentItem):
"""long fixed - """ """long fixed - """
want = 'lfxd' want = 'lfxd'
class long_point(aetools.ComponentItem): class long_point(aetools.ComponentItem):
"""long point - """ """long point - """
want = 'lpnt' want = 'lpnt'
class long_rectangle(aetools.ComponentItem): class long_rectangle(aetools.ComponentItem):
"""long rectangle - """ """long rectangle - """
want = 'lrct' want = 'lrct'
class machine_location(aetools.ComponentItem): class machine_location(aetools.ComponentItem):
"""machine location - """ """machine location - """
want = 'mLoc' want = 'mLoc'
class unsigned_integer(aetools.ComponentItem): class unsigned_integer(aetools.ComponentItem):
"""unsigned integer - """ """unsigned integer - """
want = 'magn' want = 'magn'
class null(aetools.ComponentItem): class null(aetools.ComponentItem):
"""null - """ """null - """
want = 'null' want = 'null'
class type_property_info(aetools.ComponentItem): class type_property_info(aetools.ComponentItem):
"""type property info - """ """type property info - """
want = 'pinf' want = 'pinf'
class type_parameter_info(aetools.ComponentItem): class type_parameter_info(aetools.ComponentItem):
"""type parameter info - """ """type parameter info - """
want = 'pmin' want = 'pmin'
class bounding_rectangle(aetools.ComponentItem): class bounding_rectangle(aetools.ComponentItem):
"""bounding rectangle - bounding rectangle """ """bounding rectangle - bounding rectangle """
want = 'qdrt' want = 'qdrt'
class small_integer(aetools.ComponentItem): class small_integer(aetools.ComponentItem):
"""small integer - """ """small integer - """
want = 'shor' want = 'shor'
class small_real(aetools.ComponentItem): class small_real(aetools.ComponentItem):
"""small real - """ """small real - """
want = 'sing' want = 'sing'
class scrap_styles(aetools.ComponentItem): class scrap_styles(aetools.ComponentItem):
"""scrap styles - """ """scrap styles - """
want = 'styl' want = 'styl'
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 target_id(aetools.ComponentItem):
"""target id - """ """target id - """
want = 'targ' want = 'targ'
class dash_style(aetools.ComponentItem): class dash_style(aetools.ComponentItem):
"""dash style - """ """dash style - """
want = 'tdas' want = 'tdas'
class pixel_map_record(aetools.ComponentItem): class pixel_map_record(aetools.ComponentItem):
"""pixel map record - """ """pixel map record - """
want = 'tpmm' want = 'tpmm'
class RGB16_color(aetools.ComponentItem): class RGB16_color(aetools.ComponentItem):
"""RGB16 color - """ """RGB16 color - """
want = 'tr16' want = 'tr16'
class RGB96_color(aetools.ComponentItem): class RGB96_color(aetools.ComponentItem):
"""RGB96 color - """ """RGB96 color - """
want = 'tr96' want = 'tr96'
class rotation(aetools.ComponentItem): class rotation(aetools.ComponentItem):
"""rotation - """ """rotation - """
want = 'trot' want = 'trot'
class version(aetools.ComponentItem): class version(aetools.ComponentItem):
"""version - """ """version - """
want = 'vers' want = 'vers'
PostScript_picture._superclassnames = [] PostScript_picture._superclassnames = []
PostScript_picture._privpropdict = { PostScript_picture._privpropdict = {
} }
@ -383,44 +383,53 @@ version._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'EPS ' : PostScript_picture, 'EPS ' : PostScript_picture,
'QDpt' : point, 'QDpt' : point,
'TEXT' : string, 'TEXT' : string,
'TIFF' : TIFF_picture, 'TIFF' : TIFF_picture,
'aete' : application_dictionary, 'aete' : application_dictionary,
'aeut' : system_dictionary, 'aeut' : system_dictionary,
'clrt' : color_table, 'clrt' : color_table,
'cmen' : menu_item, 'cmen' : menu_item,
'cmnu' : menu, 'cmnu' : menu,
'comp' : double_integer, 'comp' : double_integer,
'elin' : type_element_info, 'elin' : type_element_info,
'evin' : type_event_info, 'evin' : type_event_info,
'exte' : extended_real, 'exte' : extended_real,
'fixd' : fixed, 'fixd' : fixed,
'fpnt' : fixed_point, 'fpnt' : fixed_point,
'frct' : fixed_rectangle, 'frct' : fixed_rectangle,
'gcli' : type_class_info, 'gcli' : type_class_info,
'insl' : location_reference, 'insl' : location_reference,
'lfpt' : long_fixed_point, 'lfpt' : long_fixed_point,
'lfrc' : long_fixed_rectangle, 'lfrc' : long_fixed_rectangle,
'lfxd' : long_fixed, 'lfxd' : long_fixed,
'lpnt' : long_point, 'lpnt' : long_point,
'lrct' : long_rectangle, 'lrct' : long_rectangle,
'mLoc' : machine_location, 'mLoc' : machine_location,
'magn' : unsigned_integer, 'magn' : unsigned_integer,
'null' : null, 'null' : null,
'pinf' : type_property_info, 'pinf' : type_property_info,
'pmin' : type_parameter_info, 'pmin' : type_parameter_info,
'qdrt' : bounding_rectangle, 'qdrt' : bounding_rectangle,
'shor' : small_integer, 'shor' : small_integer,
'sing' : small_real, 'sing' : small_real,
'styl' : scrap_styles, 'styl' : scrap_styles,
'suin' : type_suite_info, 'suin' : type_suite_info,
'targ' : target_id, 'targ' : target_id,
'tdas' : dash_style, 'tdas' : dash_style,
'tpmm' : pixel_map_record, 'tpmm' : pixel_map_record,
'tr16' : RGB16_color, 'tr16' : RGB16_color,
'tr96' : RGB96_color, 'tr96' : RGB96_color,
'trot' : rotation, 'trot' : rotation,
'vers' : version, 'vers' : version,
}
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -16,29 +16,29 @@ import Type_Names_Suite
_code_to_module = { _code_to_module = {
'TEXT' : Text_Suite, 'TEXT' : Text_Suite,
'ascr' : AppleScript_Suite, 'ascr' : AppleScript_Suite,
'core' : Standard_Suite, 'core' : Standard_Suite,
'macc' : Macintosh_Connectivity_Clas, 'macc' : Macintosh_Connectivity_Clas,
'qdrw' : QuickDraw_Graphics_Suite, 'qdrw' : QuickDraw_Graphics_Suite,
'qdsp' : QuickDraw_Graphics_Suppleme, 'qdsp' : QuickDraw_Graphics_Suppleme,
'reqd' : Required_Suite, 'reqd' : Required_Suite,
'tbls' : Table_Suite, 'tbls' : Table_Suite,
'tpnm' : Type_Names_Suite, 'tpnm' : Type_Names_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'), 'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'),
'ascr' : ('StdSuites.AppleScript_Suite', 'AppleScript_Suite'), 'ascr' : ('StdSuites.AppleScript_Suite', 'AppleScript_Suite'),
'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'), 'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'),
'macc' : ('StdSuites.Macintosh_Connectivity_Clas', 'Macintosh_Connectivity_Clas'), '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'), 'reqd' : ('StdSuites.Required_Suite', 'Required_Suite'),
'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'), 'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'),
'tpnm' : ('StdSuites.Type_Names_Suite', 'Type_Names_Suite'), 'tpnm' : ('StdSuites.Type_Names_Suite', 'Type_Names_Suite'),
} }
from Text_Suite import * from Text_Suite import *
@ -52,16 +52,16 @@ from Table_Suite import *
from Type_Names_Suite import * from Type_Names_Suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
v._propdict = {} v._propdict = {}
v._elemdict = {} v._elemdict = {}
for superclassname in getattr(v, '_superclassnames', []): for superclassname in getattr(v, '_superclassnames', []):
superclass = eval(superclassname) superclass = eval(superclassname)
getbaseclasses(superclass) getbaseclasses(superclass)
v._propdict.update(getattr(superclass, '_propdict', {})) v._propdict.update(getattr(superclass, '_propdict', {}))
v._elemdict.update(getattr(superclass, '_elemdict', {})) v._elemdict.update(getattr(superclass, '_elemdict', {}))
v._propdict.update(getattr(v, '_privpropdict', {})) v._propdict.update(getattr(v, '_privpropdict', {}))
v._elemdict.update(getattr(v, '_privelemdict', {})) v._elemdict.update(getattr(v, '_privelemdict', {}))
import StdSuites import StdSuites
@ -263,210 +263,210 @@ getbaseclasses(row)
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'jul ' : July, 'jul ' : July,
'may ' : May, 'may ' : May,
'TEXT' : string, 'TEXT' : string,
'cmet' : cubic_metres, 'cmet' : cubic_metres,
'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, 'nmbr' : number,
'mile' : miles, '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, 'litr' : litres,
'nd ' : number_or_date, 'nd ' : number_or_date,
'cmtr' : centimetres, 'cmtr' : centimetres,
'evnt' : event, 'evnt' : event,
'pstr' : Pascal_string, 'pstr' : Pascal_string,
'zone' : zone, 'zone' : zone,
'PICT' : picture, 'PICT' : picture,
'ls ' : list_or_string, 'ls ' : list_or_string,
'long' : integer, 'long' : integer,
'sf ' : alias_or_string, 'sf ' : alias_or_string,
'citl' : writing_code_info, 'citl' : writing_code_info,
'citm' : text_item, 'citm' : text_item,
'mach' : machine, 'mach' : machine,
'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, 'dec ' : December,
'sqkm' : square_kilometres, 'sqkm' : square_kilometres,
'obj ' : reference, 'obj ' : reference,
'vect' : vector, 'vect' : vector,
'wkdy' : weekday, 'wkdy' : weekday,
'cRGB' : RGB_color, 'cRGB' : RGB_color,
'sun ' : Sunday, 'sun ' : Sunday,
'itxt' : international_text, 'itxt' : international_text,
'scnd' : seconds, 'scnd' : seconds,
'mar ' : March, 'mar ' : March,
'kmtr' : kilometres, 'kmtr' : kilometres,
'sqft' : square_feet, 'sqft' : square_feet,
'list' : list, 'list' : list,
'doub' : real, 'doub' : real,
'nov ' : November, 'nov ' : November,
'qrts' : quarts, 'qrts' : quarts,
'degc' : degrees_Celsius, 'degc' : degrees_Celsius,
'msng' : missing_value, 'msng' : missing_value,
'alis' : alias, 'alis' : alias,
'jan ' : January, 'jan ' : January,
'metr' : metres, 'metr' : metres,
'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, 'styl' : styled_Clipboard_text,
'encs' : encoded_string, 'encs' : encoded_string,
'galn' : gallons, 'galn' : gallons,
'cuin' : cubic_inches, 'cuin' : cubic_inches,
'fri ' : Friday, 'fri ' : Friday,
'sutx' : styled_Unicode_text, 'sutx' : styled_Unicode_text,
'lr ' : list_or_record, 'lr ' : list_or_record,
'degk' : degrees_Kelvin, 'degk' : degrees_Kelvin,
'mon ' : Monday, 'mon ' : Monday,
'snd ' : sound, 'snd ' : sound,
'pcls' : class_, 'pcls' : class_,
'kgrm' : kilograms, 'kgrm' : kilograms,
'scpt' : script, 'scpt' : script,
'****' : anything, '****' : anything,
'prop' : property, 'prop' : property,
'reco' : record, 'reco' : record,
'bool' : boolean, 'bool' : boolean,
'oct ' : October, 'oct ' : October,
'sqrm' : square_metres, 'sqrm' : square_metres,
'inch' : inches, 'inch' : inches,
'kfrm' : reference_form, 'kfrm' : reference_form,
'cobj' : item, 'cobj' : item,
'gram' : grams, 'gram' : grams,
'cha ' : character, 'cha ' : character,
'apr ' : April, 'apr ' : April,
'undf' : empty_ae_name_, 'undf' : empty_ae_name_,
'capp' : app, 'capp' : app,
'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, 'thu ' : Thursday,
'sqyd' : square_yards, 'sqyd' : square_yards,
'yard' : yards, 'yard' : yards,
'cyrd' : cubic_yards, 'cyrd' : cubic_yards,
'ozs ' : ounces, 'ozs ' : ounces,
'lbs ' : pounds, 'lbs ' : pounds,
'cfet' : cubic_feet, 'cfet' : cubic_feet,
'ccmt' : cubic_centimetres, 'ccmt' : cubic_centimetres,
'sat ' : Saturday, 'sat ' : Saturday,
'sep ' : September, 'sep ' : September,
'fss ' : file_specification, 'fss ' : file_specification,
'ctxt' : text, 'ctxt' : text,
'cwin' : window, 'cwin' : window,
'file' : file, 'file' : file,
'csel' : selection_2d_object, 'csel' : selection_2d_object,
'alis' : alias, 'alis' : alias,
'capp' : application, 'capp' : application,
'cins' : insertion_point, 'cins' : insertion_point,
'docu' : document, 'docu' : document,
'shor' : small_integer, 'shor' : small_integer,
'tr16' : RGB16_color, 'tr16' : RGB16_color,
'vers' : version, 'vers' : version,
'aeut' : system_dictionary, 'aeut' : system_dictionary,
'clrt' : color_table, 'clrt' : color_table,
'fpnt' : fixed_point, 'fpnt' : fixed_point,
'TEXT' : plain_text, 'TEXT' : plain_text,
'elin' : type_element_info, 'elin' : type_element_info,
'insl' : location_reference, 'insl' : location_reference,
'mLoc' : machine_location, 'mLoc' : machine_location,
'EPS ' : PostScript_picture, 'EPS ' : PostScript_picture,
'QDpt' : point, 'QDpt' : point,
'cmen' : menu_item, 'cmen' : menu_item,
'tpmm' : pixel_map_record, 'tpmm' : pixel_map_record,
'aete' : application_dictionary, 'aete' : application_dictionary,
'magn' : unsigned_integer, 'magn' : unsigned_integer,
'cmnu' : menu, 'cmnu' : menu,
'frct' : fixed_rectangle, 'frct' : fixed_rectangle,
'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, '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, '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, 'pinf' : type_property_info,
'lfpt' : long_fixed_point, 'lfpt' : long_fixed_point,
'lrct' : long_rectangle, 'lrct' : long_rectangle,
'qdrt' : bounding_rectangle, 'qdrt' : bounding_rectangle,
'comp' : double_integer, 'comp' : double_integer,
'lfxd' : long_fixed, 'lfxd' : long_fixed,
'null' : null, 'null' : null,
'targ' : target_id, 'targ' : target_id,
'cpar' : paragraph, 'cpar' : paragraph,
'cha ' : character, 'cha ' : character,
'cflo' : text_flow, 'cflo' : text_flow,
'tsty' : text_style_info, 'tsty' : text_style_info,
'clin' : line, 'clin' : line,
'cwor' : word, 'cwor' : word,
'ctxt' : text, 'ctxt' : text,
'cpic' : graphic_group, 'cpic' : graphic_group,
'covl' : oval, 'covl' : oval,
'cgtx' : graphic_text, 'cgtx' : graphic_text,
'cgsh' : graphic_shape, 'cgsh' : graphic_shape,
'glin' : graphic_line, 'glin' : graphic_line,
'cgob' : graphic_object, 'cgob' : graphic_object,
'cdrw' : drawing_area, 'cdrw' : drawing_area,
'cpgn' : polygon, 'cpgn' : polygon,
'cpxl' : pixel, 'cpxl' : pixel,
'crrc' : rounded_rectangle, 'crrc' : rounded_rectangle,
'carc' : arc, 'carc' : arc,
'cpix' : pixel_map, 'cpix' : pixel_map,
'crec' : rectangle, 'crec' : rectangle,
'cpic' : graphic_group, 'cpic' : graphic_group,
'cdrw' : drawing_area, 'cdrw' : drawing_area,
'cat ' : AppleTalk_address, 'cat ' : AppleTalk_address,
'cadr' : address_specification, 'cadr' : address_specification,
'ctok' : Token_Ring_address, 'ctok' : Token_Ring_address,
'cfw ' : FireWire_address, 'cfw ' : FireWire_address,
'cbus' : bus_slot, 'cbus' : bus_slot,
'cscs' : SCSI_address, 'cscs' : SCSI_address,
'cadb' : ADB_address, 'cadb' : ADB_address,
'cusb' : USB_address, 'cusb' : USB_address,
'cdev' : device_specification, 'cdev' : device_specification,
'clt ' : LocalTalk_address, 'clt ' : LocalTalk_address,
'cip ' : IP_address, 'cip ' : IP_address,
'cen ' : Ethernet_address, 'cen ' : Ethernet_address,
'ccel' : cell, 'ccel' : cell,
'ccol' : column, 'ccol' : column,
'ctbl' : table, 'ctbl' : table,
'crow' : row, 'crow' : row,
} }
class StdSuites(Text_Suite_Events, class StdSuites(Text_Suite_Events,
AppleScript_Suite_Events, AppleScript_Suite_Events,
Standard_Suite_Events, Standard_Suite_Events,
Macintosh_Connectivity_Clas_Events, Macintosh_Connectivity_Clas_Events,
QuickDraw_Graphics_Suite_Events, QuickDraw_Graphics_Suite_Events,
QuickDraw_Graphics_Suppleme_Events, QuickDraw_Graphics_Suppleme_Events,
Required_Suite_Events, Required_Suite_Events,
Table_Suite_Events, Table_Suite_Events,
Type_Names_Suite_Events, Type_Names_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'ascr' _signature = 'ascr'
_moduleName = 'StdSuites' _moduleName = 'StdSuites'

View file

@ -12,48 +12,48 @@ _code = 'cdis'
class Disk_2d_Folder_2d_File_Suite_Events: class Disk_2d_Folder_2d_File_Suite_Events:
_argmap_move = { _argmap_move = {
'to' : 'insh', 'to' : 'insh',
} }
def move(self, _object, _attributes={}, **_arguments): def move(self, _object, _attributes={}, **_arguments):
"""move: Move disk item(s) to a new location. """move: Move disk item(s) to a new location.
Required argument: the object for the command Required argument: the object for the command
Keyword argument to: The new location for the disk item(s). Keyword argument to: The new location for the disk item(s).
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'move' _subcode = 'move'
aetools.keysubst(_arguments, self._argmap_move) aetools.keysubst(_arguments, self._argmap_move)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class alias(aetools.ComponentItem): class alias(aetools.ComponentItem):
"""alias - An alias in the file system """ """alias - An alias in the file system """
want = 'alis' want = 'alis'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'cobj' want = 'cobj'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - every property of the alias """ """properties - every property of the alias """
which = 'pALL' which = 'pALL'
want = '****' want = '****'
class _Prop_version(aetools.NProperty): class _Prop_version(aetools.NProperty):
"""version - the version of the application bundle referenced by the alias (visible at the bottom of the "Get Info" window) """ """version - the version of the application bundle referenced by the alias (visible at the bottom of the "Get Info" window) """
which = 'vers' which = 'vers'
want = 'utxt' want = 'utxt'
# element 'alis' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
@ -62,36 +62,36 @@ class _Prop_version(aetools.NProperty):
aliases = alias aliases = alias
class disk(aetools.ComponentItem): class disk(aetools.ComponentItem):
"""disk - A disk in the file system """ """disk - A disk in the file system """
want = 'cdis' want = 'cdis'
class _Prop_capacity(aetools.NProperty): class _Prop_capacity(aetools.NProperty):
"""capacity - the total number of bytes (free or used) on the disk """ """capacity - the total number of bytes (free or used) on the disk """
which = 'capa' which = 'capa'
want = 'magn' want = 'magn'
class _Prop_ejectable(aetools.NProperty): class _Prop_ejectable(aetools.NProperty):
"""ejectable - Can the media be ejected (floppies, CD's, and so on)? """ """ejectable - Can the media be ejected (floppies, CD's, and so on)? """
which = 'isej' which = 'isej'
want = 'bool' want = 'bool'
class _Prop_format(aetools.NProperty): class _Prop_format(aetools.NProperty):
"""format - the file system format of this disk """ """format - the file system format of this disk """
which = 'dfmt' which = 'dfmt'
want = 'edfm' want = 'edfm'
class _Prop_free_space(aetools.NProperty): class _Prop_free_space(aetools.NProperty):
"""free space - the number of free bytes left on the disk """ """free space - the number of free bytes left on the disk """
which = 'frsp' which = 'frsp'
want = 'magn' want = 'magn'
class _Prop_ignore_privileges(aetools.NProperty): class _Prop_ignore_privileges(aetools.NProperty):
"""ignore privileges - Ignore permissions on this disk? """ """ignore privileges - Ignore permissions on this disk? """
which = 'igpr' which = 'igpr'
want = 'bool' want = 'bool'
class _Prop_local_volume(aetools.NProperty): class _Prop_local_volume(aetools.NProperty):
"""local volume - Is the media a local volume (as opposed to a file server)? """ """local volume - Is the media a local volume (as opposed to a file server)? """
which = 'isrv' which = 'isrv'
want = 'bool' want = 'bool'
class _Prop_startup(aetools.NProperty): class _Prop_startup(aetools.NProperty):
"""startup - Is this disk the boot disk? """ """startup - Is this disk the boot disk? """
which = 'istd' which = 'istd'
want = 'bool' want = 'bool'
# element 'alis' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
@ -100,8 +100,8 @@ class _Prop_startup(aetools.NProperty):
disks = disk disks = disk
class folder(aetools.ComponentItem): class folder(aetools.ComponentItem):
"""folder - A folder in the file system """ """folder - A folder in the file system """
want = 'cfol' want = 'cfol'
# element 'alis' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
@ -110,178 +110,178 @@ class folder(aetools.ComponentItem):
folders = folder folders = folder
class item(aetools.ComponentItem): class item(aetools.ComponentItem):
"""item - An item in the file system """ """item - An item in the file system """
want = 'cobj' want = 'cobj'
class _Prop_POSIX_path(aetools.NProperty): class _Prop_POSIX_path(aetools.NProperty):
"""POSIX path - the POSIX file system path of the item """ """POSIX path - the POSIX file system path of the item """
which = 'posx' which = 'posx'
want = 'utxt' want = 'utxt'
class _Prop_busy_status(aetools.NProperty): class _Prop_busy_status(aetools.NProperty):
"""busy status - Is the item busy? """ """busy status - Is the item busy? """
which = 'busy' which = 'busy'
want = 'bool' want = 'bool'
class _Prop_creation_date(aetools.NProperty): class _Prop_creation_date(aetools.NProperty):
"""creation date - the date on which the item was created """ """creation date - the date on which the item was created """
which = 'ascd' which = 'ascd'
want = '****' want = '****'
class _Prop_displayed_name(aetools.NProperty): class _Prop_displayed_name(aetools.NProperty):
"""displayed name - the name of the item as displayed in the User Interface """ """displayed name - the name of the item as displayed in the User Interface """
which = 'dnam' which = 'dnam'
want = 'utxt' want = 'utxt'
class _Prop_modification_date(aetools.NProperty): class _Prop_modification_date(aetools.NProperty):
"""modification date - the date on which the item was last modified """ """modification date - the date on which the item was last modified """
which = 'asmo' which = 'asmo'
want = '****' want = '****'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name of the item """ """name - the name of the item """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class _Prop_name_extension(aetools.NProperty): class _Prop_name_extension(aetools.NProperty):
"""name extension - the extension portion of the name """ """name extension - the extension portion of the name """
which = 'extn' which = 'extn'
want = 'utxt' want = 'utxt'
class _Prop_package_folder(aetools.NProperty): class _Prop_package_folder(aetools.NProperty):
"""package folder - Is the item a package? """ """package folder - Is the item a package? """
which = 'pkgf' which = 'pkgf'
want = 'bool' want = 'bool'
class _Prop_path(aetools.NProperty): class _Prop_path(aetools.NProperty):
"""path - the file system path of the item """ """path - the file system path of the item """
which = 'ppth' which = 'ppth'
want = 'utxt' want = 'utxt'
class _Prop_url(aetools.NProperty): class _Prop_url(aetools.NProperty):
"""url - the url of the item """ """url - the url of the item """
which = 'url ' which = 'url '
want = 'utxt' want = 'utxt'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - Is the item visible? """ """visible - Is the item visible? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class _Prop_volume(aetools.NProperty): class _Prop_volume(aetools.NProperty):
"""volume - the volume on which the item resides """ """volume - the volume on which the item resides """
which = 'volu' which = 'volu'
want = 'utxt' want = 'utxt'
items = item items = item
class file(aetools.ComponentItem): class file(aetools.ComponentItem):
"""file - A file in the file system """ """file - A file in the file system """
want = 'file' want = 'file'
class _Prop_creator_type(aetools.NProperty): class _Prop_creator_type(aetools.NProperty):
"""creator type - the OSType identifying the application that created the file """ """creator type - the OSType identifying the application that created the file """
which = 'fcrt' which = 'fcrt'
want = 'utxt' want = 'utxt'
class _Prop_file_type(aetools.NProperty): class _Prop_file_type(aetools.NProperty):
"""file type - the OSType identifying the type of data contained in the file """ """file type - the OSType identifying the type of data contained in the file """
which = 'asty' which = 'asty'
want = 'utxt' want = 'utxt'
class _Prop_physical_size(aetools.NProperty): class _Prop_physical_size(aetools.NProperty):
"""physical size - the actual space used by the file on disk """ """physical size - the actual space used by the file on disk """
which = 'phys' which = 'phys'
want = '****' want = '****'
class _Prop_product_version(aetools.NProperty): class _Prop_product_version(aetools.NProperty):
"""product version - the version of the product (visible at the top of the "Get Info" window) """ """product version - the version of the product (visible at the top of the "Get Info" window) """
which = 'ver2' which = 'ver2'
want = 'utxt' want = 'utxt'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - the logical size of the file """ """size - the logical size of the file """
which = 'ptsz' which = 'ptsz'
want = '****' want = '****'
class _Prop_stationery(aetools.NProperty): class _Prop_stationery(aetools.NProperty):
"""stationery - Is the file a stationery pad? """ """stationery - Is the file a stationery pad? """
which = 'pspd' which = 'pspd'
want = 'bool' want = 'bool'
files = file files = file
alias._superclassnames = ['item'] alias._superclassnames = ['item']
alias._privpropdict = { alias._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'version' : _Prop_version, 'version' : _Prop_version,
} }
alias._privelemdict = { alias._privelemdict = {
'alias' : alias, 'alias' : alias,
'file' : file, 'file' : file,
'folder' : folder, 'folder' : folder,
'item' : item, 'item' : item,
} }
disk._superclassnames = ['item'] disk._superclassnames = ['item']
disk._privpropdict = { disk._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'capacity' : _Prop_capacity, 'capacity' : _Prop_capacity,
'ejectable' : _Prop_ejectable, 'ejectable' : _Prop_ejectable,
'format' : _Prop_format, 'format' : _Prop_format,
'free_space' : _Prop_free_space, 'free_space' : _Prop_free_space,
'ignore_privileges' : _Prop_ignore_privileges, 'ignore_privileges' : _Prop_ignore_privileges,
'local_volume' : _Prop_local_volume, 'local_volume' : _Prop_local_volume,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'startup' : _Prop_startup, 'startup' : _Prop_startup,
} }
disk._privelemdict = { disk._privelemdict = {
'alias' : alias, 'alias' : alias,
'file' : file, 'file' : file,
'folder' : folder, 'folder' : folder,
'item' : item, 'item' : item,
} }
folder._superclassnames = ['item'] folder._superclassnames = ['item']
folder._privpropdict = { folder._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
} }
folder._privelemdict = { folder._privelemdict = {
'alias' : alias, 'alias' : alias,
'file' : file, 'file' : file,
'folder' : folder, 'folder' : folder,
'item' : item, 'item' : item,
} }
item._superclassnames = [] item._superclassnames = []
item._privpropdict = { item._privpropdict = {
'POSIX_path' : _Prop_POSIX_path, 'POSIX_path' : _Prop_POSIX_path,
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'busy_status' : _Prop_busy_status, 'busy_status' : _Prop_busy_status,
'creation_date' : _Prop_creation_date, 'creation_date' : _Prop_creation_date,
'displayed_name' : _Prop_displayed_name, 'displayed_name' : _Prop_displayed_name,
'modification_date' : _Prop_modification_date, 'modification_date' : _Prop_modification_date,
'name' : _Prop_name, 'name' : _Prop_name,
'name_extension' : _Prop_name_extension, 'name_extension' : _Prop_name_extension,
'package_folder' : _Prop_package_folder, 'package_folder' : _Prop_package_folder,
'path' : _Prop_path, 'path' : _Prop_path,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'url' : _Prop_url, 'url' : _Prop_url,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
'volume' : _Prop_volume, 'volume' : _Prop_volume,
} }
item._privelemdict = { item._privelemdict = {
} }
file._superclassnames = ['item'] file._superclassnames = ['item']
file._privpropdict = { file._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'creator_type' : _Prop_creator_type, 'creator_type' : _Prop_creator_type,
'file_type' : _Prop_file_type, 'file_type' : _Prop_file_type,
'physical_size' : _Prop_physical_size, 'physical_size' : _Prop_physical_size,
'product_version' : _Prop_product_version, 'product_version' : _Prop_product_version,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'size' : _Prop_size, 'size' : _Prop_size,
'stationery' : _Prop_stationery, 'stationery' : _Prop_stationery,
'version' : _Prop_version, 'version' : _Prop_version,
} }
file._privelemdict = { file._privelemdict = {
} }
_Enum_edfm = { _Enum_edfm = {
'MS_2d_DOS_format' : 'dfms', # MS-DOS format 'MS_2d_DOS_format' : 'dfms', # MS-DOS format
'Apple_Photo_format' : 'dfph', # Apple Photo format 'Apple_Photo_format' : 'dfph', # Apple Photo format
'ISO_9660_format' : 'df96', # ISO 9660 format 'ISO_9660_format' : 'df96', # ISO 9660 format
'QuickTake_format' : 'dfqt', # QuickTake format 'QuickTake_format' : 'dfqt', # QuickTake format
'AppleShare_format' : 'dfas', # AppleShare format 'AppleShare_format' : 'dfas', # AppleShare format
'High_Sierra_format' : 'dfhs', # High Sierra format 'High_Sierra_format' : 'dfhs', # High Sierra format
'Mac_OS_Extended_format' : 'dfh+', # Mac OS Extended format 'Mac_OS_Extended_format' : 'dfh+', # Mac OS Extended format
'UDF_format' : 'dfud', # UDF format 'UDF_format' : 'dfud', # UDF format
'unknown_format' : 'df??', # unknown format 'unknown_format' : 'df??', # unknown format
'audio_format' : 'dfau', # audio format 'audio_format' : 'dfau', # audio format
'Mac_OS_format' : 'dfhf', # Mac OS format 'Mac_OS_format' : 'dfhf', # Mac OS format
'UFS_format' : 'dfuf', # UFS format 'UFS_format' : 'dfuf', # UFS format
'NFS_format' : 'dfnf', # NFS format 'NFS_format' : 'dfnf', # NFS format
'ProDOS_format' : 'dfpr', # ProDOS format 'ProDOS_format' : 'dfpr', # ProDOS format
'WebDAV_format' : 'dfwd', # WebDAV format 'WebDAV_format' : 'dfwd', # WebDAV format
} }
@ -289,9 +289,47 @@ _Enum_edfm = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'alis' : alias, 'alis' : alias,
'cdis' : disk, 'cdis' : disk,
'cfol' : folder, 'cfol' : folder,
'cobj' : item, 'cobj' : item,
'file' : file, 'file' : file,
}
_propdeclarations = {
'ascd' : _Prop_creation_date,
'asmo' : _Prop_modification_date,
'asty' : _Prop_file_type,
'busy' : _Prop_busy_status,
'c@#^' : _Prop__3c_Inheritance_3e_,
'capa' : _Prop_capacity,
'dfmt' : _Prop_format,
'dnam' : _Prop_displayed_name,
'extn' : _Prop_name_extension,
'fcrt' : _Prop_creator_type,
'frsp' : _Prop_free_space,
'igpr' : _Prop_ignore_privileges,
'isej' : _Prop_ejectable,
'isrv' : _Prop_local_volume,
'istd' : _Prop_startup,
'pALL' : _Prop_properties,
'phys' : _Prop_physical_size,
'pkgf' : _Prop_package_folder,
'pnam' : _Prop_name,
'posx' : _Prop_POSIX_path,
'ppth' : _Prop_path,
'pspd' : _Prop_stationery,
'ptsz' : _Prop_size,
'pvis' : _Prop_visible,
'url ' : _Prop_url,
'ver2' : _Prop_product_version,
'vers' : _Prop_version,
'volu' : _Prop_volume,
}
_compdeclarations = {
}
_enumdeclarations = {
'edfm' : _Enum_edfm,
} }

View file

@ -12,210 +12,210 @@ _code = 'faco'
class Folder_Actions_Suite_Events: class Folder_Actions_Suite_Events:
_argmap_attach_action_to = { _argmap_attach_action_to = {
'using' : 'faal', 'using' : 'faal',
} }
def attach_action_to(self, _object, _attributes={}, **_arguments): def attach_action_to(self, _object, _attributes={}, **_arguments):
"""attach action to: Attach an action to a folder """attach action to: Attach an action to a folder
Required argument: the object for the command Required argument: the object for the command
Keyword argument using: a file containing the script to attach Keyword argument using: a file containing the script to attach
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'faco' _code = 'faco'
_subcode = 'atfa' _subcode = 'atfa'
aetools.keysubst(_arguments, self._argmap_attach_action_to) aetools.keysubst(_arguments, self._argmap_attach_action_to)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def attached_scripts(self, _object, _attributes={}, **_arguments): def attached_scripts(self, _object, _attributes={}, **_arguments):
"""attached scripts: List the actions attached to a folder """attached scripts: List the actions attached to a folder
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'faco' _code = 'faco'
_subcode = 'lact' _subcode = 'lact'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_do_folder_action = { _argmap_do_folder_action = {
'with_window_size' : 'fnsz', 'with_window_size' : 'fnsz',
'with_item_list' : 'flst', 'with_item_list' : 'flst',
'folder_action_code' : 'actn', 'folder_action_code' : 'actn',
} }
def do_folder_action(self, _object, _attributes={}, **_arguments): def do_folder_action(self, _object, _attributes={}, **_arguments):
"""do folder action: Event the Finder sends to the Folder Actions FBA """do folder action: Event the Finder sends to the Folder Actions FBA
Required argument: the object for the command Required argument: the object for the command
Keyword argument with_window_size: the new window size for the folder action message to process Keyword argument with_window_size: the new window size for the folder action message to process
Keyword argument with_item_list: a list of items for the folder action message to process Keyword argument with_item_list: a list of items for the folder action message to process
Keyword argument folder_action_code: the folder action message to process Keyword argument folder_action_code: the folder action message to process
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'faco' _code = 'faco'
_subcode = 'fola' _subcode = 'fola'
aetools.keysubst(_arguments, self._argmap_do_folder_action) aetools.keysubst(_arguments, self._argmap_do_folder_action)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'actn', _Enum_actn) aetools.enumsubst(_arguments, 'actn', _Enum_actn)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_edit_action_of = { _argmap_edit_action_of = {
'using_action_name' : 'snam', 'using_action_name' : 'snam',
'using_action_number' : 'indx', 'using_action_number' : 'indx',
} }
def edit_action_of(self, _object, _attributes={}, **_arguments): def edit_action_of(self, _object, _attributes={}, **_arguments):
"""edit action of: Edit as action of a folder """edit action of: Edit as action of a folder
Required argument: the object for the command Required argument: the object for the command
Keyword argument using_action_name: ...or the name of the action to edit Keyword argument using_action_name: ...or the name of the action to edit
Keyword argument using_action_number: the index number of the action to edit... Keyword argument using_action_number: the index number of the action to edit...
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'faco' _code = 'faco'
_subcode = 'edfa' _subcode = 'edfa'
aetools.keysubst(_arguments, self._argmap_edit_action_of) aetools.keysubst(_arguments, self._argmap_edit_action_of)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_remove_action_from = { _argmap_remove_action_from = {
'using_action_name' : 'snam', 'using_action_name' : 'snam',
'using_action_number' : 'indx', 'using_action_number' : 'indx',
} }
def remove_action_from(self, _object, _attributes={}, **_arguments): def remove_action_from(self, _object, _attributes={}, **_arguments):
"""remove action from: Remove a folder action from a folder """remove action from: Remove a folder action from a folder
Required argument: the object for the command Required argument: the object for the command
Keyword argument using_action_name: ...or the name of the action to remove Keyword argument using_action_name: ...or the name of the action to remove
Keyword argument using_action_number: the index number of the action to remove... Keyword argument using_action_number: the index number of the action to remove...
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'faco' _code = 'faco'
_subcode = 'rmfa' _subcode = 'rmfa'
aetools.keysubst(_arguments, self._argmap_remove_action_from) aetools.keysubst(_arguments, self._argmap_remove_action_from)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class folder_action(aetools.ComponentItem): class folder_action(aetools.ComponentItem):
"""folder action - An action attached to a folder in the file system """ """folder action - An action attached to a folder in the file system """
want = 'foac' want = 'foac'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'cobj' want = 'cobj'
class _Prop_enabled(aetools.NProperty): class _Prop_enabled(aetools.NProperty):
"""enabled - Is the folder action enabled? """ """enabled - Is the folder action enabled? """
which = 'enaB' which = 'enaB'
want = 'bool' want = 'bool'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name of the folder action, which is also the name of the folder """ """name - the name of the folder action, which is also the name of the folder """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class _Prop_path(aetools.NProperty): class _Prop_path(aetools.NProperty):
"""path - the path to the folder to which the folder action applies """ """path - the path to the folder to which the folder action applies """
which = 'ppth' which = 'ppth'
want = '****' want = '****'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - every property of the folder action """ """properties - every property of the folder action """
which = 'pALL' which = 'pALL'
want = '****' want = '****'
class _Prop_volume(aetools.NProperty): class _Prop_volume(aetools.NProperty):
"""volume - the volume on which the folder action resides """ """volume - the volume on which the folder action resides """
which = 'volu' which = 'volu'
want = 'utxt' want = 'utxt'
# element 'scpt' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'scpt' as ['name', 'indx', 'rele', 'rang', 'test']
folder_actions = folder_action folder_actions = folder_action
class script(aetools.ComponentItem): class script(aetools.ComponentItem):
"""script - A script invoked by a folder action """ """script - A script invoked by a folder action """
want = 'scpt' want = 'scpt'
class _Prop_POSIX_path(aetools.NProperty): class _Prop_POSIX_path(aetools.NProperty):
"""POSIX path - the POSIX file system path of the disk """ """POSIX path - the POSIX file system path of the disk """
which = 'posx' which = 'posx'
want = 'utxt' want = 'utxt'
scripts = script scripts = script
import Standard_Suite import Standard_Suite
folder_action._superclassnames = ['item'] folder_action._superclassnames = ['item']
folder_action._privpropdict = { folder_action._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'enabled' : _Prop_enabled, 'enabled' : _Prop_enabled,
'name' : _Prop_name, 'name' : _Prop_name,
'path' : _Prop_path, 'path' : _Prop_path,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'volume' : _Prop_volume, 'volume' : _Prop_volume,
} }
folder_action._privelemdict = { folder_action._privelemdict = {
'script' : script, 'script' : script,
} }
script._superclassnames = ['item'] script._superclassnames = ['item']
script._privpropdict = { script._privpropdict = {
'POSIX_path' : _Prop_POSIX_path, 'POSIX_path' : _Prop_POSIX_path,
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'name' : _Prop_name, 'name' : _Prop_name,
'path' : _Prop_path, 'path' : _Prop_path,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
} }
script._privelemdict = { script._privelemdict = {
} }
_Enum_actn = { _Enum_actn = {
'items_added' : 'fget', # items added 'items_added' : 'fget', # items added
'items_removed' : 'flos', # items removed 'items_removed' : 'flos', # items removed
'window_closed' : 'fclo', # window closed 'window_closed' : 'fclo', # window closed
'window_moved' : 'fsiz', # window moved 'window_moved' : 'fsiz', # window moved
'window_opened' : 'fopn', # window opened 'window_opened' : 'fopn', # window opened
} }
@ -223,6 +223,23 @@ _Enum_actn = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'foac' : folder_action, 'foac' : folder_action,
'scpt' : script, 'scpt' : script,
}
_propdeclarations = {
'c@#^' : _Prop__3c_Inheritance_3e_,
'enaB' : _Prop_enabled,
'pALL' : _Prop_properties,
'pnam' : _Prop_name,
'posx' : _Prop_POSIX_path,
'ppth' : _Prop_path,
'volu' : _Prop_volume,
}
_compdeclarations = {
}
_enumdeclarations = {
'actn' : _Enum_actn,
} }

View file

@ -13,25 +13,25 @@ _code = 'tpnm'
from StdSuites.Type_Names_Suite import * from StdSuites.Type_Names_Suite import *
class Hidden_Suite_Events(Type_Names_Suite_Events): class Hidden_Suite_Events(Type_Names_Suite_Events):
def do_script(self, _object, _attributes={}, **_arguments): def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Execute an OSA script. """do script: Execute an OSA script.
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'misc' _code = 'misc'
_subcode = 'dosc' _subcode = 'dosc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -39,3 +39,12 @@ class Hidden_Suite_Events(Type_Names_Suite_Events):
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -12,42 +12,42 @@ _code = 'logi'
class Login_Items_Suite_Events: class Login_Items_Suite_Events:
pass pass
class login_item(aetools.ComponentItem): class login_item(aetools.ComponentItem):
"""login item - an item to be launched or opened at login """ """login item - an item to be launched or opened at login """
want = 'logi' want = 'logi'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'cobj' want = 'cobj'
class _Prop_hidden(aetools.NProperty): class _Prop_hidden(aetools.NProperty):
"""hidden - Is the Login Item hidden when launched? """ """hidden - Is the Login Item hidden when launched? """
which = 'hidn' which = 'hidn'
want = 'bool' want = 'bool'
class _Prop_kind(aetools.NProperty): class _Prop_kind(aetools.NProperty):
"""kind - the file type of the Login Item """ """kind - the file type of the Login Item """
which = 'kind' which = 'kind'
want = 'utxt' want = 'utxt'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - the name of the Login Item """ """name - the name of the Login Item """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class _Prop_path(aetools.NProperty): class _Prop_path(aetools.NProperty):
"""path - the file system path to the Login Item """ """path - the file system path to the Login Item """
which = 'ppth' which = 'ppth'
want = 'utxt' want = 'utxt'
login_items = login_item login_items = login_item
import Standard_Suite import Standard_Suite
login_item._superclassnames = ['item'] login_item._superclassnames = ['item']
login_item._privpropdict = { login_item._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'hidden' : _Prop_hidden, 'hidden' : _Prop_hidden,
'kind' : _Prop_kind, 'kind' : _Prop_kind,
'name' : _Prop_name, 'name' : _Prop_name,
'path' : _Prop_path, 'path' : _Prop_path,
} }
login_item._privelemdict = { login_item._privelemdict = {
} }
@ -56,5 +56,19 @@ login_item._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'logi' : login_item, 'logi' : login_item,
}
_propdeclarations = {
'c@#^' : _Prop__3c_Inheritance_3e_,
'hidn' : _Prop_hidden,
'kind' : _Prop_kind,
'pnam' : _Prop_name,
'ppth' : _Prop_path,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,65 +12,65 @@ _code = 'powr'
class Power_Suite_Events: class Power_Suite_Events:
def restart(self, _object, _attributes={}, **_arguments): def restart(self, _object, _attributes={}, **_arguments):
"""restart: Restart the computer """restart: Restart the computer
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'rest' _subcode = 'rest'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def shut_down(self, _object, _attributes={}, **_arguments): def shut_down(self, _object, _attributes={}, **_arguments):
"""shut down: Shut Down the computer """shut down: Shut Down the computer
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'shut' _subcode = 'shut'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def sleep(self, _object, _attributes={}, **_arguments): def sleep(self, _object, _attributes={}, **_arguments):
"""sleep: Put the computer to sleep """sleep: Put the computer to sleep
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'slep' _subcode = 'slep'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
# #
@ -78,3 +78,12 @@ class Power_Suite_Events:
# #
_classdeclarations = { _classdeclarations = {
} }
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

File diff suppressed because it is too large Load diff

View file

@ -12,517 +12,517 @@ _code = '????'
class Standard_Suite_Events: class Standard_Suite_Events:
_argmap_close = { _argmap_close = {
'saving_in' : 'kfil', 'saving_in' : 'kfil',
'saving' : 'savo', 'saving' : 'savo',
} }
def close(self, _object, _attributes={}, **_arguments): def close(self, _object, _attributes={}, **_arguments):
"""close: Close an object. """close: Close an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument saving_in: The file in which to save the object. Keyword argument saving_in: The file in which to save the object.
Keyword argument saving: Specifies whether changes should be saved before closing. Keyword argument saving: Specifies whether changes should be saved before closing.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'clos' _subcode = 'clos'
aetools.keysubst(_arguments, self._argmap_close) aetools.keysubst(_arguments, self._argmap_close)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'savo', _Enum_savo) aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_count = { _argmap_count = {
'each' : 'kocl', 'each' : 'kocl',
} }
def count(self, _object, _attributes={}, **_arguments): def count(self, _object, _attributes={}, **_arguments):
"""count: Return the number of elements of a particular class within an object. """count: Return the number of elements of a particular class within an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument each: The class of objects to be counted. Keyword argument each: The class of objects to be counted.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'cnte' _subcode = 'cnte'
aetools.keysubst(_arguments, self._argmap_count) aetools.keysubst(_arguments, self._argmap_count)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def delete(self, _object, _attributes={}, **_arguments): def delete(self, _object, _attributes={}, **_arguments):
"""delete: Delete an object. """delete: Delete an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'delo' _subcode = 'delo'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_duplicate = { _argmap_duplicate = {
'to' : 'insh', 'to' : 'insh',
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def duplicate(self, _object, _attributes={}, **_arguments): def duplicate(self, _object, _attributes={}, **_arguments):
"""duplicate: Copy object(s) and put the copies at a new location. """duplicate: Copy object(s) and put the copies at a new location.
Required argument: the object for the command Required argument: the object for the command
Keyword argument to: The location for the new object(s). Keyword argument to: The location for the new object(s).
Keyword argument with_properties: Properties to be set in the new duplicated object(s). Keyword argument with_properties: Properties to be set in the new duplicated object(s).
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'clon' _subcode = 'clon'
aetools.keysubst(_arguments, self._argmap_duplicate) aetools.keysubst(_arguments, self._argmap_duplicate)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def exists(self, _object, _attributes={}, **_arguments): def exists(self, _object, _attributes={}, **_arguments):
"""exists: Verify if an object exists. """exists: Verify if an object exists.
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'doex' _subcode = 'doex'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def get(self, _object, _attributes={}, **_arguments): def get(self, _object, _attributes={}, **_arguments):
"""get: Get the data for an object. """get: Get the data for an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'getd' _subcode = 'getd'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_make = { _argmap_make = {
'at' : 'insh', 'at' : 'insh',
'new' : 'kocl', 'new' : 'kocl',
'with_data' : 'data', 'with_data' : 'data',
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def make(self, _no_object=None, _attributes={}, **_arguments): def make(self, _no_object=None, _attributes={}, **_arguments):
"""make: Make a new object. """make: Make a new object.
Keyword argument at: The location at which to insert the object. Keyword argument at: The location at which to insert the object.
Keyword argument new: The class of the new object. Keyword argument new: The class of the new object.
Keyword argument with_data: The initial data for the object. Keyword argument with_data: The initial data for the object.
Keyword argument with_properties: The initial values for properties of the object. Keyword argument with_properties: The initial values for properties of the object.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'crel' _subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make) aetools.keysubst(_arguments, self._argmap_make)
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_move = { _argmap_move = {
'to' : 'insh', 'to' : 'insh',
} }
def move(self, _object, _attributes={}, **_arguments): def move(self, _object, _attributes={}, **_arguments):
"""move: Move object(s) to a new location. """move: Move object(s) to a new location.
Required argument: the object for the command Required argument: the object for the command
Keyword argument to: The new location for the object(s). Keyword argument to: The new location for the object(s).
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'move' _subcode = 'move'
aetools.keysubst(_arguments, self._argmap_move) aetools.keysubst(_arguments, self._argmap_move)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def open(self, _object=None, _attributes={}, **_arguments): def open(self, _object=None, _attributes={}, **_arguments):
"""open: Open an object. """open: Open an object.
Required argument: list of objects Required argument: list of objects
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'odoc' _subcode = 'odoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def print_(self, _object=None, _attributes={}, **_arguments): def print_(self, _object=None, _attributes={}, **_arguments):
"""print: Print an object. """print: Print an object.
Required argument: list of objects Required argument: list of objects
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'pdoc' _subcode = 'pdoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_quit = { _argmap_quit = {
'saving' : 'savo', 'saving' : 'savo',
} }
def quit(self, _object, _attributes={}, **_arguments): def quit(self, _object, _attributes={}, **_arguments):
"""quit: Quit an application. """quit: Quit an application.
Required argument: the object for the command Required argument: the object for the command
Keyword argument saving: Specifies whether changes should be saved before quitting. Keyword argument saving: Specifies whether changes should be saved before quitting.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'quit' _subcode = 'quit'
aetools.keysubst(_arguments, self._argmap_quit) aetools.keysubst(_arguments, self._argmap_quit)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'savo', _Enum_savo) aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_save = { _argmap_save = {
'in_' : 'kfil', 'in_' : 'kfil',
'as' : 'fltp', 'as' : 'fltp',
} }
def save(self, _object, _attributes={}, **_arguments): def save(self, _object, _attributes={}, **_arguments):
"""save: Save an object. """save: Save an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument in_: The file in which to save the object. Keyword argument in_: The file in which to save the object.
Keyword argument as: The file type in which to save the data. Keyword argument as: The file type in which to save the data.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'save' _subcode = 'save'
aetools.keysubst(_arguments, self._argmap_save) aetools.keysubst(_arguments, self._argmap_save)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_set = { _argmap_set = {
'to' : 'data', 'to' : 'data',
} }
def set(self, _object, _attributes={}, **_arguments): def set(self, _object, _attributes={}, **_arguments):
"""set: Set an object's data. """set: Set an object's data.
Required argument: the object for the command Required argument: the object for the command
Keyword argument to: The new value. Keyword argument to: The new value.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'setd' _subcode = 'setd'
aetools.keysubst(_arguments, self._argmap_set) aetools.keysubst(_arguments, self._argmap_set)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - An application's top level scripting object. """ """application - An application's top level scripting object. """
want = 'capp' want = 'capp'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'cobj' want = 'cobj'
class _Prop_frontmost(aetools.NProperty): class _Prop_frontmost(aetools.NProperty):
"""frontmost - Is this the frontmost (active) application? """ """frontmost - Is this the frontmost (active) application? """
which = 'pisf' which = 'pisf'
want = 'bool' want = 'bool'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - The name of the application. """ """name - The name of the application. """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class _Prop_version(aetools.NProperty): class _Prop_version(aetools.NProperty):
"""version - The version of the application. """ """version - The version of the application. """
which = 'vers' which = 'vers'
want = 'utxt' want = 'utxt'
# element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'docu' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
applications = application applications = application
class item(aetools.ComponentItem): class item(aetools.ComponentItem):
"""item - A scriptable object. """ """item - A scriptable object. """
want = 'cobj' want = 'cobj'
class _Prop_class_(aetools.NProperty): class _Prop_class_(aetools.NProperty):
"""class - The class of the object. """ """class - The class of the object. """
which = 'pcls' which = 'pcls'
want = 'type' want = 'type'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - All of the object's properties. """ """properties - All of the object's properties. """
which = 'pALL' which = 'pALL'
want = 'reco' want = 'reco'
items = item items = item
class color(aetools.ComponentItem): class color(aetools.ComponentItem):
"""color - A color. """ """color - A color. """
want = 'colr' want = 'colr'
colors = color colors = color
class window(aetools.ComponentItem): class window(aetools.ComponentItem):
"""window - A window. """ """window - A window. """
want = 'cwin' want = 'cwin'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - The bounding rectangle of the window. """ """bounds - The bounding rectangle of the window. """
which = 'pbnd' which = 'pbnd'
want = 'qdrt' want = 'qdrt'
class _Prop_closeable(aetools.NProperty): class _Prop_closeable(aetools.NProperty):
"""closeable - Whether the window has a close box. """ """closeable - Whether the window has a close box. """
which = 'hclb' which = 'hclb'
want = 'bool' want = 'bool'
class _Prop_document(aetools.NProperty): class _Prop_document(aetools.NProperty):
"""document - The document whose contents are being displayed in the window. """ """document - The document whose contents are being displayed in the window. """
which = 'docu' which = 'docu'
want = 'docu' want = 'docu'
class _Prop_floating(aetools.NProperty): class _Prop_floating(aetools.NProperty):
"""floating - Whether the window floats. """ """floating - Whether the window floats. """
which = 'isfl' which = 'isfl'
want = 'bool' want = 'bool'
class _Prop_id(aetools.NProperty): class _Prop_id(aetools.NProperty):
"""id - The unique identifier of the window. """ """id - The unique identifier of the window. """
which = 'ID ' which = 'ID '
want = 'long' want = 'long'
class _Prop_index(aetools.NProperty): class _Prop_index(aetools.NProperty):
"""index - The index of the window in the back-to-front window ordering. """ """index - The index of the window in the back-to-front window ordering. """
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
class _Prop_miniaturizable(aetools.NProperty): class _Prop_miniaturizable(aetools.NProperty):
"""miniaturizable - Whether the window can be miniaturized. """ """miniaturizable - Whether the window can be miniaturized. """
which = 'ismn' which = 'ismn'
want = 'bool' want = 'bool'
class _Prop_miniaturized(aetools.NProperty): class _Prop_miniaturized(aetools.NProperty):
"""miniaturized - Whether the window is currently miniaturized. """ """miniaturized - Whether the window is currently miniaturized. """
which = 'pmnd' which = 'pmnd'
want = 'bool' want = 'bool'
class _Prop_modal(aetools.NProperty): class _Prop_modal(aetools.NProperty):
"""modal - Whether the window is the application's current modal window. """ """modal - Whether the window is the application's current modal window. """
which = 'pmod' which = 'pmod'
want = 'bool' want = 'bool'
class _Prop_resizable(aetools.NProperty): class _Prop_resizable(aetools.NProperty):
"""resizable - Whether the window can be resized. """ """resizable - Whether the window can be resized. """
which = 'prsz' which = 'prsz'
want = 'bool' want = 'bool'
class _Prop_titled(aetools.NProperty): class _Prop_titled(aetools.NProperty):
"""titled - Whether the window has a title bar. """ """titled - Whether the window has a title bar. """
which = 'ptit' which = 'ptit'
want = 'bool' want = 'bool'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - Whether the window is currently visible. """ """visible - Whether the window is currently visible. """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class _Prop_zoomable(aetools.NProperty): class _Prop_zoomable(aetools.NProperty):
"""zoomable - Whether the window can be zoomed. """ """zoomable - Whether the window can be zoomed. """
which = 'iszm' which = 'iszm'
want = 'bool' want = 'bool'
class _Prop_zoomed(aetools.NProperty): class _Prop_zoomed(aetools.NProperty):
"""zoomed - Whether the window is currently zoomed. """ """zoomed - Whether the window is currently zoomed. """
which = 'pzum' which = 'pzum'
want = 'bool' want = 'bool'
windows = window windows = window
class document(aetools.ComponentItem): class document(aetools.ComponentItem):
"""document - A document. """ """document - A document. """
want = 'docu' want = 'docu'
class _Prop_modified(aetools.NProperty): class _Prop_modified(aetools.NProperty):
"""modified - Has the document been modified since the last save? """ """modified - Has the document been modified since the last save? """
which = 'imod' which = 'imod'
want = 'bool' want = 'bool'
class _Prop_path(aetools.NProperty): class _Prop_path(aetools.NProperty):
"""path - The document's path. """ """path - The document's path. """
which = 'ppth' which = 'ppth'
want = 'utxt' want = 'utxt'
documents = document documents = document
application._superclassnames = ['item'] application._superclassnames = ['item']
application._privpropdict = { application._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'frontmost' : _Prop_frontmost, 'frontmost' : _Prop_frontmost,
'name' : _Prop_name, 'name' : _Prop_name,
'version' : _Prop_version, 'version' : _Prop_version,
} }
application._privelemdict = { application._privelemdict = {
'document' : document, 'document' : document,
'window' : window, 'window' : window,
} }
item._superclassnames = [] item._superclassnames = []
item._privpropdict = { item._privpropdict = {
'class_' : _Prop_class_, 'class_' : _Prop_class_,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
} }
item._privelemdict = { item._privelemdict = {
} }
color._superclassnames = ['item'] color._superclassnames = ['item']
color._privpropdict = { color._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
} }
color._privelemdict = { color._privelemdict = {
} }
window._superclassnames = ['item'] window._superclassnames = ['item']
window._privpropdict = { window._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'closeable' : _Prop_closeable, 'closeable' : _Prop_closeable,
'document' : _Prop_document, 'document' : _Prop_document,
'floating' : _Prop_floating, 'floating' : _Prop_floating,
'id' : _Prop_id, 'id' : _Prop_id,
'index' : _Prop_index, 'index' : _Prop_index,
'miniaturizable' : _Prop_miniaturizable, 'miniaturizable' : _Prop_miniaturizable,
'miniaturized' : _Prop_miniaturized, 'miniaturized' : _Prop_miniaturized,
'modal' : _Prop_modal, 'modal' : _Prop_modal,
'name' : _Prop_name, 'name' : _Prop_name,
'resizable' : _Prop_resizable, 'resizable' : _Prop_resizable,
'titled' : _Prop_titled, 'titled' : _Prop_titled,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
'zoomable' : _Prop_zoomable, 'zoomable' : _Prop_zoomable,
'zoomed' : _Prop_zoomed, 'zoomed' : _Prop_zoomed,
} }
window._privelemdict = { window._privelemdict = {
} }
document._superclassnames = ['item'] document._superclassnames = ['item']
document._privpropdict = { document._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'modified' : _Prop_modified, 'modified' : _Prop_modified,
'name' : _Prop_name, 'name' : _Prop_name,
'path' : _Prop_path, 'path' : _Prop_path,
} }
document._privelemdict = { document._privelemdict = {
} }
class _3c_(aetools.NComparison): class _3c_(aetools.NComparison):
"""< - Less than """ """< - Less than """
class _3d_(aetools.NComparison): class _3d_(aetools.NComparison):
"""= - Equal """ """= - Equal """
class _3e_(aetools.NComparison): class _3e_(aetools.NComparison):
"""> - Greater than """ """> - Greater than """
class contains(aetools.NComparison): class contains(aetools.NComparison):
"""contains - Contains """ """contains - Contains """
class ends_with(aetools.NComparison): class ends_with(aetools.NComparison):
"""ends with - Ends with """ """ends with - Ends with """
class starts_with(aetools.NComparison): class starts_with(aetools.NComparison):
"""starts with - Starts with """ """starts with - Starts with """
class _b2_(aetools.NComparison): class _b2_(aetools.NComparison):
"""\xb2 - Less than or equal to """ """\xb2 - Less than or equal to """
class _b3_(aetools.NComparison): class _b3_(aetools.NComparison):
"""\xb3 - Greater than or equal to """ """\xb3 - Greater than or equal to """
_Enum_savo = { _Enum_savo = {
'ask' : 'ask ', # Ask the user whether or not to save the file. 'ask' : 'ask ', # Ask the user whether or not to save the file.
'yes' : 'yes ', # Save the file. 'yes' : 'yes ', # Save the file.
'no' : 'no ', # Do not save the file. 'no' : 'no ', # Do not save the file.
} }
@ -530,9 +530,49 @@ _Enum_savo = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
'cobj' : item, 'cobj' : item,
'colr' : color, 'colr' : color,
'cwin' : window, 'cwin' : window,
'docu' : document, 'docu' : document,
}
_propdeclarations = {
'ID ' : _Prop_id,
'c@#^' : _Prop__3c_Inheritance_3e_,
'docu' : _Prop_document,
'hclb' : _Prop_closeable,
'imod' : _Prop_modified,
'isfl' : _Prop_floating,
'ismn' : _Prop_miniaturizable,
'iszm' : _Prop_zoomable,
'pALL' : _Prop_properties,
'pbnd' : _Prop_bounds,
'pcls' : _Prop_class_,
'pidx' : _Prop_index,
'pisf' : _Prop_frontmost,
'pmnd' : _Prop_miniaturized,
'pmod' : _Prop_modal,
'pnam' : _Prop_name,
'ppth' : _Prop_path,
'prsz' : _Prop_resizable,
'ptit' : _Prop_titled,
'pvis' : _Prop_visible,
'pzum' : _Prop_zoomed,
'vers' : _Prop_version,
}
_compdeclarations = {
'< ' : _3c_,
'<= ' : _b2_,
'= ' : _3d_,
'> ' : _3e_,
'>= ' : _b3_,
'bgwt' : starts_with,
'cont' : contains,
'ends' : ends_with,
}
_enumdeclarations = {
'savo' : _Enum_savo,
} }

View file

@ -12,28 +12,28 @@ _code = 'sevs'
class System_Events_Suite_Events: class System_Events_Suite_Events:
pass pass
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - The System Events application """ """application - The System Events application """
want = 'capp' want = 'capp'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'capp' want = 'capp'
class _Prop_folder_actions_enabled(aetools.NProperty): class _Prop_folder_actions_enabled(aetools.NProperty):
"""folder actions enabled - Are Folder Actions currently being processed? """ """folder actions enabled - Are Folder Actions currently being processed? """
which = 'faen' which = 'faen'
want = 'bool' want = 'bool'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - every property of the System Events application """ """properties - every property of the System Events application """
which = 'pALL' which = 'pALL'
want = '****' want = '****'
class _Prop_system_wide_UI_element(aetools.NProperty): class _Prop_system_wide_UI_element(aetools.NProperty):
"""system wide UI element - the UI element for the entire system """ """system wide UI element - the UI element for the entire system """
which = 'swui' which = 'swui'
want = 'uiel' want = 'uiel'
# element 'alis' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cdis' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cdis' as ['name', 'indx', 'rele', 'rang', 'test']
# element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
@ -56,30 +56,43 @@ import Folder_Actions_Suite
import Login_Items_Suite import Login_Items_Suite
import Processes_Suite import Processes_Suite
application._privpropdict = { application._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'folder_actions_enabled' : _Prop_folder_actions_enabled, 'folder_actions_enabled' : _Prop_folder_actions_enabled,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'system_wide_UI_element' : _Prop_system_wide_UI_element, 'system_wide_UI_element' : _Prop_system_wide_UI_element,
} }
application._privelemdict = { application._privelemdict = {
'UI_element' : Processes_Suite.UI_element, 'UI_element' : Processes_Suite.UI_element,
'alias' : Disk_2d_Folder_2d_File_Suite.alias, 'alias' : Disk_2d_Folder_2d_File_Suite.alias,
'application_process' : Processes_Suite.application_process, 'application_process' : Processes_Suite.application_process,
'desk_accessory_process' : Processes_Suite.desk_accessory_process, 'desk_accessory_process' : Processes_Suite.desk_accessory_process,
'disk' : Disk_2d_Folder_2d_File_Suite.disk, 'disk' : Disk_2d_Folder_2d_File_Suite.disk,
'document' : Standard_Suite.document, 'document' : Standard_Suite.document,
'file' : Disk_2d_Folder_2d_File_Suite.file, 'file' : Disk_2d_Folder_2d_File_Suite.file,
'folder' : Disk_2d_Folder_2d_File_Suite.folder, 'folder' : Disk_2d_Folder_2d_File_Suite.folder,
'folder_action' : Folder_Actions_Suite.folder_action, 'folder_action' : Folder_Actions_Suite.folder_action,
'item' : Disk_2d_Folder_2d_File_Suite.item, 'item' : Disk_2d_Folder_2d_File_Suite.item,
'login_item' : Login_Items_Suite.login_item, 'login_item' : Login_Items_Suite.login_item,
'process' : Processes_Suite.process, 'process' : Processes_Suite.process,
'window' : Standard_Suite.window, 'window' : Standard_Suite.window,
} }
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
}
_propdeclarations = {
'c@#^' : _Prop__3c_Inheritance_3e_,
'faen' : _Prop_folder_actions_enabled,
'pALL' : _Prop_properties,
'swui' : _Prop_system_wide_UI_element,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,40 +12,40 @@ _code = '????'
class Text_Suite_Events: class Text_Suite_Events:
pass pass
class attachment(aetools.ComponentItem): class attachment(aetools.ComponentItem):
"""attachment - Represents an inline text attachment. This class is used mainly for make commands. """ """attachment - Represents an inline text attachment. This class is used mainly for make commands. """
want = 'atts' want = 'atts'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'ctxt' want = 'ctxt'
class _Prop_file_name(aetools.NProperty): class _Prop_file_name(aetools.NProperty):
"""file name - The path to the file for the attachment """ """file name - The path to the file for the attachment """
which = 'atfn' which = 'atfn'
want = 'utxt' want = 'utxt'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
# element 'cwor' as ['indx', 'rele', 'rang', 'test'] # element 'cwor' as ['indx', 'rele', 'rang', 'test']
class attribute_run(aetools.ComponentItem): class attribute_run(aetools.ComponentItem):
"""attribute run - This subdivides the text into chunks that all have the same attributes. """ """attribute run - This subdivides the text into chunks that all have the same attributes. """
want = 'catr' want = 'catr'
class _Prop_color(aetools.NProperty): class _Prop_color(aetools.NProperty):
"""color - The color of the first character. """ """color - The color of the first character. """
which = 'colr' which = 'colr'
want = 'colr' want = 'colr'
class _Prop_font(aetools.NProperty): class _Prop_font(aetools.NProperty):
"""font - The name of the font of the first character. """ """font - The name of the font of the first character. """
which = 'font' which = 'font'
want = 'utxt' want = 'utxt'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - The size in points of the first character. """ """size - The size in points of the first character. """
which = 'ptsz' which = 'ptsz'
want = 'long' want = 'long'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -54,8 +54,8 @@ class _Prop_size(aetools.NProperty):
attribute_runs = attribute_run attribute_runs = attribute_run
class character(aetools.ComponentItem): class character(aetools.ComponentItem):
"""character - This subdivides the text into characters. """ """character - This subdivides the text into characters. """
want = 'cha ' want = 'cha '
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -64,8 +64,8 @@ class character(aetools.ComponentItem):
characters = character characters = character
class paragraph(aetools.ComponentItem): class paragraph(aetools.ComponentItem):
"""paragraph - This subdivides the text into paragraphs. """ """paragraph - This subdivides the text into paragraphs. """
want = 'cpar' want = 'cpar'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -74,16 +74,16 @@ class paragraph(aetools.ComponentItem):
paragraphs = paragraph paragraphs = paragraph
class text(aetools.ComponentItem): class text(aetools.ComponentItem):
"""text - Rich (styled) text """ """text - Rich (styled) text """
want = 'ctxt' want = 'ctxt'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
# element 'cwor' as ['indx', 'rele', 'rang', 'test'] # element 'cwor' as ['indx', 'rele', 'rang', 'test']
class word(aetools.ComponentItem): class word(aetools.ComponentItem):
"""word - This subdivides the text into words. """ """word - This subdivides the text into words. """
want = 'cwor' want = 'cwor'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -92,90 +92,104 @@ class word(aetools.ComponentItem):
words = word words = word
attachment._superclassnames = ['text'] attachment._superclassnames = ['text']
attachment._privpropdict = { attachment._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'file_name' : _Prop_file_name, 'file_name' : _Prop_file_name,
} }
attachment._privelemdict = { attachment._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
import Standard_Suite import Standard_Suite
attribute_run._superclassnames = ['item'] attribute_run._superclassnames = ['item']
attribute_run._privpropdict = { attribute_run._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
attribute_run._privelemdict = { attribute_run._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
character._superclassnames = ['item'] character._superclassnames = ['item']
character._privpropdict = { character._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
character._privelemdict = { character._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
paragraph._superclassnames = ['item'] paragraph._superclassnames = ['item']
paragraph._privpropdict = { paragraph._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
paragraph._privelemdict = { paragraph._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
text._superclassnames = ['item'] text._superclassnames = ['item']
text._privpropdict = { text._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
text._privelemdict = { text._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
word._superclassnames = ['item'] word._superclassnames = ['item']
word._privpropdict = { word._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
word._privelemdict = { word._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'atts' : attachment, 'atts' : attachment,
'catr' : attribute_run, 'catr' : attribute_run,
'cha ' : character, 'cha ' : character,
'cpar' : paragraph, 'cpar' : paragraph,
'ctxt' : text, 'ctxt' : text,
'cwor' : word, 'cwor' : word,
}
_propdeclarations = {
'atfn' : _Prop_file_name,
'c@#^' : _Prop__3c_Inheritance_3e_,
'colr' : _Prop_color,
'font' : _Prop_font,
'ptsz' : _Prop_size,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -15,29 +15,29 @@ import Hidden_Suite
_code_to_module = { _code_to_module = {
'????' : Standard_Suite, '????' : Standard_Suite,
'????' : Text_Suite, '????' : Text_Suite,
'cdis' : Disk_2d_Folder_2d_File_Suite, 'cdis' : Disk_2d_Folder_2d_File_Suite,
'faco' : Folder_Actions_Suite, 'faco' : Folder_Actions_Suite,
'logi' : Login_Items_Suite, 'logi' : Login_Items_Suite,
'powr' : Power_Suite, 'powr' : Power_Suite,
'prcs' : Processes_Suite, 'prcs' : Processes_Suite,
'sevs' : System_Events_Suite, 'sevs' : System_Events_Suite,
'tpnm' : Hidden_Suite, 'tpnm' : Hidden_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'????' : ('SystemEvents.Standard_Suite', 'Standard_Suite'), '????' : ('SystemEvents.Standard_Suite', 'Standard_Suite'),
'????' : ('SystemEvents.Text_Suite', 'Text_Suite'), '????' : ('SystemEvents.Text_Suite', 'Text_Suite'),
'cdis' : ('SystemEvents.Disk_2d_Folder_2d_File_Suite', 'Disk_2d_Folder_2d_File_Suite'), 'cdis' : ('SystemEvents.Disk_2d_Folder_2d_File_Suite', 'Disk_2d_Folder_2d_File_Suite'),
'faco' : ('SystemEvents.Folder_Actions_Suite', 'Folder_Actions_Suite'), 'faco' : ('SystemEvents.Folder_Actions_Suite', 'Folder_Actions_Suite'),
'logi' : ('SystemEvents.Login_Items_Suite', 'Login_Items_Suite'), 'logi' : ('SystemEvents.Login_Items_Suite', 'Login_Items_Suite'),
'powr' : ('SystemEvents.Power_Suite', 'Power_Suite'), 'powr' : ('SystemEvents.Power_Suite', 'Power_Suite'),
'prcs' : ('SystemEvents.Processes_Suite', 'Processes_Suite'), 'prcs' : ('SystemEvents.Processes_Suite', 'Processes_Suite'),
'sevs' : ('SystemEvents.System_Events_Suite', 'System_Events_Suite'), 'sevs' : ('SystemEvents.System_Events_Suite', 'System_Events_Suite'),
'tpnm' : ('SystemEvents.Hidden_Suite', 'Hidden_Suite'), 'tpnm' : ('SystemEvents.Hidden_Suite', 'Hidden_Suite'),
} }
from Standard_Suite import * from Standard_Suite import *
@ -51,40 +51,81 @@ from System_Events_Suite import *
from Hidden_Suite import * from Hidden_Suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
v._propdict = {} v._propdict = {}
v._elemdict = {} v._elemdict = {}
for superclassname in getattr(v, '_superclassnames', []): for superclassname in getattr(v, '_superclassnames', []):
superclass = eval(superclassname) superclass = eval(superclassname)
getbaseclasses(superclass) getbaseclasses(superclass)
v._propdict.update(getattr(superclass, '_propdict', {})) v._propdict.update(getattr(superclass, '_propdict', {}))
v._elemdict.update(getattr(superclass, '_elemdict', {})) v._elemdict.update(getattr(superclass, '_elemdict', {}))
v._propdict.update(getattr(v, '_privpropdict', {})) v._propdict.update(getattr(v, '_privpropdict', {}))
v._elemdict.update(getattr(v, '_privelemdict', {})) v._elemdict.update(getattr(v, '_privelemdict', {}))
import StdSuites 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(color)
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(item)
getbaseclasses(document)
getbaseclasses(character) getbaseclasses(character)
getbaseclasses(attachment) getbaseclasses(attachment)
getbaseclasses(paragraph) getbaseclasses(paragraph)
getbaseclasses(word) getbaseclasses(word)
getbaseclasses(attribute_run) getbaseclasses(attribute_run)
getbaseclasses(text) getbaseclasses(text)
getbaseclasses(login_item)
getbaseclasses(file) getbaseclasses(file)
getbaseclasses(alias) getbaseclasses(alias)
getbaseclasses(item) getbaseclasses(item)
getbaseclasses(folder) getbaseclasses(folder)
getbaseclasses(disk) getbaseclasses(disk)
getbaseclasses(color)
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(item)
getbaseclasses(document)
getbaseclasses(script) getbaseclasses(script)
getbaseclasses(folder_action) getbaseclasses(folder_action)
getbaseclasses(StdSuites.Type_Names_Suite.double_integer)
getbaseclasses(StdSuites.Type_Names_Suite.version)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary)
getbaseclasses(StdSuites.Type_Names_Suite.color_table)
getbaseclasses(StdSuites.Type_Names_Suite.fixed_point)
getbaseclasses(StdSuites.Type_Names_Suite.TIFF_picture)
getbaseclasses(StdSuites.Type_Names_Suite.type_element_info)
getbaseclasses(StdSuites.Type_Names_Suite.type_event_info)
getbaseclasses(StdSuites.Type_Names_Suite.machine_location)
getbaseclasses(StdSuites.Type_Names_Suite.PostScript_picture)
getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_point)
getbaseclasses(StdSuites.Type_Names_Suite.menu_item)
getbaseclasses(StdSuites.Type_Names_Suite.scrap_styles)
getbaseclasses(StdSuites.Type_Names_Suite.application_dictionary)
getbaseclasses(StdSuites.Type_Names_Suite.unsigned_integer)
getbaseclasses(StdSuites.Type_Names_Suite.menu)
getbaseclasses(StdSuites.Type_Names_Suite.fixed_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.type_property_info)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed)
getbaseclasses(StdSuites.Type_Names_Suite.type_suite_info)
getbaseclasses(StdSuites.Type_Names_Suite.rotation)
getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
getbaseclasses(StdSuites.Type_Names_Suite.fixed)
getbaseclasses(StdSuites.Type_Names_Suite.long_point)
getbaseclasses(StdSuites.Type_Names_Suite.type_class_info)
getbaseclasses(StdSuites.Type_Names_Suite.RGB96_color)
getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.pixel_map_record)
getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info)
getbaseclasses(StdSuites.Type_Names_Suite.extended_real)
getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.dash_style)
getbaseclasses(StdSuites.Type_Names_Suite.string)
getbaseclasses(StdSuites.Type_Names_Suite.small_real)
getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.location_reference)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(window) getbaseclasses(window)
getbaseclasses(radio_button) getbaseclasses(radio_button)
getbaseclasses(list) getbaseclasses(list)
@ -129,171 +170,130 @@ getbaseclasses(color_well)
getbaseclasses(scroll_bar) getbaseclasses(scroll_bar)
getbaseclasses(combo_box) getbaseclasses(combo_box)
getbaseclasses(browser) getbaseclasses(browser)
getbaseclasses(StdSuites.Type_Names_Suite.double_integer)
getbaseclasses(StdSuites.Type_Names_Suite.version)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary)
getbaseclasses(StdSuites.Type_Names_Suite.color_table)
getbaseclasses(StdSuites.Type_Names_Suite.fixed_point)
getbaseclasses(StdSuites.Type_Names_Suite.TIFF_picture)
getbaseclasses(StdSuites.Type_Names_Suite.type_element_info)
getbaseclasses(StdSuites.Type_Names_Suite.type_event_info)
getbaseclasses(StdSuites.Type_Names_Suite.machine_location)
getbaseclasses(StdSuites.Type_Names_Suite.PostScript_picture)
getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_point)
getbaseclasses(StdSuites.Type_Names_Suite.menu_item)
getbaseclasses(StdSuites.Type_Names_Suite.scrap_styles)
getbaseclasses(StdSuites.Type_Names_Suite.application_dictionary)
getbaseclasses(StdSuites.Type_Names_Suite.unsigned_integer)
getbaseclasses(StdSuites.Type_Names_Suite.menu)
getbaseclasses(StdSuites.Type_Names_Suite.fixed_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.type_property_info)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed)
getbaseclasses(StdSuites.Type_Names_Suite.type_suite_info)
getbaseclasses(StdSuites.Type_Names_Suite.rotation)
getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
getbaseclasses(StdSuites.Type_Names_Suite.fixed)
getbaseclasses(StdSuites.Type_Names_Suite.long_point)
getbaseclasses(StdSuites.Type_Names_Suite.type_class_info)
getbaseclasses(StdSuites.Type_Names_Suite.RGB96_color)
getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.pixel_map_record)
getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info)
getbaseclasses(StdSuites.Type_Names_Suite.extended_real)
getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.dash_style)
getbaseclasses(StdSuites.Type_Names_Suite.string)
getbaseclasses(StdSuites.Type_Names_Suite.small_real)
getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.location_reference)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(application) getbaseclasses(application)
getbaseclasses(login_item)
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cha ' : character, 'colr' : color,
'atts' : attachment, 'cwin' : window,
'cpar' : paragraph, 'capp' : application,
'cwor' : word, 'cobj' : item,
'catr' : attribute_run, 'docu' : document,
'ctxt' : text, 'cha ' : character,
'file' : file, 'atts' : attachment,
'alis' : alias, 'cpar' : paragraph,
'cobj' : item, 'cwor' : word,
'cfol' : folder, 'catr' : attribute_run,
'cdis' : disk, 'ctxt' : text,
'colr' : color, 'logi' : login_item,
'cwin' : window, 'file' : file,
'capp' : application, 'alis' : alias,
'cobj' : item, 'cobj' : item,
'docu' : document, 'cfol' : folder,
'scpt' : script, 'cdis' : disk,
'foac' : folder_action, 'scpt' : script,
'cwin' : window, 'foac' : folder_action,
'radB' : radio_button, 'comp' : StdSuites.Type_Names_Suite.double_integer,
'list' : list, 'vers' : StdSuites.Type_Names_Suite.version,
'pcda' : desk_accessory_process, 'tr16' : StdSuites.Type_Names_Suite.RGB16_color,
'menI' : menu_item, 'aeut' : StdSuites.Type_Names_Suite.system_dictionary,
'proI' : progress_indicator, 'clrt' : StdSuites.Type_Names_Suite.color_table,
'menE' : menu, 'fpnt' : StdSuites.Type_Names_Suite.fixed_point,
'menB' : menu_button, 'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture,
'popB' : pop_up_button, 'elin' : StdSuites.Type_Names_Suite.type_element_info,
'incr' : incrementor, 'evin' : StdSuites.Type_Names_Suite.type_event_info,
'sheE' : sheet, 'mLoc' : StdSuites.Type_Names_Suite.machine_location,
'tbar' : tool_bar, 'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture,
'pcap' : application_process, 'QDpt' : StdSuites.Type_Names_Suite.point,
'txtf' : text_field, 'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point,
'txta' : text_area, 'cmen' : StdSuites.Type_Names_Suite.menu_item,
'sliI' : slider, 'styl' : StdSuites.Type_Names_Suite.scrap_styles,
'scra' : scroll_area, 'aete' : StdSuites.Type_Names_Suite.application_dictionary,
'reli' : relevance_indicator, 'magn' : StdSuites.Type_Names_Suite.unsigned_integer,
'busi' : busy_indicator, 'cmnu' : StdSuites.Type_Names_Suite.menu,
'crow' : row, 'frct' : StdSuites.Type_Names_Suite.fixed_rectangle,
'prcs' : process, 'pinf' : StdSuites.Type_Names_Suite.type_property_info,
'tabB' : table, 'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle,
'outl' : outline, 'lfxd' : StdSuites.Type_Names_Suite.long_fixed,
'uiel' : UI_element, 'suin' : StdSuites.Type_Names_Suite.type_suite_info,
'vali' : value_indicator, 'trot' : StdSuites.Type_Names_Suite.rotation,
'sysw' : system_wide_UI_element, 'shor' : StdSuites.Type_Names_Suite.small_integer,
'butT' : button, 'fixd' : StdSuites.Type_Names_Suite.fixed,
'capp' : application, 'lpnt' : StdSuites.Type_Names_Suite.long_point,
'rgrp' : radio_group, 'gcli' : StdSuites.Type_Names_Suite.type_class_info,
'imaA' : image, 'tr96' : StdSuites.Type_Names_Suite.RGB96_color,
'tab ' : tab_group, 'targ' : StdSuites.Type_Names_Suite.target_id,
'mbar' : menu_bar, 'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record,
'grow' : grow_area, 'pmin' : StdSuites.Type_Names_Suite.type_parameter_info,
'chbx' : check_box, 'exte' : StdSuites.Type_Names_Suite.extended_real,
'ccol' : column, 'lrct' : StdSuites.Type_Names_Suite.long_rectangle,
'sttx' : static_text, 'tdas' : StdSuites.Type_Names_Suite.dash_style,
'splg' : splitter_group, 'TEXT' : StdSuites.Type_Names_Suite.string,
'sgrp' : group, 'sing' : StdSuites.Type_Names_Suite.small_real,
'splr' : splitter, 'null' : StdSuites.Type_Names_Suite.null,
'draA' : drawer, 'insl' : StdSuites.Type_Names_Suite.location_reference,
'colW' : color_well, 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
'scrb' : scroll_bar, 'cwin' : window,
'comB' : combo_box, 'radB' : radio_button,
'broW' : browser, 'list' : list,
'comp' : StdSuites.Type_Names_Suite.double_integer, 'pcda' : desk_accessory_process,
'vers' : StdSuites.Type_Names_Suite.version, 'menI' : menu_item,
'tr16' : StdSuites.Type_Names_Suite.RGB16_color, 'proI' : progress_indicator,
'aeut' : StdSuites.Type_Names_Suite.system_dictionary, 'menE' : menu,
'clrt' : StdSuites.Type_Names_Suite.color_table, 'menB' : menu_button,
'fpnt' : StdSuites.Type_Names_Suite.fixed_point, 'popB' : pop_up_button,
'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture, 'incr' : incrementor,
'elin' : StdSuites.Type_Names_Suite.type_element_info, 'sheE' : sheet,
'evin' : StdSuites.Type_Names_Suite.type_event_info, 'tbar' : tool_bar,
'mLoc' : StdSuites.Type_Names_Suite.machine_location, 'pcap' : application_process,
'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture, 'txtf' : text_field,
'QDpt' : StdSuites.Type_Names_Suite.point, 'txta' : text_area,
'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point, 'sliI' : slider,
'cmen' : StdSuites.Type_Names_Suite.menu_item, 'scra' : scroll_area,
'styl' : StdSuites.Type_Names_Suite.scrap_styles, 'reli' : relevance_indicator,
'aete' : StdSuites.Type_Names_Suite.application_dictionary, 'busi' : busy_indicator,
'magn' : StdSuites.Type_Names_Suite.unsigned_integer, 'crow' : row,
'cmnu' : StdSuites.Type_Names_Suite.menu, 'prcs' : process,
'frct' : StdSuites.Type_Names_Suite.fixed_rectangle, 'tabB' : table,
'pinf' : StdSuites.Type_Names_Suite.type_property_info, 'outl' : outline,
'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle, 'uiel' : UI_element,
'lfxd' : StdSuites.Type_Names_Suite.long_fixed, 'vali' : value_indicator,
'suin' : StdSuites.Type_Names_Suite.type_suite_info, 'sysw' : system_wide_UI_element,
'trot' : StdSuites.Type_Names_Suite.rotation, 'butT' : button,
'shor' : StdSuites.Type_Names_Suite.small_integer, 'capp' : application,
'fixd' : StdSuites.Type_Names_Suite.fixed, 'rgrp' : radio_group,
'lpnt' : StdSuites.Type_Names_Suite.long_point, 'imaA' : image,
'gcli' : StdSuites.Type_Names_Suite.type_class_info, 'tab ' : tab_group,
'tr96' : StdSuites.Type_Names_Suite.RGB96_color, 'mbar' : menu_bar,
'targ' : StdSuites.Type_Names_Suite.target_id, 'grow' : grow_area,
'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record, 'chbx' : check_box,
'pmin' : StdSuites.Type_Names_Suite.type_parameter_info, 'ccol' : column,
'exte' : StdSuites.Type_Names_Suite.extended_real, 'sttx' : static_text,
'lrct' : StdSuites.Type_Names_Suite.long_rectangle, 'splg' : splitter_group,
'tdas' : StdSuites.Type_Names_Suite.dash_style, 'sgrp' : group,
'TEXT' : StdSuites.Type_Names_Suite.string, 'splr' : splitter,
'sing' : StdSuites.Type_Names_Suite.small_real, 'draA' : drawer,
'null' : StdSuites.Type_Names_Suite.null, 'colW' : color_well,
'insl' : StdSuites.Type_Names_Suite.location_reference, 'scrb' : scroll_bar,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, 'comB' : combo_box,
'capp' : application, 'broW' : browser,
'logi' : login_item, 'capp' : application,
} }
class SystemEvents(Standard_Suite_Events, class SystemEvents(Standard_Suite_Events,
Text_Suite_Events, Text_Suite_Events,
Disk_2d_Folder_2d_File_Suite_Events, Disk_2d_Folder_2d_File_Suite_Events,
Folder_Actions_Suite_Events, Folder_Actions_Suite_Events,
Login_Items_Suite_Events, Login_Items_Suite_Events,
Power_Suite_Events, Power_Suite_Events,
Processes_Suite_Events, Processes_Suite_Events,
System_Events_Suite_Events, System_Events_Suite_Events,
Hidden_Suite_Events, Hidden_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'sevs' _signature = 'sevs'
_moduleName = 'SystemEvents' _moduleName = 'SystemEvents'

View file

@ -12,517 +12,517 @@ _code = '????'
class Standard_Suite_Events: class Standard_Suite_Events:
_argmap_close = { _argmap_close = {
'saving_in' : 'kfil', 'saving_in' : 'kfil',
'saving' : 'savo', 'saving' : 'savo',
} }
def close(self, _object, _attributes={}, **_arguments): def close(self, _object, _attributes={}, **_arguments):
"""close: Close an object. """close: Close an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument saving_in: The file in which to save the object. Keyword argument saving_in: The file in which to save the object.
Keyword argument saving: Specifies whether changes should be saved before closing. Keyword argument saving: Specifies whether changes should be saved before closing.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'clos' _subcode = 'clos'
aetools.keysubst(_arguments, self._argmap_close) aetools.keysubst(_arguments, self._argmap_close)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'savo', _Enum_savo) aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_count = { _argmap_count = {
'each' : 'kocl', 'each' : 'kocl',
} }
def count(self, _object, _attributes={}, **_arguments): def count(self, _object, _attributes={}, **_arguments):
"""count: Return the number of elements of a particular class within an object. """count: Return the number of elements of a particular class within an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument each: The class of objects to be counted. Keyword argument each: The class of objects to be counted.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'cnte' _subcode = 'cnte'
aetools.keysubst(_arguments, self._argmap_count) aetools.keysubst(_arguments, self._argmap_count)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def delete(self, _object, _attributes={}, **_arguments): def delete(self, _object, _attributes={}, **_arguments):
"""delete: Delete an object. """delete: Delete an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'delo' _subcode = 'delo'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_duplicate = { _argmap_duplicate = {
'to' : 'insh', 'to' : 'insh',
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def duplicate(self, _object, _attributes={}, **_arguments): def duplicate(self, _object, _attributes={}, **_arguments):
"""duplicate: Copy object(s) and put the copies at a new location. """duplicate: Copy object(s) and put the copies at a new location.
Required argument: the object for the command Required argument: the object for the command
Keyword argument to: The location for the new object(s). Keyword argument to: The location for the new object(s).
Keyword argument with_properties: Properties to be set in the new duplicated object(s). Keyword argument with_properties: Properties to be set in the new duplicated object(s).
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'clon' _subcode = 'clon'
aetools.keysubst(_arguments, self._argmap_duplicate) aetools.keysubst(_arguments, self._argmap_duplicate)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def exists(self, _object, _attributes={}, **_arguments): def exists(self, _object, _attributes={}, **_arguments):
"""exists: Verify if an object exists. """exists: Verify if an object exists.
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'doex' _subcode = 'doex'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def get(self, _object, _attributes={}, **_arguments): def get(self, _object, _attributes={}, **_arguments):
"""get: Get the data for an object. """get: Get the data for an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'getd' _subcode = 'getd'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_make = { _argmap_make = {
'at' : 'insh', 'at' : 'insh',
'new' : 'kocl', 'new' : 'kocl',
'with_data' : 'data', 'with_data' : 'data',
'with_properties' : 'prdt', 'with_properties' : 'prdt',
} }
def make(self, _no_object=None, _attributes={}, **_arguments): def make(self, _no_object=None, _attributes={}, **_arguments):
"""make: Make a new object. """make: Make a new object.
Keyword argument at: The location at which to insert the object. Keyword argument at: The location at which to insert the object.
Keyword argument new: The class of the new object. Keyword argument new: The class of the new object.
Keyword argument with_data: The initial data for the object. Keyword argument with_data: The initial data for the object.
Keyword argument with_properties: The initial values for properties of the object. Keyword argument with_properties: The initial values for properties of the object.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'crel' _subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make) aetools.keysubst(_arguments, self._argmap_make)
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, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.get('errn', 0): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_move = { _argmap_move = {
'to' : 'insh', 'to' : 'insh',
} }
def move(self, _object, _attributes={}, **_arguments): def move(self, _object, _attributes={}, **_arguments):
"""move: Move object(s) to a new location. """move: Move object(s) to a new location.
Required argument: the object for the command Required argument: the object for the command
Keyword argument to: The new location for the object(s). Keyword argument to: The new location for the object(s).
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'move' _subcode = 'move'
aetools.keysubst(_arguments, self._argmap_move) aetools.keysubst(_arguments, self._argmap_move)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def open(self, _object=None, _attributes={}, **_arguments): def open(self, _object=None, _attributes={}, **_arguments):
"""open: Open an object. """open: Open an object.
Required argument: list of objects Required argument: list of objects
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'odoc' _subcode = 'odoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
def print_(self, _object=None, _attributes={}, **_arguments): def print_(self, _object=None, _attributes={}, **_arguments):
"""print: Print an object. """print: Print an object.
Required argument: list of objects Required argument: list of objects
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'pdoc' _subcode = 'pdoc'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_quit = { _argmap_quit = {
'saving' : 'savo', 'saving' : 'savo',
} }
def quit(self, _object, _attributes={}, **_arguments): def quit(self, _object, _attributes={}, **_arguments):
"""quit: Quit an application. """quit: Quit an application.
Required argument: the object for the command Required argument: the object for the command
Keyword argument saving: Specifies whether changes should be saved before quitting. Keyword argument saving: Specifies whether changes should be saved before quitting.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'aevt' _code = 'aevt'
_subcode = 'quit' _subcode = 'quit'
aetools.keysubst(_arguments, self._argmap_quit) aetools.keysubst(_arguments, self._argmap_quit)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'savo', _Enum_savo) aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_save = { _argmap_save = {
'in_' : 'kfil', 'in_' : 'kfil',
'as' : 'fltp', 'as' : 'fltp',
} }
def save(self, _object, _attributes={}, **_arguments): def save(self, _object, _attributes={}, **_arguments):
"""save: Save an object. """save: Save an object.
Required argument: the object for the command Required argument: the object for the command
Keyword argument in_: The file in which to save the object. Keyword argument in_: The file in which to save the object.
Keyword argument as: The file type in which to save the data. Keyword argument as: The file type in which to save the data.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'save' _subcode = 'save'
aetools.keysubst(_arguments, self._argmap_save) aetools.keysubst(_arguments, self._argmap_save)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_set = { _argmap_set = {
'to' : 'data', 'to' : 'data',
} }
def set(self, _object, _attributes={}, **_arguments): def set(self, _object, _attributes={}, **_arguments):
"""set: Set an object's data. """set: Set an object's data.
Required argument: the object for the command Required argument: the object for the command
Keyword argument to: The new value. Keyword argument to: The new value.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'core' _code = 'core'
_subcode = 'setd' _subcode = 'setd'
aetools.keysubst(_arguments, self._argmap_set) aetools.keysubst(_arguments, self._argmap_set)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - An application's top level scripting object. """ """application - An application's top level scripting object. """
want = 'capp' want = 'capp'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'cobj' want = 'cobj'
class _Prop_frontmost(aetools.NProperty): class _Prop_frontmost(aetools.NProperty):
"""frontmost - Is this the frontmost (active) application? """ """frontmost - Is this the frontmost (active) application? """
which = 'pisf' which = 'pisf'
want = 'bool' want = 'bool'
class _Prop_name(aetools.NProperty): class _Prop_name(aetools.NProperty):
"""name - The name of the application. """ """name - The name of the application. """
which = 'pnam' which = 'pnam'
want = 'utxt' want = 'utxt'
class _Prop_version(aetools.NProperty): class _Prop_version(aetools.NProperty):
"""version - The version of the application. """ """version - The version of the application. """
which = 'vers' which = 'vers'
want = 'utxt' want = 'utxt'
# element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID '] # element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID ']
# element 'docu' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
applications = application applications = application
class item(aetools.ComponentItem): class item(aetools.ComponentItem):
"""item - A scriptable object. """ """item - A scriptable object. """
want = 'cobj' want = 'cobj'
class _Prop_class_(aetools.NProperty): class _Prop_class_(aetools.NProperty):
"""class - The class of the object. """ """class - The class of the object. """
which = 'pcls' which = 'pcls'
want = 'type' want = 'type'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - All of the object's properties. """ """properties - All of the object's properties. """
which = 'pALL' which = 'pALL'
want = 'reco' want = 'reco'
items = item items = item
class color(aetools.ComponentItem): class color(aetools.ComponentItem):
"""color - A color. """ """color - A color. """
want = 'colr' want = 'colr'
colors = color colors = color
class window(aetools.ComponentItem): class window(aetools.ComponentItem):
"""window - A window. """ """window - A window. """
want = 'cwin' want = 'cwin'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - The bounding rectangle of the window. """ """bounds - The bounding rectangle of the window. """
which = 'pbnd' which = 'pbnd'
want = 'qdrt' want = 'qdrt'
class _Prop_closeable(aetools.NProperty): class _Prop_closeable(aetools.NProperty):
"""closeable - Whether the window has a close box. """ """closeable - Whether the window has a close box. """
which = 'hclb' which = 'hclb'
want = 'bool' want = 'bool'
class _Prop_document(aetools.NProperty): class _Prop_document(aetools.NProperty):
"""document - The document whose contents are being displayed in the window. """ """document - The document whose contents are being displayed in the window. """
which = 'docu' which = 'docu'
want = 'docu' want = 'docu'
class _Prop_floating(aetools.NProperty): class _Prop_floating(aetools.NProperty):
"""floating - Whether the window floats. """ """floating - Whether the window floats. """
which = 'isfl' which = 'isfl'
want = 'bool' want = 'bool'
class _Prop_id(aetools.NProperty): class _Prop_id(aetools.NProperty):
"""id - The unique identifier of the window. """ """id - The unique identifier of the window. """
which = 'ID ' which = 'ID '
want = 'long' want = 'long'
class _Prop_index(aetools.NProperty): class _Prop_index(aetools.NProperty):
"""index - The index of the window in the back-to-front window ordering. """ """index - The index of the window in the back-to-front window ordering. """
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
class _Prop_miniaturizable(aetools.NProperty): class _Prop_miniaturizable(aetools.NProperty):
"""miniaturizable - Whether the window can be miniaturized. """ """miniaturizable - Whether the window can be miniaturized. """
which = 'ismn' which = 'ismn'
want = 'bool' want = 'bool'
class _Prop_miniaturized(aetools.NProperty): class _Prop_miniaturized(aetools.NProperty):
"""miniaturized - Whether the window is currently miniaturized. """ """miniaturized - Whether the window is currently miniaturized. """
which = 'pmnd' which = 'pmnd'
want = 'bool' want = 'bool'
class _Prop_modal(aetools.NProperty): class _Prop_modal(aetools.NProperty):
"""modal - Whether the window is the application's current modal window. """ """modal - Whether the window is the application's current modal window. """
which = 'pmod' which = 'pmod'
want = 'bool' want = 'bool'
class _Prop_resizable(aetools.NProperty): class _Prop_resizable(aetools.NProperty):
"""resizable - Whether the window can be resized. """ """resizable - Whether the window can be resized. """
which = 'prsz' which = 'prsz'
want = 'bool' want = 'bool'
class _Prop_titled(aetools.NProperty): class _Prop_titled(aetools.NProperty):
"""titled - Whether the window has a title bar. """ """titled - Whether the window has a title bar. """
which = 'ptit' which = 'ptit'
want = 'bool' want = 'bool'
class _Prop_visible(aetools.NProperty): class _Prop_visible(aetools.NProperty):
"""visible - Whether the window is currently visible. """ """visible - Whether the window is currently visible. """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class _Prop_zoomable(aetools.NProperty): class _Prop_zoomable(aetools.NProperty):
"""zoomable - Whether the window can be zoomed. """ """zoomable - Whether the window can be zoomed. """
which = 'iszm' which = 'iszm'
want = 'bool' want = 'bool'
class _Prop_zoomed(aetools.NProperty): class _Prop_zoomed(aetools.NProperty):
"""zoomed - Whether the window is currently zoomed. """ """zoomed - Whether the window is currently zoomed. """
which = 'pzum' which = 'pzum'
want = 'bool' want = 'bool'
windows = window windows = window
class document(aetools.ComponentItem): class document(aetools.ComponentItem):
"""document - A document. """ """document - A document. """
want = 'docu' want = 'docu'
class _Prop_modified(aetools.NProperty): class _Prop_modified(aetools.NProperty):
"""modified - Has the document been modified since the last save? """ """modified - Has the document been modified since the last save? """
which = 'imod' which = 'imod'
want = 'bool' want = 'bool'
class _Prop_path(aetools.NProperty): class _Prop_path(aetools.NProperty):
"""path - The document's path. """ """path - The document's path. """
which = 'ppth' which = 'ppth'
want = 'utxt' want = 'utxt'
documents = document documents = document
application._superclassnames = ['item'] application._superclassnames = ['item']
application._privpropdict = { application._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'frontmost' : _Prop_frontmost, 'frontmost' : _Prop_frontmost,
'name' : _Prop_name, 'name' : _Prop_name,
'version' : _Prop_version, 'version' : _Prop_version,
} }
application._privelemdict = { application._privelemdict = {
'document' : document, 'document' : document,
'window' : window, 'window' : window,
} }
item._superclassnames = [] item._superclassnames = []
item._privpropdict = { item._privpropdict = {
'class_' : _Prop_class_, 'class_' : _Prop_class_,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
} }
item._privelemdict = { item._privelemdict = {
} }
color._superclassnames = ['item'] color._superclassnames = ['item']
color._privpropdict = { color._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
} }
color._privelemdict = { color._privelemdict = {
} }
window._superclassnames = ['item'] window._superclassnames = ['item']
window._privpropdict = { window._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'closeable' : _Prop_closeable, 'closeable' : _Prop_closeable,
'document' : _Prop_document, 'document' : _Prop_document,
'floating' : _Prop_floating, 'floating' : _Prop_floating,
'id' : _Prop_id, 'id' : _Prop_id,
'index' : _Prop_index, 'index' : _Prop_index,
'miniaturizable' : _Prop_miniaturizable, 'miniaturizable' : _Prop_miniaturizable,
'miniaturized' : _Prop_miniaturized, 'miniaturized' : _Prop_miniaturized,
'modal' : _Prop_modal, 'modal' : _Prop_modal,
'name' : _Prop_name, 'name' : _Prop_name,
'resizable' : _Prop_resizable, 'resizable' : _Prop_resizable,
'titled' : _Prop_titled, 'titled' : _Prop_titled,
'visible' : _Prop_visible, 'visible' : _Prop_visible,
'zoomable' : _Prop_zoomable, 'zoomable' : _Prop_zoomable,
'zoomed' : _Prop_zoomed, 'zoomed' : _Prop_zoomed,
} }
window._privelemdict = { window._privelemdict = {
} }
document._superclassnames = ['item'] document._superclassnames = ['item']
document._privpropdict = { document._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'modified' : _Prop_modified, 'modified' : _Prop_modified,
'name' : _Prop_name, 'name' : _Prop_name,
'path' : _Prop_path, 'path' : _Prop_path,
} }
document._privelemdict = { document._privelemdict = {
} }
class _3c_(aetools.NComparison): class _3c_(aetools.NComparison):
"""< - Less than """ """< - Less than """
class _3d_(aetools.NComparison): class _3d_(aetools.NComparison):
"""= - Equal """ """= - Equal """
class _3e_(aetools.NComparison): class _3e_(aetools.NComparison):
"""> - Greater than """ """> - Greater than """
class contains(aetools.NComparison): class contains(aetools.NComparison):
"""contains - Contains """ """contains - Contains """
class ends_with(aetools.NComparison): class ends_with(aetools.NComparison):
"""ends with - Ends with """ """ends with - Ends with """
class starts_with(aetools.NComparison): class starts_with(aetools.NComparison):
"""starts with - Starts with """ """starts with - Starts with """
class _b2_(aetools.NComparison): class _b2_(aetools.NComparison):
"""\xb2 - Less than or equal to """ """\xb2 - Less than or equal to """
class _b3_(aetools.NComparison): class _b3_(aetools.NComparison):
"""\xb3 - Greater than or equal to """ """\xb3 - Greater than or equal to """
_Enum_savo = { _Enum_savo = {
'ask' : 'ask ', # Ask the user whether or not to save the file. 'ask' : 'ask ', # Ask the user whether or not to save the file.
'yes' : 'yes ', # Save the file. 'yes' : 'yes ', # Save the file.
'no' : 'no ', # Do not save the file. 'no' : 'no ', # Do not save the file.
} }
@ -530,9 +530,49 @@ _Enum_savo = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
'cobj' : item, 'cobj' : item,
'colr' : color, 'colr' : color,
'cwin' : window, 'cwin' : window,
'docu' : document, 'docu' : document,
}
_propdeclarations = {
'ID ' : _Prop_id,
'c@#^' : _Prop__3c_Inheritance_3e_,
'docu' : _Prop_document,
'hclb' : _Prop_closeable,
'imod' : _Prop_modified,
'isfl' : _Prop_floating,
'ismn' : _Prop_miniaturizable,
'iszm' : _Prop_zoomable,
'pALL' : _Prop_properties,
'pbnd' : _Prop_bounds,
'pcls' : _Prop_class_,
'pidx' : _Prop_index,
'pisf' : _Prop_frontmost,
'pmnd' : _Prop_miniaturized,
'pmod' : _Prop_modal,
'pnam' : _Prop_name,
'ppth' : _Prop_path,
'prsz' : _Prop_resizable,
'ptit' : _Prop_titled,
'pvis' : _Prop_visible,
'pzum' : _Prop_zoomed,
'vers' : _Prop_version,
}
_compdeclarations = {
'< ' : _3c_,
'<= ' : _b2_,
'= ' : _3d_,
'> ' : _3e_,
'>= ' : _b3_,
'bgwt' : starts_with,
'cont' : contains,
'ends' : ends_with,
}
_enumdeclarations = {
'savo' : _Enum_savo,
} }

View file

@ -12,200 +12,200 @@ _code = 'trmx'
class Terminal_Suite_Events: class Terminal_Suite_Events:
def GetURL(self, _object, _attributes={}, **_arguments): def GetURL(self, _object, _attributes={}, **_arguments):
"""GetURL: Opens a telnet: URL """GetURL: Opens a telnet: URL
Required argument: the object for the command Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'GURL' _code = 'GURL'
_subcode = 'GURL' _subcode = 'GURL'
if _arguments: raise TypeError, 'No optional args expected' if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_do_script = { _argmap_do_script = {
'in_' : 'kfil', 'in_' : 'kfil',
'with_command' : 'cmnd', 'with_command' : 'cmnd',
} }
def do_script(self, _object, _attributes={}, **_arguments): def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Run a UNIX shell script or command """do script: Run a UNIX shell script or command
Required argument: the object for the command Required argument: the object for the command
Keyword argument in_: the window in which to execute the command Keyword argument in_: the window in which to execute the command
Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command Returns: the reply for the command
""" """
_code = 'core' _code = 'core'
_subcode = 'dosc' _subcode = 'dosc'
aetools.keysubst(_arguments, self._argmap_do_script) aetools.keysubst(_arguments, self._argmap_do_script)
_arguments['----'] = _object _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):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
class application(aetools.ComponentItem): class application(aetools.ComponentItem):
"""application - The Terminal program """ """application - The Terminal program """
want = 'capp' want = 'capp'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'capp' want = 'capp'
class _Prop_properties(aetools.NProperty): class _Prop_properties(aetools.NProperty):
"""properties - every property of the Terminal program """ """properties - every property of the Terminal program """
which = 'pALL' which = 'pALL'
want = '****' want = '****'
# element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID '] # element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID ']
# element 'docu' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
applications = application applications = application
class window(aetools.ComponentItem): class window(aetools.ComponentItem):
"""window - A Terminal window """ """window - A Terminal window """
want = 'cwin' want = 'cwin'
class _Prop_background_color(aetools.NProperty): class _Prop_background_color(aetools.NProperty):
"""background color - the background color for the window """ """background color - the background color for the window """
which = 'pbcl' which = 'pbcl'
want = '****' want = '****'
class _Prop_bold_text_color(aetools.NProperty): class _Prop_bold_text_color(aetools.NProperty):
"""bold text color - the bold text color for the window """ """bold text color - the bold text color for the window """
which = 'pbtc' which = 'pbtc'
want = '****' want = '****'
class _Prop_bounds(aetools.NProperty): class _Prop_bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window, relative to the upper left corner of the screen """ """bounds - the boundary rectangle for the window, relative to the upper left corner of the screen """
which = 'pbnd' which = 'pbnd'
want = '****' want = '****'
class _Prop_busy(aetools.NProperty): class _Prop_busy(aetools.NProperty):
"""busy - Is the window busy running a process? """ """busy - Is the window busy running a process? """
which = 'busy' which = 'busy'
want = 'bool' want = 'bool'
class _Prop_contents(aetools.NProperty): class _Prop_contents(aetools.NProperty):
"""contents - the currently visible contents of the window """ """contents - the currently visible contents of the window """
which = 'pcnt' which = 'pcnt'
want = 'utxt' want = 'utxt'
class _Prop_cursor_color(aetools.NProperty): class _Prop_cursor_color(aetools.NProperty):
"""cursor color - the cursor color for the window """ """cursor color - the cursor color for the window """
which = 'pcuc' which = 'pcuc'
want = '****' want = '****'
class _Prop_custom_title(aetools.NProperty): class _Prop_custom_title(aetools.NProperty):
"""custom title - the custom title for the window """ """custom title - the custom title for the window """
which = 'titl' which = 'titl'
want = 'utxt' want = 'utxt'
class _Prop_frame(aetools.NProperty): class _Prop_frame(aetools.NProperty):
"""frame - the origin and size of the window """ """frame - the origin and size of the window """
which = 'pfra' which = 'pfra'
want = '****' want = '****'
class _Prop_frontmost(aetools.NProperty): class _Prop_frontmost(aetools.NProperty):
"""frontmost - Is the window in front of the other Terminal windows? """ """frontmost - Is the window in front of the other Terminal windows? """
which = 'pisf' which = 'pisf'
want = 'bool' want = 'bool'
class _Prop_history(aetools.NProperty): class _Prop_history(aetools.NProperty):
"""history - the contents of the entire scrolling buffer of the window """ """history - the contents of the entire scrolling buffer of the window """
which = 'hist' which = 'hist'
want = 'utxt' want = 'utxt'
class _Prop_normal_text_color(aetools.NProperty): class _Prop_normal_text_color(aetools.NProperty):
"""normal text color - the normal text color for the window """ """normal text color - the normal text color for the window """
which = 'ptxc' which = 'ptxc'
want = '****' want = '****'
class _Prop_number_of_columns(aetools.NProperty): class _Prop_number_of_columns(aetools.NProperty):
"""number of columns - the number of columns in the window """ """number of columns - the number of columns in the window """
which = 'ccol' which = 'ccol'
want = 'long' want = 'long'
class _Prop_number_of_rows(aetools.NProperty): class _Prop_number_of_rows(aetools.NProperty):
"""number of rows - the number of rows in the window """ """number of rows - the number of rows in the window """
which = 'crow' which = 'crow'
want = 'long' want = 'long'
class _Prop_origin(aetools.NProperty): class _Prop_origin(aetools.NProperty):
"""origin - the lower left coordinates of the window, relative to the lower left corner of the screen """ """origin - the lower left coordinates of the window, relative to the lower left corner of the screen """
which = 'pori' which = 'pori'
want = '****' want = '****'
class _Prop_position(aetools.NProperty): class _Prop_position(aetools.NProperty):
"""position - the upper left coordinates of the window, relative to the upper left corner of the screen """ """position - the upper left coordinates of the window, relative to the upper left corner of the screen """
which = 'ppos' which = 'ppos'
want = '****' want = '****'
class _Prop_processes(aetools.NProperty): class _Prop_processes(aetools.NProperty):
"""processes - a list of the currently running processes """ """processes - a list of the currently running processes """
which = 'prcs' which = 'prcs'
want = 'utxt' want = 'utxt'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - the width and height of the window """ """size - the width and height of the window """
which = 'psiz' which = 'psiz'
want = '****' want = '****'
class _Prop_title_displays_custom_title(aetools.NProperty): class _Prop_title_displays_custom_title(aetools.NProperty):
"""title displays custom title - Does the title for the window contain a custom title? """ """title displays custom title - Does the title for the window contain a custom title? """
which = 'tdct' which = 'tdct'
want = 'bool' want = 'bool'
class _Prop_title_displays_device_name(aetools.NProperty): class _Prop_title_displays_device_name(aetools.NProperty):
"""title displays device name - Does the title for the window contain the device name? """ """title displays device name - Does the title for the window contain the device name? """
which = 'tddn' which = 'tddn'
want = 'bool' want = 'bool'
class _Prop_title_displays_file_name(aetools.NProperty): class _Prop_title_displays_file_name(aetools.NProperty):
"""title displays file name - Does the title for the window contain the file name? """ """title displays file name - Does the title for the window contain the file name? """
which = 'tdfn' which = 'tdfn'
want = 'bool' want = 'bool'
class _Prop_title_displays_shell_path(aetools.NProperty): class _Prop_title_displays_shell_path(aetools.NProperty):
"""title displays shell path - Does the title for the window contain the shell path? """ """title displays shell path - Does the title for the window contain the shell path? """
which = 'tdsp' which = 'tdsp'
want = 'bool' want = 'bool'
class _Prop_title_displays_window_size(aetools.NProperty): class _Prop_title_displays_window_size(aetools.NProperty):
"""title displays window size - Does the title for the window contain the window size? """ """title displays window size - Does the title for the window contain the window size? """
which = 'tdws' which = 'tdws'
want = 'bool' want = 'bool'
windows = window windows = window
application._superclassnames = [] application._superclassnames = []
import Standard_Suite import Standard_Suite
application._privpropdict = { application._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
} }
application._privelemdict = { application._privelemdict = {
'document' : Standard_Suite.document, 'document' : Standard_Suite.document,
'window' : window, 'window' : window,
} }
window._superclassnames = [] window._superclassnames = []
window._privpropdict = { window._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'background_color' : _Prop_background_color, 'background_color' : _Prop_background_color,
'bold_text_color' : _Prop_bold_text_color, 'bold_text_color' : _Prop_bold_text_color,
'bounds' : _Prop_bounds, 'bounds' : _Prop_bounds,
'busy' : _Prop_busy, 'busy' : _Prop_busy,
'contents' : _Prop_contents, 'contents' : _Prop_contents,
'cursor_color' : _Prop_cursor_color, 'cursor_color' : _Prop_cursor_color,
'custom_title' : _Prop_custom_title, 'custom_title' : _Prop_custom_title,
'frame' : _Prop_frame, 'frame' : _Prop_frame,
'frontmost' : _Prop_frontmost, 'frontmost' : _Prop_frontmost,
'history' : _Prop_history, 'history' : _Prop_history,
'normal_text_color' : _Prop_normal_text_color, 'normal_text_color' : _Prop_normal_text_color,
'number_of_columns' : _Prop_number_of_columns, 'number_of_columns' : _Prop_number_of_columns,
'number_of_rows' : _Prop_number_of_rows, 'number_of_rows' : _Prop_number_of_rows,
'origin' : _Prop_origin, 'origin' : _Prop_origin,
'position' : _Prop_position, 'position' : _Prop_position,
'processes' : _Prop_processes, 'processes' : _Prop_processes,
'properties' : _Prop_properties, 'properties' : _Prop_properties,
'size' : _Prop_size, 'size' : _Prop_size,
'title_displays_custom_title' : _Prop_title_displays_custom_title, 'title_displays_custom_title' : _Prop_title_displays_custom_title,
'title_displays_device_name' : _Prop_title_displays_device_name, 'title_displays_device_name' : _Prop_title_displays_device_name,
'title_displays_file_name' : _Prop_title_displays_file_name, 'title_displays_file_name' : _Prop_title_displays_file_name,
'title_displays_shell_path' : _Prop_title_displays_shell_path, 'title_displays_shell_path' : _Prop_title_displays_shell_path,
'title_displays_window_size' : _Prop_title_displays_window_size, 'title_displays_window_size' : _Prop_title_displays_window_size,
} }
window._privelemdict = { window._privelemdict = {
} }
@ -214,6 +214,39 @@ window._privelemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'capp' : application, 'capp' : application,
'cwin' : window, 'cwin' : window,
}
_propdeclarations = {
'busy' : _Prop_busy,
'c@#^' : _Prop__3c_Inheritance_3e_,
'ccol' : _Prop_number_of_columns,
'crow' : _Prop_number_of_rows,
'hist' : _Prop_history,
'pALL' : _Prop_properties,
'pbcl' : _Prop_background_color,
'pbnd' : _Prop_bounds,
'pbtc' : _Prop_bold_text_color,
'pcnt' : _Prop_contents,
'pcuc' : _Prop_cursor_color,
'pfra' : _Prop_frame,
'pisf' : _Prop_frontmost,
'pori' : _Prop_origin,
'ppos' : _Prop_position,
'prcs' : _Prop_processes,
'psiz' : _Prop_size,
'ptxc' : _Prop_normal_text_color,
'tdct' : _Prop_title_displays_custom_title,
'tddn' : _Prop_title_displays_device_name,
'tdfn' : _Prop_title_displays_file_name,
'tdsp' : _Prop_title_displays_shell_path,
'tdws' : _Prop_title_displays_window_size,
'titl' : _Prop_custom_title,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -12,40 +12,40 @@ _code = '????'
class Text_Suite_Events: class Text_Suite_Events:
pass pass
class attachment(aetools.ComponentItem): class attachment(aetools.ComponentItem):
"""attachment - Represents an inline text attachment. This class is used mainly for make commands. """ """attachment - Represents an inline text attachment. This class is used mainly for make commands. """
want = 'atts' want = 'atts'
class _Prop__3c_Inheritance_3e_(aetools.NProperty): class _Prop__3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - All of the properties of the superclass. """ """<Inheritance> - All of the properties of the superclass. """
which = 'c@#^' which = 'c@#^'
want = 'ctxt' want = 'ctxt'
class _Prop_file_name(aetools.NProperty): class _Prop_file_name(aetools.NProperty):
"""file name - The path to the file for the attachment """ """file name - The path to the file for the attachment """
which = 'atfn' which = 'atfn'
want = 'utxt' want = 'utxt'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
# element 'cwor' as ['indx', 'rele', 'rang', 'test'] # element 'cwor' as ['indx', 'rele', 'rang', 'test']
class attribute_run(aetools.ComponentItem): class attribute_run(aetools.ComponentItem):
"""attribute run - This subdivides the text into chunks that all have the same attributes. """ """attribute run - This subdivides the text into chunks that all have the same attributes. """
want = 'catr' want = 'catr'
class _Prop_color(aetools.NProperty): class _Prop_color(aetools.NProperty):
"""color - The color of the first character. """ """color - The color of the first character. """
which = 'colr' which = 'colr'
want = 'colr' want = 'colr'
class _Prop_font(aetools.NProperty): class _Prop_font(aetools.NProperty):
"""font - The name of the font of the first character. """ """font - The name of the font of the first character. """
which = 'font' which = 'font'
want = 'utxt' want = 'utxt'
class _Prop_size(aetools.NProperty): class _Prop_size(aetools.NProperty):
"""size - The size in points of the first character. """ """size - The size in points of the first character. """
which = 'ptsz' which = 'ptsz'
want = 'long' want = 'long'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -54,8 +54,8 @@ class _Prop_size(aetools.NProperty):
attribute_runs = attribute_run attribute_runs = attribute_run
class character(aetools.ComponentItem): class character(aetools.ComponentItem):
"""character - This subdivides the text into characters. """ """character - This subdivides the text into characters. """
want = 'cha ' want = 'cha '
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -64,8 +64,8 @@ class character(aetools.ComponentItem):
characters = character characters = character
class paragraph(aetools.ComponentItem): class paragraph(aetools.ComponentItem):
"""paragraph - This subdivides the text into paragraphs. """ """paragraph - This subdivides the text into paragraphs. """
want = 'cpar' want = 'cpar'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -74,16 +74,16 @@ class paragraph(aetools.ComponentItem):
paragraphs = paragraph paragraphs = paragraph
class text(aetools.ComponentItem): class text(aetools.ComponentItem):
"""text - Rich (styled) text """ """text - Rich (styled) text """
want = 'ctxt' want = 'ctxt'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
# element 'cwor' as ['indx', 'rele', 'rang', 'test'] # element 'cwor' as ['indx', 'rele', 'rang', 'test']
class word(aetools.ComponentItem): class word(aetools.ComponentItem):
"""word - This subdivides the text into words. """ """word - This subdivides the text into words. """
want = 'cwor' want = 'cwor'
# element 'catr' as ['indx', 'rele', 'rang', 'test'] # element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test'] # element 'cpar' as ['indx', 'rele', 'rang', 'test']
@ -92,90 +92,104 @@ class word(aetools.ComponentItem):
words = word words = word
attachment._superclassnames = ['text'] attachment._superclassnames = ['text']
attachment._privpropdict = { attachment._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'file_name' : _Prop_file_name, 'file_name' : _Prop_file_name,
} }
attachment._privelemdict = { attachment._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
import Standard_Suite import Standard_Suite
attribute_run._superclassnames = ['item'] attribute_run._superclassnames = ['item']
attribute_run._privpropdict = { attribute_run._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
attribute_run._privelemdict = { attribute_run._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
character._superclassnames = ['item'] character._superclassnames = ['item']
character._privpropdict = { character._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
character._privelemdict = { character._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
paragraph._superclassnames = ['item'] paragraph._superclassnames = ['item']
paragraph._privpropdict = { paragraph._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
paragraph._privelemdict = { paragraph._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
text._superclassnames = ['item'] text._superclassnames = ['item']
text._privpropdict = { text._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
text._privelemdict = { text._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
word._superclassnames = ['item'] word._superclassnames = ['item']
word._privpropdict = { word._privpropdict = {
'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
'color' : _Prop_color, 'color' : _Prop_color,
'font' : _Prop_font, 'font' : _Prop_font,
'size' : _Prop_size, 'size' : _Prop_size,
} }
word._privelemdict = { word._privelemdict = {
'attribute_run' : attribute_run, 'attribute_run' : attribute_run,
'character' : character, 'character' : character,
'paragraph' : paragraph, 'paragraph' : paragraph,
'word' : word, 'word' : word,
} }
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'atts' : attachment, 'atts' : attachment,
'catr' : attribute_run, 'catr' : attribute_run,
'cha ' : character, 'cha ' : character,
'cpar' : paragraph, 'cpar' : paragraph,
'ctxt' : text, 'ctxt' : text,
'cwor' : word, 'cwor' : word,
}
_propdeclarations = {
'atfn' : _Prop_file_name,
'c@#^' : _Prop__3c_Inheritance_3e_,
'colr' : _Prop_color,
'font' : _Prop_font,
'ptsz' : _Prop_size,
}
_compdeclarations = {
}
_enumdeclarations = {
} }

View file

@ -9,17 +9,17 @@ import Terminal_Suite
_code_to_module = { _code_to_module = {
'????' : Standard_Suite, '????' : Standard_Suite,
'????' : Text_Suite, '????' : Text_Suite,
'trmx' : Terminal_Suite, 'trmx' : Terminal_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'????' : ('Terminal.Standard_Suite', 'Standard_Suite'), '????' : ('Terminal.Standard_Suite', 'Standard_Suite'),
'????' : ('Terminal.Text_Suite', 'Text_Suite'), '????' : ('Terminal.Text_Suite', 'Text_Suite'),
'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'), 'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
} }
from Standard_Suite import * from Standard_Suite import *
@ -27,22 +27,27 @@ from Text_Suite import *
from Terminal_Suite import * from Terminal_Suite import *
def getbaseclasses(v): def getbaseclasses(v):
if not getattr(v, '_propdict', None): if not getattr(v, '_propdict', None):
v._propdict = {} v._propdict = {}
v._elemdict = {} v._elemdict = {}
for superclassname in getattr(v, '_superclassnames', []): for superclassname in getattr(v, '_superclassnames', []):
superclass = eval(superclassname) superclass = eval(superclassname)
getbaseclasses(superclass) getbaseclasses(superclass)
v._propdict.update(getattr(superclass, '_propdict', {})) v._propdict.update(getattr(superclass, '_propdict', {}))
v._elemdict.update(getattr(superclass, '_elemdict', {})) v._elemdict.update(getattr(superclass, '_elemdict', {}))
v._propdict.update(getattr(v, '_privpropdict', {})) v._propdict.update(getattr(v, '_privpropdict', {}))
v._elemdict.update(getattr(v, '_privelemdict', {})) v._elemdict.update(getattr(v, '_privelemdict', {}))
import StdSuites 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(color)
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(item)
getbaseclasses(document)
getbaseclasses(character) getbaseclasses(character)
getbaseclasses(attachment) getbaseclasses(attachment)
getbaseclasses(paragraph) getbaseclasses(paragraph)
@ -51,37 +56,32 @@ getbaseclasses(attribute_run)
getbaseclasses(text) getbaseclasses(text)
getbaseclasses(window) getbaseclasses(window)
getbaseclasses(application) getbaseclasses(application)
getbaseclasses(color)
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(item)
getbaseclasses(document)
# #
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'cha ' : character, 'colr' : color,
'atts' : attachment, 'cwin' : window,
'cpar' : paragraph, 'capp' : application,
'cwor' : word, 'cobj' : item,
'catr' : attribute_run, 'docu' : document,
'ctxt' : text, 'cha ' : character,
'cwin' : window, 'atts' : attachment,
'capp' : application, 'cpar' : paragraph,
'colr' : color, 'cwor' : word,
'cwin' : window, 'catr' : attribute_run,
'capp' : application, 'ctxt' : text,
'cobj' : item, 'cwin' : window,
'docu' : document, 'capp' : application,
} }
class Terminal(Standard_Suite_Events, class Terminal(Standard_Suite_Events,
Text_Suite_Events, Text_Suite_Events,
Terminal_Suite_Events, Terminal_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'trmx' _signature = 'trmx'
_moduleName = 'Terminal' _moduleName = 'Terminal'