Home | History | Annotate | Download | only in Netscape
      1 """Suite PowerPlant:
      2 Level 0, version 0
      3 
      4 Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
      5 AETE/AEUT resource version 1/0, language 0, script 0
      6 """
      7 
      8 import aetools
      9 import MacOS
     10 
     11 _code = 'ppnt'
     12 
     13 class PowerPlant_Events:
     14 
     15     _argmap_SwitchTellTarget = {
     16         'to' : 'data',
     17     }
     18 
     19     def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments):
     20         """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
     21         Keyword argument to: reference to new focus of AppleEvents
     22         Keyword argument _attributes: AppleEvent attribute dictionary
     23         """
     24         _code = 'ppnt'
     25         _subcode = 'sttg'
     26 
     27         aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
     28         if _no_object is not None: raise TypeError, 'No direct arg expected'
     29 
     30 
     31         _reply, _arguments, _attributes = self.send(_code, _subcode,
     32                 _arguments, _attributes)
     33         if _arguments.get('errn', 0):
     34             raise aetools.Error, aetools.decodeerror(_arguments)
     35         # XXXX Optionally decode result
     36         if _arguments.has_key('----'):
     37             return _arguments['----']
     38 
     39     _argmap_select = {
     40         'data' : 'data',
     41     }
     42 
     43     def select(self, _object, _attributes={}, **_arguments):
     44         """select: Sets the present selection
     45         Required argument: object to select or container of sub-objects to select
     46         Keyword argument data: sub-object(s) to select
     47         Keyword argument _attributes: AppleEvent attribute dictionary
     48         """
     49         _code = 'misc'
     50         _subcode = 'slct'
     51 
     52         aetools.keysubst(_arguments, self._argmap_select)
     53         _arguments['----'] = _object
     54 
     55 
     56         _reply, _arguments, _attributes = self.send(_code, _subcode,
     57                 _arguments, _attributes)
     58         if _arguments.get('errn', 0):
     59             raise aetools.Error, aetools.decodeerror(_arguments)
     60         # XXXX Optionally decode result
     61         if _arguments.has_key('----'):
     62             return _arguments['----']
     63 
     64 _Enum_dbac = {
     65     'DoNothing' : '\x00\x00\x00\x00',   # No debugging action is taken.
     66     'PostAlert' : '\x00\x00\x00\x01',   # Post an alert.
     67     'LowLevelDebugger' : '\x00\x00\x00\x02',    # Break into the low level debugger (MacsBug).
     68     'SourceDebugger' : '\x00\x00\x00\x03',      # Break into the source level debugger (if source debugger is executing).
     69 }
     70 
     71 
     72 #
     73 # Indices of types declared in this module
     74 #
     75 _classdeclarations = {
     76 }
     77 
     78 _propdeclarations = {
     79 }
     80 
     81 _compdeclarations = {
     82 }
     83 
     84 _enumdeclarations = {
     85     'dbac' : _Enum_dbac,
     86 }
     87