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 / StdSuites / QuickDraw_Graphics_Suite.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  14.8 KB  |  446 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. '''Suite QuickDraw Graphics Suite: A set of basic classes for graphics
  5. Level 1, version 1
  6.  
  7. Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
  8. AETE/AEUT resource version 1/0, language 0, script 0
  9. '''
  10. import aetools
  11. import MacOS
  12. _code = 'qdrw'
  13.  
  14. class QuickDraw_Graphics_Suite_Events:
  15.     pass
  16.  
  17.  
  18. class arc(aetools.ComponentItem):
  19.     '''arc - An arc '''
  20.     want = 'carc'
  21.  
  22.  
  23. class _Prop_arc_angle(aetools.NProperty):
  24.     '''arc angle - the angle of the arc in degrees '''
  25.     which = 'parc'
  26.     want = 'fixd'
  27.  
  28.  
  29. class _Prop_bounds(aetools.NProperty):
  30.     '''bounds - the smallest rectangle that contains the entire arc '''
  31.     which = 'pbnd'
  32.     want = 'qdrt'
  33.  
  34.  
  35. class _Prop_definition_rect(aetools.NProperty):
  36.     '''definition rect - the rectangle that contains the circle or oval used to define the arc '''
  37.     which = 'pdrt'
  38.     want = 'qdrt'
  39.  
  40.  
  41. class _Prop_fill_color(aetools.NProperty):
  42.     '''fill color - the fill color '''
  43.     which = 'flcl'
  44.     want = 'cRGB'
  45.  
  46.  
  47. class _Prop_fill_pattern(aetools.NProperty):
  48.     '''fill pattern - the fill pattern '''
  49.     which = 'flpt'
  50.     want = 'cpix'
  51.  
  52.  
  53. class _Prop_pen_color(aetools.NProperty):
  54.     '''pen color - the pen color '''
  55.     which = 'ppcl'
  56.     want = 'cRGB'
  57.  
  58.  
  59. class _Prop_pen_pattern(aetools.NProperty):
  60.     '''pen pattern - the pen pattern '''
  61.     which = 'pppa'
  62.     want = 'cpix'
  63.  
  64.  
  65. class _Prop_pen_width(aetools.NProperty):
  66.     '''pen width - the pen width '''
  67.     which = 'ppwd'
  68.     want = 'shor'
  69.  
  70.  
  71. class _Prop_start_angle(aetools.NProperty):
  72.     '''start angle - the angle that defines the start of the arc, in degrees '''
  73.     which = 'pang'
  74.     want = 'fixd'
  75.  
  76.  
  77. class _Prop_transfer_mode(aetools.NProperty):
  78.     '''transfer mode - the transfer mode '''
  79.     which = 'pptm'
  80.     want = 'tran'
  81.  
  82. arcs = arc
  83.  
  84. class drawing_area(aetools.ComponentItem):
  85.     '''drawing area - Container for graphics and supporting information '''
  86.     want = 'cdrw'
  87.  
  88.  
  89. class _Prop_background_color(aetools.NProperty):
  90.     '''background color - the color used to fill in unoccupied areas '''
  91.     which = 'pbcl'
  92.     want = 'cRGB'
  93.  
  94.  
  95. class _Prop_background_pattern(aetools.NProperty):
  96.     '''background pattern - the pattern used to fill in unoccupied areas '''
  97.     which = 'pbpt'
  98.     want = 'cpix'
  99.  
  100.  
  101. class _Prop_color_table(aetools.NProperty):
  102.     '''color table - the color table '''
  103.     which = 'cltb'
  104.     want = 'clrt'
  105.  
  106.  
  107. class _Prop_default_font(aetools.NProperty):
  108.     '''default font - the name of the default font for text objects '''
  109.     which = 'ptxf'
  110.     want = 'itxt'
  111.  
  112.  
  113. class _Prop_default_location(aetools.NProperty):
  114.     '''default location - the default location of each new graphic object '''
  115.     which = 'pnel'
  116.     want = 'QDpt'
  117.  
  118.  
  119. class _Prop_default_size(aetools.NProperty):
  120.     '''default size - the default size for text objects '''
  121.     which = 'ptps'
  122.     want = 'fixd'
  123.  
  124.  
  125. class _Prop_name(aetools.NProperty):
  126.     '''name - the name '''
  127.     which = 'pnam'
  128.     want = 'itxt'
  129.  
  130.  
  131. class _Prop_ordering(aetools.NProperty):
  132.     '''ordering - the ordered list of graphic objects in the drawing area '''
  133.     which = 'gobs'
  134.     want = 'obj '
  135.  
  136.  
  137. class _Prop_pixel_depth(aetools.NProperty):
  138.     '''pixel depth - the number of bits per pixel '''
  139.     which = 'pdpt'
  140.     want = 'shor'
  141.  
  142.  
  143. class _Prop_style(aetools.NProperty):
  144.     '''style - the default text style for text objects '''
  145.     which = 'txst'
  146.     want = 'tsty'
  147.  
  148.  
  149. class _Prop_text_color(aetools.NProperty):
  150.     '''text color - the default color for text objects '''
  151.     which = 'ptxc'
  152.     want = 'cRGB'
  153.  
  154.  
  155. class _Prop_update_on_change(aetools.NProperty):
  156.     '''update on change - Redraw after each change? '''
  157.     which = 'pupd'
  158.     want = 'bool'
  159.  
  160.  
  161. class _Prop_writing_code(aetools.NProperty):
  162.     '''writing code - the script system and language of text objects in the drawing area '''
  163.     which = 'psct'
  164.     want = 'intl'
  165.  
  166. drawing_areas = drawing_area
  167.  
  168. class graphic_objects(aetools.ComponentItem):
  169.     '''graphic objects -  '''
  170.     want = 'cgob'
  171.  
  172. graphic_object = graphic_objects
  173.  
  174. class graphic_shapes(aetools.ComponentItem):
  175.     '''graphic shapes -  '''
  176.     want = 'cgsh'
  177.  
  178. graphic_shape = graphic_shapes
  179.  
  180. class graphic_text(aetools.ComponentItem):
  181.     '''graphic text - A series of characters within a drawing area '''
  182.     want = 'cgtx'
  183.  
  184.  
  185. class _Prop_color(aetools.NProperty):
  186.     '''color - the color of the first character '''
  187.     which = 'colr'
  188.     want = 'cRGB'
  189.  
  190.  
  191. class _Prop_font(aetools.NProperty):
  192.     '''font - the name of the font of the first character '''
  193.     which = 'font'
  194.     want = 'ctxt'
  195.  
  196.  
  197. class _Prop_size(aetools.NProperty):
  198.     '''size - the size in points of the first character '''
  199.     which = 'ptsz'
  200.     want = 'fixd'
  201.  
  202.  
  203. class _Prop_uniform_styles(aetools.NProperty):
  204.     '''uniform styles - the text styles that are uniform throughout the text '''
  205.     which = 'ustl'
  206.     want = 'tsty'
  207.  
  208.  
  209. class ovals(aetools.ComponentItem):
  210.     '''ovals -  '''
  211.     want = 'covl'
  212.  
  213. oval = ovals
  214.  
  215. class polygon(aetools.ComponentItem):
  216.     '''polygon - A polygon '''
  217.     want = 'cpgn'
  218.  
  219.  
  220. class _Prop_point_list(aetools.NProperty):
  221.     '''point list - the list of points that define the polygon '''
  222.     which = 'ptlt'
  223.     want = 'QDpt'
  224.  
  225. polygons = polygon
  226.  
  227. class graphic_groups(aetools.ComponentItem):
  228.     '''graphic groups -  '''
  229.     want = 'cpic'
  230.  
  231. graphic_group = graphic_groups
  232.  
  233. class pixel_maps(aetools.ComponentItem):
  234.     '''pixel maps -  '''
  235.     want = 'cpix'
  236.  
  237. pixel_map = pixel_maps
  238.  
  239. class pixel(aetools.ComponentItem):
  240.     '''pixel - A pixel '''
  241.     want = 'cpxl'
  242.  
  243. pixels = pixel
  244.  
  245. class rectangles(aetools.ComponentItem):
  246.     '''rectangles -  '''
  247.     want = 'crec'
  248.  
  249. rectangle = rectangles
  250.  
  251. class rounded_rectangle(aetools.ComponentItem):
  252.     '''rounded rectangle - A rounded rectangle '''
  253.     want = 'crrc'
  254.  
  255.  
  256. class _Prop_corner_curve_height(aetools.NProperty):
  257.     '''corner curve height - the height of the oval used to define the shape of the rounded corners '''
  258.     which = 'pchd'
  259.     want = 'shor'
  260.  
  261.  
  262. class _Prop_corner_curve_width(aetools.NProperty):
  263.     '''corner curve width - the width of the oval used to define the shape of the rounded corners '''
  264.     which = 'pcwd'
  265.     want = 'shor'
  266.  
  267. rounded_rectangles = rounded_rectangle
  268.  
  269. class graphic_line(aetools.ComponentItem):
  270.     '''graphic line - A graphic line '''
  271.     want = 'glin'
  272.  
  273.  
  274. class _Prop_arrow_style(aetools.NProperty):
  275.     '''arrow style - the arrow style '''
  276.     which = 'arro'
  277.     want = 'arro'
  278.  
  279.  
  280. class _Prop_dash_style(aetools.NProperty):
  281.     '''dash style - the dash style '''
  282.     which = 'pdst'
  283.     want = 'tdas'
  284.  
  285.  
  286. class _Prop_end_point(aetools.NProperty):
  287.     '''end point - the ending point of the line '''
  288.     which = 'pend'
  289.     want = 'QDpt'
  290.  
  291.  
  292. class _Prop_start_point(aetools.NProperty):
  293.     '''start point - the starting point of the line '''
  294.     which = 'pstp'
  295.     want = 'QDpt'
  296.  
  297. graphic_lines = graphic_line
  298. arc._superclassnames = []
  299. arc._privpropdict = {
  300.     'arc_angle': _Prop_arc_angle,
  301.     'bounds': _Prop_bounds,
  302.     'definition_rect': _Prop_definition_rect,
  303.     'fill_color': _Prop_fill_color,
  304.     'fill_pattern': _Prop_fill_pattern,
  305.     'pen_color': _Prop_pen_color,
  306.     'pen_pattern': _Prop_pen_pattern,
  307.     'pen_width': _Prop_pen_width,
  308.     'start_angle': _Prop_start_angle,
  309.     'transfer_mode': _Prop_transfer_mode }
  310. arc._privelemdict = { }
  311. drawing_area._superclassnames = []
  312. drawing_area._privpropdict = {
  313.     'background_color': _Prop_background_color,
  314.     'background_pattern': _Prop_background_pattern,
  315.     'color_table': _Prop_color_table,
  316.     'default_font': _Prop_default_font,
  317.     'default_location': _Prop_default_location,
  318.     'default_size': _Prop_default_size,
  319.     'name': _Prop_name,
  320.     'ordering': _Prop_ordering,
  321.     'pixel_depth': _Prop_pixel_depth,
  322.     'style': _Prop_style,
  323.     'text_color': _Prop_text_color,
  324.     'update_on_change': _Prop_update_on_change,
  325.     'writing_code': _Prop_writing_code }
  326. drawing_area._privelemdict = { }
  327. graphic_objects._superclassnames = []
  328. graphic_objects._privpropdict = { }
  329. graphic_objects._privelemdict = { }
  330. graphic_shapes._superclassnames = []
  331. graphic_shapes._privpropdict = { }
  332. graphic_shapes._privelemdict = { }
  333. graphic_text._superclassnames = []
  334. graphic_text._privpropdict = {
  335.     'color': _Prop_color,
  336.     'font': _Prop_font,
  337.     'size': _Prop_size,
  338.     'uniform_styles': _Prop_uniform_styles }
  339. graphic_text._privelemdict = { }
  340. ovals._superclassnames = []
  341. ovals._privpropdict = { }
  342. ovals._privelemdict = { }
  343. polygon._superclassnames = []
  344. polygon._privpropdict = {
  345.     'point_list': _Prop_point_list }
  346. polygon._privelemdict = { }
  347. graphic_groups._superclassnames = []
  348. graphic_groups._privpropdict = { }
  349. graphic_groups._privelemdict = { }
  350. pixel_maps._superclassnames = []
  351. pixel_maps._privpropdict = { }
  352. pixel_maps._privelemdict = { }
  353. pixel._superclassnames = []
  354. pixel._privpropdict = {
  355.     'color': _Prop_color }
  356. pixel._privelemdict = { }
  357. rectangles._superclassnames = []
  358. rectangles._privpropdict = { }
  359. rectangles._privelemdict = { }
  360. rounded_rectangle._superclassnames = []
  361. rounded_rectangle._privpropdict = {
  362.     'corner_curve_height': _Prop_corner_curve_height,
  363.     'corner_curve_width': _Prop_corner_curve_width }
  364. rounded_rectangle._privelemdict = { }
  365. graphic_line._superclassnames = []
  366. graphic_line._privpropdict = {
  367.     'arrow_style': _Prop_arrow_style,
  368.     'dash_style': _Prop_dash_style,
  369.     'end_point': _Prop_end_point,
  370.     'start_point': _Prop_start_point }
  371. graphic_line._privelemdict = { }
  372. _Enum_arro = {
  373.     'no_arrow': 'arno',
  374.     'arrow_at_start': 'arst',
  375.     'arrow_at_end': 'aren',
  376.     'arrow_at_both_ends': 'arbo' }
  377. _Enum_tran = {
  378.     'copy_pixels': 'cpy ',
  379.     'not_copy_pixels': 'ncpy',
  380.     'or_pixels': 'or  ',
  381.     'not_or_pixels': 'ntor',
  382.     'bic_pixels': 'bic ',
  383.     'not_bic_pixels': 'nbic',
  384.     'xor_pixels': 'xor ',
  385.     'not_xor_pixels': 'nxor',
  386.     'add_over_pixels': 'addo',
  387.     'add_pin_pixels': 'addp',
  388.     'sub_over_pixels': 'subo',
  389.     'sub_pin_pixels': 'subp',
  390.     'ad_max_pixels': 'admx',
  391.     'ad_min_pixels': 'admn',
  392.     'blend_pixels': 'blnd' }
  393. _classdeclarations = {
  394.     'carc': arc,
  395.     'cdrw': drawing_area,
  396.     'cgob': graphic_objects,
  397.     'cgsh': graphic_shapes,
  398.     'cgtx': graphic_text,
  399.     'covl': ovals,
  400.     'cpgn': polygon,
  401.     'cpic': graphic_groups,
  402.     'cpix': pixel_maps,
  403.     'cpxl': pixel,
  404.     'crec': rectangles,
  405.     'crrc': rounded_rectangle,
  406.     'glin': graphic_line }
  407. _propdeclarations = {
  408.     'arro': _Prop_arrow_style,
  409.     'cltb': _Prop_color_table,
  410.     'colr': _Prop_color,
  411.     'flcl': _Prop_fill_color,
  412.     'flpt': _Prop_fill_pattern,
  413.     'font': _Prop_font,
  414.     'gobs': _Prop_ordering,
  415.     'pang': _Prop_start_angle,
  416.     'parc': _Prop_arc_angle,
  417.     'pbcl': _Prop_background_color,
  418.     'pbnd': _Prop_bounds,
  419.     'pbpt': _Prop_background_pattern,
  420.     'pchd': _Prop_corner_curve_height,
  421.     'pcwd': _Prop_corner_curve_width,
  422.     'pdpt': _Prop_pixel_depth,
  423.     'pdrt': _Prop_definition_rect,
  424.     'pdst': _Prop_dash_style,
  425.     'pend': _Prop_end_point,
  426.     'pnam': _Prop_name,
  427.     'pnel': _Prop_default_location,
  428.     'ppcl': _Prop_pen_color,
  429.     'pppa': _Prop_pen_pattern,
  430.     'pptm': _Prop_transfer_mode,
  431.     'ppwd': _Prop_pen_width,
  432.     'psct': _Prop_writing_code,
  433.     'pstp': _Prop_start_point,
  434.     'ptlt': _Prop_point_list,
  435.     'ptps': _Prop_default_size,
  436.     'ptsz': _Prop_size,
  437.     'ptxc': _Prop_text_color,
  438.     'ptxf': _Prop_default_font,
  439.     'pupd': _Prop_update_on_change,
  440.     'txst': _Prop_style,
  441.     'ustl': _Prop_uniform_styles }
  442. _compdeclarations = { }
  443. _enumdeclarations = {
  444.     'arro': _Enum_arro,
  445.     'tran': _Enum_tran }
  446.