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