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'
|
|
|
|
class arc_angle(aetools.NProperty):
|
|
|
|
"""arc angle - the angle of the arc in degrees """
|
|
|
|
which = 'parc'
|
|
|
|
want = 'fixd'
|
|
|
|
class bounds(aetools.NProperty):
|
|
|
|
"""bounds - the smallest rectangle that contains the entire arc """
|
|
|
|
which = 'pbnd'
|
|
|
|
want = 'qdrt'
|
|
|
|
class definition_rect(aetools.NProperty):
|
|
|
|
"""definition rect - the rectangle that contains the circle or oval used to define the arc """
|
|
|
|
which = 'pdrt'
|
|
|
|
want = 'qdrt'
|
|
|
|
class fill_color(aetools.NProperty):
|
|
|
|
"""fill color - the fill color """
|
|
|
|
which = 'flcl'
|
|
|
|
want = 'cRGB'
|
|
|
|
class fill_pattern(aetools.NProperty):
|
|
|
|
"""fill pattern - the fill pattern """
|
|
|
|
which = 'flpt'
|
|
|
|
want = 'cpix'
|
|
|
|
class pen_color(aetools.NProperty):
|
|
|
|
"""pen color - the pen color """
|
|
|
|
which = 'ppcl'
|
|
|
|
want = 'cRGB'
|
|
|
|
class pen_pattern(aetools.NProperty):
|
|
|
|
"""pen pattern - the pen pattern """
|
|
|
|
which = 'pppa'
|
|
|
|
want = 'cpix'
|
|
|
|
class pen_width(aetools.NProperty):
|
|
|
|
"""pen width - the pen width """
|
|
|
|
which = 'ppwd'
|
|
|
|
want = 'shor'
|
|
|
|
class start_angle(aetools.NProperty):
|
|
|
|
"""start angle - the angle that defines the start of the arc, in degrees """
|
|
|
|
which = 'pang'
|
|
|
|
want = 'fixd'
|
|
|
|
class transfer_mode(aetools.NProperty):
|
|
|
|
"""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'
|
|
|
|
class background_color(aetools.NProperty):
|
|
|
|
"""background color - the color used to fill in unoccupied areas """
|
|
|
|
which = 'pbcl'
|
|
|
|
want = 'cRGB'
|
|
|
|
class background_pattern(aetools.NProperty):
|
|
|
|
"""background pattern - the pattern used to fill in unoccupied areas """
|
|
|
|
which = 'pbpt'
|
|
|
|
want = 'cpix'
|
|
|
|
class color_table(aetools.NProperty):
|
|
|
|
"""color table - the color table """
|
|
|
|
which = 'cltb'
|
|
|
|
want = 'clrt'
|
2003-03-28 19:38:00 -04:00
|
|
|
class default_font(aetools.NProperty):
|
|
|
|
"""default font - the name of the default font for text objects """
|
|
|
|
which = 'ptxf'
|
2000-08-17 19:14:57 -03:00
|
|
|
want = 'itxt'
|
|
|
|
class default_location(aetools.NProperty):
|
|
|
|
"""default location - the default location of each new graphic object """
|
|
|
|
which = 'pnel'
|
|
|
|
want = 'QDpt'
|
|
|
|
class default_size(aetools.NProperty):
|
|
|
|
"""default size - the default size for text objects """
|
|
|
|
which = 'ptps'
|
|
|
|
want = 'fixd'
|
2003-03-28 19:38:00 -04:00
|
|
|
class name(aetools.NProperty):
|
|
|
|
"""name - the name """
|
|
|
|
which = 'pnam'
|
|
|
|
want = 'itxt'
|
|
|
|
class ordering(aetools.NProperty):
|
|
|
|
"""ordering - the ordered list of graphic objects in the drawing area """
|
|
|
|
which = 'gobs'
|
|
|
|
want = 'obj '
|
|
|
|
class pixel_depth(aetools.NProperty):
|
|
|
|
"""pixel depth - the number of bits per pixel """
|
|
|
|
which = 'pdpt'
|
|
|
|
want = 'shor'
|
2000-08-17 19:14:57 -03:00
|
|
|
class style(aetools.NProperty):
|
|
|
|
"""style - the default text style for text objects """
|
|
|
|
which = 'txst'
|
|
|
|
want = 'tsty'
|
2003-03-28 19:38:00 -04:00
|
|
|
class text_color(aetools.NProperty):
|
|
|
|
"""text color - the default color for text objects """
|
|
|
|
which = 'ptxc'
|
|
|
|
want = 'cRGB'
|
2000-08-17 19:14:57 -03:00
|
|
|
class update_on_change(aetools.NProperty):
|
|
|
|
"""update on change - Redraw after each change? """
|
|
|
|
which = 'pupd'
|
|
|
|
want = 'bool'
|
2003-03-28 19:38:00 -04:00
|
|
|
class writing_code(aetools.NProperty):
|
|
|
|
"""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-28 18:07:22 -04:00
|
|
|
class graphic_group(aetools.ComponentItem):
|
|
|
|
"""graphic group - Group of graphics """
|
|
|
|
want = 'cpic'
|
|
|
|
|
|
|
|
graphic_groups = graphic_group
|
|
|
|
|
2000-08-17 19:14:57 -03:00
|
|
|
class graphic_line(aetools.ComponentItem):
|
|
|
|
"""graphic line - A graphic line """
|
|
|
|
want = 'glin'
|
|
|
|
class arrow_style(aetools.NProperty):
|
|
|
|
"""arrow style - the arrow style """
|
|
|
|
which = 'arro'
|
|
|
|
want = 'arro'
|
2003-03-28 19:38:00 -04:00
|
|
|
class dash_style(aetools.NProperty):
|
|
|
|
"""dash style - the dash style """
|
|
|
|
which = 'pdst'
|
|
|
|
want = 'tdas'
|
|
|
|
class end_point(aetools.NProperty):
|
|
|
|
"""end point - the ending point of the line """
|
|
|
|
which = 'pend'
|
|
|
|
want = 'QDpt'
|
|
|
|
class start_point(aetools.NProperty):
|
|
|
|
"""start point - the starting point of the line """
|
|
|
|
which = 'pstp'
|
|
|
|
want = 'QDpt'
|
2000-08-17 19:14:57 -03:00
|
|
|
|
|
|
|
graphic_lines = graphic_line
|
|
|
|
|
|
|
|
class graphic_object(aetools.ComponentItem):
|
|
|
|
"""graphic object - A graphic object """
|
|
|
|
want = 'cgob'
|
|
|
|
|
|
|
|
graphic_objects = graphic_object
|
|
|
|
|
|
|
|
class graphic_shape(aetools.ComponentItem):
|
|
|
|
"""graphic shape - A graphic shape """
|
|
|
|
want = 'cgsh'
|
|
|
|
|
|
|
|
graphic_shapes = graphic_shape
|
|
|
|
|
|
|
|
class graphic_text(aetools.ComponentItem):
|
|
|
|
"""graphic text - A series of characters within a drawing area """
|
|
|
|
want = 'cgtx'
|
|
|
|
class color(aetools.NProperty):
|
|
|
|
"""color - the color of the first character """
|
|
|
|
which = 'colr'
|
|
|
|
want = 'cRGB'
|
|
|
|
class font(aetools.NProperty):
|
|
|
|
"""font - the name of the font of the first character """
|
|
|
|
which = 'font'
|
|
|
|
want = 'ctxt'
|
|
|
|
class size(aetools.NProperty):
|
|
|
|
"""size - the size in points of the first character """
|
|
|
|
which = 'ptsz'
|
|
|
|
want = 'fixd'
|
|
|
|
class uniform_styles(aetools.NProperty):
|
|
|
|
"""uniform styles - the text styles that are uniform throughout the text """
|
|
|
|
which = 'ustl'
|
|
|
|
want = 'tsty'
|
|
|
|
|
|
|
|
class oval(aetools.ComponentItem):
|
|
|
|
"""oval - An oval """
|
|
|
|
want = 'covl'
|
|
|
|
|
|
|
|
ovals = oval
|
|
|
|
|
|
|
|
class pixel(aetools.ComponentItem):
|
|
|
|
"""pixel - A pixel """
|
|
|
|
want = 'cpxl'
|
|
|
|
|
|
|
|
class pixel_map(aetools.ComponentItem):
|
|
|
|
"""pixel map - A pixel map """
|
|
|
|
want = 'cpix'
|
|
|
|
|
|
|
|
pixel_maps = pixel_map
|
|
|
|
|
2003-03-28 18:07:22 -04:00
|
|
|
pixels = pixel
|
|
|
|
|
2000-08-17 19:14:57 -03:00
|
|
|
class polygon(aetools.ComponentItem):
|
|
|
|
"""polygon - A polygon """
|
|
|
|
want = 'cpgn'
|
|
|
|
class point_list(aetools.NProperty):
|
|
|
|
"""point list - the list of points that define the polygon """
|
|
|
|
which = 'ptlt'
|
|
|
|
want = 'QDpt'
|
|
|
|
|
|
|
|
polygons = polygon
|
|
|
|
|
|
|
|
class rectangle(aetools.ComponentItem):
|
|
|
|
"""rectangle - A rectangle """
|
|
|
|
want = 'crec'
|
|
|
|
|
|
|
|
rectangles = rectangle
|
|
|
|
|
|
|
|
class rounded_rectangle(aetools.ComponentItem):
|
|
|
|
"""rounded rectangle - A rounded rectangle """
|
|
|
|
want = 'crrc'
|
|
|
|
class corner_curve_height(aetools.NProperty):
|
|
|
|
"""corner curve height - the height of the oval used to define the shape of the rounded corners """
|
|
|
|
which = 'pchd'
|
|
|
|
want = 'shor'
|
|
|
|
class corner_curve_width(aetools.NProperty):
|
|
|
|
"""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
|
2002-08-07 12:53:42 -03:00
|
|
|
arc._superclassnames = []
|
|
|
|
arc._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
'arc_angle' : arc_angle,
|
|
|
|
'bounds' : bounds,
|
|
|
|
'definition_rect' : definition_rect,
|
|
|
|
'fill_color' : fill_color,
|
|
|
|
'fill_pattern' : fill_pattern,
|
|
|
|
'pen_color' : pen_color,
|
|
|
|
'pen_pattern' : pen_pattern,
|
|
|
|
'pen_width' : pen_width,
|
|
|
|
'start_angle' : start_angle,
|
|
|
|
'transfer_mode' : transfer_mode,
|
|
|
|
}
|
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 = {
|
2000-08-17 19:14:57 -03:00
|
|
|
'background_color' : background_color,
|
|
|
|
'background_pattern' : background_pattern,
|
|
|
|
'color_table' : color_table,
|
|
|
|
'default_font' : default_font,
|
2003-03-28 19:38:00 -04:00
|
|
|
'default_location' : default_location,
|
2000-08-17 19:14:57 -03:00
|
|
|
'default_size' : default_size,
|
2003-03-28 19:38:00 -04:00
|
|
|
'name' : name,
|
|
|
|
'ordering' : ordering,
|
|
|
|
'pixel_depth' : pixel_depth,
|
2000-08-17 19:14:57 -03:00
|
|
|
'style' : style,
|
2003-03-28 19:38:00 -04:00
|
|
|
'text_color' : text_color,
|
2000-08-17 19:14:57 -03:00
|
|
|
'update_on_change' : update_on_change,
|
2003-03-28 19:38:00 -04:00
|
|
|
'writing_code' : 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-28 18:07:22 -04:00
|
|
|
graphic_group._superclassnames = []
|
|
|
|
graphic_group._privpropdict = {
|
|
|
|
}
|
|
|
|
graphic_group._privelemdict = {
|
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_line._superclassnames = []
|
|
|
|
graphic_line._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
'arrow_style' : arrow_style,
|
2003-03-28 19:38:00 -04:00
|
|
|
'dash_style' : dash_style,
|
|
|
|
'end_point' : end_point,
|
|
|
|
'start_point' : start_point,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_line._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_object._superclassnames = []
|
|
|
|
graphic_object._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_object._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_shape._superclassnames = []
|
|
|
|
graphic_shape._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_shape._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_text._superclassnames = []
|
|
|
|
graphic_text._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
'color' : color,
|
|
|
|
'font' : font,
|
|
|
|
'size' : size,
|
|
|
|
'uniform_styles' : uniform_styles,
|
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
graphic_text._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
oval._superclassnames = []
|
|
|
|
oval._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
oval._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
pixel._superclassnames = []
|
|
|
|
pixel._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
'color' : color,
|
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
pixel._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
pixel_map._superclassnames = []
|
|
|
|
pixel_map._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
pixel_map._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
polygon._superclassnames = []
|
|
|
|
polygon._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
'point_list' : point_list,
|
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
polygon._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
rectangle._superclassnames = []
|
|
|
|
rectangle._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
rectangle._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
rounded_rectangle._superclassnames = []
|
|
|
|
rounded_rectangle._privpropdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
'corner_curve_height' : corner_curve_height,
|
|
|
|
'corner_curve_width' : corner_curve_width,
|
|
|
|
}
|
2002-08-07 12:53:42 -03:00
|
|
|
rounded_rectangle._privelemdict = {
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
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-28 19:38:00 -04:00
|
|
|
'cgob' : graphic_object,
|
|
|
|
'cgsh' : graphic_shape,
|
|
|
|
'cgtx' : graphic_text,
|
|
|
|
'covl' : oval,
|
2002-01-22 19:22:32 -04:00
|
|
|
'cpgn' : polygon,
|
2003-03-28 19:38:00 -04:00
|
|
|
'cpic' : graphic_group,
|
2002-01-22 19:22:32 -04:00
|
|
|
'cpix' : pixel_map,
|
2003-03-28 19:38:00 -04:00
|
|
|
'cpxl' : pixel,
|
2002-01-22 19:22:32 -04:00
|
|
|
'crec' : rectangle,
|
2003-03-28 19:38:00 -04:00
|
|
|
'crrc' : rounded_rectangle,
|
|
|
|
'glin' : graphic_line,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
_propdeclarations = {
|
2003-03-28 19:38:00 -04:00
|
|
|
'arro' : arrow_style,
|
|
|
|
'cltb' : color_table,
|
2002-01-22 19:22:32 -04:00
|
|
|
'colr' : color,
|
2003-03-28 19:38:00 -04:00
|
|
|
'flcl' : fill_color,
|
2002-01-22 19:22:32 -04:00
|
|
|
'flpt' : fill_pattern,
|
|
|
|
'font' : font,
|
2003-03-28 19:38:00 -04:00
|
|
|
'gobs' : ordering,
|
2002-01-22 19:22:32 -04:00
|
|
|
'pang' : start_angle,
|
2003-03-28 19:38:00 -04:00
|
|
|
'parc' : arc_angle,
|
|
|
|
'pbcl' : background_color,
|
|
|
|
'pbnd' : bounds,
|
|
|
|
'pbpt' : background_pattern,
|
|
|
|
'pchd' : corner_curve_height,
|
|
|
|
'pcwd' : corner_curve_width,
|
|
|
|
'pdpt' : pixel_depth,
|
|
|
|
'pdrt' : definition_rect,
|
|
|
|
'pdst' : dash_style,
|
|
|
|
'pend' : end_point,
|
|
|
|
'pnam' : name,
|
|
|
|
'pnel' : default_location,
|
2002-01-22 19:22:32 -04:00
|
|
|
'ppcl' : pen_color,
|
2003-03-28 19:38:00 -04:00
|
|
|
'pppa' : pen_pattern,
|
|
|
|
'pptm' : transfer_mode,
|
2002-01-22 19:22:32 -04:00
|
|
|
'ppwd' : pen_width,
|
|
|
|
'psct' : writing_code,
|
2003-03-28 19:38:00 -04:00
|
|
|
'pstp' : start_point,
|
2002-01-22 19:22:32 -04:00
|
|
|
'ptlt' : point_list,
|
2003-03-28 19:38:00 -04:00
|
|
|
'ptps' : default_size,
|
2000-08-17 19:14:57 -03:00
|
|
|
'ptsz' : size,
|
2003-03-28 19:38:00 -04:00
|
|
|
'ptxc' : text_color,
|
|
|
|
'ptxf' : default_font,
|
2002-01-22 19:22:32 -04:00
|
|
|
'pupd' : update_on_change,
|
2003-03-28 19:38:00 -04:00
|
|
|
'txst' : style,
|
|
|
|
'ustl' : uniform_styles,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
_compdeclarations = {
|
|
|
|
}
|
|
|
|
|
|
|
|
_enumdeclarations = {
|
|
|
|
'arro' : _Enum_arro,
|
2002-01-22 19:22:32 -04:00
|
|
|
'tran' : _Enum_tran,
|
2000-08-17 19:14:57 -03:00
|
|
|
}
|