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

This is a first step towards regenerating the modules with newer, MacOSX,
versions of these programs, and using the programmatic interface to
get at the terminology in stead of poking in resource files.
This commit is contained in:
Jack Jansen 2003-03-28 22:07:22 +00:00
parent 03b9c91aff
commit 7377bec6ae
29 changed files with 3699 additions and 3703 deletions

View file

@ -12,44 +12,6 @@ _code = 'trmx'
class Terminal_Suite_Events:
def run(self, _no_object=None, _attributes={}, **_arguments):
"""run: Run the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'oapp'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
def quit(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'quit'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
def count(self, _object=None, _attributes={}, **_arguments):
"""count: Return the number of elements of a particular class within an object
Required argument: a reference to the objects to be counted
@ -90,6 +52,44 @@ class Terminal_Suite_Events:
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
def quit(self, _no_object=None, _attributes={}, **_arguments):
"""quit: Quit the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'quit'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
def run(self, _no_object=None, _attributes={}, **_arguments):
"""run: Run the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'oapp'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.get('errn', 0):

View file

@ -4,24 +4,24 @@ Resource aete resid 0 Terminal Terminology
"""
import aetools
Error = aetools.Error
import Terminal_Suite
import Invisible_Suite
import Terminal_Suite
_code_to_module = {
'trmx' : Terminal_Suite,
'tpnm' : Invisible_Suite,
'trmx' : Terminal_Suite,
}
_code_to_fullname = {
'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
'tpnm' : ('Terminal.Invisible_Suite', 'Invisible_Suite'),
'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
}
from Terminal_Suite import *
from Invisible_Suite import *
from Terminal_Suite import *
def getbaseclasses(v):
if not getattr(v, '_propdict', None):
@ -42,7 +42,6 @@ import StdSuites
#
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(application)
getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary)
@ -83,6 +82,7 @@ getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(application)
#
# Indices of types declared in this module
@ -90,7 +90,6 @@ getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
_classdeclarations = {
'cwin' : window,
'capp' : application,
'capp' : application,
'shor' : StdSuites.Type_Names_Suite.small_integer,
'tr16' : StdSuites.Type_Names_Suite.RGB16_color,
'aeut' : StdSuites.Type_Names_Suite.system_dictionary,
@ -131,11 +130,12 @@ _classdeclarations = {
'targ' : StdSuites.Type_Names_Suite.target_id,
'QDpt' : StdSuites.Type_Names_Suite.point,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
'capp' : application,
}
class Terminal(Terminal_Suite_Events,
Invisible_Suite_Events,
class Terminal(Invisible_Suite_Events,
Terminal_Suite_Events,
aetools.TalkTo):
_signature = 'trmx'