home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / Lib / plat-mac / lib-scriptpackages / Netscape / Standard_Suite.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  9.0 KB  |  261 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. '''Suite Standard Suite: Common terms for most applications
  5. Level 1, version 1
  6.  
  7. Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
  8. AETE/AEUT resource version 1/0, language 0, script 0
  9. '''
  10. import aetools
  11. import MacOS
  12. _code = 'CoRe'
  13. from StdSuites.Standard_Suite import *
  14.  
  15. class Standard_Suite_Events(Standard_Suite_Events):
  16.     
  17.     def close(self, _object, _attributes = { }, **_arguments):
  18.         '''close: Close an object
  19.         Required argument: the objects to close
  20.         Keyword argument _attributes: AppleEvent attribute dictionary
  21.         '''
  22.         _code = 'core'
  23.         _subcode = 'clos'
  24.         if _arguments:
  25.             raise TypeError, 'No optional args expected'
  26.         
  27.         _arguments['----'] = _object
  28.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  29.         if _arguments.get('errn', 0):
  30.             raise aetools.Error, aetools.decodeerror(_arguments)
  31.         
  32.         if _arguments.has_key('----'):
  33.             return _arguments['----']
  34.         
  35.  
  36.     
  37.     def data_size(self, _object, _attributes = { }, **_arguments):
  38.         '''data size: Return the size in bytes of an object
  39.         Required argument: the object whose data size is to be returned
  40.         Keyword argument _attributes: AppleEvent attribute dictionary
  41.         Returns: the size of the object in bytes
  42.         '''
  43.         _code = 'core'
  44.         _subcode = 'dsiz'
  45.         if _arguments:
  46.             raise TypeError, 'No optional args expected'
  47.         
  48.         _arguments['----'] = _object
  49.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  50.         if _arguments.get('errn', 0):
  51.             raise aetools.Error, aetools.decodeerror(_arguments)
  52.         
  53.         if _arguments.has_key('----'):
  54.             return _arguments['----']
  55.         
  56.  
  57.     
  58.     def get(self, _object, _attributes = { }, **_arguments):
  59.         '''get: Get the data for an object
  60.         Required argument: the object whose data is to be returned
  61.         Keyword argument _attributes: AppleEvent attribute dictionary
  62.         Returns: The data from the object
  63.         '''
  64.         _code = 'core'
  65.         _subcode = 'getd'
  66.         if _arguments:
  67.             raise TypeError, 'No optional args expected'
  68.         
  69.         _arguments['----'] = _object
  70.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  71.         if _arguments.get('errn', 0):
  72.             raise aetools.Error, aetools.decodeerror(_arguments)
  73.         
  74.         if _arguments.has_key('----'):
  75.             return _arguments['----']
  76.         
  77.  
  78.     _argmap_set = {
  79.         'to': 'data' }
  80.     
  81.     def set(self, _object, _attributes = { }, **_arguments):
  82.         '''set: Set an object\xd5s data
  83.         Required argument: the object to change
  84.         Keyword argument to: the new value
  85.         Keyword argument _attributes: AppleEvent attribute dictionary
  86.         '''
  87.         _code = 'core'
  88.         _subcode = 'setd'
  89.         aetools.keysubst(_arguments, self._argmap_set)
  90.         _arguments['----'] = _object
  91.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  92.         if _arguments.get('errn', 0):
  93.             raise aetools.Error, aetools.decodeerror(_arguments)
  94.         
  95.         if _arguments.has_key('----'):
  96.             return _arguments['----']
  97.         
  98.  
  99.  
  100.  
  101. class application(aetools.ComponentItem):
  102.     '''application - An application program '''
  103.     want = 'capp'
  104.  
  105.  
  106. class _Prop_alert_application(aetools.NProperty):
  107.     '''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. '''
  108.     which = 'ALAP'
  109.     want = 'type'
  110.  
  111. alert_application = _Prop_alert_application()
  112.  
  113. class _Prop_kiosk_mode(aetools.NProperty):
  114.     '''kiosk mode - Kiosk mode leaves very few menus enabled '''
  115.     which = 'KOSK'
  116.     want = 'long'
  117.  
  118. kiosk_mode = _Prop_kiosk_mode()
  119.  
  120. class window(aetools.ComponentItem):
  121.     '''window - A Window '''
  122.     want = 'cwin'
  123.  
  124.  
  125. class _Prop_URL(aetools.NProperty):
  126.     '''URL - Current URL '''
  127.     which = 'curl'
  128.     want = 'TEXT'
  129.  
  130.  
  131. class _Prop_bounds(aetools.NProperty):
  132.     '''bounds - the boundary rectangle for the window '''
  133.     which = 'pbnd'
  134.     want = 'qdrt'
  135.  
  136.  
  137. class _Prop_busy(aetools.NProperty):
  138.     '''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 '''
  139.     which = 'busy'
  140.     want = 'long'
  141.  
  142.  
  143. class _Prop_closeable(aetools.NProperty):
  144.     '''closeable - Does the window have a close box? '''
  145.     which = 'hclb'
  146.     want = 'bool'
  147.  
  148.  
  149. class _Prop_floating(aetools.NProperty):
  150.     '''floating - Does the window float? '''
  151.     which = 'isfl'
  152.     want = 'bool'
  153.  
  154.  
  155. class _Prop_index(aetools.NProperty):
  156.     '''index - the number of the window '''
  157.     which = 'pidx'
  158.     want = 'long'
  159.  
  160.  
  161. class _Prop_modal(aetools.NProperty):
  162.     '''modal - Is the window modal? '''
  163.     which = 'pmod'
  164.     want = 'bool'
  165.  
  166.  
  167. class _Prop_name(aetools.NProperty):
  168.     '''name - the title of the window '''
  169.     which = 'pnam'
  170.     want = 'itxt'
  171.  
  172.  
  173. class _Prop_position(aetools.NProperty):
  174.     '''position - upper left coordinates of window '''
  175.     which = 'ppos'
  176.     want = 'QDpt'
  177.  
  178.  
  179. class _Prop_resizable(aetools.NProperty):
  180.     '''resizable - Is the window resizable? '''
  181.     which = 'prsz'
  182.     want = 'bool'
  183.  
  184.  
  185. class _Prop_titled(aetools.NProperty):
  186.     '''titled - Does the window have a title bar? '''
  187.     which = 'ptit'
  188.     want = 'bool'
  189.  
  190.  
  191. class _Prop_unique_ID(aetools.NProperty):
  192.     '''unique ID - Window\xd5s unique ID (a bridge between WWW! suite window id\xd5s and standard AE windows) '''
  193.     which = 'wiid'
  194.     want = 'long'
  195.  
  196.  
  197. class _Prop_visible(aetools.NProperty):
  198.     '''visible - is the window visible? '''
  199.     which = 'pvis'
  200.     want = 'bool'
  201.  
  202.  
  203. class _Prop_zoomable(aetools.NProperty):
  204.     '''zoomable - Is the window zoomable? '''
  205.     which = 'iszm'
  206.     want = 'bool'
  207.  
  208.  
  209. class _Prop_zoomed(aetools.NProperty):
  210.     '''zoomed - Is the window zoomed? '''
  211.     which = 'pzum'
  212.     want = 'bool'
  213.  
  214. application._superclassnames = []
  215. application._privpropdict = {
  216.     'alert_application': _Prop_alert_application,
  217.     'kiosk_mode': _Prop_kiosk_mode }
  218. application._privelemdict = {
  219.     'window': window }
  220. window._superclassnames = []
  221. window._privpropdict = {
  222.     'URL': _Prop_URL,
  223.     'bounds': _Prop_bounds,
  224.     'busy': _Prop_busy,
  225.     'closeable': _Prop_closeable,
  226.     'floating': _Prop_floating,
  227.     'index': _Prop_index,
  228.     'modal': _Prop_modal,
  229.     'name': _Prop_name,
  230.     'position': _Prop_position,
  231.     'resizable': _Prop_resizable,
  232.     'titled': _Prop_titled,
  233.     'unique_ID': _Prop_unique_ID,
  234.     'visible': _Prop_visible,
  235.     'zoomable': _Prop_zoomable,
  236.     'zoomed': _Prop_zoomed }
  237. window._privelemdict = { }
  238. _classdeclarations = {
  239.     'capp': application,
  240.     'cwin': window }
  241. _propdeclarations = {
  242.     'ALAP': _Prop_alert_application,
  243.     'KOSK': _Prop_kiosk_mode,
  244.     'busy': _Prop_busy,
  245.     'curl': _Prop_URL,
  246.     'hclb': _Prop_closeable,
  247.     'isfl': _Prop_floating,
  248.     'iszm': _Prop_zoomable,
  249.     'pbnd': _Prop_bounds,
  250.     'pidx': _Prop_index,
  251.     'pmod': _Prop_modal,
  252.     'pnam': _Prop_name,
  253.     'ppos': _Prop_position,
  254.     'prsz': _Prop_resizable,
  255.     'ptit': _Prop_titled,
  256.     'pvis': _Prop_visible,
  257.     'pzum': _Prop_zoomed,
  258.     'wiid': _Prop_unique_ID }
  259. _compdeclarations = { }
  260. _enumdeclarations = { }
  261.