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