2000-08-17 19:14:57 -03:00
|
|
|
"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics
|
|
|
|
Level 1, version 1
|
|
|
|
|
2003-03-23 18:07:28 -04:00
|
|
|
Generated from /Volumes/Moes/Systeemmap/Extensies/AppleScript
|
2000-08-17 19:14:57 -03:00
|
|
|
AETE/AEUT resource version 1/0, language 0, script 0
|
|
|
|
"""
|
|
|
|
|
|
|
|
import aetools
|
|
|
|
import MacOS
|
|
|
|
|
|
|
|
_code = 'qdrw'
|
|
|
|
|
|
|
|
class QuickDraw_Graphics_Suite_Events:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class arc(aetools.ComponentItem):
|
|
|
|
"""arc - An arc """
|
|
|
|
want = 'carc'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_arc_angle(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""arc angle - the angle of the arc in degrees """
|
|
|
|
which = 'parc'
|
|
|
|
want = 'fixd'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_bounds(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""bounds - the smallest rectangle that contains the entire arc """
|
|
|
|
which = 'pbnd'
|
|
|
|
want = 'qdrt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_definition_rect(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""definition rect - the rectangle that contains the circle or oval used to define the arc """
|
|
|
|
which = 'pdrt'
|
|
|
|
want = 'qdrt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_fill_color(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""fill color - the fill color """
|
|
|
|
which = 'flcl'
|
|
|
|
want = 'cRGB'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_fill_pattern(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""fill pattern - the fill pattern """
|
|
|
|
which = 'flpt'
|
|
|
|
want = 'cpix'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_pen_color(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""pen color - the pen color """
|
|
|
|
which = 'ppcl'
|
|
|
|
want = 'cRGB'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_pen_pattern(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""pen pattern - the pen pattern """
|
|
|
|
which = 'pppa'
|
|
|
|
want = 'cpix'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_pen_width(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""pen width - the pen width """
|
|
|
|
which = 'ppwd'
|
|
|
|
want = 'shor'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_start_angle(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""start angle - the angle that defines the start of the arc, in degrees """
|
|
|
|
which = 'pang'
|
|
|
|
want = 'fixd'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_transfer_mode(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""transfer mode - the transfer mode """
|
|
|
|
which = 'pptm'
|
|
|
|
want = 'tran'
|
|
|
|
|
|
|
|
arcs = arc
|
|
|
|
|
|
|
|
class drawing_area(aetools.ComponentItem):
|
|
|
|
"""drawing area - Container for graphics and supporting information """
|
|
|
|
want = 'cdrw'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_background_color(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""background color - the color used to fill in unoccupied areas """
|
|
|
|
which = 'pbcl'
|
|
|
|
want = 'cRGB'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_background_pattern(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""background pattern - the pattern used to fill in unoccupied areas """
|
|
|
|
which = 'pbpt'
|
|
|
|
want = 'cpix'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_color_table(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""color table - the color table """
|
|
|
|
which = 'cltb'
|
|
|
|
want = 'clrt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_default_font(aetools.NProperty):
|
2003-03-28 19:38:00 -04:00
|
|
|
"""default font - the name of the default font for text objects """
|
|
|
|
which = 'ptxf'
|
2000-08-17 19:14:57 -03:00
|
|
|
want = 'itxt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_default_location(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""default location - the default location of each new graphic object """
|
|
|
|
which = 'pnel'
|
|
|
|
want = 'QDpt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_default_size(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""default size - the default size for text objects """
|
|
|
|
which = 'ptps'
|
|
|
|
want = 'fixd'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_name(aetools.NProperty):
|
2003-03-28 19:38:00 -04:00
|
|
|
"""name - the name """
|
|
|
|
which = 'pnam'
|
|
|
|
want = 'itxt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_ordering(aetools.NProperty):
|
2003-03-28 19:38:00 -04:00
|
|
|
"""ordering - the ordered list of graphic objects in the drawing area """
|
|
|
|
which = 'gobs'
|
|
|
|
want = 'obj '
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_pixel_depth(aetools.NProperty):
|
2003-03-28 19:38:00 -04:00
|
|
|
"""pixel depth - the number of bits per pixel """
|
|
|
|
which = 'pdpt'
|
|
|
|
want = 'shor'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_style(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""style - the default text style for text objects """
|
|
|
|
which = 'txst'
|
|
|
|
want = 'tsty'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_text_color(aetools.NProperty):
|
2003-03-28 19:38:00 -04:00
|
|
|
"""text color - the default color for text objects """
|
|
|
|
which = 'ptxc'
|
|
|
|
want = 'cRGB'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_update_on_change(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""update on change - Redraw after each change? """
|
|
|
|
which = 'pupd'
|
|
|
|
want = 'bool'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_writing_code(aetools.NProperty):
|
2003-03-28 19:38:00 -04:00
|
|
|
"""writing code - the script system and language of text objects in the drawing area """
|
|
|
|
which = 'psct'
|
|
|
|
want = 'intl'
|
2000-08-17 19:14:57 -03:00
|
|
|
|
|
|
|
drawing_areas = drawing_area
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class graphic_objects(aetools.ComponentItem):
|
|
|
|
"""graphic objects - """
|
2000-08-17 19:14:57 -03:00
|
|
|
want = 'cgob'
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_object = graphic_objects
|
2000-08-17 19:14:57 -03:00
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class graphic_shapes(aetools.ComponentItem):
|
|
|
|
"""graphic shapes - """
|
2000-08-17 19:14:57 -03:00
|
|
|
want = 'cgsh'
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_shape = graphic_shapes
|
2000-08-17 19:14:57 -03:00
|
|
|
|
|
|
|
class graphic_text(aetools.ComponentItem):
|
|
|
|
"""graphic text - A series of characters within a drawing area """
|
|
|
|
want = 'cgtx'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_color(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""color - the color of the first character """
|
|
|
|
which = 'colr'
|
|
|
|
want = 'cRGB'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_font(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""font - the name of the font of the first character """
|
|
|
|
which = 'font'
|
|
|
|
want = 'ctxt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_size(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""size - the size in points of the first character """
|
|
|
|
which = 'ptsz'
|
|
|
|
want = 'fixd'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_uniform_styles(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""uniform styles - the text styles that are uniform throughout the text """
|
|
|
|
which = 'ustl'
|
|
|
|
want = 'tsty'
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class ovals(aetools.ComponentItem):
|
|
|
|
"""ovals - """
|
2000-08-17 19:14:57 -03:00
|
|
|
want = 'covl'
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
oval = ovals
|
2003-03-28 18:07:22 -04:00
|
|
|
|
2000-08-17 19:14:57 -03:00
|
|
|
class polygon(aetools.ComponentItem):
|
|
|
|
"""polygon - A polygon """
|
|
|
|
want = 'cpgn'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_point_list(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""point list - the list of points that define the polygon """
|
|
|
|
which = 'ptlt'
|
|
|
|
want = 'QDpt'
|
|
|
|
|
|
|
|
polygons = polygon
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
class graphic_groups(aetools.ComponentItem):
|
|
|
|
"""graphic groups - """
|
|
|
|
want = 'cpic'
|
|
|
|
|
|
|
|
graphic_group = graphic_groups
|
|
|
|
|
|
|
|
class pixel_maps(aetools.ComponentItem):
|
|
|
|
"""pixel maps - """
|
|
|
|
want = 'cpix'
|
|
|
|
|
|
|
|
pixel_map = pixel_maps
|
|
|
|
|
|
|
|
class pixel(aetools.ComponentItem):
|
|
|
|
"""pixel - A pixel """
|
|
|
|
want = 'cpxl'
|
|
|
|
|
|
|
|
pixels = pixel
|
|
|
|
|
|
|
|
class rectangles(aetools.ComponentItem):
|
|
|
|
"""rectangles - """
|
2000-08-17 19:14:57 -03:00
|
|
|
want = 'crec'
|
|
|
|
|
2003-03-30 18:41:53 -04:00
|
|
|
rectangle = rectangles
|
2000-08-17 19:14:57 -03:00
|
|
|
|
|
|
|
class rounded_rectangle(aetools.ComponentItem):
|
|
|
|
"""rounded rectangle - A rounded rectangle """
|
|
|
|
want = 'crrc'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_corner_curve_height(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""corner curve height - the height of the oval used to define the shape of the rounded corners """
|
|
|
|
which = 'pchd'
|
|
|
|
want = 'shor'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_corner_curve_width(aetools.NProperty):
|
2000-08-17 19:14:57 -03:00
|
|
|
"""corner curve width - the width of the oval used to define the shape of the rounded corners """
|
|
|
|
which = 'pcwd'
|
|
|
|
want = 'shor'
|
|
|
|
|
|
|
|
rounded_rectangles = rounded_rectangle
|
2003-03-30 18:41:53 -04:00
|
|
|
|
|
|
|
class graphic_line(aetools.ComponentItem):
|
|
|
|
"""graphic line - A graphic line """
|
|
|
|
want = 'glin'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_arrow_style(aetools.NProperty):
|
2003-03-30 18:41:53 -04:00
|
|
|
"""arrow style - the arrow style """
|
|
|
|
which = 'arro'
|
|
|
|
want = 'arro'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_dash_style(aetools.NProperty):
|
2003-03-30 18:41:53 -04:00
|
|
|
"""dash style - the dash style """
|
|
|
|
which = 'pdst'
|
|
|
|
want = 'tdas'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_end_point(aetools.NProperty):
|
2003-03-30 18:41:53 -04:00
|
|
|
"""end point - the ending point of the line """
|
|
|
|
which = 'pend'
|
|
|
|
want = 'QDpt'
|
2003-04-01 18:05:14 -04:00
|
|
|
class _Prop_start_point(aetools.NProperty):
|
2003-03-30 18:41:53 -04:00
|
|
|
"""start point - the starting point of the line """
|
|
|
|
which = 'pstp'
|
|
|
|
want = 'QDpt'
|
|
|
|
|
|
|
|
graphic_lines = graphic_line
|
2002-08-07 12:53:42 -03:00
|
|
|
arc._superclassnames = []
|
|
|
|
arc._privpropdict = {
|
2003-04-01 18:05:14 -04:00
|
|
|
'arc_angle' : _Prop_arc_angle,
|
|
|
|
'bounds' : _Prop_bounds,
|
|
|
|
'definition_rect' : _Prop_definition_rect,
|
|
|
|
'fill_color' : _Prop_fill_color,
|
|
|
|
'fill_pattern' : _Prop_fill_pattern,
|
|
|
|
'pen_color' : _Prop_pen_color,
|
|
|
|
'pen_pattern' : _Prop_pen_pattern,
|
|
|
|
'pen_width' : _Prop_pen_width,
|
|
|
|
'start_angle' : _Prop_start_angle,
|
|
|
|
'transfer_mode' : _Prop_transfer_mode,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
arc._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
drawing_area._superclassnames = []
|
|
|
|
drawing_area._privpropdict = {
|
2003-04-01 18:05:14 -04:00
|
|
|
'background_color' : _Prop_background_color,
|
|
|
|
'background_pattern' : _Prop_background_pattern,
|
|
|
|
'color_table' : _Prop_color_table,
|
|
|
|
'default_font' : _Prop_default_font,
|
|
|
|
'default_location' : _Prop_default_location,
|
|
|
|
'default_size' : _Prop_default_size,
|
|
|
|
'name' : _Prop_name,
|
|
|
|
'ordering' : _Prop_ordering,
|
|
|
|
'pixel_depth' : _Prop_pixel_depth,
|
|
|
|
'style' : _Prop_style,
|
|
|
|
'text_color' : _Prop_text_color,
|
|
|
|
'update_on_change' : _Prop_update_on_change,
|
|
|
|
'writing_code' : _Prop_writing_code,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
drawing_area._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_objects._superclassnames = []
|
|
|
|
graphic_objects._privpropdict = {
|
2003-03-28 18:07:22 -04:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_objects._privelemdict = {
|
2003-03-28 18:07:22 -04:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_shapes._superclassnames = []
|
|
|
|
graphic_shapes._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_shapes._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_text._superclassnames = []
|
|
|
|
graphic_text._privpropdict = {
|
2003-04-01 18:05:14 -04:00
|
|
|
'color' : _Prop_color,
|
|
|
|
'font' : _Prop_font,
|
|
|
|
'size' : _Prop_size,
|
|
|
|
'uniform_styles' : _Prop_uniform_styles,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_text._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
ovals._superclassnames = []
|
|
|
|
ovals._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
ovals._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
polygon._superclassnames = []
|
|
|
|
polygon._privpropdict = {
|
2003-04-01 18:05:14 -04:00
|
|
|
'point_list' : _Prop_point_list,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
polygon._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_groups._superclassnames = []
|
|
|
|
graphic_groups._privpropdict = {
|
|
|
|
}
|
|
|
|
graphic_groups._privelemdict = {
|
|
|
|
}
|
|
|
|
pixel_maps._superclassnames = []
|
|
|
|
pixel_maps._privpropdict = {
|
|
|
|
}
|
|
|
|
pixel_maps._privelemdict = {
|
|
|
|
}
|
|
|
|
pixel._superclassnames = []
|
|
|
|
pixel._privpropdict = {
|
2003-04-01 18:05:14 -04:00
|
|
|
'color' : _Prop_color,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
pixel._privelemdict = {
|
|
|
|
}
|
|
|
|
rectangles._superclassnames = []
|
|
|
|
rectangles._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
rectangles._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
rounded_rectangle._superclassnames = []
|
|
|
|
rounded_rectangle._privpropdict = {
|
2003-04-01 18:05:14 -04:00
|
|
|
'corner_curve_height' : _Prop_corner_curve_height,
|
|
|
|
'corner_curve_width' : _Prop_corner_curve_width,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
rounded_rectangle._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2003-03-30 18:41:53 -04:00
|
|
|
graphic_line._superclassnames = []
|
|
|
|
graphic_line._privpropdict = {
|
2003-04-01 18:05:14 -04:00
|
|
|
'arrow_style' : _Prop_arrow_style,
|
|
|
|
'dash_style' : _Prop_dash_style,
|
|
|
|
'end_point' : _Prop_end_point,
|
|
|
|
'start_point' : _Prop_start_point,
|
2003-03-30 18:41:53 -04:00
|
|
|
}
|
|
|
|
graphic_line._privelemdict = {
|
|
|
|
}
|
2003-03-28 18:07:22 -04:00
|
|
|
_Enum_arro = {
|
|
|
|
'no_arrow' : 'arno', # No arrow on line
|
|
|
|
'arrow_at_start' : 'arst', # Arrow at start of line
|
|
|
|
'arrow_at_end' : 'aren', # Arrow at end of line
|
|
|
|
'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
|
|
|
|
}
|
|
|
|
|
2000-08-17 19:14:57 -03:00
|
|
|
_Enum_tran = {
|
|
|
|
'copy_pixels' : 'cpy ', #
|
|
|
|
'not_copy_pixels' : 'ncpy', #
|
|
|
|
'or_pixels' : 'or ', #
|
|
|
|
'not_or_pixels' : 'ntor', #
|
|
|
|
'bic_pixels' : 'bic ', #
|
|
|
|
'not_bic_pixels' : 'nbic', #
|
|
|
|
'xor_pixels' : 'xor ', #
|
|
|
|
'not_xor_pixels' : 'nxor', #
|
|
|
|
'add_over_pixels' : 'addo', #
|
|
|
|
'add_pin_pixels' : 'addp', #
|
|
|
|
'sub_over_pixels' : 'subo', #
|
|
|
|
'sub_pin_pixels' : 'subp', #
|
|
|
|
'ad_max_pixels' : 'admx', #
|
|
|
|
'ad_min_pixels' : 'admn', #
|
|
|
|
'blend_pixels' : 'blnd', #
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Indices of types declared in this module
|
|
|
|
#
|
|
|
|
_classdeclarations = {
|
2003-03-28 19:38:00 -04:00
|
|
|
'carc' : arc,
|
2002-01-22 19:22:32 -04:00
|
|
|
'cdrw' : drawing_area,
|
2003-03-30 18:41:53 -04:00
|
|
|
'cgob' : graphic_objects,
|
|
|
|
'cgsh' : graphic_shapes,
|
2003-03-28 19:38:00 -04:00
|
|
|
'cgtx' : graphic_text,
|
2003-03-30 18:41:53 -04:00
|
|
|
'covl' : ovals,
|
2002-01-22 19:22:32 -04:00
|
|
|
'cpgn' : polygon,
|
2003-03-30 18:41:53 -04:00
|
|
|
'cpic' : graphic_groups,
|
|
|
|
'cpix' : pixel_maps,
|
2003-03-28 19:38:00 -04:00
|
|
|
'cpxl' : pixel,
|
2003-03-30 18:41:53 -04:00
|
|
|
'crec' : rectangles,
|
2003-03-28 19:38:00 -04:00
|
|
|
'crrc' : rounded_rectangle,
|
|
|
|
'glin' : graphic_line,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|