diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1997-08-27 13:49:18 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1997-08-27 13:49:18 (GMT) |
commit | 21b5d605d8cc74f3908b4799388280c6a504500a (patch) | |
tree | c1d23add42f4d21d3c831ff3d60fcf440fbe3ffe /Mac/Lib | |
parent | e2ed9df64573ce99db942acaa6f3a820448b717f (diff) | |
download | cpython-21b5d605d8cc74f3908b4799388280c6a504500a.zip cpython-21b5d605d8cc74f3908b4799388280c6a504500a.tar.gz cpython-21b5d605d8cc74f3908b4799388280c6a504500a.tar.bz2 |
Moved suites to their own folder
Diffstat (limited to 'Mac/Lib')
16 files changed, 6267 insertions, 2066 deletions
diff --git a/Mac/Lib/toolbox/AppleScript_Suite.py b/Mac/Lib/scripting/AppleScript_Suite.py index 2bff451..ea9f1f1 100644 --- a/Mac/Lib/toolbox/AppleScript_Suite.py +++ b/Mac/Lib/scripting/AppleScript_Suite.py @@ -1,7 +1,7 @@ """Suite AppleScript Suite: Goodies for Gustav Level 1, version 1 -Generated from flap:Systeemmap:Extensies:Script-extra's:Dialecten:Engels dialect +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -10,25 +10,6 @@ import MacOS _code = 'ascr' -_Enum_cons = { - 'case' : 'case', # case - 'diacriticals' : 'diac', # diacriticals - 'white_space' : 'whit', # white space - 'hyphens' : 'hyph', # hyphens - 'expansion' : 'expa', # expansion - 'punctuation' : 'punc', # punctuation - 'application_responses' : 'rmte', # remote event replies -} - -_Enum_boov = { - 'true' : 'true', # the true boolean value - 'false' : 'fals', # the false boolean value -} - -_Enum_misc = { - 'current_application' : 'cura', # the current application -} - class AppleScript_Suite: def activate(self, _no_object=None, _attributes={}, **_arguments): @@ -807,245 +788,813 @@ class AppleScript_Suite: return _arguments['----'] -# Class '' ('undf') -- 'the undefined value' - -# Class 'upper case' ('case') -- 'Text with lower case converted to upper case' - -# Class 'machines' ('mach') -- 'every computer' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'machine' ('mach') -- 'A computer' - -# Class 'zones' ('zone') -- 'every AppleTalk zone' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'zone' ('zone') -- 'AppleTalk zone' - -# Class 'seconds' ('scnd') -- 'more than one second' - -# Class 'item' ('cobj') -- 'An item of any type' -# property 'id' ('ID ') 'long' -- 'the unique id number of this object' [mutable] - -# Class 'items' ('cobj') -- 'Every item' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'text items' ('citm') -- '' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'text item' ('citm') -- '' - -# Class 'date' ('ldt ') -- 'Absolute date and time values' -# property 'weekday' ('wkdy') 'wkdy' -- 'the day of a week of a date' [] -# property 'month' ('mnth') 'mnth' -- 'the month of a date' [] -# property 'day' ('day ') 'long' -- 'the day of the month of a date' [] -# property 'year' ('year') 'long' -- 'the year of a date' [] -# property 'time' ('time') 'long' -- 'the time since midnight of a date' [] -# property 'date string' ('dstr') 'TEXT' -- 'the date portion of a date-time value as a string' [] -# property 'time string' ('tstr') 'TEXT' -- 'the time portion of a date-time value as a string' [] - -# Class 'dates' ('ldt ') -- 'every date' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'month' ('mnth') -- 'a month' - -# Class 'months' ('mnth') -- 'every month' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'January' ('jan ') -- "It's June in January..." - -# Class 'February' ('feb ') -- 'the month of February' - -# Class 'March' ('mar ') -- 'the month of March' - -# Class 'April' ('apr ') -- 'the month of April' - -# Class 'May' ('may ') -- 'the very merry month of May' - -# Class 'June' ('jun ') -- 'the month of June' - -# Class 'July' ('jul ') -- 'the month of July' - -# Class 'August' ('aug ') -- 'the month of August' - -# Class 'September' ('sep ') -- 'the month of September' - -# Class 'October' ('oct ') -- 'the month of October' - -# Class 'November' ('nov ') -- 'the month of November' - -# Class 'December' ('dec ') -- 'the month of December' - -# Class 'weekday' ('wkdy') -- 'a weekday' - -# Class 'weekdays' ('wkdy') -- 'every weekday' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'Sunday' ('sun ') -- 'Sunday Bloody Sunday' - -# Class 'Monday' ('mon ') -- 'Blue Monday' - -# Class 'Tuesday' ('tue ') -- 'Ruby Tuesday' - -# Class 'Wednesday' ('wed ') -- 'Wednesday Week' - -# Class 'Thursday' ('thu ') -- 'Thursday Afternoon' - -# Class 'Friday' ('fri ') -- 'Friday' +class _empty_ae_name(aetools.ComponentItem): + """ - the undefined value""" + want = 'undf' + +class upper_case(aetools.ComponentItem): + """upper case - Text with lower case converted to upper case""" + want = 'case' + +class machines(aetools.ComponentItem): + """machines - every computer""" + want = 'mach' + +machine = machines + +class zones(aetools.ComponentItem): + """zones - every AppleTalk zone""" + want = 'zone' + +zone = zones + +class seconds(aetools.ComponentItem): + """seconds - more than one second""" + want = 'scnd' + +class item(aetools.ComponentItem): + """item - An item of any type""" + want = 'cobj' +class id(aetools.NProperty): + """id - the unique id number of this object""" + which = 'ID ' + want = 'long' + +items = item + +class text_items(aetools.ComponentItem): + """text items - """ + want = 'citm' + +text_item = text_items + +class date(aetools.ComponentItem): + """date - Absolute date and time values""" + want = 'ldt ' +class weekday(aetools.NProperty): + """weekday - the day of a week of a date""" + which = 'wkdy' + want = 'wkdy' +class month(aetools.NProperty): + """month - the month of a date""" + which = 'mnth' + want = 'mnth' +class day(aetools.NProperty): + """day - the day of the month of a date""" + which = 'day ' + want = 'long' +class year(aetools.NProperty): + """year - the year of a date""" + which = 'year' + want = 'long' +class time(aetools.NProperty): + """time - the time since midnight of a date""" + which = 'time' + want = 'long' +class date_string(aetools.NProperty): + """date string - the date portion of a date-time value as a string""" + which = 'dstr' + want = 'TEXT' +class time_string(aetools.NProperty): + """time string - the time portion of a date-time value as a string""" + which = 'tstr' + want = 'TEXT' + +dates = date + +class month(aetools.ComponentItem): + """month - a month""" + want = 'mnth' + +months = month + +class January(aetools.ComponentItem): + """January - It's June in January...""" + want = 'jan ' + +class February(aetools.ComponentItem): + """February - the month of February""" + want = 'feb ' + +class March(aetools.ComponentItem): + """March - the month of March""" + want = 'mar ' + +class April(aetools.ComponentItem): + """April - the month of April""" + want = 'apr ' + +class May(aetools.ComponentItem): + """May - the very merry month of May""" + want = 'may ' + +class June(aetools.ComponentItem): + """June - the month of June""" + want = 'jun ' + +class July(aetools.ComponentItem): + """July - the month of July""" + want = 'jul ' + +class August(aetools.ComponentItem): + """August - the month of August""" + want = 'aug ' + +class September(aetools.ComponentItem): + """September - the month of September""" + want = 'sep ' + +class October(aetools.ComponentItem): + """October - the month of October""" + want = 'oct ' + +class November(aetools.ComponentItem): + """November - the month of November""" + want = 'nov ' + +class December(aetools.ComponentItem): + """December - the month of December""" + want = 'dec ' + +class weekday(aetools.ComponentItem): + """weekday - a weekday""" + want = 'wkdy' + +weekdays = weekday + +class Sunday(aetools.ComponentItem): + """Sunday - Sunday Bloody Sunday""" + want = 'sun ' + +class Monday(aetools.ComponentItem): + """Monday - Blue Monday""" + want = 'mon ' + +class Tuesday(aetools.ComponentItem): + """Tuesday - Ruby Tuesday""" + want = 'tue ' + +class Wednesday(aetools.ComponentItem): + """Wednesday - Wednesday Week""" + want = 'wed ' + +class Thursday(aetools.ComponentItem): + """Thursday - Thursday Afternoon""" + want = 'thu ' -# Class 'Saturday' ('sat ') -- "Saturday Night's Alright for Fighting" +class Friday(aetools.ComponentItem): + """Friday - Friday""" + want = 'fri ' -# Class 'RGB color' ('cRGB') -- 'Three numbers specifying red, green, blue color values' +class Saturday(aetools.ComponentItem): + """Saturday - Saturday Night's Alright for Fighting""" + want = 'sat ' -# Class 'RGB colors' ('cRGB') -- 'every RGB color' -# property '' ('c@#!') 'type' -- '' [0] +class RGB_color(aetools.ComponentItem): + """RGB color - Three numbers specifying red, green, blue color values""" + want = 'cRGB' -# Class 'integer' ('long') -- 'An integral number' +RGB_colors = RGB_color -# Class 'integers' ('long') -- 'every integer' -# property '' ('c@#!') 'type' -- '' [0] +class integer(aetools.ComponentItem): + """integer - An integral number""" + want = 'long' -# Class 'boolean' ('bool') -- 'A true or false value' +integers = integer -# Class 'booleans' ('bool') -- 'every boolean' -# property '' ('c@#!') 'type' -- '' [0] +class boolean(aetools.ComponentItem): + """boolean - A true or false value""" + want = 'bool' -# Class 'real' ('doub') -- 'A real number' +booleans = boolean -# Class 'reals' ('doub') -- 'every real' -# property '' ('c@#!') 'type' -- '' [0] +class real(aetools.ComponentItem): + """real - A real number""" + want = 'doub' -# Class 'list' ('list') -- 'An ordered collection of items' -# property 'length' ('leng') 'long' -- 'the length of a list' [] +reals = real -# Class 'lists' ('list') -- 'every list' -# property '' ('c@#!') 'type' -- '' [0] +class list(aetools.ComponentItem): + """list - An ordered collection of items""" + want = 'list' +class length(aetools.NProperty): + """length - the length of a list""" + which = 'leng' + want = 'long' -# Class 'linked list' ('llst') -- 'An ordered collection of items' -# property 'length' ('leng') 'long' -- 'the length of a list' [] +lists = list -# Class 'linked lists' ('llst') -- 'every linked list' -# property '' ('c@#!') 'type' -- '' [0] +class linked_list(aetools.ComponentItem): + """linked list - An ordered collection of items""" + want = 'llst' +# repeated property length the length of a list -# Class 'vector' ('vect') -- 'An ordered collection of items' -# property 'length' ('leng') 'long' -- 'the length of a list' [] +linked_lists = linked_list -# Class 'vectors' ('vect') -- 'every vector' -# property '' ('c@#!') 'type' -- '' [0] +class vector(aetools.ComponentItem): + """vector - An ordered collection of items""" + want = 'vect' +# repeated property length the length of a list -# Class 'record' ('reco') -- 'A set of labeled items' +vectors = vector -# Class 'records' ('reco') -- 'every record' -# property '' ('c@#!') 'type' -- '' [0] +class record(aetools.ComponentItem): + """record - A set of labeled items""" + want = 'reco' -# Class 'script' ('scpt') -- 'An AppleScript script' -# property 'parent' ('pare') 'scpt' -- 'the parent of a script' [] +records = record -# Class 'scripts' ('scpt') -- 'every script' -# property '' ('c@#!') 'type' -- '' [0] +class script(aetools.ComponentItem): + """script - An AppleScript script""" + want = 'scpt' +class parent(aetools.NProperty): + """parent - the parent of a script""" + which = 'pare' + want = 'scpt' -# Class 'string' ('TEXT') -- 'a sequence of characters' +scripts = script -# Class 'strings' ('TEXT') -- 'every string' -# property '' ('c@#!') 'type' -- '' [0] +class string(aetools.ComponentItem): + """string - a sequence of characters""" + want = 'TEXT' -# Class 'styled text' ('STXT') -- 'a sequence of characters with style' -# property '' ('c@#!') 'type' -- '' [0] +strings = string -# Class 'number' ('nmbr') -- 'an integer or floating point number' +class styled_text(aetools.ComponentItem): + """styled text - a sequence of characters with style""" + want = 'STXT' -# Class 'numbers' ('nmbr') -- 'every number' -# property '' ('c@#!') 'type' -- '' [0] +class number(aetools.ComponentItem): + """number - an integer or floating point number""" + want = 'nmbr' -# Class 'class' ('pcls') -- 'the type of a value' -# property 'inherits' ('c@#^') 'pcls' -- 'classes to inherit properties from' [] +numbers = number -# Class 'classes' ('pcls') -- 'every class' -# property '' ('c@#!') 'type' -- '' [0] +class _class(aetools.ComponentItem): + """class - the type of a value""" + want = 'pcls' +class inherits(aetools.NProperty): + """inherits - classes to inherit properties from""" + which = 'c@#^' + want = 'pcls' -# Class 'event' ('evnt') -- 'an AppleEvents event' +classes = _class -# Class 'events' ('evnt') -- 'every event' -# property '' ('c@#!') 'type' -- '' [0] +class event(aetools.ComponentItem): + """event - an AppleEvents event""" + want = 'evnt' -# Class 'property' ('prop') -- 'an AppleEvents property' +events = event -# Class 'properties' ('prop') -- 'every property' -# property '' ('c@#!') 'type' -- '' [0] +class property(aetools.ComponentItem): + """property - an AppleEvents property""" + want = 'prop' -# Class 'constant' ('enum') -- 'A constant value' - -# Class 'constants' ('enum') -- 'every constant' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'preposition' ('prep') -- 'an AppleEvents preposition' - -# Class 'prepositions' ('prep') -- 'every preposition' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'key' ('keyf') -- 'an AppleEvents key form' - -# Class 'keys' ('keyf') -- 'every key' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'picture' ('PICT') -- 'A picture' - -# Class 'pictures' ('PICT') -- 'every picture' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'reference' ('obj ') -- 'An AppleScript reference' - -# Class 'references' ('obj ') -- 'every reference' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'data' ('rdat') -- 'An AppleScript raw data object' - -# Class 'handler' ('hand') -- 'An AppleScript handler' - -# Class 'handlers' ('hand') -- 'every handler' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'list or record' ('lr ') -- 'a list or record' - -# Class 'list or string' ('ls ') -- 'a list or string' - -# Class 'list, record or text' ('lrs ') -- 'a list, record or text' - -# Class 'number or date' ('nd ') -- 'a number or date' - -# Class 'number, date or text' ('nds ') -- 'a number, date or text' - -# Class 'alias' ('alis') -- 'a reference to an existing file' +properties = property + +class constant(aetools.ComponentItem): + """constant - A constant value""" + want = 'enum' + +constants = constant + +class preposition(aetools.ComponentItem): + """preposition - an AppleEvents preposition""" + want = 'prep' + +prepositions = preposition + +class key(aetools.ComponentItem): + """key - an AppleEvents key form""" + want = 'keyf' + +keys = key + +class picture(aetools.ComponentItem): + """picture - A picture""" + want = 'PICT' + +pictures = picture + +class reference(aetools.ComponentItem): + """reference - An AppleScript reference""" + want = 'obj ' + +references = reference + +class data(aetools.ComponentItem): + """data - An AppleScript raw data object""" + want = 'rdat' + +class handler(aetools.ComponentItem): + """handler - An AppleScript handler""" + want = 'hand' + +handlers = handler + +class list_or_record(aetools.ComponentItem): + """list or record - a list or record""" + want = 'lr ' + +class list_or_string(aetools.ComponentItem): + """list or string - a list or string""" + want = 'ls ' + +class list_2c__record_or_text(aetools.ComponentItem): + """list, record or text - a list, record or text""" + want = 'lrs ' + +class number_or_date(aetools.ComponentItem): + """number or date - a number or date""" + want = 'nd ' + +class number_2c__date_or_text(aetools.ComponentItem): + """number, date or text - a number, date or text""" + want = 'nds ' + +class alias(aetools.ComponentItem): + """alias - a reference to an existing file""" + want = 'alis' + +aliases = alias + +class application(aetools.ComponentItem): + """application - specifies global properties of AppleScript""" + want = 'capp' +class result(aetools.NProperty): + """result - the last result of evaluation""" + which = 'rslt' + want = 'cobj' +class space(aetools.NProperty): + """space - a space character""" + which = 'spac' + want = 'TEXT' +class _return(aetools.NProperty): + """return - a return character""" + which = 'ret ' + want = 'TEXT' +class tab(aetools.NProperty): + """tab - a tab character""" + which = 'tab ' + want = 'TEXT' +class minutes(aetools.NProperty): + """minutes - the number of seconds in a minute""" + which = 'min ' + want = 'TEXT' +class hours(aetools.NProperty): + """hours - the number of seconds in an hour""" + which = 'hour' + want = 'TEXT' +class days(aetools.NProperty): + """days - the number of seconds in a day""" + which = 'days' + want = 'TEXT' +class weeks(aetools.NProperty): + """weeks - the number of seconds in a week""" + which = 'week' + want = 'TEXT' +class pi(aetools.NProperty): + """pi - the constant pi""" + which = 'pi ' + want = 'doub' +class print_length(aetools.NProperty): + """print length - the maximum length to print""" + which = 'prln' + want = 'long' +class print_depth(aetools.NProperty): + """print depth - the maximum depth to print""" + which = 'prdp' + want = 'long' +class reverse(aetools.NProperty): + """reverse - the reverse of a list""" + which = 'rvse' + want = 'list' +class rest(aetools.NProperty): + """rest - the rest of a list""" + which = 'rest' + want = 'list' +class text_item_delimiters(aetools.NProperty): + """text item delimiters - the text item delimiters of a string""" + which = 'txdl' + want = 'list' +class AppleScript(aetools.NProperty): + """AppleScript - the top-level script object""" + which = 'ascr' + want = 'scpt' + +applications = application + +app = application + +class version(aetools.ComponentItem): + """version - a version value""" + want = 'vers' + +class writing_code_info(aetools.ComponentItem): + """writing code info - Script code and language code of text run""" + want = 'citl' +class script_code(aetools.NProperty): + """script code - the script code for the text""" + which = 'pscd' + want = 'shor' +class language_code(aetools.NProperty): + """language code - the language code for the text""" + which = 'plcd' + want = 'shor' + +writing_code_infos = writing_code_info +_empty_ae_name._propdict = { +} +_empty_ae_name._elemdict = { +} +upper_case._propdict = { +} +upper_case._elemdict = { +} +machines._propdict = { +} +machines._elemdict = { +} +zones._propdict = { +} +zones._elemdict = { +} +seconds._propdict = { +} +seconds._elemdict = { +} +item._propdict = { + 'id' : id, +} +item._elemdict = { +} +text_items._propdict = { +} +text_items._elemdict = { +} +date._propdict = { + 'weekday' : weekday, + 'month' : month, + 'day' : day, + 'year' : year, + 'time' : time, + 'date_string' : date_string, + 'time_string' : time_string, +} +date._elemdict = { +} +month._propdict = { +} +month._elemdict = { +} +January._propdict = { +} +January._elemdict = { +} +February._propdict = { +} +February._elemdict = { +} +March._propdict = { +} +March._elemdict = { +} +April._propdict = { +} +April._elemdict = { +} +May._propdict = { +} +May._elemdict = { +} +June._propdict = { +} +June._elemdict = { +} +July._propdict = { +} +July._elemdict = { +} +August._propdict = { +} +August._elemdict = { +} +September._propdict = { +} +September._elemdict = { +} +October._propdict = { +} +October._elemdict = { +} +November._propdict = { +} +November._elemdict = { +} +December._propdict = { +} +December._elemdict = { +} +weekday._propdict = { +} +weekday._elemdict = { +} +Sunday._propdict = { +} +Sunday._elemdict = { +} +Monday._propdict = { +} +Monday._elemdict = { +} +Tuesday._propdict = { +} +Tuesday._elemdict = { +} +Wednesday._propdict = { +} +Wednesday._elemdict = { +} +Thursday._propdict = { +} +Thursday._elemdict = { +} +Friday._propdict = { +} +Friday._elemdict = { +} +Saturday._propdict = { +} +Saturday._elemdict = { +} +RGB_color._propdict = { +} +RGB_color._elemdict = { +} +integer._propdict = { +} +integer._elemdict = { +} +boolean._propdict = { +} +boolean._elemdict = { +} +real._propdict = { +} +real._elemdict = { +} +list._propdict = { + 'length' : length, +} +list._elemdict = { +} +linked_list._propdict = { + 'length' : length, +} +linked_list._elemdict = { +} +vector._propdict = { + 'length' : length, +} +vector._elemdict = { +} +record._propdict = { +} +record._elemdict = { +} +script._propdict = { + 'parent' : parent, +} +script._elemdict = { +} +string._propdict = { +} +string._elemdict = { +} +styled_text._propdict = { +} +styled_text._elemdict = { +} +number._propdict = { +} +number._elemdict = { +} +_class._propdict = { + 'inherits' : inherits, +} +_class._elemdict = { +} +event._propdict = { +} +event._elemdict = { +} +property._propdict = { +} +property._elemdict = { +} +constant._propdict = { +} +constant._elemdict = { +} +preposition._propdict = { +} +preposition._elemdict = { +} +key._propdict = { +} +key._elemdict = { +} +picture._propdict = { +} +picture._elemdict = { +} +reference._propdict = { +} +reference._elemdict = { +} +data._propdict = { +} +data._elemdict = { +} +handler._propdict = { +} +handler._elemdict = { +} +list_or_record._propdict = { +} +list_or_record._elemdict = { +} +list_or_string._propdict = { +} +list_or_string._elemdict = { +} +list_2c__record_or_text._propdict = { +} +list_2c__record_or_text._elemdict = { +} +number_or_date._propdict = { +} +number_or_date._elemdict = { +} +number_2c__date_or_text._propdict = { +} +number_2c__date_or_text._elemdict = { +} +alias._propdict = { +} +alias._elemdict = { +} +application._propdict = { + 'result' : result, + 'space' : space, + '_return' : _return, + 'tab' : tab, + 'minutes' : minutes, + 'hours' : hours, + 'days' : days, + 'weeks' : weeks, + 'pi' : pi, + 'print_length' : print_length, + 'print_depth' : print_depth, + 'reverse' : reverse, + 'rest' : rest, + 'text_item_delimiters' : text_item_delimiters, + 'AppleScript' : AppleScript, +} +application._elemdict = { +} +version._propdict = { +} +version._elemdict = { +} +writing_code_info._propdict = { + 'script_code' : script_code, + 'language_code' : language_code, +} +writing_code_info._elemdict = { +} +_Enum_cons = { + 'case' : 'case', # case + 'diacriticals' : 'diac', # diacriticals + 'white_space' : 'whit', # white space + 'hyphens' : 'hyph', # hyphens + 'expansion' : 'expa', # expansion + 'punctuation' : 'punc', # punctuation + 'application_responses' : 'rmte', # remote event replies +} -# Class 'aliases' ('alis') -- 'every alias' -# property '' ('c@#!') 'type' -- '' [0] +_Enum_boov = { + 'true' : 'true', # the true boolean value + 'false' : 'fals', # the false boolean value +} -# Class 'application' ('capp') -- 'specifies global properties of AppleScript' -# property 'result' ('rslt') 'cobj' -- 'the last result of evaluation' [] -# property 'space' ('spac') 'TEXT' -- 'a space character' [] -# property 'return' ('ret ') 'TEXT' -- 'a return character' [] -# property 'tab' ('tab ') 'TEXT' -- 'a tab character' [] -# property 'minutes' ('min ') 'TEXT' -- 'the number of seconds in a minute' [] -# property 'hours' ('hour') 'TEXT' -- 'the number of seconds in an hour' [] -# property 'days' ('days') 'TEXT' -- 'the number of seconds in a day' [] -# property 'weeks' ('week') 'TEXT' -- 'the number of seconds in a week' [] -# property 'pi' ('pi ') 'doub' -- 'the constant pi' [] -# property 'print length' ('prln') 'long' -- 'the maximum length to print' [] -# property 'print depth' ('prdp') 'long' -- 'the maximum depth to print' [] -# property 'reverse' ('rvse') 'list' -- 'the reverse of a list' [] -# property 'rest' ('rest') 'list' -- 'the rest of a list' [] -# property 'text item delimiters' ('txdl') 'list' -- 'the text item delimiters of a string' [] -# property 'AppleScript' ('ascr') 'scpt' -- 'the top-level script object' [] +_Enum_misc = { + 'current_application' : 'cura', # the current application +} -# Class 'applications' ('capp') -- 'every application' -# property '' ('c@#!') 'type' -- '' [0] -# Class 'app' ('capp') -- 'Short name for application' +# +# Indices of types declared in this module +# +_classdeclarations = { + 'jan ' : January, + 'PICT' : picture, + 'vers' : version, + 'sat ' : Saturday, + 'nov ' : November, + 'ls ' : list_or_string, + 'list' : list, + 'cRGB' : RGB_color, + 'citl' : writing_code_info, + 'scnd' : seconds, + 'thu ' : Thursday, + 'keyf' : key, + 'sun ' : Sunday, + 'wkdy' : weekday, + 'rdat' : data, + 'vect' : vector, + 'obj ' : reference, + 'hand' : handler, + 'tue ' : Tuesday, + 'dec ' : December, + 'enum' : constant, + 'nd ' : number_or_date, + 'wed ' : Wednesday, + 'undf' : _empty_ae_name, + 'reco' : record, + 'capp' : application, + 'cobj' : item, + 'prep' : preposition, + 'mach' : machines, + 'citm' : text_items, + 'bool' : boolean, + 'nmbr' : number, + 'prop' : property, + 'long' : integer, + 'sep ' : September, + 'scpt' : script, + 'pcls' : _class, + 'alis' : alias, + 'mon ' : Monday, + 'lr ' : list_or_record, + 'jul ' : July, + 'fri ' : Friday, + 'oct ' : October, + 'mar ' : March, + 'ldt ' : date, + 'lrs ' : list_2c__record_or_text, + 'jun ' : June, + 'case' : upper_case, + 'doub' : real, + 'feb ' : February, + 'nds ' : number_2c__date_or_text, + 'llst' : linked_list, + 'STXT' : styled_text, + 'aug ' : August, + 'TEXT' : string, + 'apr ' : April, + 'may ' : May, + 'zone' : zones, + 'evnt' : event, + 'mnth' : month, +} -# Class 'version' ('vers') -- 'a version value' +_propdeclarations = { + 'day ' : day, + 'rslt' : result, + 'time' : time, + 'prln' : print_length, + 'prdp' : print_depth, + 'txdl' : text_item_delimiters, + 'days' : days, + 'spac' : space, + 'hour' : hours, + 'pscd' : script_code, + 'plcd' : language_code, + 'ret ' : _return, + 'tstr' : time_string, + 'tab ' : tab, + 'rvse' : reverse, + 'wkdy' : weekday, + 'ID ' : id, + 'c@#^' : inherits, + 'ascr' : AppleScript, + 'rest' : rest, + 'dstr' : date_string, + 'min ' : minutes, + 'pi ' : pi, + 'leng' : length, + 'year' : year, + 'pare' : parent, + 'mnth' : month, + 'week' : weeks, +} -# Class 'writing code info' ('citl') -- 'Script code and language code of text run' -# property 'script code' ('pscd') 'shor' -- 'the script code for the text' [] -# property 'language code' ('plcd') 'shor' -- 'the language code for the text' [] +_compdeclarations = { +} -# Class 'writing code infos' ('citl') -- 'every writing code info' -# property '' ('c@#!') 'type' -- '' [0] +_enumdeclarations = { + 'cons' : _Enum_cons, + 'boov' : _Enum_boov, + 'misc' : _Enum_misc, +} diff --git a/Mac/Lib/scripting/CodeWarrior_Standard_Suite.py b/Mac/Lib/scripting/CodeWarrior_Standard_Suite.py new file mode 100644 index 0000000..262cfce --- /dev/null +++ b/Mac/Lib/scripting/CodeWarrior_Standard_Suite.py @@ -0,0 +1,423 @@ +"""Suite CodeWarrior Standard Suite: Standard suite events supported by the CodeWarrior IDE. +Level 1, version 1 + +Generated from flap:Metrowerks:Metrowerks CodeWarrior:CodeWarrior IDE 2.0.1 +AETE/AEUT resource version 1/0, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'CWIE' + +class CodeWarrior_Standard_Suite: + + _argmap_close = { + 'saving' : 'savo', + 'saving_in' : 'kfil', + } + + def close(self, _object, _attributes={}, **_arguments): + """close: Close an object + Required argument: the object to close + Keyword argument saving: Specifies whether or not changes should be saved before closing + Keyword argument saving_in: the file in which to save the object + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'core' + _subcode = 'clos' + + aetools.keysubst(_arguments, self._argmap_close) + _arguments['----'] = _object + + aetools.enumsubst(_arguments, 'savo', _Enum_savo) + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_count = { + 'each' : 'kocl', + } + + def count(self, _object, _attributes={}, **_arguments): + """count: Return the number of elements of a particular class within an object + Required argument: the object whose elements are to be counted + Keyword argument each: the class of the elements to be counted. Keyword 'each' is optional in AppleScript + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: the number of elements + """ + _code = 'core' + _subcode = 'cnte' + + aetools.keysubst(_arguments, self._argmap_count) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_get = { + 'as' : 'rtyp', + } + + def get(self, _object, _attributes={}, **_arguments): + """get: Get the data for an object + Required argument: the object whose data is to be returned + Keyword argument as: the desired types for the data, in order of preference + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: The data from the object + """ + _code = 'core' + _subcode = 'getd' + + aetools.keysubst(_arguments, self._argmap_get) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_make = { + 'new' : 'kocl', + 'at' : 'insh', + 'with_data' : 'data', + 'with_properties' : 'prdt', + } + + def make(self, _no_object=None, _attributes={}, **_arguments): + """make: Make a new element + Keyword argument new: the class of the new element. Keyword 'new' is optional in AppleScript + Keyword argument at: the location at which to insert the element + Keyword argument with_data: the initial data for the element + Keyword argument with_properties: the initial values for the properties of the element + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: to the new object(s) + """ + _code = 'core' + _subcode = 'crel' + + aetools.keysubst(_arguments, self._argmap_make) + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def select(self, _object=None, _attributes={}, **_arguments): + """select: Select the specified object + Required argument: the object to select + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'misc' + _subcode = 'slct' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_set = { + 'to' : 'data', + } + + def set(self, _object, _attributes={}, **_arguments): + """set: Set an object's data + Required argument: the object to change + Keyword argument to: the new value + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'core' + _subcode = 'setd' + + aetools.keysubst(_arguments, self._argmap_set) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + +class application(aetools.ComponentItem): + """application - An application program""" + want = 'capp' +class user_interaction(aetools.NProperty): + """user interaction - User interaction level""" + which = 'inte' + want = 'Inte' +# element 'docu' as ['indx', 'name', 'rang'] +# element 'cwin' as ['indx', 'name', 'rang'] +# element 'Clas' as ['indx', 'name'] + +class character(aetools.ComponentItem): + """character - A character""" + want = 'cha ' +class offset(aetools.NProperty): + """offset - offset of a text object from the beginning of the document (first char has offset 1)""" + which = 'pOff' + want = 'long' +class length(aetools.NProperty): + """length - length in characters of this object""" + which = 'pLen' + want = 'long' + +class document(aetools.ComponentItem): + """document - A document""" + want = 'docu' +class file(aetools.NProperty): + """file - The file of the document""" + which = 'file' + want = 'fss ' +class index(aetools.NProperty): + """index - the number of the document""" + which = 'pidx' + want = 'long' +class mode(aetools.NProperty): + """mode - The documentıs open mode""" + which = 'Mode' + want = 'Mode' +class modified(aetools.NProperty): + """modified - Has the document been modified since the last save?""" + which = 'imod' + want = 'bool' +class name(aetools.NProperty): + """name - the title of the document""" + which = 'pnam' + want = 'itxt' +class selection(aetools.NProperty): + """selection - the selection visible to the user""" + which = 'sele' + want = 'csel' +class window(aetools.NProperty): + """window - The window of this document.""" + which = 'cwin' + want = 'cwin' +# element 'cha ' as ['indx', 'rele', 'rang', 'test'] +# element 'cins' as ['rele'] +# element 'clin' as ['indx', 'rang', 'rele'] +# element 'ctxt' as ['rang'] + +documents = document + +class file(aetools.ComponentItem): + """file - A file""" + want = 'file' + +files = file + +class insertion_point(aetools.ComponentItem): + """insertion point - An insertion location between two objects""" + want = 'cins' +# repeated property length length of text object (in characters) +# repeated property offset offset of a text object from the beginning of the document (first char has offset 1) + +class line(aetools.ComponentItem): + """line - Lines of text""" + want = 'clin' +# repeated property index index of a line object from the beginning of the document (first line has index 1) +# repeated property offset offset (in characters) of a line object from the beginning of the document +# repeated property length length in characters of this object +# element 'cha ' as ['indx', 'rang', 'rele'] + +lines = line + +class selection_2d_object(aetools.ComponentItem): + """selection-object - the selection visible to the user""" + want = 'csel' +class contents(aetools.NProperty): + """contents - the contents of the selection""" + which = 'pcnt' + want = 'type' +# repeated property length length of text object (in characters) +# repeated property offset offset of a text object from the beginning of the document (first char has offset 1) +# element 'cha ' as ['indx', 'rele', 'rang', 'test'] +# element 'clin' as ['indx', 'rang', 'rele'] +# element 'ctxt' as ['rang'] + +class text(aetools.ComponentItem): + """text - Text""" + want = 'ctxt' +# repeated property length length of text object (in characters) +# repeated property offset offset of a text object from the beginning of the document (first char has offset 1) +# element 'cha ' as ['indx', 'rele', 'rang'] +# element 'cins' as ['rele'] +# element 'clin' as ['indx', 'rang', 'rele'] +# element 'ctxt' as ['rang'] + +class window(aetools.ComponentItem): + """window - A window""" + want = 'cwin' +# repeated property name the title of the window +# repeated property index the number of the window +class bounds(aetools.NProperty): + """bounds - the boundary rectangle for the window""" + which = 'pbnd' + want = 'qdrt' +class document(aetools.NProperty): + """document - the document object that owns this window""" + which = 'docu' + want = 'docu' +class position(aetools.NProperty): + """position - upper left coordinates of window""" + which = 'ppos' + want = 'QDpt' +class visible(aetools.NProperty): + """visible - is the window visible?""" + which = 'pvis' + want = 'bool' +class zoomed(aetools.NProperty): + """zoomed - Is the window zoomed?""" + which = 'pzum' + want = 'bool' + +windows = window +# XXXX application element 'Clas' not found!! +application._propdict = { + 'user_interaction' : user_interaction, +} +application._elemdict = { + 'document' : document, + 'window' : window, +} +character._propdict = { + 'offset' : offset, + 'length' : length, +} +character._elemdict = { +} +document._propdict = { + 'file' : file, + 'index' : index, + 'mode' : mode, + 'modified' : modified, + 'name' : name, + 'selection' : selection, + 'window' : window, +} +document._elemdict = { + 'character' : character, + 'insertion_point' : insertion_point, + 'line' : line, + 'text' : text, +} +file._propdict = { +} +file._elemdict = { +} +insertion_point._propdict = { + 'length' : length, + 'offset' : offset, +} +insertion_point._elemdict = { +} +line._propdict = { + 'index' : index, + 'offset' : offset, + 'length' : length, +} +line._elemdict = { + 'character' : character, +} +selection_2d_object._propdict = { + 'contents' : contents, + 'length' : length, + 'offset' : offset, +} +selection_2d_object._elemdict = { + 'character' : character, + 'line' : line, + 'text' : text, +} +text._propdict = { + 'length' : length, + 'offset' : offset, +} +text._elemdict = { + 'character' : character, + 'insertion_point' : insertion_point, + 'line' : line, + 'text' : text, +} +window._propdict = { + 'name' : name, + 'index' : index, + 'bounds' : bounds, + 'document' : document, + 'position' : position, + 'visible' : visible, + 'zoomed' : zoomed, +} +window._elemdict = { +} +# XXXX enum savo not found!! + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'docu' : document, + 'cins' : insertion_point, + 'capp' : application, + 'ctxt' : text, + 'csel' : selection_2d_object, + 'clin' : line, + 'file' : file, + 'cwin' : window, + 'cha ' : character, +} + +_propdeclarations = { + 'pzum' : zoomed, + 'pOff' : offset, + 'pLen' : length, + 'pnam' : name, + 'file' : file, + 'pcnt' : contents, + 'cwin' : window, + 'ppos' : position, + 'pidx' : index, + 'docu' : document, + 'pvis' : visible, + 'sele' : selection, + 'pbnd' : bounds, + 'imod' : modified, + 'Mode' : mode, + 'inte' : user_interaction, +} + +_compdeclarations = { +} + +_enumdeclarations = { +} diff --git a/Mac/Lib/toolbox/Finder_7_0_Suite.py b/Mac/Lib/scripting/Finder_7_0_Suite.py index b6282dd..8d2f96b 100644 --- a/Mac/Lib/toolbox/Finder_7_0_Suite.py +++ b/Mac/Lib/scripting/Finder_7_0_Suite.py @@ -1,9 +1,10 @@ """Suite 7.0 Finder Suite: This is the original Finder suite. These events will be supported in the future, but the syntax may be changed in a future Finder release. Level 1, version 1 -Generated from flap:Systeemmap:Finder +Generated from flap:System Folder:Finder AETE/AEUT resource version 0/149, language 0, script 0 """ +# XXXX Hand edited to change the classname import aetools import MacOS @@ -308,3 +309,18 @@ class Finder_7_0_Suite: if _arguments.has_key('----'): return _arguments['----'] + +# +# Indices of types declared in this module +# +_classdeclarations = { +} + +_propdeclarations = { +} + +_compdeclarations = { +} + +_enumdeclarations = { +} diff --git a/Mac/Lib/scripting/Finder_Suite.py b/Mac/Lib/scripting/Finder_Suite.py new file mode 100644 index 0000000..293851b --- /dev/null +++ b/Mac/Lib/scripting/Finder_Suite.py @@ -0,0 +1,1632 @@ +"""Suite Finder Suite: Objects and Events for the Finder +Level 1, version 1 + +Generated from flap:System Folder:Extensions:Finder Scripting Extension +AETE/AEUT resource version 0/144, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'fndr' + +class Finder_Suite: + + _argmap_clean_up = { + 'by' : 'by ', + } + + def clean_up(self, _object, _attributes={}, **_arguments): + """clean up: Arrange items in window nicely + Required argument: the window to clean up + Keyword argument by: the order in which to clean up the objects + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'fclu' + + aetools.keysubst(_arguments, self._argmap_clean_up) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_computer = { + 'has' : 'has ', + } + + def computer(self, _object, _attributes={}, **_arguments): + """computer: Test attributes of this computer + Required argument: the attribute to test + Keyword argument has: test specific bits of response + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: the result of the query + """ + _code = 'fndr' + _subcode = 'gstl' + + aetools.keysubst(_arguments, self._argmap_computer) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def eject(self, _object=None, _attributes={}, **_arguments): + """eject: Eject the specified disk(s), or every ejectable disk if no parameter is specified + Required argument: the items to eject + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'ejct' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def empty(self, _object=None, _attributes={}, **_arguments): + """empty: Empty the trash + Required argument: ³empty² and ³empty trash² both do the same thing + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'empt' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def erase(self, _object, _attributes={}, **_arguments): + """erase: Erase the specified disk(s) + Required argument: the items to erase + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'fera' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_put_away = { + 'items' : 'fsel', + } + + def put_away(self, _object, _attributes={}, **_arguments): + """put away: Put away the specified object(s) + Required argument: the items to put away + Keyword argument items: DO NOT USE: provided for backwards compatibility with old event suite. Will be removed in future Finders + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: the object put away in its put-away location + """ + _code = 'fndr' + _subcode = 'ptwy' + + aetools.keysubst(_arguments, self._argmap_put_away) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def restart(self, _no_object=None, _attributes={}, **_arguments): + """restart: Restart the Macintosh + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'rest' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def reveal(self, _object, _attributes={}, **_arguments): + """reveal: Bring the specified object(s) into view + Required argument: the object to be made visible + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'misc' + _subcode = 'mvis' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def select(self, _object, _attributes={}, **_arguments): + """select: Select the specified object(s) + Required argument: the object to select + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'misc' + _subcode = 'slct' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def shut_down(self, _no_object=None, _attributes={}, **_arguments): + """shut down: Shut Down the Macintosh + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'shut' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def sleep(self, _no_object=None, _attributes={}, **_arguments): + """sleep: Sleep the Macintosh + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'snoz' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_sort = { + 'by' : 'by ', + } + + def sort(self, _object, _attributes={}, **_arguments): + """sort: Return the specified object(s) in a sorted list + Required argument: a list of finder objects to sort + Keyword argument by: the property to sort the items by + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: the sorted items in their new order + """ + _code = 'DATA' + _subcode = 'SORT' + + aetools.keysubst(_arguments, self._argmap_sort) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def update(self, _object, _attributes={}, **_arguments): + """update: Update the display of the specified object(s) to match their on-disk representation + Required argument: the item to update + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'fndr' + _subcode = 'fupd' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + +class accessory_process(aetools.ComponentItem): + """accessory process - A process launched from a desk accessory file""" + want = 'pcda' +class desk_accessory_file(aetools.NProperty): + """desk accessory file - the desk accessory file from which this process was launched""" + which = 'dafi' + want = 'obj ' + +accessory_processes = accessory_process + +class accessory_suitcase(aetools.ComponentItem): + """accessory suitcase - A desk accessory suitcase""" + want = 'dsut' +# element 'cobj' as ['indx', 'name'] + +accessory_suitcases = accessory_suitcase + +class alias_file(aetools.ComponentItem): + """alias file - An alias file (created with ³Make Alias²)""" + want = 'alia' +class original_item(aetools.NProperty): + """original item - the original item pointed to by the alias""" + which = 'orig' + want = 'obj ' + +alias_files = alias_file + +class application(aetools.ComponentItem): + """application - An application program""" + want = 'capp' +class about_this_macintosh(aetools.NProperty): + """about this macintosh - the ³About this Macintosh² dialog, and the list of running processes displayed in it""" + which = 'abbx' + want = 'obj ' +class apple_menu_items_folder(aetools.NProperty): + """apple menu items folder - the special folder ³Apple Menu Items,² the contents of which appear in the Apple menu""" + which = 'amnu' + want = 'obj ' +class clipboard(aetools.NProperty): + """clipboard - the Finder's clipboard window""" + which = 'pcli' + want = 'obj ' +class control_panels_folder(aetools.NProperty): + """control panels folder - the special folder ³Control Panels²""" + which = 'ctrl' + want = 'obj ' +class desktop(aetools.NProperty): + """desktop - the desktop""" + which = 'desk' + want = 'obj ' +class extensions_folder(aetools.NProperty): + """extensions folder - the special folder ³Extensions²""" + which = 'extn' + want = 'obj ' +class file_sharing(aetools.NProperty): + """file sharing - Is file sharing on?""" + which = 'fshr' + want = 'bool' +class fonts_folder(aetools.NProperty): + """fonts folder - the special folder ³Fonts²""" + which = 'ffnt' + want = 'obj ' +class frontmost(aetools.NProperty): + """frontmost - Is this the frontmost application?""" + which = 'pisf' + want = 'bool' +class insertion_location(aetools.NProperty): + """insertion location - the container that a new folder would appear in if ³New Folder² was selected""" + which = 'pins' + want = 'obj ' +class largest_free_block(aetools.NProperty): + """largest free block - the largest free block of process memory available to launch an application""" + which = 'mfre' + want = 'long' +class preferences_folder(aetools.NProperty): + """preferences folder - the special folder ³Preferences²""" + which = 'pref' + want = 'obj ' +class product_version(aetools.NProperty): + """product version - the version of the System software running on this Macintosh""" + which = 'ver2' + want = 'itxt' +class selection(aetools.NProperty): + """selection - the selection visible to the user""" + which = 'sele' + want = 'obj ' +class sharing_starting_up(aetools.NProperty): + """sharing starting up - Is File sharing in the process of starting up (still off, but soon to be on)?""" + which = 'fsup' + want = 'bool' +class shortcuts(aetools.NProperty): + """shortcuts - the ³Finder Shortcuts² item in the Finder's help menu""" + which = 'scut' + want = 'obj ' +class shutdown_items_folder(aetools.NProperty): + """shutdown items folder - the special folder ³Shutdown Items²""" + which = 'shdf' + want = 'obj ' +class startup_items_folder(aetools.NProperty): + """startup items folder - the special folder ³Startup Items²""" + which = 'strt' + want = 'obj ' +class system_folder(aetools.NProperty): + """system folder - the System folder""" + which = 'macs' + want = 'obj ' +class temporary_items_folder(aetools.NProperty): + """temporary items folder - the special folder ³Temporary Items² (invisible)""" + which = 'temp' + want = 'obj ' +class version(aetools.NProperty): + """version - the version of the Finder Scripting Extension""" + which = 'vers' + want = 'itxt' +class view_preferences(aetools.NProperty): + """view preferences - the view preferences control panel""" + which = 'pvwp' + want = 'obj ' +class visible(aetools.NProperty): + """visible - Is the Finder's layer visible?""" + which = 'pvis' + want = 'bool' +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name', 'ID '] +# element 'ctnr' as ['indx', 'name'] +# element 'cwnd' as ['indx', 'name'] +# element 'dwnd' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'cdsk' as ['indx', 'name'] +# element 'cdis' as ['indx', 'name', 'ID '] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'name', 'ID '] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'iwnd' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'swnd' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] +# element 'ctrs' as ['indx', 'name'] +# element 'cwin' as ['indx', 'name'] + +class application_file(aetools.ComponentItem): + """application file - An application's file on disk""" + want = 'appf' +class minimum_partition_size(aetools.NProperty): + """minimum partition size - the smallest memory size that the application can possibly be launched with""" + which = 'mprt' + want = 'long' +class partition_size(aetools.NProperty): + """partition size - the memory size that the application will be launched with""" + which = 'appt' + want = 'long' +class scriptable(aetools.NProperty): + """scriptable - Is this application high-level event aware (accepts open application, open document, print document, and quit)?""" + which = 'isab' + want = 'bool' +class suggested_partition_size(aetools.NProperty): + """suggested partition size - the memory size that the developer recommends that the application should be launched with""" + which = 'sprt' + want = 'long' + +application_files = application_file + +class application_process(aetools.ComponentItem): + """application process - A process launched from an application file""" + want = 'pcap' +class application_file(aetools.NProperty): + """application file - the application file from which this process was launched""" + which = 'appf' + want = 'appf' + +application_processes = application_process + +class container(aetools.ComponentItem): + """container - An item that contains other items""" + want = 'ctnr' +class completely_expanded(aetools.NProperty): + """completely expanded - Is the container and all of its children open in outline view?""" + which = 'pexc' + want = 'bool' +class container_window(aetools.NProperty): + """container window - the main window for the container""" + which = 'cwnd' + want = 'obj ' +class entire_contents(aetools.NProperty): + """entire contents - the entire contents of the container, including the contents of its children""" + which = 'ects' + want = 'obj ' +class expandable(aetools.NProperty): + """expandable - Is the container capable of being expanded into outline view?""" + which = 'pexa' + want = 'bool' +class expanded(aetools.NProperty): + """expanded - Is the container open in outline view?""" + which = 'pexp' + want = 'bool' +class previous_list_view(aetools.NProperty): + """previous list view - the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed)""" + which = 'svew' + want = 'long' +# repeated property selection the selection visible to the user +class view(aetools.NProperty): + """view - the view selected for the container (by icon, by name, by date, etc.)""" + which = 'pvew' + want = 'long' +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name'] +# element 'ctnr' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'name'] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] + +containers = container + +class container_window(aetools.ComponentItem): + """container window - A window that contains items""" + want = 'cwnd' +class container(aetools.NProperty): + """container - the container this window is opened from""" + which = 'ctnr' + want = 'obj ' +class disk(aetools.NProperty): + """disk - the disk on which the item this window was opened from is stored""" + which = 'cdis' + want = 'obj ' +class folder(aetools.NProperty): + """folder - the folder this window is opened from""" + which = 'cfol' + want = 'obj ' +class item(aetools.NProperty): + """item - the item this window is opened from""" + which = 'cobj' + want = 'obj ' +# repeated property previous_list_view the last non-icon view (by name, by date, etc.) selected for the window (forgotten as soon as the window is closed) +# repeated property selection the selection visible to the user +# repeated property view the view selected for the window (by icon, by name, by date, etc.) +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name'] +# element 'ctnr' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'name'] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] + +container_windows = container_window + +class content_space(aetools.ComponentItem): + """content space - All windows, including the desktop window (³Window² does not include the desktop window)""" + want = 'dwnd' + +content_spaces = content_space + +class control_panel(aetools.ComponentItem): + """control panel - A control panel""" + want = 'ccdv' +class calculate_folder_sizes(aetools.NProperty): + """calculate folder sizes - (Views) Are folder sizes calculated and displayed in Finder list windows?""" + which = 'sfsz' + want = 'bool' +class comment_heading(aetools.NProperty): + """comment heading - (Views) Are comments displayed in Finder list windows?""" + which = 'scom' + want = 'bool' +class date_heading(aetools.NProperty): + """date heading - (Views) Are modification dates displayed in Finder list windows?""" + which = 'sdat' + want = 'bool' +class disk_information_heading(aetools.NProperty): + """disk information heading - (Views) Is information about the volume displayed in Finder list windows?""" + which = 'sdin' + want = 'bool' +class icon_size(aetools.NProperty): + """icon size - (Views) the size of icons displayed in Finder list windows""" + which = 'lvis' + want = 'long' +class kind_heading(aetools.NProperty): + """kind heading - (Views) Are document kinds displayed in Finder list windows?""" + which = 'sknd' + want = 'bool' +class label_heading(aetools.NProperty): + """label heading - (Views) Are labels displayed in Finder list windows?""" + which = 'slbl' + want = 'bool' +class size_heading(aetools.NProperty): + """size heading - (Views) Are file sizes displayed in Finder list windows""" + which = 'ssiz' + want = 'bool' +class snap_to_grid(aetools.NProperty): + """snap to grid - (Views) Are items always snapped to the nearest grid point when they are moved?""" + which = 'fgrd' + want = 'bool' +class staggered_grid(aetools.NProperty): + """staggered grid - (Views) Are grid lines staggered?""" + which = 'fstg' + want = 'bool' +class version_heading(aetools.NProperty): + """version heading - (Views) Are file versions displayed in Finder list windows?""" + which = 'svrs' + want = 'bool' +class view_font(aetools.NProperty): + """view font - (Views) the id of the font used in Finder views""" + which = 'vfnt' + want = 'long' +class view_font_size(aetools.NProperty): + """view font size - (Views) the size of the font used in Finder views""" + which = 'vfsz' + want = 'long' + +control_panels = control_panel + +class desk_accessory_file(aetools.ComponentItem): + """desk accessory file - A desk accessory file""" + want = 'dafi' + +desk_accessory_files = desk_accessory_file + +class desktop_2d_object(aetools.ComponentItem): + """desktop-object - Desktop-object is the class of the ³desktop² object""" + want = 'cdsk' +class startup_disk(aetools.NProperty): + """startup disk - the startup disk""" + which = 'sdsk' + want = 'obj ' +class trash(aetools.NProperty): + """trash - the trash""" + which = 'trsh' + want = 'obj ' +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name'] +# element 'ctnr' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'name'] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] + +class disk(aetools.ComponentItem): + """disk - A disk""" + want = 'cdis' +class capacity(aetools.NProperty): + """capacity - the total number of bytes (free or used) on the disk""" + which = 'capa' + want = 'long' +class ejectable(aetools.NProperty): + """ejectable - Can the media can be ejected (floppies, CD's, syquest)?""" + which = 'isej' + want = 'bool' +class free_space(aetools.NProperty): + """free space - the number of free bytes left on the disk""" + which = 'frsp' + want = 'long' +class local_volume(aetools.NProperty): + """local volume - Is the media is a local volume (rather than a file server)?""" + which = 'isrv' + want = 'bool' +class startup(aetools.NProperty): + """startup - Is this disk the boot disk?""" + which = 'istd' + want = 'bool' +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name'] +# element 'ctnr' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'ID ', 'name'] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] + +disks = disk + +class document_file(aetools.ComponentItem): + """document file - A document file""" + want = 'docf' + +document_files = document_file + +class file(aetools.ComponentItem): + """file - A file""" + want = 'file' +class creator_type(aetools.NProperty): + """creator type - the OSType identifying the application that created the item""" + which = 'fcrt' + want = 'type' +class file_type(aetools.NProperty): + """file type - the OSType identifying the type of data contained in the item""" + which = 'fitp' + want = 'type' +class locked(aetools.NProperty): + """locked - Is the file locked?""" + which = 'islk' + want = 'bool' +# repeated property product_version the version of the product (visible at the top of the ³Get Info² dialog) +class stationery(aetools.NProperty): + """stationery - Is the item a stationery pad?""" + which = 'pspd' + want = 'bool' +# repeated property version the version of the file (visible at the bottom of the ³Get Info² dialog) + +files = file + +class folder(aetools.ComponentItem): + """folder - A folder""" + want = 'cfol' +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name'] +# element 'ctnr' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'name'] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] + +folders = folder + +class font_file(aetools.ComponentItem): + """font file - A font file""" + want = 'fntf' + +font_files = font_file + +class font_suitcase(aetools.ComponentItem): + """font suitcase - A font suitcase""" + want = 'fsut' +# element 'cobj' as ['indx', 'name'] + +font_suitcases = font_suitcase + +class group(aetools.ComponentItem): + """group - A Group in the Users and Groups control panel""" + want = 'sgrp' +class bounds(aetools.NProperty): + """bounds - the bounding rectangle of the group""" + which = 'pbnd' + want = 'qdrt' +class icon(aetools.NProperty): + """icon - the icon bitmap of the group""" + which = 'iimg' + want = 'ifam' +class label_index(aetools.NProperty): + """label index - the label of the group""" + which = 'labi' + want = 'long' +class name(aetools.NProperty): + """name - the name of the group""" + which = 'pnam' + want = 'itxt' +class position(aetools.NProperty): + """position - the position of the group within its parent window""" + which = 'posn' + want = 'QDpt' + +groups = group + +class information_window(aetools.ComponentItem): + """information window - An information window (opened by ³Get Info²)""" + want = 'iwnd' +class comment(aetools.NProperty): + """comment - the comment""" + which = 'comt' + want = 'itxt' +class creation_date(aetools.NProperty): + """creation date - the date on which the item was created""" + which = 'crtd' + want = 'ldt ' +# repeated property icon the icon bitmap of the item +# repeated property item the item this window was opened from +# repeated property locked Is the item locked? +# repeated property minimum_partition_size the smallest memory size that the application can possibly be launched with +class modification_date(aetools.NProperty): + """modification date - the date on which the item was last modified""" + which = 'modd' + want = 'ldt ' +# repeated property partition_size the memory size that the application will be launched with +class physical_size(aetools.NProperty): + """physical size - the actual space used by the item on disk""" + which = 'phys' + want = 'long' +# repeated property product_version the version of the product (visible at the top of the ³Get Info² dialog) +class size(aetools.NProperty): + """size - the logical size of the item""" + which = 'ptsz' + want = 'long' +# repeated property stationery Is the item a stationery pad? +# repeated property suggested_partition_size the memory size that the developer recommends that the application should be launched with +# repeated property version the version of the file (visible at the bottom of the ³Get Info² dialog) +class warn_before_emptying(aetools.NProperty): + """warn before emptying - Is a dialog displayed when ³Empty trash² is selected?""" + which = 'warn' + want = 'bool' + +information_windows = information_window + +class item(aetools.ComponentItem): + """item - An item""" + want = 'cobj' +# repeated property bounds the bounding rectangle of the item +# repeated property comment the comment displayed in the ³Get Info² window of the item +# repeated property container the container of this item +class content_space(aetools.NProperty): + """content space - the window that would open if the item was opened""" + which = 'dwnd' + want = 'dwnd' +# repeated property creation_date the date on which the item was created +# repeated property disk the disk on which the item is stored +# repeated property folder the folder in which the item is stored +# repeated property icon the icon bitmap of the item +class id(aetools.NProperty): + """id - an id that identifies the item""" + which = 'ID ' + want = 'long' +class information_window(aetools.NProperty): + """information window - the information window for the item""" + which = 'iwnd' + want = 'obj ' +class kind(aetools.NProperty): + """kind - the kind of the item""" + which = 'kind' + want = 'itxt' +# repeated property label_index the label of the item +# repeated property modification_date the date on which the item was last modified +# repeated property name the name of the item +# repeated property physical_size the actual space used by the item on disk +# repeated property position the position of the item within its parent window +class selected(aetools.NProperty): + """selected - Is the item selected?""" + which = 'issl' + want = 'bool' +# repeated property size the logical size of the item +class window(aetools.NProperty): + """window - the window that would open if the item was opened""" + which = 'cwin' + want = 'cwin' + +items = item + +class process(aetools.ComponentItem): + """process - A process running on this Macintosh""" + want = 'prcs' +# repeated property creator_type the creator type of this process +class file(aetools.NProperty): + """file - the file that launched this process""" + which = 'file' + want = 'obj ' +# repeated property file_type the file type of the file that launched this process +# repeated property frontmost Is this the frontmost application? +# repeated property name the name of the process +# repeated property partition_size the size of the partition that this application was launched with +class partition_space_used(aetools.NProperty): + """partition space used - the number of bytes currently used in this partition""" + which = 'pusd' + want = 'long' +class remote_events(aetools.NProperty): + """remote events - Will this process accepts remote events?""" + which = 'revt' + want = 'bool' +# repeated property scriptable Is this process high-level event aware (accepts open application, open document, print document, and quit)? +# repeated property visible Is this process' layer visible? + +processes = process + +class sharable_container(aetools.ComponentItem): + """sharable container - A container that may be shared (disks and folders)""" + want = 'sctr' +class exported(aetools.NProperty): + """exported - Is this folder a share point or inside a share point?""" + which = 'sexp' + want = 'bool' +class group(aetools.NProperty): + """group - the user or group that has special access to the folder""" + which = 'sgrp' + want = 'itxt' +class group_privileges(aetools.NProperty): + """group privileges - the see folders/see files/make changes privileges for the group""" + which = 'gppr' + want = 'priv' +class guest_privileges(aetools.NProperty): + """guest privileges - the see folders/see files/make changes privileges for everyone""" + which = 'gstp' + want = 'priv' +class inherited_privileges(aetools.NProperty): + """inherited privileges - Are the privileges of this item always the same as the container it is stored in?""" + which = 'iprv' + want = 'bool' +class mounted(aetools.NProperty): + """mounted - Is this folder mounted on another machine's desktop?""" + which = 'smou' + want = 'bool' +class owner(aetools.NProperty): + """owner - the user that owns this folder""" + which = 'sown' + want = 'itxt' +class owner_privileges(aetools.NProperty): + """owner privileges - the see folders/see files/make changes privileges for the owner""" + which = 'ownr' + want = 'priv' +class protected(aetools.NProperty): + """protected - Is container protected from being moved, renamed or deleted?""" + which = 'spro' + want = 'bool' +class shared(aetools.NProperty): + """shared - Is container a share point?""" + which = 'shar' + want = 'bool' +class sharing_window(aetools.NProperty): + """sharing window - the sharing window for the container""" + which = 'swnd' + want = 'obj ' +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name'] +# element 'ctnr' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'name'] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] + +sharable_containers = sharable_container + +class sharing_privileges(aetools.ComponentItem): + """sharing privileges - A set of sharing properties""" + want = 'priv' +class make_changes(aetools.NProperty): + """make changes - privileges to make changes""" + which = 'prvw' + want = 'bool' +class see_files(aetools.NProperty): + """see files - privileges to see files""" + which = 'prvr' + want = 'bool' +class see_folders(aetools.NProperty): + """see folders - privileges to see folders""" + which = 'prvs' + want = 'bool' + +class sharing_window(aetools.ComponentItem): + """sharing window - A sharing window (opened by ³Sharing²)""" + want = 'swnd' +# repeated property container the container that this window was opened from +# repeated property exported Is this container a share point or inside a share point? +# repeated property folder the folder that this window was opened from +# repeated property group the user or group that has special access to the container +# repeated property group_privileges the see folders/see files/make changes privileges for the group +# repeated property guest_privileges the see folders/see files/make changes privileges for everyone +# repeated property inherited_privileges Are the privileges of this item always the same as the container it is stored in? +# repeated property item the item that this window was opened from +# repeated property mounted Is this container mounted on another machine's desktop? +# repeated property owner the user that owns the container +# repeated property owner_privileges the see folders/see files/make changes privileges for the owner +# repeated property protected Is container protected from being moved, renamed or deleted? +class sharable_container(aetools.NProperty): + """sharable container - the sharable container that this window was opened from""" + which = 'sctr' + want = 'obj ' +# repeated property shared Is container a share point? + +sharing_windows = sharing_window + +class sound_file(aetools.ComponentItem): + """sound file - This class represents sound files""" + want = 'sndf' + +sound_files = sound_file + +class status_window(aetools.ComponentItem): + """status window - These windows are progress dialogs (copy window, rebuild desktop database, empty trash)""" + want = 'qwnd' + +status_windows = status_window + +class suitcase(aetools.ComponentItem): + """suitcase - A font or desk accessory suitcase""" + want = 'stcs' +# element 'cobj' as ['indx', 'name'] + +suitcases = suitcase + +class trash_2d_object(aetools.ComponentItem): + """trash-object - Trash-object is the class of the ³trash² object""" + want = 'ctrs' +# repeated property warn_before_emptying Is a dialog displayed when ³Empty trash² is selected? +# element 'dsut' as ['indx', 'name'] +# element 'alia' as ['indx', 'name'] +# element 'appf' as ['indx', 'name'] +# element 'ctnr' as ['indx', 'name'] +# element 'ccdv' as ['indx', 'name'] +# element 'dafi' as ['indx', 'name'] +# element 'docf' as ['indx', 'name'] +# element 'file' as ['indx', 'name'] +# element 'cfol' as ['indx', 'name'] +# element 'fntf' as ['indx', 'name'] +# element 'fsut' as ['indx', 'name'] +# element 'cobj' as ['indx', 'name'] +# element 'sctr' as ['indx', 'name'] +# element 'sndf' as ['indx', 'name'] +# element 'stcs' as ['indx', 'name'] + +class user(aetools.ComponentItem): + """user - A User in the Users and Groups control panel""" + want = 'cuse' +# repeated property bounds the bounding rectangle of the user +# repeated property icon the icon bitmap of the user +# repeated property label_index the label of the user +# repeated property name the name of the user +# repeated property position the position of the user within its parent window + +users = user + +class window(aetools.ComponentItem): + """window - A window""" + want = 'cwin' + +windows = window +accessory_process._propdict = { + 'desk_accessory_file' : desk_accessory_file, +} +accessory_process._elemdict = { +} +accessory_suitcase._propdict = { +} +accessory_suitcase._elemdict = { + 'item' : item, +} +alias_file._propdict = { + 'original_item' : original_item, +} +alias_file._elemdict = { +} +application._propdict = { + 'about_this_macintosh' : about_this_macintosh, + 'apple_menu_items_folder' : apple_menu_items_folder, + 'clipboard' : clipboard, + 'control_panels_folder' : control_panels_folder, + 'desktop' : desktop, + 'extensions_folder' : extensions_folder, + 'file_sharing' : file_sharing, + 'fonts_folder' : fonts_folder, + 'frontmost' : frontmost, + 'insertion_location' : insertion_location, + 'largest_free_block' : largest_free_block, + 'preferences_folder' : preferences_folder, + 'product_version' : product_version, + 'selection' : selection, + 'sharing_starting_up' : sharing_starting_up, + 'shortcuts' : shortcuts, + 'shutdown_items_folder' : shutdown_items_folder, + 'startup_items_folder' : startup_items_folder, + 'system_folder' : system_folder, + 'temporary_items_folder' : temporary_items_folder, + 'version' : version, + 'view_preferences' : view_preferences, + 'visible' : visible, +} +application._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'container_window' : container_window, + 'content_space' : content_space, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'desktop_2d_object' : desktop_2d_object, + 'disk' : disk, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'information_window' : information_window, + 'item' : item, + 'sharable_container' : sharable_container, + 'sharing_window' : sharing_window, + 'sound_file' : sound_file, + 'suitcase' : suitcase, + 'trash_2d_object' : trash_2d_object, + 'window' : window, +} +application_file._propdict = { + 'minimum_partition_size' : minimum_partition_size, + 'partition_size' : partition_size, + 'scriptable' : scriptable, + 'suggested_partition_size' : suggested_partition_size, +} +application_file._elemdict = { +} +application_process._propdict = { + 'application_file' : application_file, +} +application_process._elemdict = { +} +container._propdict = { + 'completely_expanded' : completely_expanded, + 'container_window' : container_window, + 'entire_contents' : entire_contents, + 'expandable' : expandable, + 'expanded' : expanded, + 'previous_list_view' : previous_list_view, + 'selection' : selection, + 'view' : view, +} +container._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'item' : item, + 'sharable_container' : sharable_container, + 'sound_file' : sound_file, + 'suitcase' : suitcase, +} +container_window._propdict = { + 'container' : container, + 'disk' : disk, + 'folder' : folder, + 'item' : item, + 'previous_list_view' : previous_list_view, + 'selection' : selection, + 'view' : view, +} +container_window._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'item' : item, + 'sharable_container' : sharable_container, + 'sound_file' : sound_file, + 'suitcase' : suitcase, +} +content_space._propdict = { +} +content_space._elemdict = { +} +control_panel._propdict = { + 'calculate_folder_sizes' : calculate_folder_sizes, + 'comment_heading' : comment_heading, + 'date_heading' : date_heading, + 'disk_information_heading' : disk_information_heading, + 'icon_size' : icon_size, + 'kind_heading' : kind_heading, + 'label_heading' : label_heading, + 'size_heading' : size_heading, + 'snap_to_grid' : snap_to_grid, + 'staggered_grid' : staggered_grid, + 'version_heading' : version_heading, + 'view_font' : view_font, + 'view_font_size' : view_font_size, +} +control_panel._elemdict = { +} +desk_accessory_file._propdict = { +} +desk_accessory_file._elemdict = { +} +desktop_2d_object._propdict = { + 'startup_disk' : startup_disk, + 'trash' : trash, +} +desktop_2d_object._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'item' : item, + 'sharable_container' : sharable_container, + 'sound_file' : sound_file, + 'suitcase' : suitcase, +} +disk._propdict = { + 'capacity' : capacity, + 'ejectable' : ejectable, + 'free_space' : free_space, + 'local_volume' : local_volume, + 'startup' : startup, +} +disk._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'item' : item, + 'sharable_container' : sharable_container, + 'sound_file' : sound_file, + 'suitcase' : suitcase, +} +document_file._propdict = { +} +document_file._elemdict = { +} +file._propdict = { + 'creator_type' : creator_type, + 'file_type' : file_type, + 'locked' : locked, + 'product_version' : product_version, + 'stationery' : stationery, + 'version' : version, +} +file._elemdict = { +} +folder._propdict = { +} +folder._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'item' : item, + 'sharable_container' : sharable_container, + 'sound_file' : sound_file, + 'suitcase' : suitcase, +} +font_file._propdict = { +} +font_file._elemdict = { +} +font_suitcase._propdict = { +} +font_suitcase._elemdict = { + 'item' : item, +} +group._propdict = { + 'bounds' : bounds, + 'icon' : icon, + 'label_index' : label_index, + 'name' : name, + 'position' : position, +} +group._elemdict = { +} +information_window._propdict = { + 'comment' : comment, + 'creation_date' : creation_date, + 'icon' : icon, + 'item' : item, + 'locked' : locked, + 'minimum_partition_size' : minimum_partition_size, + 'modification_date' : modification_date, + 'partition_size' : partition_size, + 'physical_size' : physical_size, + 'product_version' : product_version, + 'size' : size, + 'stationery' : stationery, + 'suggested_partition_size' : suggested_partition_size, + 'version' : version, + 'warn_before_emptying' : warn_before_emptying, +} +information_window._elemdict = { +} +item._propdict = { + 'bounds' : bounds, + 'comment' : comment, + 'container' : container, + 'content_space' : content_space, + 'creation_date' : creation_date, + 'disk' : disk, + 'folder' : folder, + 'icon' : icon, + 'id' : id, + 'information_window' : information_window, + 'kind' : kind, + 'label_index' : label_index, + 'modification_date' : modification_date, + 'name' : name, + 'physical_size' : physical_size, + 'position' : position, + 'selected' : selected, + 'size' : size, + 'window' : window, +} +item._elemdict = { +} +process._propdict = { + 'creator_type' : creator_type, + 'file' : file, + 'file_type' : file_type, + 'frontmost' : frontmost, + 'name' : name, + 'partition_size' : partition_size, + 'partition_space_used' : partition_space_used, + 'remote_events' : remote_events, + 'scriptable' : scriptable, + 'visible' : visible, +} +process._elemdict = { +} +sharable_container._propdict = { + 'exported' : exported, + 'group' : group, + 'group_privileges' : group_privileges, + 'guest_privileges' : guest_privileges, + 'inherited_privileges' : inherited_privileges, + 'mounted' : mounted, + 'owner' : owner, + 'owner_privileges' : owner_privileges, + 'protected' : protected, + 'shared' : shared, + 'sharing_window' : sharing_window, +} +sharable_container._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'item' : item, + 'sharable_container' : sharable_container, + 'sound_file' : sound_file, + 'suitcase' : suitcase, +} +sharing_privileges._propdict = { + 'make_changes' : make_changes, + 'see_files' : see_files, + 'see_folders' : see_folders, +} +sharing_privileges._elemdict = { +} +sharing_window._propdict = { + 'container' : container, + 'exported' : exported, + 'folder' : folder, + 'group' : group, + 'group_privileges' : group_privileges, + 'guest_privileges' : guest_privileges, + 'inherited_privileges' : inherited_privileges, + 'item' : item, + 'mounted' : mounted, + 'owner' : owner, + 'owner_privileges' : owner_privileges, + 'protected' : protected, + 'sharable_container' : sharable_container, + 'shared' : shared, +} +sharing_window._elemdict = { +} +sound_file._propdict = { +} +sound_file._elemdict = { +} +status_window._propdict = { +} +status_window._elemdict = { +} +suitcase._propdict = { +} +suitcase._elemdict = { + 'item' : item, +} +trash_2d_object._propdict = { + 'warn_before_emptying' : warn_before_emptying, +} +trash_2d_object._elemdict = { + 'accessory_suitcase' : accessory_suitcase, + 'alias_file' : alias_file, + 'application_file' : application_file, + 'container' : container, + 'control_panel' : control_panel, + 'desk_accessory_file' : desk_accessory_file, + 'document_file' : document_file, + 'file' : file, + 'folder' : folder, + 'font_file' : font_file, + 'font_suitcase' : font_suitcase, + 'item' : item, + 'sharable_container' : sharable_container, + 'sound_file' : sound_file, + 'suitcase' : suitcase, +} +user._propdict = { + 'bounds' : bounds, + 'icon' : icon, + 'label_index' : label_index, + 'name' : name, + 'position' : position, +} +user._elemdict = { +} +window._propdict = { +} +window._elemdict = { +} +_Enum_vwby = { + 'conflicts' : 'cflc', # + 'existing_items' : 'exsi', # + 'small_icon' : 'smic', # + 'all' : 'kyal', # +} + +_Enum_gsen = { + 'CPU' : 'proc', # + 'FPU' : 'fpu ', # + 'MMU' : 'mmu ', # + 'hardware' : 'hdwr', # + 'operating_system' : 'os ', # + 'sound_system' : 'snd ', # + 'memory_available' : 'lram', # + 'memory_installed' : 'ram ', # +} + + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'swnd' : sharing_window, + 'iwnd' : information_window, + 'ccdv' : control_panel, + 'cwnd' : container_window, + 'appf' : application_file, + 'prcs' : process, + 'cdis' : disk, + 'cwin' : window, + 'dafi' : desk_accessory_file, + 'sgrp' : group, + 'alia' : alias_file, + 'ctnr' : container, + 'qwnd' : status_window, + 'fsut' : font_suitcase, + 'sndf' : sound_file, + 'priv' : sharing_privileges, + 'dwnd' : content_space, + 'pcap' : application_process, + 'stcs' : suitcase, + 'ctrs' : trash_2d_object, + 'file' : file, + 'cobj' : item, + 'cuse' : user, + 'cdsk' : desktop_2d_object, + 'pcda' : accessory_process, + 'capp' : application, + 'cfol' : folder, + 'sctr' : sharable_container, + 'dsut' : accessory_suitcase, + 'docf' : document_file, + 'fntf' : font_file, +} + +_propdeclarations = { + 'swnd' : sharing_window, + 'fshr' : file_sharing, + 'pvew' : view, + 'pusd' : partition_space_used, + 'fcrt' : creator_type, + 'sdat' : date_heading, + 'sdin' : disk_information_heading, + 'strt' : startup_items_folder, + 'issl' : selected, + 'pvis' : visible, + 'slbl' : label_heading, + 'cdis' : disk, + 'fitp' : file_type, + 'smou' : mounted, + 'pexc' : completely_expanded, + 'pexa' : expandable, + 'comt' : comment, + 'svew' : previous_list_view, + 'labi' : label_index, + 'sctr' : sharable_container, + 'sknd' : kind_heading, + 'trsh' : trash, + 'fstg' : staggered_grid, + 'macs' : system_folder, + 'vfsz' : view_font_size, + 'pexp' : expanded, + 'posn' : position, + 'cobj' : item, + 'amnu' : apple_menu_items_folder, + 'pvwp' : view_preferences, + 'desk' : desktop, + 'pnam' : name, + 'mprt' : minimum_partition_size, + 'cwin' : window, + 'pcli' : clipboard, + 'spro' : protected, + 'islk' : locked, + 'sprt' : suggested_partition_size, + 'pisf' : frontmost, + 'sele' : selection, + 'ffnt' : fonts_folder, + 'istd' : startup, + 'sdsk' : startup_disk, + 'shar' : shared, + 'dwnd' : content_space, + 'file' : file, + 'sfsz' : calculate_folder_sizes, + 'ID ' : id, + 'prvw' : make_changes, + 'iprv' : inherited_privileges, + 'prvr' : see_files, + 'prvs' : see_folders, + 'phys' : physical_size, + 'ctrl' : control_panels_folder, + 'cwnd' : container_window, + 'extn' : extensions_folder, + 'ownr' : owner_privileges, + 'modd' : modification_date, + 'dafi' : desk_accessory_file, + 'sgrp' : group, + 'temp' : temporary_items_folder, + 'fgrd' : snap_to_grid, + 'ptsz' : size, + 'kind' : kind, + 'scut' : shortcuts, + 'abbx' : about_this_macintosh, + 'ctnr' : container, + 'isej' : ejectable, + 'svrs' : version_heading, + 'vfnt' : view_font, + 'warn' : warn_before_emptying, + 'isab' : scriptable, + 'isrv' : local_volume, + 'lvis' : icon_size, + 'shdf' : shutdown_items_folder, + 'gstp' : guest_privileges, + 'vers' : version, + 'appf' : application_file, + 'iwnd' : information_window, + 'revt' : remote_events, + 'frsp' : free_space, + 'capa' : capacity, + 'pspd' : stationery, + 'scom' : comment_heading, + 'pins' : insertion_location, + 'orig' : original_item, + 'pref' : preferences_folder, + 'fsup' : sharing_starting_up, + 'sown' : owner, + 'cfol' : folder, + 'mfre' : largest_free_block, + 'ssiz' : size_heading, + 'iimg' : icon, + 'appt' : partition_size, + 'gppr' : group_privileges, + 'pbnd' : bounds, + 'ects' : entire_contents, + 'sexp' : exported, + 'ver2' : product_version, + 'crtd' : creation_date, +} + +_compdeclarations = { +} + +_enumdeclarations = { + 'gsen' : _Enum_gsen, + 'vwby' : _Enum_vwby, +} diff --git a/Mac/Lib/scripting/Metrowerks_Shell_Suite.py b/Mac/Lib/scripting/Metrowerks_Shell_Suite.py new file mode 100644 index 0000000..93a8930 --- /dev/null +++ b/Mac/Lib/scripting/Metrowerks_Shell_Suite.py @@ -0,0 +1,1820 @@ +"""Suite Metrowerks Shell Suite: Events supported by the Metrowerks Project Shell +Level 1, version 1 + +Generated from flap:Metrowerks:Metrowerks CodeWarrior:CodeWarrior IDE 2.0.1 +AETE/AEUT resource version 1/0, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'MMPR' + +class Metrowerks_Shell_Suite: + + _argmap_Add_Files = { + 'To_Segment' : 'Segm', + } + + def Add_Files(self, _object, _attributes={}, **_arguments): + """Add Files: Add the specified file(s) to the current project + Required argument: List of files to add + Keyword argument To_Segment: Segment number into which to add the file(s) + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Error code for each file added + """ + _code = 'MMPR' + _subcode = 'AddF' + + aetools.keysubst(_arguments, self._argmap_Add_Files) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Check_Syntax = { + 'ExternalEditor' : 'Errs', + } + + def Check_Syntax(self, _object, _attributes={}, **_arguments): + """Check Syntax: Check the syntax of the specified file(s) + Required argument: List of files to check the syntax of + Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Errors for each file whose syntax was checked + """ + _code = 'MMPR' + _subcode = 'Chek' + + aetools.keysubst(_arguments, self._argmap_Check_Syntax) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Close_Project(self, _no_object=None, _attributes={}, **_arguments): + """Close Project: Close the current project + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'ClsP' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Close_Window = { + 'Saving' : 'savo', + } + + def Close_Window(self, _object, _attributes={}, **_arguments): + """Close Window: Close the windows showing the specified files + Required argument: The files to close + Keyword argument Saving: Whether to save changes to each file before closing its window + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'ClsW' + + aetools.keysubst(_arguments, self._argmap_Close_Window) + _arguments['----'] = _object + + aetools.enumsubst(_arguments, 'savo', _Enum_savo) + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Compile = { + 'ExternalEditor' : 'Errs', + } + + def Compile(self, _object, _attributes={}, **_arguments): + """Compile: Compile the specified file(s) + Required argument: List of files to compile + Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Errors for each file compiled + """ + _code = 'MMPR' + _subcode = 'Comp' + + aetools.keysubst(_arguments, self._argmap_Compile) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Create_Project = { + 'from_stationery' : 'Tmpl', + } + + def Create_Project(self, _object, _attributes={}, **_arguments): + """Create Project: Create a new project file + Required argument: New project file specifier + Keyword argument from_stationery: undocumented, typecode 'alis' + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'NewP' + + aetools.keysubst(_arguments, self._argmap_Create_Project) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Get_Definition(self, _object, _attributes={}, **_arguments): + """Get Definition: Returns the location(s) of a globally scoped function or data object. + Required argument: undocumented, typecode 'TEXT' + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: undocumented, typecode 'FDef' + """ + _code = 'MMPR' + _subcode = 'GDef' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Get_Open_Documents(self, _no_object=None, _attributes={}, **_arguments): + """Get Open Documents: Returns the list of open documents + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: The list of documents + """ + _code = 'MMPR' + _subcode = 'GDoc' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Get_Preferences = { + 'of' : 'PRec', + 'from_panel' : 'PNam', + } + + def Get_Preferences(self, _no_object=None, _attributes={}, **_arguments): + """Get Preferences: Get the preferences for the current project + Keyword argument of: Names of requested preferences + Keyword argument from_panel: Name of the preference panel + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: The requested preferences + """ + _code = 'MMPR' + _subcode = 'Gref' + + aetools.keysubst(_arguments, self._argmap_Get_Preferences) + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Get_Project_File = { + 'Segment' : 'Segm', + } + + def Get_Project_File(self, _object, _attributes={}, **_arguments): + """Get Project File: Returns a description of a file in the project window. + Required argument: The index of the file within its segment. + Keyword argument Segment: The segment containing the file. + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: undocumented, typecode 'SrcF' + """ + _code = 'MMPR' + _subcode = 'GFil' + + aetools.keysubst(_arguments, self._argmap_Get_Project_File) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Get_Project_Specifier(self, _no_object=None, _attributes={}, **_arguments): + """Get Project Specifier: Return the File Specifier for the current project + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: File Specifier for the current project + """ + _code = 'MMPR' + _subcode = 'GetP' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Get_Segments(self, _no_object=None, _attributes={}, **_arguments): + """Get Segments: Returns a description of each segment in the project. + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: undocumented, typecode 'Seg ' + """ + _code = 'MMPR' + _subcode = 'GSeg' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Goto_Function(self, _object, _attributes={}, **_arguments): + """Goto Function: Goto Specified Function Name + Required argument: undocumented, typecode 'TEXT' + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'GoFn' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Goto_Line(self, _object, _attributes={}, **_arguments): + """Goto Line: Goto Specified Line Number + Required argument: The requested source file line number + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'GoLn' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Is_In_Project(self, _object, _attributes={}, **_arguments): + """Is In Project: Whether or not the specified file(s) is in the current project + Required argument: List of files to check for project membership + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Result code for each file + """ + _code = 'MMPR' + _subcode = 'FInP' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Make_Project = { + 'ExternalEditor' : 'Errs', + } + + def Make_Project(self, _no_object=None, _attributes={}, **_arguments): + """Make Project: Make the current project + Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Errors that occurred while making the project + """ + _code = 'MMPR' + _subcode = 'Make' + + aetools.keysubst(_arguments, self._argmap_Make_Project) + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Precompile = { + 'Saving_As' : 'Targ', + 'ExternalEditor' : 'Errs', + } + + def Precompile(self, _object, _attributes={}, **_arguments): + """Precompile: Precompile the specified file to the specified destination file + Required argument: File to precompile + Keyword argument Saving_As: Destination file for precompiled header + Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Errors for the precompiled file + """ + _code = 'MMPR' + _subcode = 'PreC' + + aetools.keysubst(_arguments, self._argmap_Precompile) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Preprocess = { + 'ExternalEditor' : 'Errs', + } + + def Preprocess(self, _object, _attributes={}, **_arguments): + """Preprocess: Preprocesses the specified file(s) + Required argument: undocumented, typecode 'alis' + Keyword argument ExternalEditor: undocumented, typecode 'bool' + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Errors for each preprocessed file + """ + _code = 'MMPR' + _subcode = 'PreP' + + aetools.keysubst(_arguments, self._argmap_Preprocess) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Remove_Binaries(self, _no_object=None, _attributes={}, **_arguments): + """Remove Binaries: Remove the binary object code from the current project + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'RemB' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Remove_Files(self, _object, _attributes={}, **_arguments): + """Remove Files: Remove the specified file(s) from the current project + Required argument: List of files to remove + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Error code for each file removed + """ + _code = 'MMPR' + _subcode = 'RemF' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Reset_File_Paths(self, _no_object=None, _attributes={}, **_arguments): + """Reset File Paths: Resets access paths for all files belonging to open project. + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'ReFP' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Run_Project = { + 'ExternalEditor' : 'Errs', + 'SourceDebugger' : 'DeBg', + } + + def Run_Project(self, _no_object=None, _attributes={}, **_arguments): + """Run Project: Run the current project + Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? + Keyword argument SourceDebugger: Run the application under the control of the source-level debugger + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Errors that occurred when running the project + """ + _code = 'MMPR' + _subcode = 'RunP' + + aetools.keysubst(_arguments, self._argmap_Run_Project) + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Save_Error_Window_As(self, _object, _attributes={}, **_arguments): + """Save Error Window As: Saves the Errors & Warnings window as a text file + Required argument: Destination file for Save Message Window As + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'SvMs' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Set_Current_Target(self, _object=None, _attributes={}, **_arguments): + """Set Current Target: Set the current target of a project + Required argument: Name of target + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'STrg' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Set_Default_Project(self, _object, _attributes={}, **_arguments): + """Set Default Project: Set the default project + Required argument: Name of project + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'SDfP' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Set_Modification_Date = { + 'to' : 'MDat', + } + + def Set_Modification_Date(self, _object, _attributes={}, **_arguments): + """Set Modification Date: Changes the internal modification date of the specified file(s) + Required argument: List of files + Keyword argument to: undocumented, typecode 'ldt ' + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Error code for each modified file + """ + _code = 'MMPR' + _subcode = 'SMod' + + aetools.keysubst(_arguments, self._argmap_Set_Modification_Date) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Set_Preferences = { + 'of_panel' : 'PNam', + 'to' : 'PRec', + } + + def Set_Preferences(self, _no_object=None, _attributes={}, **_arguments): + """Set Preferences: Set the preferences for the current project + Keyword argument of_panel: Name of the preference panel + Keyword argument to: Preferences settings + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'Pref' + + aetools.keysubst(_arguments, self._argmap_Set_Preferences) + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Set_Project_File = { + 'to' : 'SrcS', + } + + def Set_Project_File(self, _object, _attributes={}, **_arguments): + """Set Project File: Changes the settings for a given file in the project. + Required argument: The name of the file + Keyword argument to: The new settings for the file + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'SFil' + + aetools.keysubst(_arguments, self._argmap_Set_Project_File) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Set_Segment = { + 'to' : 'Segm', + } + + def Set_Segment(self, _object, _attributes={}, **_arguments): + """Set Segment: Changes the name and attributes of a segment. + Required argument: The segment to change + Keyword argument to: The new name and attributes for the segment. + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'SSeg' + + aetools.keysubst(_arguments, self._argmap_Set_Segment) + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Touch(self, _object, _attributes={}, **_arguments): + """Touch: Force recompilation of the specified file(s) + Required argument: List of files to compile + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Error code for each file touched + """ + _code = 'MMPR' + _subcode = 'Toch' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + _argmap_Update_Project = { + 'ExternalEditor' : 'Errs', + } + + def Update_Project(self, _no_object=None, _attributes={}, **_arguments): + """Update Project: Update the current project + Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: Errors that occurred while updating the project + """ + _code = 'MMPR' + _subcode = 'UpdP' + + aetools.keysubst(_arguments, self._argmap_Update_Project) + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Open_browser(self, _object, _attributes={}, **_arguments): + """Open browser: Display a class, member function, or data member object in a single class browser window + Required argument: an AE object reference + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'MMPR' + _subcode = 'Brow' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Get_nonsimple_classes(self, _no_object=None, _attributes={}, **_arguments): + """Get nonsimple classes: Returns an alphabetical list of classes with member functions, bases classes, or subclasses + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: undocumented, typecode 'list' + """ + _code = 'MMPR' + _subcode = 'NsCl' + + if _arguments: raise TypeError, 'No optional args expected' + if _no_object != None: raise TypeError, 'No direct arg expected' + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def Get_member_function_names(self, _object, _attributes={}, **_arguments): + """Get member function names: Returns a list containing the names of all the member functions of a class object + Required argument: must be a class object + Keyword argument _attributes: AppleEvent attribute dictionary + Returns: undocumented, typecode 'list' + """ + _code = 'MMPR' + _subcode = 'MbFN' + + if _arguments: raise TypeError, 'No optional args expected' + _arguments['----'] = _object + + + _reply, _arguments, _attributes = self.send(_code, _subcode, + _arguments, _attributes) + if _arguments.has_key('errn'): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + +class Access_Paths(aetools.ComponentItem): + """Access Paths - Contains the definitions of a projectıs access (search) paths.""" + want = 'PATH' +class User_Paths(aetools.NProperty): + """User Paths - To add an access path for the source files.""" + which = 'PA01' + want = 'PInf' +class System_Paths(aetools.NProperty): + """System Paths - To add an access path for the include files. (Not supported in Pascal)""" + which = 'PA03' + want = 'PInf' +class Always_Full_Search(aetools.NProperty): + """Always Full Search - To force the compiler to search for system includes like it searches for user includes.""" + which = 'PA02' + want = 'bool' + +class Editor(aetools.ComponentItem): + """Editor - """ + want = 'EDTR' +class Flash_delay(aetools.NProperty): + """Flash delay - The amount of time, in sixtieths of a second, the editor highlights a matching bracket.""" + which = 'ED01' + want = 'long' +class Dynamic_scroll(aetools.NProperty): + """Dynamic scroll - Display a windowıs contents as you move the scroll box.""" + which = 'ED02' + want = 'bool' +class Balance(aetools.NProperty): + """Balance - Flash the matching opening bracket when you type a closing bracket.""" + which = 'ED03' + want = 'bool' +class Use_Drag__26__Drop_Editing(aetools.NProperty): + """Use Drag & Drop Editing - Use Drag & Drop text editing.""" + which = 'ED04' + want = 'bool' +class Save_on_update(aetools.NProperty): + """Save on update - Save all editor windows automatically when you choose the Update command.""" + which = 'ED05' + want = 'bool' +class Sort_Function_Popup(aetools.NProperty): + """Sort Function Popup - """ + which = 'ED06' + want = 'bool' +class Use_Multiple_Undo(aetools.NProperty): + """Use Multiple Undo - """ + which = 'ED07' + want = 'bool' +class Remember_font(aetools.NProperty): + """Remember font - Display a source file with its own font settings.""" + which = 'ED08' + want = 'bool' +class Remember_selection(aetools.NProperty): + """Remember selection - Restore the previous selection in a file when you open it.""" + which = 'ED09' + want = 'bool' +class Remember_window(aetools.NProperty): + """Remember window - Restore the last size and position for a source file window when you open it.""" + which = 'ED10' + want = 'bool' +class Main_Text_Color(aetools.NProperty): + """Main Text Color - Main, default, color for text.""" + which = 'ED12' + want = 'cRGB' +class Background_Color(aetools.NProperty): + """Background Color - Color of the background of editor windows.""" + which = 'ED13' + want = 'cRGB' +class Context_Popup_Delay(aetools.NProperty): + """Context Popup Delay - The amount of time, in sixtieths of a second, before the context popup is displayed if you click and hold on a browser symbol.""" + which = 'ED14' + want = 'bool' + +class Syntax_Coloring(aetools.ComponentItem): + """Syntax Coloring - """ + want = 'SNTX' +class Syntax_coloring(aetools.NProperty): + """Syntax coloring - Mark keywords and comments with color.""" + which = 'GH01' + want = 'bool' +class Comment_color(aetools.NProperty): + """Comment color - The color for comments.""" + which = 'GH02' + want = 'cRGB' +class Keyword_color(aetools.NProperty): + """Keyword color - The color for language keywords.""" + which = 'GH03' + want = 'cRGB' +class String_color(aetools.NProperty): + """String color - The color for strings.""" + which = 'GH04' + want = 'cRGB' +class Custom_color_1(aetools.NProperty): + """Custom color 1 - The color for the first set of custom keywords.""" + which = 'GH05' + want = 'cRGB' +class Custom_color_2(aetools.NProperty): + """Custom color 2 - The color for the second set custom keywords.""" + which = 'GH06' + want = 'cRGB' +class Custom_color_3(aetools.NProperty): + """Custom color 3 - The color for the third set of custom keywords.""" + which = 'GH07' + want = 'cRGB' +class Custom_color_4(aetools.NProperty): + """Custom color 4 - The color for the fourth set of custom keywords.""" + which = 'GH08' + want = 'cRGB' + +class Custom_Keywords(aetools.ComponentItem): + """Custom Keywords - """ + want = 'CUKW' +class Custom_color_1(aetools.NProperty): + """Custom color 1 - The color for the first set of custom keywords.""" + which = 'KW01' + want = 'cRGB' +class Custom_color_2(aetools.NProperty): + """Custom color 2 - The color for the second set custom keywords.""" + which = 'KW02' + want = 'cRGB' +class Custom_color_3(aetools.NProperty): + """Custom color 3 - The color for the third set of custom keywords.""" + which = 'KW03' + want = 'cRGB' +class Custom_color_4(aetools.NProperty): + """Custom color 4 - The color for the fourth set of custom keywords.""" + which = 'KW04' + want = 'cRGB' + +class Browser_Coloring(aetools.ComponentItem): + """Browser Coloring - Colors for Browser symbols.""" + want = 'BRKW' +class Browser_Keywords(aetools.NProperty): + """Browser Keywords - Mark Browser symbols with color.""" + which = 'BW00' + want = 'bool' +class Classes_Color(aetools.NProperty): + """Classes Color - The color for classes.""" + which = 'BW01' + want = 'cRGB' +class Constants_Color(aetools.NProperty): + """Constants Color - The color for constants.""" + which = 'BW02' + want = 'cRGB' +class Enums_Color(aetools.NProperty): + """Enums Color - The color for enums.""" + which = 'BW03' + want = 'cRGB' +class Functions_Color(aetools.NProperty): + """Functions Color - Set color for functions.""" + which = 'BW04' + want = 'cRGB' +class Globals_Color(aetools.NProperty): + """Globals Color - The color for globals""" + which = 'BW05' + want = 'cRGB' +class Macros_Color(aetools.NProperty): + """Macros Color - The color for macros.""" + which = 'BW06' + want = 'cRGB' +class Templates_Color(aetools.NProperty): + """Templates Color - Set color for templates.""" + which = 'BW07' + want = 'cRGB' +class Typedefs_Color(aetools.NProperty): + """Typedefs Color - The color for typedefs.""" + which = 'BW08' + want = 'cRGB' + +class Error_Information(aetools.ComponentItem): + """Error Information - Describes a single error or warning from the compiler or the linker.""" + want = 'ErrM' +class kind(aetools.NProperty): + """kind - The type of error or warning.""" + which = 'ErrT' + want = 'ErrT' +class message(aetools.NProperty): + """message - The error or warning message.""" + which = 'ErrS' + want = 'TEXT' +class disk_file(aetools.NProperty): + """disk file - The file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).""" + which = 'file' + want = 'fss ' +class lineNumber(aetools.NProperty): + """lineNumber - The line in the file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).""" + which = 'ErrL' + want = 'long' + +class Extras(aetools.ComponentItem): + """Extras - """ + want = 'GXTR' +class Completion_sound(aetools.NProperty): + """Completion sound - Play a sound when finished a Bring Up To Date or Make command.""" + which = 'EX01' + want = 'bool' +class Success_sound(aetools.NProperty): + """Success sound - The sound CodeWarrior plays when it successfully finishes a Bring Up To Date or Make command.""" + which = 'EX02' + want = 'TEXT' +class Failure_sound(aetools.NProperty): + """Failure sound - The sound CodeWarrior plays when it cannot finish a Bring Up To Date or Make command.""" + which = 'EX03' + want = 'TEXT' +class Full_screen_zoom(aetools.NProperty): + """Full screen zoom - Zoom windows to the full screen width.""" + which = 'EX07' + want = 'bool' +class External_reference(aetools.NProperty): + """External reference - Which on-line function reference to use.""" + which = 'EX08' + want = 'RefP' +class Use_Script_Menu(aetools.NProperty): + """Use Script Menu - Controls the use of the AppleScript menu""" + which = 'EX12' + want = 'bool' +class Use_Editor_Extensions(aetools.NProperty): + """Use Editor Extensions - Controls the use of the Editor Extensions menu""" + which = 'EX10' + want = 'bool' +class Use_External_Editor(aetools.NProperty): + """Use External Editor - Controls whether CodeWarrior uses its own integrated editor or an external application for editing text files.""" + which = 'EX11' + want = 'bool' +class Honor_Projector_State_for_Projects(aetools.NProperty): + """Honor Projector State for Projects - Controls whether CodeWarrior opens files set to read-only by Projector.""" + which = 'EX13' + want = 'bool' + +class Build_Extras(aetools.ComponentItem): + """Build Extras - """ + want = 'LXTR' +class Browser_active(aetools.NProperty): + """Browser active - Allow the collection of browser information.""" + which = 'EX09' + want = 'bool' +class Modification_date_caching(aetools.NProperty): + """Modification date caching - """ + which = 'EX04' + want = 'bool' +class Multiprocessing_Compilation(aetools.NProperty): + """Multiprocessing Compilation - """ + which = 'EX14' + want = 'bool' +class Show_ToolServer_Menu(aetools.NProperty): + """Show ToolServer Menu - """ + which = 'EX18' + want = 'bool' +class Enable_Automatic_Toolbar_Help(aetools.NProperty): + """Enable Automatic Toolbar Help - """ + which = 'EX19' + want = 'bool' +class Include_File_Cache_Size__28_K_29_(aetools.NProperty): + """Include File Cache Size (K) - """ + which = 'EX15' + want = 'long' +class Recent_Documents(aetools.NProperty): + """Recent Documents - """ + which = 'EX16' + want = 'shor' +class Recent_Projects(aetools.NProperty): + """Recent Projects - """ + which = 'EX17' + want = 'shor' + +class File_Mappings(aetools.ComponentItem): + """File Mappings - Mappings of extensions & file types to compilers""" + want = 'FLMP' +class mappings(aetools.NProperty): + """mappings - """ + which = 'FMps' + want = 'FMap' + +class Font(aetools.ComponentItem): + """Font - """ + want = 'mFNT' +class Auto_indent(aetools.NProperty): + """Auto indent - Indent new lines automatically.""" + which = 'FN01' + want = 'bool' +class Tab_size(aetools.NProperty): + """Tab size - """ + which = 'FN02' + want = 'shor' +class Text_font(aetools.NProperty): + """Text font - The font used in editing windows.""" + which = 'ptxf' + want = 'TEXT' +class Text_size(aetools.NProperty): + """Text size - The size of the text in an editing window.""" + which = 'ptps' + want = 'shor' + +class Function_Information(aetools.ComponentItem): + """Function Information - Describes the location of any function or global data definition within the current project.""" + want = 'FDef' +# repeated property disk_file The location on disk of the file containing the definition. +# repeated property lineNumber The line number where the definition begins. + +class Path_Information(aetools.ComponentItem): + """Path Information - Contains all of the parameters that describe an access path.""" + want = 'PInf' +class name(aetools.NProperty): + """name - The actual path name.""" + which = 'pnam' + want = 'TEXT' +class recursive(aetools.NProperty): + """recursive - Will the path be searched recursively? (Default is true)""" + which = 'Recu' + want = 'bool' +class origin(aetools.NProperty): + """origin - """ + which = 'Orig' + want = 'PPrm' + +class ProjectFile(aetools.ComponentItem): + """ProjectFile - A file contained in a project""" + want = 'SrcF' +class filetype(aetools.NProperty): + """filetype - What kind of file is this ?""" + which = 'SrcT' + want = 'SrcT' +# repeated property name The fileıs name +# repeated property disk_file The fileıs location on disk +class codesize(aetools.NProperty): + """codesize - The size of this fileıs code.""" + which = 'CSiz' + want = 'long' +class datasize(aetools.NProperty): + """datasize - The size of this fileıs data.""" + which = 'DSiz' + want = 'long' +class up_to_date(aetools.NProperty): + """up to date - Has the file been compiled since its last modification ?""" + which = 'UpTD' + want = 'bool' +class symbols(aetools.NProperty): + """symbols - Are debugging symbols generated for this file ?""" + which = 'SymG' + want = 'bool' +class weak_link(aetools.NProperty): + """weak link - Is this file imported weakly into the project ? [PowerPC only]""" + which = 'Weak' + want = 'bool' +class initialize_before(aetools.NProperty): + """initialize before - Intiailize the shared library before the main application.""" + which = 'Bfor' + want = 'bool' +class includes(aetools.NProperty): + """includes - """ + which = 'IncF' + want = 'fss ' + +class Segment(aetools.ComponentItem): + """Segment - A segment or group in the project""" + want = 'Seg ' +# repeated property name +class filecount(aetools.NProperty): + """filecount - """ + which = 'NumF' + want = 'shor' +class preloaded(aetools.NProperty): + """preloaded - Is the segment preloaded ? [68K only]""" + which = 'Prel' + want = 'bool' +class protected(aetools.NProperty): + """protected - Is the segment protected ? [68K only]""" + which = 'Prot' + want = 'bool' +class locked(aetools.NProperty): + """locked - Is the segment locked ? [68K only]""" + which = 'PLck' + want = 'bool' +class purgeable(aetools.NProperty): + """purgeable - Is the segment purgeable ? [68K only]""" + which = 'Purg' + want = 'bool' +class system_heap(aetools.NProperty): + """system heap - Is the segment loaded into the system heap ? [68K only]""" + which = 'SysH' + want = 'bool' + +class Target_Settings(aetools.ComponentItem): + """Target Settings - Contains the definitions of a projectıs target.""" + want = 'TARG' +class Linker(aetools.NProperty): + """Linker - The name of the current linker.""" + which = 'TA01' + want = 'TEXT' +class Post_Linker(aetools.NProperty): + """Post Linker - """ + which = 'TA09' + want = 'TEXT' +class Target_Name(aetools.NProperty): + """Target Name - """ + which = 'TA10' + want = 'TEXT' +class Output_Directory_Path(aetools.NProperty): + """Output Directory Path - """ + which = 'TA11' + want = 'TEXT' +class Output_Directory_Origin(aetools.NProperty): + """Output Directory Origin - """ + which = 'TA12' + want = 'PPrm' + +class File_Mapping(aetools.ComponentItem): + """File Mapping - """ + want = 'FMap' +class File_Type(aetools.NProperty): + """File Type - """ + which = 'PR04' + want = 'TEXT' +class Extension(aetools.NProperty): + """Extension - """ + which = 'TA02' + want = 'TEXT' +class Precompiled(aetools.NProperty): + """Precompiled - """ + which = 'TA03' + want = 'bool' +class Resource_File(aetools.NProperty): + """Resource File - """ + which = 'TA04' + want = 'bool' +class Launchable(aetools.NProperty): + """Launchable - """ + which = 'TA05' + want = 'bool' +class Ignored_by_Make(aetools.NProperty): + """Ignored by Make - """ + which = 'TA06' + want = 'bool' +class Compiler(aetools.NProperty): + """Compiler - """ + which = 'TA07' + want = 'TEXT' + +class _class(aetools.ComponentItem): + """class - A class, struct, or record type in the current project""" + want = 'Clas' +# repeated property name +class language(aetools.NProperty): + """language - Implementation language of this class""" + which = 'Lang' + want = 'Lang' +class declaration_file(aetools.NProperty): + """declaration file - Source file containing the class declaration""" + which = 'DcFl' + want = 'fss ' +class declaration_start_offset(aetools.NProperty): + """declaration start offset - Start of class declaration source code""" + which = 'DcSt' + want = 'long' +class declaration_end_offset(aetools.NProperty): + """declaration end offset - End of class declaration""" + which = 'DcEn' + want = 'long' +class subclasses(aetools.NProperty): + """subclasses - the immediate subclasses of this class""" + which = 'SubC' + want = 'Clas' +class all_subclasses(aetools.NProperty): + """all subclasses - the classes directly or indirectly derived from this class""" + which = 'SubA' + want = 'Clas' +# element 'BsCl' as ['indx'] +# element 'MbFn' as ['indx', 'name'] +# element 'DtMb' as ['indx', 'name'] + +classes = _class + +class member_function(aetools.ComponentItem): + """member function - A class member function or method.""" + want = 'MbFn' +# repeated property name +class access(aetools.NProperty): + """access - """ + which = 'Acce' + want = 'Acce' +class virtual(aetools.NProperty): + """virtual - """ + which = 'Virt' + want = 'bool' +class static(aetools.NProperty): + """static - """ + which = 'Stat' + want = 'bool' +# repeated property declaration_file Source file containing the member function declaration +# repeated property declaration_start_offset start of member function declaration source code +# repeated property declaration_end_offset end of member function declaration +class implementation_file(aetools.NProperty): + """implementation file - Source file containing the member function definition""" + which = 'DfFl' + want = 'fss ' +class implementation_start_offset(aetools.NProperty): + """implementation start offset - start of member function definition source code""" + which = 'DfSt' + want = 'long' +class implementation_end_offset(aetools.NProperty): + """implementation end offset - end of member function definition""" + which = 'DfEn' + want = 'long' + +member_functions = member_function + +class data_member(aetools.ComponentItem): + """data member - A class data member or field""" + want = 'DtMb' +# repeated property name +# repeated property access +# repeated property static +# repeated property declaration_start_offset +# repeated property declaration_end_offset + +data_members = data_member + +class base_class(aetools.ComponentItem): + """base class - A base class or super class of a class""" + want = 'BsCl' +class _class(aetools.NProperty): + """class - The class object corresponding to this base class""" + which = 'Clas' + want = 'obj ' +# repeated property access +# repeated property virtual + +base_classes = base_class + +class browser_catalog(aetools.ComponentItem): + """browser catalog - The browser symbol catalog for the current project""" + want = 'Cata' +# element 'Clas' as ['indx', 'name'] + +class VCS_Setup(aetools.ComponentItem): + """VCS Setup - The version control system perferences.""" + want = 'VCSs' +class VCS_Active(aetools.NProperty): + """VCS Active - Use Version Control""" + which = 'VC01' + want = 'bool' +class Connection_Method(aetools.NProperty): + """Connection Method - Name of Version Control System to use.""" + which = 'VC02' + want = 'TEXT' +class Username(aetools.NProperty): + """Username - The user name for the VCS.""" + which = 'VC03' + want = 'TEXT' +class Password(aetools.NProperty): + """Password - The password for the VCS.""" + which = 'VC04' + want = 'TEXT' +class Auto_Connect(aetools.NProperty): + """Auto Connect - Automatically connect to database when starting.""" + which = 'VC05' + want = 'bool' +class Store_Password(aetools.NProperty): + """Store Password - Store the password.""" + which = 'VC06' + want = 'bool' +class Always_Prompt(aetools.NProperty): + """Always Prompt - Always show login dialog""" + which = 'VC07' + want = 'bool' +class Mount_Volume(aetools.NProperty): + """Mount Volume - Attempt to mount the database volume if it isn't available.""" + which = 'VC08' + want = 'bool' +class Database_Path(aetools.NProperty): + """Database Path - Path to the VCS database.""" + which = 'VC09' + want = 'PInf' +class Local_Root(aetools.NProperty): + """Local Root - Path to the local directory to checkout to.""" + which = 'VC10' + want = 'PInf' +Access_Paths._propdict = { + 'User_Paths' : User_Paths, + 'System_Paths' : System_Paths, + 'Always_Full_Search' : Always_Full_Search, +} +Access_Paths._elemdict = { +} +Editor._propdict = { + 'Flash_delay' : Flash_delay, + 'Dynamic_scroll' : Dynamic_scroll, + 'Balance' : Balance, + 'Use_Drag__26__Drop_Editing' : Use_Drag__26__Drop_Editing, + 'Save_on_update' : Save_on_update, + 'Sort_Function_Popup' : Sort_Function_Popup, + 'Use_Multiple_Undo' : Use_Multiple_Undo, + 'Remember_font' : Remember_font, + 'Remember_selection' : Remember_selection, + 'Remember_window' : Remember_window, + 'Main_Text_Color' : Main_Text_Color, + 'Background_Color' : Background_Color, + 'Context_Popup_Delay' : Context_Popup_Delay, +} +Editor._elemdict = { +} +Syntax_Coloring._propdict = { + 'Syntax_coloring' : Syntax_coloring, + 'Comment_color' : Comment_color, + 'Keyword_color' : Keyword_color, + 'String_color' : String_color, + 'Custom_color_1' : Custom_color_1, + 'Custom_color_2' : Custom_color_2, + 'Custom_color_3' : Custom_color_3, + 'Custom_color_4' : Custom_color_4, +} +Syntax_Coloring._elemdict = { +} +Custom_Keywords._propdict = { + 'Custom_color_1' : Custom_color_1, + 'Custom_color_2' : Custom_color_2, + 'Custom_color_3' : Custom_color_3, + 'Custom_color_4' : Custom_color_4, +} +Custom_Keywords._elemdict = { +} +Browser_Coloring._propdict = { + 'Browser_Keywords' : Browser_Keywords, + 'Classes_Color' : Classes_Color, + 'Constants_Color' : Constants_Color, + 'Enums_Color' : Enums_Color, + 'Functions_Color' : Functions_Color, + 'Globals_Color' : Globals_Color, + 'Macros_Color' : Macros_Color, + 'Templates_Color' : Templates_Color, + 'Typedefs_Color' : Typedefs_Color, +} +Browser_Coloring._elemdict = { +} +Error_Information._propdict = { + 'kind' : kind, + 'message' : message, + 'disk_file' : disk_file, + 'lineNumber' : lineNumber, +} +Error_Information._elemdict = { +} +Extras._propdict = { + 'Completion_sound' : Completion_sound, + 'Success_sound' : Success_sound, + 'Failure_sound' : Failure_sound, + 'Full_screen_zoom' : Full_screen_zoom, + 'External_reference' : External_reference, + 'Use_Script_Menu' : Use_Script_Menu, + 'Use_Editor_Extensions' : Use_Editor_Extensions, + 'Use_External_Editor' : Use_External_Editor, + 'Honor_Projector_State_for_Projects' : Honor_Projector_State_for_Projects, +} +Extras._elemdict = { +} +Build_Extras._propdict = { + 'Browser_active' : Browser_active, + 'Modification_date_caching' : Modification_date_caching, + 'Multiprocessing_Compilation' : Multiprocessing_Compilation, + 'Show_ToolServer_Menu' : Show_ToolServer_Menu, + 'Enable_Automatic_Toolbar_Help' : Enable_Automatic_Toolbar_Help, + 'Include_File_Cache_Size__28_K_29_' : Include_File_Cache_Size__28_K_29_, + 'Recent_Documents' : Recent_Documents, + 'Recent_Projects' : Recent_Projects, +} +Build_Extras._elemdict = { +} +File_Mappings._propdict = { + 'mappings' : mappings, +} +File_Mappings._elemdict = { +} +Font._propdict = { + 'Auto_indent' : Auto_indent, + 'Tab_size' : Tab_size, + 'Text_font' : Text_font, + 'Text_size' : Text_size, +} +Font._elemdict = { +} +Function_Information._propdict = { + 'disk_file' : disk_file, + 'lineNumber' : lineNumber, +} +Function_Information._elemdict = { +} +Path_Information._propdict = { + 'name' : name, + 'recursive' : recursive, + 'origin' : origin, +} +Path_Information._elemdict = { +} +ProjectFile._propdict = { + 'filetype' : filetype, + 'name' : name, + 'disk_file' : disk_file, + 'codesize' : codesize, + 'datasize' : datasize, + 'up_to_date' : up_to_date, + 'symbols' : symbols, + 'weak_link' : weak_link, + 'initialize_before' : initialize_before, + 'includes' : includes, +} +ProjectFile._elemdict = { +} +Segment._propdict = { + 'name' : name, + 'filecount' : filecount, + 'preloaded' : preloaded, + 'protected' : protected, + 'locked' : locked, + 'purgeable' : purgeable, + 'system_heap' : system_heap, +} +Segment._elemdict = { +} +Target_Settings._propdict = { + 'Linker' : Linker, + 'Post_Linker' : Post_Linker, + 'Target_Name' : Target_Name, + 'Output_Directory_Path' : Output_Directory_Path, + 'Output_Directory_Origin' : Output_Directory_Origin, +} +Target_Settings._elemdict = { +} +File_Mapping._propdict = { + 'File_Type' : File_Type, + 'Extension' : Extension, + 'Precompiled' : Precompiled, + 'Resource_File' : Resource_File, + 'Launchable' : Launchable, + 'Ignored_by_Make' : Ignored_by_Make, + 'Compiler' : Compiler, +} +File_Mapping._elemdict = { +} +_class._propdict = { + 'name' : name, + 'language' : language, + 'declaration_file' : declaration_file, + 'declaration_start_offset' : declaration_start_offset, + 'declaration_end_offset' : declaration_end_offset, + 'subclasses' : subclasses, + 'all_subclasses' : all_subclasses, +} +_class._elemdict = { + 'base_class' : base_class, + 'member_function' : member_function, + 'data_member' : data_member, +} +member_function._propdict = { + 'name' : name, + 'access' : access, + 'virtual' : virtual, + 'static' : static, + 'declaration_file' : declaration_file, + 'declaration_start_offset' : declaration_start_offset, + 'declaration_end_offset' : declaration_end_offset, + 'implementation_file' : implementation_file, + 'implementation_start_offset' : implementation_start_offset, + 'implementation_end_offset' : implementation_end_offset, +} +member_function._elemdict = { +} +data_member._propdict = { + 'name' : name, + 'access' : access, + 'static' : static, + 'declaration_start_offset' : declaration_start_offset, + 'declaration_end_offset' : declaration_end_offset, +} +data_member._elemdict = { +} +base_class._propdict = { + '_class' : _class, + 'access' : access, + 'virtual' : virtual, +} +base_class._elemdict = { +} +browser_catalog._propdict = { +} +browser_catalog._elemdict = { + '_class' : _class, +} +VCS_Setup._propdict = { + 'VCS_Active' : VCS_Active, + 'Connection_Method' : Connection_Method, + 'Username' : Username, + 'Password' : Password, + 'Auto_Connect' : Auto_Connect, + 'Store_Password' : Store_Password, + 'Always_Prompt' : Always_Prompt, + 'Mount_Volume' : Mount_Volume, + 'Database_Path' : Database_Path, + 'Local_Root' : Local_Root, +} +VCS_Setup._elemdict = { +} +_Enum_savo = { + 'yes' : 'yes ', # Save changes + 'no' : 'no ', # Do not save changes + 'ask' : 'ask ', # Ask the user whether to save +} + +_Enum_ErrT = { + 'information' : 'ErIn', # + 'compiler_warning' : 'ErCW', # + 'compiler_error' : 'ErCE', # + 'definition' : 'ErDf', # + 'linker_warning' : 'ErLW', # + 'linker_error' : 'ErLE', # + 'find_result' : 'ErFn', # + 'generic_error' : 'ErGn', # +} + +_Enum_Mode = { + 'ReadWrite' : 'RdWr', # The file is open with read/write privileges + 'ReadOnly' : 'Read', # The file is open with read/only privileges + 'CheckedOut_ReadWrite' : 'CkRW', # The file is checked out with read/write privileges + 'CheckedOut_ReadOnly' : 'CkRO', # The file is checked out with read/only privileges + 'CheckedOut_ReadModify' : 'CkRM', # The file is checked out with read/modify privileges + 'Locked' : 'Lock', # The file is locked on disk + 'None' : 'None', # The file is new +} + +_Enum_SrcT = { + 'source' : 'FTxt', # A source file (.c, .cp, .p, etc). + 'unknown' : 'FUnk', # An unknown file type. +} + +_Enum_PPrm = { + 'absolute' : 'Abso', # An absolute path name, including volume name. + 'project_relative' : 'PRel', # A path relative to the current projectıs folder. + 'shell_relative' : 'SRel', # A path relative to the CodeWarrior folder. + 'system_relative' : 'YRel', # A path relative to the system folder +} + +_Enum_RefP = { + 'Think_Reference' : 'DanR', # + 'QuickView' : 'ALTV', # +} + +_Enum_Lang = { + 'C' : 'LC ', # + 'C_2b__2b_' : 'LC++', # + 'Pascal' : 'LP ', # + 'Object_Pascal' : 'LP++', # + 'Java' : 'LJav', # + 'Assembler' : 'LAsm', # + 'Unknown' : 'L? ', # +} + +_Enum_Acce = { + 'public' : 'Publ', # + 'protected' : 'Prot', # + 'private' : 'Priv', # +} + +_Enum_Inte = { + 'never_interact' : 'eNvr', # Never allow user interactions + 'interact_with_self' : 'eInS', # Allow user interaction only when an AppleEvent is sent from within CodeWarrior + 'interact_with_local' : 'eInL', # Allow user interaction when AppleEvents are sent from applications on the same machine (default) + 'interact_with_all' : 'eInA', # Allow user interaction from both local and remote AppleEvents +} + + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'LXTR' : Build_Extras, + 'Seg ' : Segment, + 'BsCl' : base_class, + 'PATH' : Access_Paths, + 'mFNT' : Font, + 'BRKW' : Browser_Coloring, + 'FLMP' : File_Mappings, + 'Cata' : browser_catalog, + 'SNTX' : Syntax_Coloring, + 'CUKW' : Custom_Keywords, + 'PInf' : Path_Information, + 'TARG' : Target_Settings, + 'FDef' : Function_Information, + 'EDTR' : Editor, + 'VCSs' : VCS_Setup, + 'ErrM' : Error_Information, + 'Clas' : _class, + 'SrcF' : ProjectFile, + 'GXTR' : Extras, + 'MbFn' : member_function, + 'DtMb' : data_member, + 'FMap' : File_Mapping, +} + +_propdeclarations = { + 'CSiz' : codesize, + 'DcEn' : declaration_end_offset, + 'FMps' : mappings, + 'VC02' : Connection_Method, + 'VC03' : Username, + 'TA02' : Extension, + 'UpTD' : up_to_date, + 'VC07' : Always_Prompt, + 'Virt' : virtual, + 'VC05' : Auto_Connect, + 'VC08' : Mount_Volume, + 'VC09' : Database_Path, + 'VC06' : Store_Password, + 'PA02' : Always_Full_Search, + 'PA03' : System_Paths, + 'Clas' : _class, + 'PA01' : User_Paths, + 'TA09' : Post_Linker, + 'Lang' : language, + 'VC10' : Local_Root, + 'EX09' : Browser_active, + 'GH08' : Custom_color_4, + 'DfFl' : implementation_file, + 'GH06' : Custom_color_2, + 'GH07' : Custom_color_3, + 'GH04' : String_color, + 'GH05' : Custom_color_1, + 'KW01' : Custom_color_1, + 'GH03' : Keyword_color, + 'KW03' : Custom_color_3, + 'KW02' : Custom_color_2, + 'BW02' : Constants_Color, + 'BW03' : Enums_Color, + 'BW00' : Browser_Keywords, + 'BW01' : Classes_Color, + 'BW06' : Macros_Color, + 'BW07' : Templates_Color, + 'BW04' : Functions_Color, + 'pnam' : name, + 'DfSt' : implementation_start_offset, + 'BW08' : Typedefs_Color, + 'PR04' : File_Type, + 'EX04' : Modification_date_caching, + 'EX07' : Full_screen_zoom, + 'PLck' : locked, + 'EX02' : Success_sound, + 'EX03' : Failure_sound, + 'TA06' : Ignored_by_Make, + 'TA07' : Compiler, + 'TA04' : Resource_File, + 'TA05' : Launchable, + 'EX08' : External_reference, + 'DSiz' : datasize, + 'TA01' : Linker, + 'VC04' : Password, + 'Bfor' : initialize_before, + 'SrcT' : filetype, + 'SysH' : system_heap, + 'GH01' : Syntax_coloring, + 'GH02' : Comment_color, + 'Prel' : preloaded, + 'Orig' : origin, + 'EX17' : Recent_Projects, + 'EX16' : Recent_Documents, + 'EX15' : Include_File_Cache_Size__28_K_29_, + 'EX14' : Multiprocessing_Compilation, + 'EX01' : Completion_sound, + 'EX12' : Use_Script_Menu, + 'EX11' : Use_External_Editor, + 'EX10' : Use_Editor_Extensions, + 'TA11' : Output_Directory_Path, + 'TA10' : Target_Name, + 'TA12' : Output_Directory_Origin, + 'EX19' : Enable_Automatic_Toolbar_Help, + 'EX18' : Show_ToolServer_Menu, + 'ErrT' : kind, + 'ptxf' : Text_font, + 'ErrS' : message, + 'SubA' : all_subclasses, + 'SubC' : subclasses, + 'ED08' : Remember_font, + 'ED09' : Remember_selection, + 'VC01' : VCS_Active, + 'ErrL' : lineNumber, + 'ED01' : Flash_delay, + 'ED02' : Dynamic_scroll, + 'ED03' : Balance, + 'ED04' : Use_Drag__26__Drop_Editing, + 'ED05' : Save_on_update, + 'ED06' : Sort_Function_Popup, + 'ED07' : Use_Multiple_Undo, + 'Recu' : recursive, + 'IncF' : includes, + 'file' : disk_file, + 'TA03' : Precompiled, + 'Weak' : weak_link, + 'DcSt' : declaration_start_offset, + 'ptps' : Text_size, + 'Stat' : static, + 'ED10' : Remember_window, + 'EX13' : Honor_Projector_State_for_Projects, + 'DfEn' : implementation_end_offset, + 'BW05' : Globals_Color, + 'FN01' : Auto_indent, + 'Purg' : purgeable, + 'NumF' : filecount, + 'Acce' : access, + 'Prot' : protected, + 'DcFl' : declaration_file, + 'KW04' : Custom_color_4, + 'ED13' : Background_Color, + 'ED12' : Main_Text_Color, + 'SymG' : symbols, + 'FN02' : Tab_size, + 'ED14' : Context_Popup_Delay, +} + +_compdeclarations = { +} + +_enumdeclarations = { + 'ErrT' : _Enum_ErrT, + 'PPrm' : _Enum_PPrm, + 'RefP' : _Enum_RefP, + 'Acce' : _Enum_Acce, + 'SrcT' : _Enum_SrcT, + 'Mode' : _Enum_Mode, + 'Inte' : _Enum_Inte, + 'savo' : _Enum_savo, + 'Lang' : _Enum_Lang, +} diff --git a/Mac/Lib/scripting/QuickDraw_Graphics_Suite.py b/Mac/Lib/scripting/QuickDraw_Graphics_Suite.py new file mode 100644 index 0000000..09244cb --- /dev/null +++ b/Mac/Lib/scripting/QuickDraw_Graphics_Suite.py @@ -0,0 +1,411 @@ +"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics +Level 1, version 1 + +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect +AETE/AEUT resource version 1/0, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'qdrw' + +class QuickDraw_Graphics_Suite: + + pass + + +class arc(aetools.ComponentItem): + """arc - An arc""" + want = 'carc' +class arc_angle(aetools.NProperty): + """arc angle - 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 _class(aetools.NProperty): + """class - the class""" + which = 'pcls' + want = 'type' +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' +class ordering(aetools.NProperty): + """ordering - the ordered list of graphic objects in the drawing area""" + which = 'gobs' + want = 'obj ' +class name(aetools.NProperty): + """name - the name""" + which = 'pnam' + want = 'itxt' +class default_location(aetools.NProperty): + """default location - the default location of each new graphic object""" + which = 'pnel' + want = 'QDpt' +class pixel_depth(aetools.NProperty): + """pixel depth - Bits per pixel""" + which = 'pdpt' + want = 'shor' +class writing_code(aetools.NProperty): + """writing code - the script system and language of text objects in the drawing area""" + which = 'psct' + want = 'intl' +class text_color(aetools.NProperty): + """text color - the default color for text objects""" + which = 'ptxc' + want = 'cRGB' +class default_font(aetools.NProperty): + """default font - the name of the default font for text objects""" + which = 'ptxf' + want = 'itxt' +class default_size(aetools.NProperty): + """default size - the default size for text objects""" + which = 'ptps' + want = 'fixd' +class style(aetools.NProperty): + """style - the default text style for text objects""" + which = 'txst' + want = 'tsty' +class update_on_change(aetools.NProperty): + """update on change - Redraw after each change?""" + which = 'pupd' + want = 'bool' + +drawing_areas = drawing_area + +class graphic_line(aetools.ComponentItem): + """graphic line - A graphic line""" + want = 'glin' +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 arrow_style(aetools.NProperty): + """arrow style - the arrow style""" + which = 'arro' + want = 'arro' +class start_point(aetools.NProperty): + """start point - the starting point of the line""" + which = 'pstp' + want = 'QDpt' + +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 graphic_group(aetools.ComponentItem): + """graphic group - Group of graphics""" + want = 'cpic' + +graphic_groups = graphic_group + +class oval(aetools.ComponentItem): + """oval - An oval""" + want = 'covl' + +ovals = oval + +class pixel(aetools.ComponentItem): + """pixel - A pixel""" + want = 'cpxl' +# repeated property color the color + +pixels = pixel + +class pixel_map(aetools.ComponentItem): + """pixel map - A pixel map""" + want = 'cpix' + +pixel_maps = pixel_map + +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 +arc._propdict = { + 'arc_angle' : arc_angle, + 'bounds' : bounds, + '_class' : _class, + '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, +} +arc._elemdict = { +} +drawing_area._propdict = { + 'background_color' : background_color, + 'background_pattern' : background_pattern, + 'color_table' : color_table, + 'ordering' : ordering, + 'name' : name, + 'default_location' : default_location, + 'pixel_depth' : pixel_depth, + 'writing_code' : writing_code, + 'text_color' : text_color, + 'default_font' : default_font, + 'default_size' : default_size, + 'style' : style, + 'update_on_change' : update_on_change, +} +drawing_area._elemdict = { +} +graphic_line._propdict = { + 'dash_style' : dash_style, + 'end_point' : end_point, + 'arrow_style' : arrow_style, + 'start_point' : start_point, +} +graphic_line._elemdict = { +} +graphic_object._propdict = { +} +graphic_object._elemdict = { +} +graphic_shape._propdict = { +} +graphic_shape._elemdict = { +} +graphic_text._propdict = { + 'color' : color, + 'font' : font, + 'size' : size, + 'uniform_styles' : uniform_styles, +} +graphic_text._elemdict = { +} +graphic_group._propdict = { +} +graphic_group._elemdict = { +} +oval._propdict = { +} +oval._elemdict = { +} +pixel._propdict = { + 'color' : color, +} +pixel._elemdict = { +} +pixel_map._propdict = { +} +pixel_map._elemdict = { +} +polygon._propdict = { + 'point_list' : point_list, +} +polygon._elemdict = { +} +rectangle._propdict = { +} +rectangle._elemdict = { +} +rounded_rectangle._propdict = { + 'corner_curve_height' : corner_curve_height, + 'corner_curve_width' : corner_curve_width, +} +rounded_rectangle._elemdict = { +} +_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', # +} + +_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 +} + + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'crec' : rectangle, + 'cpix' : pixel_map, + 'carc' : arc, + 'cgsh' : graphic_shape, + 'cpxl' : pixel, + 'crrc' : rounded_rectangle, + 'cpgn' : polygon, + 'cdrw' : drawing_area, + 'cgob' : graphic_object, + 'glin' : graphic_line, + 'cgtx' : graphic_text, + 'covl' : oval, + 'cpic' : graphic_group, +} + +_propdeclarations = { + 'pend' : end_point, + 'pupd' : update_on_change, + 'pstp' : start_point, + 'pdrt' : definition_rect, + 'pnam' : name, + 'pbcl' : background_color, + 'pptm' : transfer_mode, + 'pnel' : default_location, + 'pdpt' : pixel_depth, + 'gobs' : ordering, + 'ustl' : uniform_styles, + 'ptlt' : point_list, + 'pdst' : dash_style, + 'psct' : writing_code, + 'txst' : style, + 'font' : font, + 'pchd' : corner_curve_height, + 'pcls' : _class, + 'ppwd' : pen_width, + 'ptps' : default_size, + 'ppcl' : pen_color, + 'ptxf' : default_font, + 'pcwd' : corner_curve_width, + 'ptxc' : text_color, + 'cltb' : color_table, + 'pppa' : pen_pattern, + 'pang' : start_angle, + 'flpt' : fill_pattern, + 'colr' : color, + 'arro' : arrow_style, + 'pbnd' : bounds, + 'ptsz' : size, + 'parc' : arc_angle, + 'flcl' : fill_color, + 'pbpt' : background_pattern, +} + +_compdeclarations = { +} + +_enumdeclarations = { + 'tran' : _Enum_tran, + 'arro' : _Enum_arro, +} diff --git a/Mac/Lib/scripting/QuickDraw_Graphics_Supplemental b/Mac/Lib/scripting/QuickDraw_Graphics_Supplemental new file mode 100644 index 0000000..9666842 --- /dev/null +++ b/Mac/Lib/scripting/QuickDraw_Graphics_Supplemental @@ -0,0 +1,71 @@ +"""Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects +Level 1, version 1 + +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect +AETE/AEUT resource version 1/0, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'qdsp' + +class QuickDraw_Graphics_Supplemental_Suite: + + pass + + +class drawing_area(aetools.ComponentItem): + """drawing area - Container for graphics and supporting information""" + want = 'cdrw' +class rotation(aetools.NProperty): + """rotation - the default rotation for objects in the drawing area""" + which = 'prot' + want = 'trot' +class scale(aetools.NProperty): + """scale - the default scaling for objects in the drawing area""" + which = 'pscl' + want = 'fixd' +class translation(aetools.NProperty): + """translation - the default repositioning for objects in the drawing area""" + which = 'ptrs' + want = 'QDpt' + +drawing_areas = drawing_area + +class graphic_group(aetools.ComponentItem): + """graphic group - Group of graphics""" + want = 'cpic' + +graphic_groups = graphic_group +drawing_area._propdict = { + 'rotation' : rotation, + 'scale' : scale, + 'translation' : translation, +} +drawing_area._elemdict = { +} +graphic_group._propdict = { +} +graphic_group._elemdict = { +} + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'cpic' : graphic_group, + 'cdrw' : drawing_area, +} + +_propdeclarations = { + 'prot' : rotation, + 'pscl' : scale, + 'ptrs' : translation, +} + +_compdeclarations = { +} + +_enumdeclarations = { +} diff --git a/Mac/Lib/toolbox/Required_Suite.py b/Mac/Lib/scripting/Required_Suite.py index 1b27b6a..d9aa5b9 100644 --- a/Mac/Lib/toolbox/Required_Suite.py +++ b/Mac/Lib/scripting/Required_Suite.py @@ -1,7 +1,7 @@ """Suite Required Suite: Terms that every application should support Level 1, version 1 -Generated from flap:Systeemmap:Extensies:Script-extra's:Dialecten:Engels dialect +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -90,3 +90,18 @@ class Required_Suite: if _arguments.has_key('----'): return _arguments['----'] + +# +# Indices of types declared in this module +# +_classdeclarations = { +} + +_propdeclarations = { +} + +_compdeclarations = { +} + +_enumdeclarations = { +} diff --git a/Mac/Lib/toolbox/Standard_Suite.py b/Mac/Lib/scripting/Standard_Suite.py index d30e1dc..36eaed8 100644 --- a/Mac/Lib/toolbox/Standard_Suite.py +++ b/Mac/Lib/scripting/Standard_Suite.py @@ -1,7 +1,7 @@ """Suite Standard Suite: Common terms for most applications Level 1, version 1 -Generated from flap:Systeemmap:Extensies:Script-extra's:Dialecten:Engels dialect +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -10,36 +10,6 @@ import MacOS _code = 'core' -_Enum_savo = { - 'yes' : 'yes ', # Save objects now - 'no' : 'no ', # Do not save objects - 'ask' : 'ask ', # Ask the user whether to save -} - -_Enum_kfrm = { - 'index' : 'indx', # keyform designating indexed access - 'named' : 'name', # keyform designating named access - 'id' : 'ID ', # keyform designating access by unique identifier -} - -_Enum_styl = { - 'plain' : 'plan', # Plain - 'bold' : 'bold', # Bold - 'italic' : 'ital', # Italic - 'outline' : 'outl', # Outline - 'shadow' : 'shad', # Shadow - 'underline' : 'undl', # Underline - 'superscript' : 'spsc', # Superscript - 'subscript' : 'sbsc', # Subscript - 'strikethrough' : 'strk', # Strikethrough - 'small_caps' : 'smcp', # Small caps - 'all_caps' : 'alcp', # All capital letters - 'all_lowercase' : 'lowc', # Lowercase - 'condensed' : 'cond', # Condensed - 'expanded' : 'pexp', # Expanded - 'hidden' : 'hidn', # Hidden -} - class Standard_Suite: _argmap_class_info = { @@ -417,77 +387,327 @@ class Standard_Suite: return _arguments['----'] -# Class 'application' ('capp') -- 'An application program' -# property 'clipboard' ('pcli') '****' -- 'the clipboard' [mutable list] -# property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' [] -# property 'name' ('pnam') 'itxt' -- 'the name' [] -# property 'selection' ('sele') 'csel' -- 'the selection visible to the user' [mutable] -# property 'version' ('vers') 'vers' -- 'the version of the application' [] - -# Class 'applications' ('capp') -- 'Every application' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'character' ('cha ') -- 'A character' -# property 'color' ('colr') 'cRGB' -- 'the color' [mutable] -# property 'font' ('font') 'ctxt' -- 'the name of the font' [mutable] -# property 'size' ('ptsz') 'fixd' -- 'the size in points' [mutable] -# property 'writing code' ('psct') 'intl' -- 'the script system and language' [] -# property 'style' ('txst') 'tsty' -- 'the text style' [mutable] -# property 'uniform styles' ('ustl') 'tsty' -- 'the text style' [] - -# Class 'characters' ('cha ') -- 'Every character' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'document' ('docu') -- 'A document' -# property 'modified' ('imod') 'bool' -- 'Has the document been modified since the last save?' [] - -# Class 'documents' ('docu') -- 'Every document' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'file' ('file') -- 'A file' -# property 'stationery' ('pspd') 'bool' -- 'Is the file a stationery file?' [mutable] - -# Class 'files' ('file') -- 'Every file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'selection-object' ('csel') -- 'the selection visible to the user' -# property 'contents' ('pcnt') 'type' -- 'the contents of the selection' [] - -# Class 'text' ('ctxt') -- 'Text' -# property '' ('c@#!') 'type' -- '' [0] -# property 'font' ('font') 'ctxt' -- 'the name of the font of the first character' [mutable] - -# Class 'text style info' ('tsty') -- 'On and Off styles of text run' -# property 'on styles' ('onst') 'styl' -- 'the styles that are on for the text' [enum list] -# property 'off styles' ('ofst') 'styl' -- 'the styles that are off for the text' [enum list] - -# Class 'text style infos' ('tsty') -- 'every text style info' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'window' ('cwin') -- 'A window' -# property 'bounds' ('pbnd') 'qdrt' -- 'the boundary rectangle for the window' [mutable] -# property 'closeable' ('hclb') 'bool' -- 'Does the window have a close box?' [] -# property 'titled' ('ptit') 'bool' -- 'Does the window have a title bar?' [] -# property 'index' ('pidx') 'long' -- 'the number of the window' [mutable] -# property 'floating' ('isfl') 'bool' -- 'Does the window float?' [] -# property 'modal' ('pmod') 'bool' -- 'Is the window modal?' [] -# property 'resizable' ('prsz') 'bool' -- 'Is the window resizable?' [] -# property 'zoomable' ('iszm') 'bool' -- 'Is the window zoomable?' [] -# property 'zoomed' ('pzum') 'bool' -- 'Is the window zoomed?' [mutable] -# property 'visible' ('pvis') 'bool' -- 'Is the window visible?' [mutable] - -# Class 'windows' ('cwin') -- 'Every window' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'insertion point' ('cins') -- 'An insertion location between two objects' - -# Class 'insertion points' ('cins') -- 'Every insertion location' -# property '' ('c@#!') 'type' -- '' [0] -# comparison 'starts with' ('bgwt') -- Starts with -# comparison 'contains' ('cont') -- Contains -# comparison 'ends with' ('ends') -- Ends with -# comparison '=' ('= ') -- Equal -# comparison '>' ('> ') -- Greater than -# comparison '\263' ('>= ') -- Greater than or equal to -# comparison '<' ('< ') -- Less than -# comparison '\262' ('<= ') -- Less than or equal to +class application(aetools.ComponentItem): + """application - An application program""" + want = 'capp' +class clipboard(aetools.NProperty): + """clipboard - the clipboard""" + which = 'pcli' + want = '****' +class frontmost(aetools.NProperty): + """frontmost - Is this the frontmost application?""" + which = 'pisf' + want = 'bool' +class name(aetools.NProperty): + """name - the name""" + which = 'pnam' + want = 'itxt' +class selection(aetools.NProperty): + """selection - the selection visible to the user""" + which = 'sele' + want = 'csel' +class version(aetools.NProperty): + """version - the version of the application""" + which = 'vers' + want = 'vers' + +applications = application + +class character(aetools.ComponentItem): + """character - A character""" + want = 'cha ' +class color(aetools.NProperty): + """color - the color""" + which = 'colr' + want = 'cRGB' +class font(aetools.NProperty): + """font - the name of the font""" + which = 'font' + want = 'ctxt' +class size(aetools.NProperty): + """size - the size in points""" + which = 'ptsz' + want = 'fixd' +class writing_code(aetools.NProperty): + """writing code - the script system and language""" + which = 'psct' + want = 'intl' +class style(aetools.NProperty): + """style - the text style""" + which = 'txst' + want = 'tsty' +class uniform_styles(aetools.NProperty): + """uniform styles - the text style""" + which = 'ustl' + want = 'tsty' + +characters = character + +class document(aetools.ComponentItem): + """document - A document""" + want = 'docu' +class modified(aetools.NProperty): + """modified - Has the document been modified since the last save?""" + which = 'imod' + want = 'bool' + +documents = document + +class file(aetools.ComponentItem): + """file - A file""" + want = 'file' +class stationery(aetools.NProperty): + """stationery - Is the file a stationery file?""" + which = 'pspd' + want = 'bool' + +files = file + +class selection_2d_object(aetools.ComponentItem): + """selection-object - the selection visible to the user""" + want = 'csel' +class contents(aetools.NProperty): + """contents - the contents of the selection""" + which = 'pcnt' + want = 'type' + +class text(aetools.ComponentItem): + """text - Text""" + want = 'ctxt' +# repeated property font the name of the font of the first character + +class text_style_info(aetools.ComponentItem): + """text style info - On and Off styles of text run""" + want = 'tsty' +class on_styles(aetools.NProperty): + """on styles - the styles that are on for the text""" + which = 'onst' + want = 'styl' +class off_styles(aetools.NProperty): + """off styles - the styles that are off for the text""" + which = 'ofst' + want = 'styl' + +text_style_infos = text_style_info + +class window(aetools.ComponentItem): + """window - A window""" + want = 'cwin' +class bounds(aetools.NProperty): + """bounds - the boundary rectangle for the window""" + which = 'pbnd' + want = 'qdrt' +class closeable(aetools.NProperty): + """closeable - Does the window have a close box?""" + which = 'hclb' + want = 'bool' +class titled(aetools.NProperty): + """titled - Does the window have a title bar?""" + which = 'ptit' + want = 'bool' +class index(aetools.NProperty): + """index - the number of the window""" + which = 'pidx' + want = 'long' +class floating(aetools.NProperty): + """floating - Does the window float?""" + which = 'isfl' + want = 'bool' +class modal(aetools.NProperty): + """modal - Is the window modal?""" + which = 'pmod' + want = 'bool' +class resizable(aetools.NProperty): + """resizable - Is the window resizable?""" + which = 'prsz' + want = 'bool' +class zoomable(aetools.NProperty): + """zoomable - Is the window zoomable?""" + which = 'iszm' + want = 'bool' +class zoomed(aetools.NProperty): + """zoomed - Is the window zoomed?""" + which = 'pzum' + want = 'bool' +class visible(aetools.NProperty): + """visible - Is the window visible?""" + which = 'pvis' + want = 'bool' + +windows = window + +class insertion_point(aetools.ComponentItem): + """insertion point - An insertion location between two objects""" + want = 'cins' + +insertion_points = insertion_point +application._propdict = { + 'clipboard' : clipboard, + 'frontmost' : frontmost, + 'name' : name, + 'selection' : selection, + 'version' : version, +} +application._elemdict = { +} +character._propdict = { + 'color' : color, + 'font' : font, + 'size' : size, + 'writing_code' : writing_code, + 'style' : style, + 'uniform_styles' : uniform_styles, +} +character._elemdict = { +} +document._propdict = { + 'modified' : modified, +} +document._elemdict = { +} +file._propdict = { + 'stationery' : stationery, +} +file._elemdict = { +} +selection_2d_object._propdict = { + 'contents' : contents, +} +selection_2d_object._elemdict = { +} +text._propdict = { + 'font' : font, +} +text._elemdict = { +} +text_style_info._propdict = { + 'on_styles' : on_styles, + 'off_styles' : off_styles, +} +text_style_info._elemdict = { +} +window._propdict = { + 'bounds' : bounds, + 'closeable' : closeable, + 'titled' : titled, + 'index' : index, + 'floating' : floating, + 'modal' : modal, + 'resizable' : resizable, + 'zoomable' : zoomable, + 'zoomed' : zoomed, + 'visible' : visible, +} +window._elemdict = { +} +insertion_point._propdict = { +} +insertion_point._elemdict = { +} +class starts_with(aetools.NComparison): + """starts with - Starts with""" +class contains(aetools.NComparison): + """contains - Contains""" +class ends_with(aetools.NComparison): + """ends with - Ends with""" +class _3d_(aetools.NComparison): + """= - Equal""" +class _3e_(aetools.NComparison): + """> - Greater than""" +class _b3_(aetools.NComparison): + """ - Greater than or equal to""" +class _3c_(aetools.NComparison): + """< - Less than""" +class _b2_(aetools.NComparison): + """ - Less than or equal to""" +_Enum_savo = { + 'yes' : 'yes ', # Save objects now + 'no' : 'no ', # Do not save objects + 'ask' : 'ask ', # Ask the user whether to save +} + +_Enum_kfrm = { + 'index' : 'indx', # keyform designating indexed access + 'named' : 'name', # keyform designating named access + 'id' : 'ID ', # keyform designating access by unique identifier +} + +_Enum_styl = { + 'plain' : 'plan', # Plain + 'bold' : 'bold', # Bold + 'italic' : 'ital', # Italic + 'outline' : 'outl', # Outline + 'shadow' : 'shad', # Shadow + 'underline' : 'undl', # Underline + 'superscript' : 'spsc', # Superscript + 'subscript' : 'sbsc', # Subscript + 'strikethrough' : 'strk', # Strikethrough + 'small_caps' : 'smcp', # Small caps + 'all_caps' : 'alcp', # All capital letters + 'all_lowercase' : 'lowc', # Lowercase + 'condensed' : 'cond', # Condensed + 'expanded' : 'pexp', # Expanded + 'hidden' : 'hidn', # Hidden +} + + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'docu' : document, + 'tsty' : text_style_info, + 'ctxt' : text, + 'capp' : application, + 'csel' : selection_2d_object, + 'file' : file, + 'cwin' : window, + 'cha ' : character, + 'cins' : insertion_point, +} + +_propdeclarations = { + 'ptit' : titled, + 'onst' : on_styles, + 'pnam' : name, + 'pcli' : clipboard, + 'ustl' : uniform_styles, + 'psct' : writing_code, + 'txst' : style, + 'pvis' : visible, + 'pspd' : stationery, + 'pisf' : frontmost, + 'sele' : selection, + 'pmod' : modal, + 'imod' : modified, + 'ofst' : off_styles, + 'ptsz' : size, + 'pzum' : zoomed, + 'hclb' : closeable, + 'font' : font, + 'pcnt' : contents, + 'isfl' : floating, + 'pidx' : index, + 'iszm' : zoomable, + 'colr' : color, + 'pbnd' : bounds, + 'vers' : version, + 'prsz' : resizable, +} + +_compdeclarations = { + '> ' : _3e_, + 'bgwt' : starts_with, + '>= ' : _b3_, + '= ' : _3d_, + '<= ' : _b2_, + 'cont' : contains, + 'ends' : ends_with, + '< ' : _3c_, +} + +_enumdeclarations = { + 'styl' : _Enum_styl, + 'savo' : _Enum_savo, + 'kfrm' : _Enum_kfrm, +} diff --git a/Mac/Lib/toolbox/Standard_URL_suite.py b/Mac/Lib/scripting/Standard_URL_suite.py index b9108f4..44b6ca7 100644 --- a/Mac/Lib/toolbox/Standard_URL_suite.py +++ b/Mac/Lib/scripting/Standard_URL_suite.py @@ -4,7 +4,7 @@ Level 1, version 1 -Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.0 +Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.01 AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -45,3 +45,18 @@ class Standard_URL_suite: if _arguments.has_key('----'): return _arguments['----'] + +# +# Indices of types declared in this module +# +_classdeclarations = { +} + +_propdeclarations = { +} + +_compdeclarations = { +} + +_enumdeclarations = { +} diff --git a/Mac/Lib/scripting/Table_Suite.py b/Mac/Lib/scripting/Table_Suite.py new file mode 100644 index 0000000..ff1dbf7 --- /dev/null +++ b/Mac/Lib/scripting/Table_Suite.py @@ -0,0 +1,106 @@ +"""Suite Table Suite: Classes for manipulating tables +Level 1, version 1 + +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect +AETE/AEUT resource version 1/0, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'tbls' + +class Table_Suite: + + pass + + +class cell(aetools.ComponentItem): + """cell - A cell""" + want = 'ccel' +class _class(aetools.NProperty): + """class - the class""" + which = 'pcls' + want = 'type' +class formula(aetools.NProperty): + """formula - the formula of the cell""" + which = 'pfor' + want = 'ctxt' +class protection(aetools.NProperty): + """protection - Indicates whether value or formula in the cell can be changed""" + which = 'ppro' + want = 'prtn' + +cells = cell + +class column(aetools.ComponentItem): + """column - A column""" + want = 'ccol' +class name(aetools.NProperty): + """name - the name""" + which = 'pnam' + want = 'itxt' + +columns = column + +class row(aetools.ComponentItem): + """row - A row""" + want = 'crow' + +rows = row + +class table(aetools.ComponentItem): + """table - A table""" + want = 'ctbl' + +tables = table +cell._propdict = { + '_class' : _class, + 'formula' : formula, + 'protection' : protection, +} +cell._elemdict = { +} +column._propdict = { + 'name' : name, +} +column._elemdict = { +} +row._propdict = { +} +row._elemdict = { +} +table._propdict = { +} +table._elemdict = { +} +_Enum_prtn = { + 'read_only' : 'nmod', # Can't change values or formulas + 'formulas_protected' : 'fpro', # Can changes values but not formulas + 'read_2f_write' : 'modf', # Can change values and formulas +} + + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'ccel' : cell, + 'ctbl' : table, + 'ccol' : column, + 'crow' : row, +} + +_propdeclarations = { + 'ppro' : protection, + 'pnam' : name, + 'pfor' : formula, + 'pcls' : _class, +} + +_compdeclarations = { +} + +_enumdeclarations = { + 'prtn' : _Enum_prtn, +} diff --git a/Mac/Lib/scripting/Text_Suite.py b/Mac/Lib/scripting/Text_Suite.py new file mode 100644 index 0000000..e4e82d9 --- /dev/null +++ b/Mac/Lib/scripting/Text_Suite.py @@ -0,0 +1,186 @@ +"""Suite Text Suite: A set of basic classes for text processing +Level 1, version 1 + +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect +AETE/AEUT resource version 1/0, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'TEXT' + +class Text_Suite: + + pass + + +class character(aetools.ComponentItem): + """character - A character""" + want = 'cha ' +class best_type(aetools.NProperty): + """best type - the best descriptor type""" + which = 'pbst' + want = 'type' +class _class(aetools.NProperty): + """class - the class""" + which = 'pcls' + want = 'type' +class color(aetools.NProperty): + """color - the color""" + which = 'colr' + want = 'cRGB' +class default_type(aetools.NProperty): + """default type - the default descriptor type""" + which = 'deft' + want = 'type' +class font(aetools.NProperty): + """font - the name of the font""" + which = 'font' + want = 'ctxt' +class size(aetools.NProperty): + """size - the size in points""" + which = 'ptsz' + want = 'fixd' +class writing_code(aetools.NProperty): + """writing code - the script system and language""" + which = 'psct' + want = 'intl' +class style(aetools.NProperty): + """style - the text style""" + which = 'txst' + want = 'tsty' +class uniform_styles(aetools.NProperty): + """uniform styles - the text style""" + which = 'ustl' + want = 'tsty' + +class line(aetools.ComponentItem): + """line - A line of text""" + want = 'clin' +class justification(aetools.NProperty): + """justification - Justification of the text""" + which = 'pjst' + want = 'just' + +lines = line + +class paragraph(aetools.ComponentItem): + """paragraph - A paragraph""" + want = 'cpar' + +paragraphs = paragraph + +class text(aetools.ComponentItem): + """text - Text""" + want = 'ctxt' + +class text_flow(aetools.ComponentItem): + """text flow - A contiguous block of text""" + want = 'cflo' +class name(aetools.NProperty): + """name - the name""" + which = 'pnam' + want = 'itxt' + +text_flows = text_flow + +class word(aetools.ComponentItem): + """word - A word""" + want = 'cwor' + +words = word +character._propdict = { + 'best_type' : best_type, + '_class' : _class, + 'color' : color, + 'default_type' : default_type, + 'font' : font, + 'size' : size, + 'writing_code' : writing_code, + 'style' : style, + 'uniform_styles' : uniform_styles, +} +character._elemdict = { +} +line._propdict = { + 'justification' : justification, +} +line._elemdict = { +} +paragraph._propdict = { +} +paragraph._elemdict = { +} +text._propdict = { +} +text._elemdict = { +} +text_flow._propdict = { + 'name' : name, +} +text_flow._elemdict = { +} +word._propdict = { +} +word._elemdict = { +} +_Enum_just = { + 'left' : 'left', # Align with left margin + 'right' : 'rght', # Align with right margin + 'center' : 'cent', # Align with center + 'full' : 'full', # Align with both left and right margins +} + +_Enum_styl = { + 'plain' : 'plan', # Plain + 'bold' : 'bold', # Bold + 'italic' : 'ital', # Italic + 'outline' : 'outl', # Outline + 'shadow' : 'shad', # Shadow + 'underline' : 'undl', # Underline + 'superscript' : 'spsc', # Superscript + 'subscript' : 'sbsc', # Subscript + 'strikethrough' : 'strk', # Strikethrough + 'small_caps' : 'smcp', # Small caps + 'all_caps' : 'alcp', # All capital letters + 'all_lowercase' : 'lowc', # Lowercase + 'condensed' : 'cond', # Condensed + 'expanded' : 'pexp', # Expanded + 'hidden' : 'hidn', # Hidden +} + + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'cflo' : text_flow, + 'clin' : line, + 'ctxt' : text, + 'cha ' : character, + 'cwor' : word, + 'cpar' : paragraph, +} + +_propdeclarations = { + 'pbst' : best_type, + 'psct' : writing_code, + 'txst' : style, + 'colr' : color, + 'font' : font, + 'pnam' : name, + 'pcls' : _class, + 'deft' : default_type, + 'pjst' : justification, + 'ptsz' : size, + 'ustl' : uniform_styles, +} + +_compdeclarations = { +} + +_enumdeclarations = { + 'styl' : _Enum_styl, + 'just' : _Enum_just, +} diff --git a/Mac/Lib/scripting/Type_Names_Suite.py b/Mac/Lib/scripting/Type_Names_Suite.py new file mode 100644 index 0000000..60301f7 --- /dev/null +++ b/Mac/Lib/scripting/Type_Names_Suite.py @@ -0,0 +1,454 @@ +"""Suite Type Names Suite: Terminology for Registry data types +Level 1, version 1 + +Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect +AETE/AEUT resource version 1/0, language 0, script 0 +""" + +import aetools +import MacOS + +_code = 'tpnm' + +class Type_Names_Suite: + + pass + + +class anything(aetools.ComponentItem): + """anything - various types of data""" + want = '****' + +class type_class(aetools.ComponentItem): + """type class - class name""" + want = 'type' + +class type_class_info(aetools.ComponentItem): + """type class info - information about properties and elements of a class""" + want = 'gcli' + +class type_event_info(aetools.ComponentItem): + """type event info - information about an event""" + want = 'evin' + +class string(aetools.ComponentItem): + """string - text in a specific language and script system""" + want = 'itxt' + +class writing_code(aetools.ComponentItem): + """writing code - codes which identify the language and script system""" + want = 'intl' + +class bounding_rectangle(aetools.ComponentItem): + """bounding rectangle - bounding rectangle""" + want = 'qdrt' + +class point(aetools.ComponentItem): + """point - point coordinates""" + want = 'QDpt' + +class fixed(aetools.ComponentItem): + """fixed - a real number""" + want = 'fixd' + +class location_reference(aetools.ComponentItem): + """location reference - """ + want = 'insl' + +class application_dictionary(aetools.ComponentItem): + """application dictionary - """ + want = 'aete' + +class color_table(aetools.ComponentItem): + """color table - """ + want = 'clrt' + +class dash_style(aetools.ComponentItem): + """dash style - """ + want = 'tdas' + +class double_integer(aetools.ComponentItem): + """double integer - """ + want = 'comp' + +class extended_real(aetools.ComponentItem): + """extended real - """ + want = 'exte' + +class file_specification(aetools.ComponentItem): + """file specification - """ + want = 'fss ' + +class fixed_point(aetools.ComponentItem): + """fixed point - """ + want = 'fpnt' + +class fixed_rectangle(aetools.ComponentItem): + """fixed rectangle - """ + want = 'frct' + +class long_fixed(aetools.ComponentItem): + """long fixed - """ + want = 'lfxd' + +class long_fixed_point(aetools.ComponentItem): + """long fixed point - """ + want = 'lfpt' + +class long_fixed_rectangle(aetools.ComponentItem): + """long fixed rectangle - """ + want = 'lfrc' + +class long_point(aetools.ComponentItem): + """long point - """ + want = 'lpnt' + +class long_rectangle(aetools.ComponentItem): + """long rectangle - """ + want = 'lrct' + +class machine_location(aetools.ComponentItem): + """machine location - """ + want = 'mLoc' + +class menu(aetools.ComponentItem): + """menu - """ + want = 'cmnu' + +class menu_item(aetools.ComponentItem): + """menu item - """ + want = 'cmen' + +class null(aetools.ComponentItem): + """null - """ + want = 'null' + +class picture(aetools.ComponentItem): + """picture - """ + want = 'PICT' + +class pixel_map_record(aetools.ComponentItem): + """pixel map record - """ + want = 'tpmm' + +class PostScript_picture(aetools.ComponentItem): + """PostScript picture - """ + want = 'EPS ' + +class RGB16_color(aetools.ComponentItem): + """RGB16 color - """ + want = 'tr16' + +class RGB96_color(aetools.ComponentItem): + """RGB96 color - """ + want = 'tr96' + +class small_integer(aetools.ComponentItem): + """small integer - """ + want = 'shor' + +class small_real(aetools.ComponentItem): + """small real - """ + want = 'sing' + +class system_dictionary(aetools.ComponentItem): + """system dictionary - """ + want = 'aeut' + +class rotation(aetools.ComponentItem): + """rotation - """ + want = 'trot' + +class scrap_styles(aetools.ComponentItem): + """scrap styles - """ + want = 'styl' + +class TIFF_picture(aetools.ComponentItem): + """TIFF picture - """ + want = 'TIFF' + +class version(aetools.ComponentItem): + """version - """ + want = 'vers' + +class unsigned_integer(aetools.ComponentItem): + """unsigned integer - """ + want = 'magn' + +class type_property_info(aetools.ComponentItem): + """type property info - """ + want = 'pinf' + +class type_element_info(aetools.ComponentItem): + """type element info - """ + want = 'elin' + +class type_parameter_info(aetools.ComponentItem): + """type parameter info - """ + want = 'pmin' + +class type_suite_info(aetools.ComponentItem): + """type suite info - """ + want = 'suin' + +class target_id(aetools.ComponentItem): + """target id - """ + want = 'targ' + +class plain_text(aetools.ComponentItem): + """plain text - """ + want = 'TEXT' + +class writing_code(aetools.ComponentItem): + """writing code - codes which identify the language and script system""" + want = 'psct' +anything._propdict = { +} +anything._elemdict = { +} +type_class._propdict = { +} +type_class._elemdict = { +} +type_class_info._propdict = { +} +type_class_info._elemdict = { +} +type_event_info._propdict = { +} +type_event_info._elemdict = { +} +string._propdict = { +} +string._elemdict = { +} +writing_code._propdict = { +} +writing_code._elemdict = { +} +bounding_rectangle._propdict = { +} +bounding_rectangle._elemdict = { +} +point._propdict = { +} +point._elemdict = { +} +fixed._propdict = { +} +fixed._elemdict = { +} +location_reference._propdict = { +} +location_reference._elemdict = { +} +application_dictionary._propdict = { +} +application_dictionary._elemdict = { +} +color_table._propdict = { +} +color_table._elemdict = { +} +dash_style._propdict = { +} +dash_style._elemdict = { +} +double_integer._propdict = { +} +double_integer._elemdict = { +} +extended_real._propdict = { +} +extended_real._elemdict = { +} +file_specification._propdict = { +} +file_specification._elemdict = { +} +fixed_point._propdict = { +} +fixed_point._elemdict = { +} +fixed_rectangle._propdict = { +} +fixed_rectangle._elemdict = { +} +long_fixed._propdict = { +} +long_fixed._elemdict = { +} +long_fixed_point._propdict = { +} +long_fixed_point._elemdict = { +} +long_fixed_rectangle._propdict = { +} +long_fixed_rectangle._elemdict = { +} +long_point._propdict = { +} +long_point._elemdict = { +} +long_rectangle._propdict = { +} +long_rectangle._elemdict = { +} +machine_location._propdict = { +} +machine_location._elemdict = { +} +menu._propdict = { +} +menu._elemdict = { +} +menu_item._propdict = { +} +menu_item._elemdict = { +} +null._propdict = { +} +null._elemdict = { +} +picture._propdict = { +} +picture._elemdict = { +} +pixel_map_record._propdict = { +} +pixel_map_record._elemdict = { +} +PostScript_picture._propdict = { +} +PostScript_picture._elemdict = { +} +RGB16_color._propdict = { +} +RGB16_color._elemdict = { +} +RGB96_color._propdict = { +} +RGB96_color._elemdict = { +} +small_integer._propdict = { +} +small_integer._elemdict = { +} +small_real._propdict = { +} +small_real._elemdict = { +} +system_dictionary._propdict = { +} +system_dictionary._elemdict = { +} +rotation._propdict = { +} +rotation._elemdict = { +} +scrap_styles._propdict = { +} +scrap_styles._elemdict = { +} +TIFF_picture._propdict = { +} +TIFF_picture._elemdict = { +} +version._propdict = { +} +version._elemdict = { +} +unsigned_integer._propdict = { +} +unsigned_integer._elemdict = { +} +type_property_info._propdict = { +} +type_property_info._elemdict = { +} +type_element_info._propdict = { +} +type_element_info._elemdict = { +} +type_parameter_info._propdict = { +} +type_parameter_info._elemdict = { +} +type_suite_info._propdict = { +} +type_suite_info._elemdict = { +} +target_id._propdict = { +} +target_id._elemdict = { +} +plain_text._propdict = { +} +plain_text._elemdict = { +} +writing_code._propdict = { +} +writing_code._elemdict = { +} + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'targ' : target_id, + 'fss ' : file_specification, + 'lrct' : long_rectangle, + 'exte' : extended_real, + 'tdas' : dash_style, + 'tr96' : RGB96_color, + 'gcli' : type_class_info, + 'suin' : type_suite_info, + 'evin' : type_event_info, + 'fixd' : fixed, + 'lfrc' : long_fixed_rectangle, + 'frct' : fixed_rectangle, + 'cmnu' : menu, + 'magn' : unsigned_integer, + 'aete' : application_dictionary, + 'styl' : scrap_styles, + 'QDpt' : point, + 'insl' : location_reference, + 'comp' : double_integer, + 'tr16' : RGB16_color, + 'vers' : version, + 'type' : type_class, + 'lfxd' : long_fixed, + 'TIFF' : TIFF_picture, + 'qdrt' : bounding_rectangle, + 'lfpt' : long_fixed_point, + 'pmin' : type_parameter_info, + 'psct' : writing_code, + 'pinf' : type_property_info, + '****' : anything, + 'PICT' : picture, + 'lpnt' : long_point, + 'trot' : rotation, + 'null' : null, + 'sing' : small_real, + 'tpmm' : pixel_map_record, + 'cmen' : menu_item, + 'itxt' : string, + 'EPS ' : PostScript_picture, + 'mLoc' : machine_location, + 'elin' : type_element_info, + 'intl' : writing_code, + 'fpnt' : fixed_point, + 'clrt' : color_table, + 'aeut' : system_dictionary, + 'shor' : small_integer, + 'TEXT' : plain_text, +} + +_propdeclarations = { +} + +_compdeclarations = { +} + +_enumdeclarations = { +} diff --git a/Mac/Lib/toolbox/WWW_Suite.py b/Mac/Lib/scripting/WWW_Suite.py index 01ba39f..9564249 100644 --- a/Mac/Lib/toolbox/WWW_Suite.py +++ b/Mac/Lib/scripting/WWW_Suite.py @@ -1,7 +1,7 @@ """Suite WorldWideWeb suite, as defined in Spyglass spec.: Level 1, version 1 -Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.0 +Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.01 AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -10,7 +10,7 @@ import MacOS _code = 'WWW!' -class WWW_Suite: +class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_: _argmap_OpenURL = { 'to' : 'INTO', @@ -409,3 +409,18 @@ class WWW_Suite: if _arguments.has_key('----'): return _arguments['----'] + +# +# Indices of types declared in this module +# +_classdeclarations = { +} + +_propdeclarations = { +} + +_compdeclarations = { +} + +_enumdeclarations = { +} diff --git a/Mac/Lib/toolbox/Finder_Suite.py b/Mac/Lib/toolbox/Finder_Suite.py deleted file mode 100644 index 746de36..0000000 --- a/Mac/Lib/toolbox/Finder_Suite.py +++ /dev/null @@ -1,740 +0,0 @@ -"""Suite Finder Suite: Objects and Events for the Finder -Level 1, version 1 - -Generated from flap:Systeemmap:Extensies:Finder Script-extensie -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'fndr' - -_Enum_vwby = { - 'conflicts' : 'cflc', # - 'existing_items' : 'exsi', # - 'small_icon' : 'smic', # - 'all' : 'kyal', # -} - -_Enum_gsen = { - 'CPU' : 'proc', # - 'FPU' : 'fpu ', # - 'MMU' : 'mmu ', # - 'hardware' : 'hdwr', # - 'operating_system' : 'os ', # - 'sound_system' : 'snd ', # - 'memory_available' : 'lram', # - 'memory_installed' : 'ram ', # -} - -class Finder_Suite: - - _argmap_clean_up = { - 'by' : 'by ', - } - - def clean_up(self, _object, _attributes={}, **_arguments): - """clean up: Arrange items in window nicely - Required argument: the window to clean up - Keyword argument by: the order in which to clean up the objects - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'fclu' - - aetools.keysubst(_arguments, self._argmap_clean_up) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_computer = { - 'has' : 'has ', - } - - def computer(self, _object, _attributes={}, **_arguments): - """computer: Test attributes of this computer - Required argument: the attribute to test - Keyword argument has: test specific bits of response - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the result of the query - """ - _code = 'fndr' - _subcode = 'gstl' - - aetools.keysubst(_arguments, self._argmap_computer) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def eject(self, _object=None, _attributes={}, **_arguments): - """eject: Eject the specified disk(s), or every ejectable disk if no parameter is specified - Required argument: the items to eject - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'ejct' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def empty(self, _object=None, _attributes={}, **_arguments): - """empty: Empty the trash - Required argument: ³empty² and ³empty trash² both do the same thing - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'empt' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def erase(self, _object, _attributes={}, **_arguments): - """erase: Erase the specified disk(s) - Required argument: the items to erase - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'fera' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_put_away = { - 'items' : 'fsel', - } - - def put_away(self, _object, _attributes={}, **_arguments): - """put away: Put away the specified object(s) - Required argument: the items to put away - Keyword argument items: DO NOT USE: provided for backwards compatibility with old event suite. Will be removed in future Finders - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the object put away in its put-away location - """ - _code = 'fndr' - _subcode = 'ptwy' - - aetools.keysubst(_arguments, self._argmap_put_away) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def restart(self, _no_object=None, _attributes={}, **_arguments): - """restart: Restart the Macintosh - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'rest' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def reveal(self, _object, _attributes={}, **_arguments): - """reveal: Bring the specified object(s) into view - Required argument: the object to be made visible - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'mvis' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def select(self, _object, _attributes={}, **_arguments): - """select: Select the specified object(s) - Required argument: the object to select - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'slct' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def shut_down(self, _no_object=None, _attributes={}, **_arguments): - """shut down: Shut Down the Macintosh - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'shut' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def sleep(self, _no_object=None, _attributes={}, **_arguments): - """sleep: Sleep the Macintosh - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'snoz' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_sort = { - 'by' : 'by ', - } - - def sort(self, _object, _attributes={}, **_arguments): - """sort: Return the specified object(s) in a sorted list - Required argument: a list of finder objects to sort - Keyword argument by: the property to sort the items by - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the sorted items in their new order - """ - _code = 'DATA' - _subcode = 'SORT' - - aetools.keysubst(_arguments, self._argmap_sort) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def update(self, _object, _attributes={}, **_arguments): - """update: Update the display of the specified object(s) to match their on-disk representation - Required argument: the item to update - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'fupd' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# Class 'accessory process' ('pcda') -- 'A process launched from a desk accessory file' -# property 'desk accessory file' ('dafi') 'obj ' -- 'the desk accessory file from which this process was launched' [] - -# Class 'accessory processes' ('pcda') -- 'every accessory process' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'accessory suitcase' ('dsut') -- 'A desk accessory suitcase' -# element 'cobj' as ['indx', 'name'] - -# Class 'accessory suitcases' ('dsut') -- 'every accessory suitcase' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'alias file' ('alia') -- 'An alias file (created with \322Make Alias\323)' -# property 'original item' ('orig') 'obj ' -- 'the original item pointed to by the alias' [] - -# Class 'alias files' ('alia') -- 'every alias file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'application' ('capp') -- 'An application program' -# property 'about this macintosh' ('abbx') 'obj ' -- 'the \322About this Macintosh\323 dialog, and the list of running processes displayed in it' [] -# property 'apple menu items folder' ('amnu') 'obj ' -- 'the special folder \322Apple Menu Items,\323 the contents of which appear in the Apple menu' [] -# property 'clipboard' ('pcli') 'obj ' -- "the Finder's clipboard window" [] -# property 'control panels folder' ('ctrl') 'obj ' -- 'the special folder \322Control Panels\323' [] -# property 'desktop' ('desk') 'obj ' -- 'the desktop' [] -# property 'extensions folder' ('extn') 'obj ' -- 'the special folder \322Extensions\323' [] -# property 'file sharing' ('fshr') 'bool' -- 'Is file sharing on?' [mutable] -# property 'fonts folder' ('ffnt') 'obj ' -- 'the special folder \322Fonts\323' [] -# property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' [mutable] -# property 'insertion location' ('pins') 'obj ' -- 'the container that a new folder would appear in if \322New Folder\323 was selected' [] -# property 'largest free block' ('mfre') 'long' -- 'the largest free block of process memory available to launch an application' [] -# property 'preferences folder' ('pref') 'obj ' -- 'the special folder \322Preferences\323' [] -# property 'product version' ('ver2') 'itxt' -- 'the version of the System software running on this Macintosh' [] -# property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable] -# property 'sharing starting up' ('fsup') 'bool' -- 'Is File sharing in the process of starting up (still off, but soon to be on)?' [] -# property 'shortcuts' ('scut') 'obj ' -- "the \322Finder Shortcuts\323 item in the Finder's help menu" [] -# property 'shutdown items folder' ('shdf') 'obj ' -- 'the special folder \322Shutdown Items\323' [] -# property 'startup items folder' ('strt') 'obj ' -- 'the special folder \322Startup Items\323' [] -# property 'system folder' ('macs') 'obj ' -- 'the System folder' [] -# property 'temporary items folder' ('temp') 'obj ' -- 'the special folder \322Temporary Items\323 (invisible)' [] -# property 'version' ('vers') 'itxt' -- 'the version of the Finder Scripting Extension' [] -# property 'view preferences' ('pvwp') 'obj ' -- 'the view preferences control panel' [] -# property 'visible' ('pvis') 'bool' -- "Is the Finder's layer visible?" [mutable] -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'ctnr' as ['indx', 'name'] -# element 'cwnd' as ['indx', 'name'] -# element 'dwnd' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'cdsk' as ['indx', 'name'] -# element 'cdis' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'iwnd' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'swnd' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'ctrs' as ['indx', 'name'] -# element 'cwin' as ['indx', 'name'] - -# Class 'application file' ('appf') -- "An application's file on disk" -# property 'minimum partition size' ('mprt') 'long' -- 'the smallest memory size that the application can possibly be launched with' [mutable] -# property 'partition size' ('appt') 'long' -- 'the memory size that the application will be launched with' [mutable] -# property 'scriptable' ('isab') 'bool' -- 'Is this application high-level event aware (accepts open application, open document, print document, and quit)?' [] -# property 'suggested partition size' ('sprt') 'long' -- 'the memory size that the developer recommends that the application should be launched with' [] - -# Class 'application files' ('appf') -- 'every application file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'application process' ('pcap') -- 'A process launched from an application file' -# property 'application file' ('appf') 'appf' -- 'the application file from which this process was launched' [] - -# Class 'application processes' ('pcap') -- 'every application process' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'container' ('ctnr') -- 'An item that contains other items' -# property 'completely expanded' ('pexc') 'bool' -- 'Is the container and all of its children open in outline view?' [mutable] -# property 'container window' ('cwnd') 'obj ' -- 'the main window for the container' [] -# property 'entire contents' ('ects') 'obj ' -- 'the entire contents of the container, including the contents of its children' [] -# property 'expandable' ('pexa') 'bool' -- 'Is the container capable of being expanded into outline view?' [] -# property 'expanded' ('pexp') 'bool' -- 'Is the container open in outline view?' [mutable] -# property 'previous list view' ('svew') 'long' -- 'the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed)' [] -# property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable] -# property 'view' ('pvew') 'long' -- 'the view selected for the container (by icon, by name, by date, etc.)' [mutable] -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] - -# Class 'containers' ('ctnr') -- 'every container' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'container window' ('cwnd') -- 'A window that contains items' -# property 'container' ('ctnr') 'obj ' -- 'the container this window is opened from' [] -# property 'disk' ('cdis') 'obj ' -- 'the disk on which the item this window was opened from is stored' [] -# property 'folder' ('cfol') 'obj ' -- 'the folder this window is opened from' [] -# property 'item' ('cobj') 'obj ' -- 'the item this window is opened from' [] -# property 'previous list view' ('svew') 'long' -- 'the last non-icon view (by name, by date, etc.) selected for the window (forgotten as soon as the window is closed)' [] -# property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable] -# property 'view' ('pvew') 'long' -- 'the view selected for the window (by icon, by name, by date, etc.)' [mutable] -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] - -# Class 'container windows' ('cwnd') -- 'every container window' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'content space' ('dwnd') -- 'All windows, including the desktop window (\322Window\323 does not include the desktop window)' - -# Class 'content spaces' ('dwnd') -- 'Every content space' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'control panel' ('ccdv') -- 'A control panel' -# property 'calculate folder sizes' ('sfsz') 'bool' -- '(Views) Are folder sizes calculated and displayed in Finder list windows?' [mutable] -# property 'comment heading' ('scom') 'bool' -- '(Views) Are comments displayed in Finder list windows?' [mutable] -# property 'date heading' ('sdat') 'bool' -- '(Views) Are modification dates displayed in Finder list windows?' [mutable] -# property 'disk information heading' ('sdin') 'bool' -- '(Views) Is information about the volume displayed in Finder list windows?' [mutable] -# property 'icon size' ('lvis') 'long' -- '(Views) the size of icons displayed in Finder list windows' [mutable] -# property 'kind heading' ('sknd') 'bool' -- '(Views) Are document kinds displayed in Finder list windows?' [mutable] -# property 'label heading' ('slbl') 'bool' -- '(Views) Are labels displayed in Finder list windows?' [mutable] -# property 'size heading' ('ssiz') 'bool' -- '(Views) Are file sizes displayed in Finder list windows' [mutable] -# property 'snap to grid' ('fgrd') 'bool' -- '(Views) Are items always snapped to the nearest grid point when they are moved?' [mutable] -# property 'staggered grid' ('fstg') 'bool' -- '(Views) Are grid lines staggered?' [mutable] -# property 'version heading' ('svrs') 'bool' -- '(Views) Are file versions displayed in Finder list windows?' [mutable] -# property 'view font' ('vfnt') 'long' -- '(Views) the id of the font used in Finder views' [mutable] -# property 'view font size' ('vfsz') 'long' -- '(Views) the size of the font used in Finder views' [mutable] - -# Class 'control panels' ('ccdv') -- 'every control panel' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'desk accessory file' ('dafi') -- 'A desk accessory file' - -# Class 'desk accessory files' ('dafi') -- 'every desk accessory file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'desktop-object' ('cdsk') -- 'Desktop-object is the class of the \322desktop\323 object' -# property 'startup disk' ('sdsk') 'obj ' -- 'the startup disk' [] -# property 'trash' ('trsh') 'obj ' -- 'the trash' [] -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] - -# Class 'disk' ('cdis') -- 'A disk' -# property 'capacity' ('capa') 'long' -- 'the total number of bytes (free or used) on the disk' [] -# property 'ejectable' ('isej') 'bool' -- "Can the media can be ejected (floppies, CD's, syquest)?" [] -# property 'free space' ('frsp') 'long' -- 'the number of free bytes left on the disk' [] -# property 'local volume' ('isrv') 'bool' -- 'Is the media is a local volume (rather than a file server)?' [] -# property 'startup' ('istd') 'bool' -- 'Is this disk the boot disk?' [] -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'ID ', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] - -# Class 'disks' ('cdis') -- 'every disk' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'document file' ('docf') -- 'A document file' - -# Class 'document files' ('docf') -- 'every document file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'file' ('file') -- 'A file' -# property 'creator type' ('fcrt') 'type' -- 'the OSType identifying the application that created the item' [mutable] -# property 'file type' ('fitp') 'type' -- 'the OSType identifying the type of data contained in the item' [mutable] -# property 'locked' ('islk') 'bool' -- 'Is the file locked?' [mutable] -# property 'product version' ('ver2') 'itxt' -- 'the version of the product (visible at the top of the \322Get Info\323 dialog)' [] -# property 'stationery' ('pspd') 'bool' -- 'Is the item a stationery pad?' [mutable] -# property 'version' ('vers') 'itxt' -- 'the version of the file (visible at the bottom of the \322Get Info\323 dialog)' [] - -# Class 'files' ('file') -- 'every file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'folder' ('cfol') -- 'A folder' -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] - -# Class 'folders' ('cfol') -- 'every folder' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'font file' ('fntf') -- 'A font file' - -# Class 'font files' ('fntf') -- 'every font file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'font suitcase' ('fsut') -- 'A font suitcase' -# element 'cobj' as ['indx', 'name'] - -# Class 'font suitcases' ('fsut') -- 'every font suitcase' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'group' ('sgrp') -- 'A Group in the Users and Groups control panel' -# property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the group' [mutable] -# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the group' [mutable] -# property 'label index' ('labi') 'long' -- 'the label of the group' [mutable] -# property 'name' ('pnam') 'itxt' -- 'the name of the group' [mutable] -# property 'position' ('posn') 'QDpt' -- 'the position of the group within its parent window' [mutable] - -# Class 'groups' ('sgrp') -- 'every group' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'information window' ('iwnd') -- 'An information window (opened by \322Get Info\311\323)' -# property 'comment' ('comt') 'itxt' -- 'the comment' [mutable] -# property 'creation date' ('crtd') 'ldt ' -- 'the date on which the item was created' [] -# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the item' [mutable] -# property 'item' ('cobj') 'obj ' -- 'the item this window was opened from' [] -# property 'locked' ('islk') 'bool' -- 'Is the item locked?' [mutable] -# property 'minimum partition size' ('mprt') 'long' -- 'the smallest memory size that the application can possibly be launched with' [mutable] -# property 'modification date' ('modd') 'ldt ' -- 'the date on which the item was last modified' [] -# property 'partition size' ('appt') 'long' -- 'the memory size that the application will be launched with' [mutable] -# property 'physical size' ('phys') 'long' -- 'the actual space used by the item on disk' [] -# property 'product version' ('ver2') 'itxt' -- 'the version of the product (visible at the top of the \322Get Info\323 dialog)' [] -# property 'size' ('ptsz') 'long' -- 'the logical size of the item' [] -# property 'stationery' ('pspd') 'bool' -- 'Is the item a stationery pad?' [mutable] -# property 'suggested partition size' ('sprt') 'long' -- 'the memory size that the developer recommends that the application should be launched with' [] -# property 'version' ('vers') 'itxt' -- 'the version of the file (visible at the bottom of the \322Get Info\323 dialog)' [] -# property 'warn before emptying' ('warn') 'bool' -- 'Is a dialog displayed when \322Empty trash\311\323 is selected?' [mutable] - -# Class 'information windows' ('iwnd') -- 'every information window' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'item' ('cobj') -- 'An item' -# property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the item' [mutable] -# property 'comment' ('comt') 'itxt' -- 'the comment displayed in the \322Get Info\323 window of the item' [mutable] -# property 'container' ('ctnr') 'obj ' -- 'the container of this item' [] -# property 'content space' ('dwnd') 'dwnd' -- 'the window that would open if the item was opened' [] -# property 'creation date' ('crtd') 'ldt ' -- 'the date on which the item was created' [] -# property 'disk' ('cdis') 'obj ' -- 'the disk on which the item is stored' [] -# property 'folder' ('cfol') 'obj ' -- 'the folder in which the item is stored' [] -# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the item' [mutable] -# property 'id' ('ID ') 'long' -- 'an id that identifies the item' [] -# property 'information window' ('iwnd') 'obj ' -- 'the information window for the item' [] -# property 'kind' ('kind') 'itxt' -- 'the kind of the item' [] -# property 'label index' ('labi') 'long' -- 'the label of the item' [mutable] -# property 'modification date' ('modd') 'ldt ' -- 'the date on which the item was last modified' [] -# property 'name' ('pnam') 'itxt' -- 'the name of the item' [mutable] -# property 'physical size' ('phys') 'long' -- 'the actual space used by the item on disk' [] -# property 'position' ('posn') 'QDpt' -- 'the position of the item within its parent window' [mutable] -# property 'selected' ('issl') 'bool' -- 'Is the item selected?' [mutable] -# property 'size' ('ptsz') 'long' -- 'the logical size of the item' [] -# property 'window' ('cwin') 'cwin' -- 'the window that would open if the item was opened' [] - -# Class 'items' ('cobj') -- 'every item' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'process' ('prcs') -- 'A process running on this Macintosh' -# property 'creator type' ('fcrt') 'type' -- 'the creator type of this process' [] -# property 'file' ('file') 'obj ' -- 'the file that launched this process' [] -# property 'file type' ('fitp') 'type' -- 'the file type of the file that launched this process' [] -# property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' [mutable] -# property 'name' ('pnam') 'itxt' -- 'the name of the process' [] -# property 'partition size' ('appt') 'long' -- 'the size of the partition that this application was launched with' [] -# property 'partition space used' ('pusd') 'long' -- 'the number of bytes currently used in this partition' [] -# property 'remote events' ('revt') 'bool' -- 'Will this process accepts remote events?' [] -# property 'scriptable' ('isab') 'bool' -- 'Is this process high-level event aware (accepts open application, open document, print document, and quit)?' [] -# property 'visible' ('pvis') 'bool' -- "Is this process' layer visible?" [mutable] - -# Class 'processes' ('prcs') -- 'every process' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'sharable container' ('sctr') -- 'A container that may be shared (disks and folders)' -# property 'exported' ('sexp') 'bool' -- 'Is this folder a share point or inside a share point?' [] -# property 'group' ('sgrp') 'itxt' -- 'the user or group that has special access to the folder' [mutable] -# property 'group privileges' ('gppr') 'priv' -- 'the see folders/see files/make changes privileges for the group' [mutable] -# property 'guest privileges' ('gstp') 'priv' -- 'the see folders/see files/make changes privileges for everyone' [mutable] -# property 'inherited privileges' ('iprv') 'bool' -- 'Are the privileges of this item always the same as the container it is stored in?' [mutable] -# property 'mounted' ('smou') 'bool' -- "Is this folder mounted on another machine's desktop?" [] -# property 'owner' ('sown') 'itxt' -- 'the user that owns this folder' [mutable] -# property 'owner privileges' ('ownr') 'priv' -- 'the see folders/see files/make changes privileges for the owner' [mutable] -# property 'protected' ('spro') 'bool' -- 'Is container protected from being moved, renamed or deleted?' [mutable] -# property 'shared' ('shar') 'bool' -- 'Is container a share point?' [mutable] -# property 'sharing window' ('swnd') 'obj ' -- 'the sharing window for the container' [] -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] - -# Class 'sharable containers' ('sctr') -- 'every sharable container' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'sharing privileges' ('priv') -- 'A set of sharing properties' -# property 'make changes' ('prvw') 'bool' -- 'privileges to make changes' [mutable] -# property 'see files' ('prvr') 'bool' -- 'privileges to see files' [mutable] -# property 'see folders' ('prvs') 'bool' -- 'privileges to see folders' [mutable] - -# Class 'sharing window' ('swnd') -- 'A sharing window (opened by \322Sharing\311\323)' -# property 'container' ('ctnr') 'obj ' -- 'the container that this window was opened from' [] -# property 'exported' ('sexp') 'bool' -- 'Is this container a share point or inside a share point?' [] -# property 'folder' ('cfol') 'obj ' -- 'the folder that this window was opened from' [] -# property 'group' ('sgrp') 'itxt' -- 'the user or group that has special access to the container' [mutable] -# property 'group privileges' ('gppr') 'priv' -- 'the see folders/see files/make changes privileges for the group' [mutable] -# property 'guest privileges' ('gstp') 'priv' -- 'the see folders/see files/make changes privileges for everyone' [mutable] -# property 'inherited privileges' ('iprv') 'bool' -- 'Are the privileges of this item always the same as the container it is stored in?' [mutable] -# property 'item' ('cobj') 'obj ' -- 'the item that this window was opened from' [] -# property 'mounted' ('smou') 'bool' -- "Is this container mounted on another machine's desktop?" [] -# property 'owner' ('sown') 'itxt' -- 'the user that owns the container' [mutable] -# property 'owner privileges' ('ownr') 'priv' -- 'the see folders/see files/make changes privileges for the owner' [mutable] -# property 'protected' ('spro') 'bool' -- 'Is container protected from being moved, renamed or deleted?' [mutable] -# property 'sharable container' ('sctr') 'obj ' -- 'the sharable container that this window was opened from' [] -# property 'shared' ('shar') 'bool' -- 'Is container a share point?' [mutable] - -# Class 'sharing windows' ('swnd') -- 'every sharing window' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'sound file' ('sndf') -- 'This class represents sound files' - -# Class 'sound files' ('sndf') -- 'every sound file' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'status window' ('qwnd') -- 'These windows are progress dialogs (copy window, rebuild desktop database, empty trash)' - -# Class 'status windows' ('qwnd') -- 'every status window' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'suitcase' ('stcs') -- 'A font or desk accessory suitcase' -# element 'cobj' as ['indx', 'name'] - -# Class 'suitcases' ('stcs') -- 'every suitcase' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'trash-object' ('ctrs') -- 'Trash-object is the class of the \322trash\323 object' -# property 'warn before emptying' ('warn') 'bool' -- 'Is a dialog displayed when \322Empty trash\311\323 is selected?' [mutable] -# element 'dsut' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'ccdv' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'docf' as ['indx', 'name'] -# element 'file' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'cobj' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] - -# Class 'user' ('cuse') -- 'A User in the Users and Groups control panel' -# property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the user' [mutable] -# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the user' [mutable] -# property 'label index' ('labi') 'long' -- 'the label of the user' [mutable] -# property 'name' ('pnam') 'itxt' -- 'the name of the user' [mutable] -# property 'position' ('posn') 'QDpt' -- 'the position of the user within its parent window' [mutable] - -# Class 'users' ('cuse') -- 'every user' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'window' ('cwin') -- 'A window' - -# Class 'windows' ('cwin') -- 'every window' -# property '' ('c@#!') 'type' -- '' [0] diff --git a/Mac/Lib/toolbox/Metrowerks_Shell_Suite.py b/Mac/Lib/toolbox/Metrowerks_Shell_Suite.py deleted file mode 100644 index 88bcdf9..0000000 --- a/Mac/Lib/toolbox/Metrowerks_Shell_Suite.py +++ /dev/null @@ -1,992 +0,0 @@ -"""Suite Metrowerks Shell Suite: Events supported by the Metrowerks Project Shell -Level 1, version 1 - -Generated from flap:Metrowerks:Metrowerks CodeWarrior:CodeWarrior IDE 1.7.4 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'MMPR' - -_Enum_savo = { - 'yes' : 'yes ', # Save changes - 'no' : 'no ', # Do not save changes - 'ask' : 'ask ', # Ask the user whether to save -} - -_Enum_ErrT = { - 'information' : 'ErIn', # - 'compiler_warning' : 'ErCW', # - 'compiler_error' : 'ErCE', # - 'definition' : 'ErDf', # - 'linker_warning' : 'ErLW', # - 'linker_error' : 'ErLE', # - 'find_result' : 'ErFn', # - 'generic_error' : 'ErGn', # -} - -_Enum_Mode = { - 'ReadWrite' : 'RdWr', # The file is open with read/write privileges - 'ReadOnly' : 'Read', # The file is open with read/only privileges - 'CheckedOut_ReadWrite' : 'CkRW', # The file is checked out with read/write privileges - 'CheckedOut_ReadOnly' : 'CkRO', # The file is checked out with read/only privileges - 'CheckedOut_ReadModify' : 'CkRM', # The file is checked out with read/modify privileges - 'Locked' : 'Lock', # The file is locked on disk - 'None' : 'None', # The file is new -} - -_Enum_SrcT = { - 'source' : 'FTxt', # A source file (.c, .cp, .p, etc). - 'unknown' : 'FUnk', # An unknown file type. -} - -_Enum_PPrm = { - 'absolute' : 'Abso', # An absolute path name, including volume name. - 'project_relative' : 'PRel', # A path relative to the current projectıs folder. - 'shell_relative' : 'SRel', # A path relative to the CodeWarrior folder. -} - -_Enum_RefP = { - 'Think_Reference' : 'DanR', # - 'QuickView' : 'ALTV', # -} - -_Enum_Lang = { - 'C' : 'LC ', # - 'C_2b__2b_' : 'LC++', # - 'Pascal' : 'LP ', # - 'Object_Pascal' : 'LP++', # - 'Java' : 'LJav', # - 'Assembler' : 'LAsm', # - 'Unknown' : 'L? ', # -} - -_Enum_Acce = { - 'public' : 'Publ', # - 'protected' : 'Prot', # - 'private' : 'Priv', # -} - -class Metrowerks_Shell_Suite: - - _argmap_Add_Files = { - 'To_Segment' : 'Segm', - } - - def Add_Files(self, _object, _attributes={}, **_arguments): - """Add Files: Add the specified file(s) to the current project - Required argument: List of files to add - Keyword argument To_Segment: Segment number into which to add the file(s) - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each file added - """ - _code = 'MMPR' - _subcode = 'AddF' - - aetools.keysubst(_arguments, self._argmap_Add_Files) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Check_Syntax = { - 'ExternalEditor' : 'Errs', - } - - def Check_Syntax(self, _object, _attributes={}, **_arguments): - """Check Syntax: Check the syntax of the specified file(s) - Required argument: List of files to check the syntax of - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for each file whose syntax was checked - """ - _code = 'MMPR' - _subcode = 'Chek' - - aetools.keysubst(_arguments, self._argmap_Check_Syntax) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Close_Project(self, _no_object=None, _attributes={}, **_arguments): - """Close Project: Close the current project - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'ClsP' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Close_Window = { - 'Saving' : 'savo', - } - - def Close_Window(self, _object, _attributes={}, **_arguments): - """Close Window: Close the windows showing the specified files - Required argument: The files to close - Keyword argument Saving: Whether to save changes to each file before closing its window - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'ClsW' - - aetools.keysubst(_arguments, self._argmap_Close_Window) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'savo', _Enum_savo) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Compile = { - 'ExternalEditor' : 'Errs', - } - - def Compile(self, _object, _attributes={}, **_arguments): - """Compile: Compile the specified file(s) - Required argument: List of files to compile - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for each file compiled - """ - _code = 'MMPR' - _subcode = 'Comp' - - aetools.keysubst(_arguments, self._argmap_Compile) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Create_Project = { - 'from_stationery' : 'Tmpl', - } - - def Create_Project(self, _object, _attributes={}, **_arguments): - """Create Project: Create a new project file - Required argument: New project file specifier - Keyword argument from_stationery: undocumented, typecode 'alis' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'NewP' - - aetools.keysubst(_arguments, self._argmap_Create_Project) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Definition(self, _object, _attributes={}, **_arguments): - """Get Definition: Returns the location(s) of a globally scoped function or data object. - Required argument: undocumented, typecode 'TEXT' - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'FDef' - """ - _code = 'MMPR' - _subcode = 'GDef' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Open_Documents(self, _no_object=None, _attributes={}, **_arguments): - """Get Open Documents: Returns the list of open documents - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The list of documents - """ - _code = 'MMPR' - _subcode = 'GDoc' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Get_Preferences = { - 'of' : 'PRec', - 'from_panel' : 'PNam', - } - - def Get_Preferences(self, _no_object=None, _attributes={}, **_arguments): - """Get Preferences: Get the preferences for the current project - Keyword argument of: Names of requested preferences - Keyword argument from_panel: Name of the preference panel - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The requested preferences - """ - _code = 'MMPR' - _subcode = 'Gref' - - aetools.keysubst(_arguments, self._argmap_Get_Preferences) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Get_Project_File = { - 'Segment' : 'Segm', - } - - def Get_Project_File(self, _object, _attributes={}, **_arguments): - """Get Project File: Returns a description of a file in the project window. - Required argument: The index of the file within its segment. - Keyword argument Segment: The segment containing the file. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'SrcF' - """ - _code = 'MMPR' - _subcode = 'GFil' - - aetools.keysubst(_arguments, self._argmap_Get_Project_File) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Project_Specifier(self, _no_object=None, _attributes={}, **_arguments): - """Get Project Specifier: Return the File Specifier for the current project - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: File Specifier for the current project - """ - _code = 'MMPR' - _subcode = 'GetP' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Segments(self, _no_object=None, _attributes={}, **_arguments): - """Get Segments: Returns a description of each segment in the project. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'Seg ' - """ - _code = 'MMPR' - _subcode = 'GSeg' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Goto_Function(self, _object, _attributes={}, **_arguments): - """Goto Function: Goto Specified Function Name - Required argument: undocumented, typecode 'TEXT' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'GoFn' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Goto_Line(self, _object, _attributes={}, **_arguments): - """Goto Line: Goto Specified Line Number - Required argument: The requested source file line number - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'GoLn' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Is_In_Project(self, _object, _attributes={}, **_arguments): - """Is In Project: Whether or not the specified file(s) is in the current project - Required argument: List of files to check for project membership - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Result code for each file - """ - _code = 'MMPR' - _subcode = 'FInP' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Make_Project = { - 'ExternalEditor' : 'Errs', - } - - def Make_Project(self, _no_object=None, _attributes={}, **_arguments): - """Make Project: Make the current project - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors that occurred while making the project - """ - _code = 'MMPR' - _subcode = 'Make' - - aetools.keysubst(_arguments, self._argmap_Make_Project) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Precompile = { - 'Saving_As' : 'Targ', - 'ExternalEditor' : 'Errs', - } - - def Precompile(self, _object, _attributes={}, **_arguments): - """Precompile: Precompile the specified file to the specified destination file - Required argument: File to precompile - Keyword argument Saving_As: Destination file for precompiled header - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for the precompiled file - """ - _code = 'MMPR' - _subcode = 'PreC' - - aetools.keysubst(_arguments, self._argmap_Precompile) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Preprocess = { - 'ExternalEditor' : 'Errs', - } - - def Preprocess(self, _object, _attributes={}, **_arguments): - """Preprocess: Preprocesses the specified file(s) - Required argument: undocumented, typecode 'alis' - Keyword argument ExternalEditor: undocumented, typecode 'bool' - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for each preprocessed file - """ - _code = 'MMPR' - _subcode = 'PreP' - - aetools.keysubst(_arguments, self._argmap_Preprocess) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Remove_Binaries(self, _no_object=None, _attributes={}, **_arguments): - """Remove Binaries: Remove the binary object code from the current project - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'RemB' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Remove_Files(self, _object, _attributes={}, **_arguments): - """Remove Files: Remove the specified file(s) from the current project - Required argument: List of files to remove - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each file removed - """ - _code = 'MMPR' - _subcode = 'RemF' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Reset_File_Paths(self, _no_object=None, _attributes={}, **_arguments): - """Reset File Paths: Resets access paths for all files belonging to open project. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'ReFP' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Run_Project = { - 'ExternalEditor' : 'Errs', - 'SourceDebugger' : 'DeBg', - } - - def Run_Project(self, _no_object=None, _attributes={}, **_arguments): - """Run Project: Run the current project - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument SourceDebugger: Run the application under the control of the source-level debugger - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors that occurred when running the project - """ - _code = 'MMPR' - _subcode = 'RunP' - - aetools.keysubst(_arguments, self._argmap_Run_Project) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Save_Error_Window_As(self, _object, _attributes={}, **_arguments): - """Save Error Window As: Saves the Errors & Warnings window as a text file - Required argument: Destination file for Save Message Window As - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'SvMs' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Modification_Date = { - 'to' : 'MDat', - } - - def Set_Modification_Date(self, _object, _attributes={}, **_arguments): - """Set Modification Date: Changes the internal modification date of the specified file(s) - Required argument: List of files - Keyword argument to: undocumented, typecode 'ldt ' - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each modified file - """ - _code = 'MMPR' - _subcode = 'SMod' - - aetools.keysubst(_arguments, self._argmap_Set_Modification_Date) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Preferences = { - 'of_panel' : 'PNam', - 'to' : 'PRec', - } - - def Set_Preferences(self, _no_object=None, _attributes={}, **_arguments): - """Set Preferences: Set the preferences for the current project - Keyword argument of_panel: Name of the preference panel - Keyword argument to: Preferences settings - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'Pref' - - aetools.keysubst(_arguments, self._argmap_Set_Preferences) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Project_File = { - 'to' : 'SrcS', - } - - def Set_Project_File(self, _object, _attributes={}, **_arguments): - """Set Project File: Changes the settings for a given file in the project. - Required argument: The name of the file - Keyword argument to: The new settings for the file - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'SFil' - - aetools.keysubst(_arguments, self._argmap_Set_Project_File) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Segment = { - 'to' : 'Segm', - } - - def Set_Segment(self, _object, _attributes={}, **_arguments): - """Set Segment: Changes the name and attributes of a segment. - Required argument: The segment to change - Keyword argument to: The new name and attributes for the segment. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'SSeg' - - aetools.keysubst(_arguments, self._argmap_Set_Segment) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Touch(self, _object, _attributes={}, **_arguments): - """Touch: Force recompilation of the specified file(s) - Required argument: List of files to compile - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each file touched - """ - _code = 'MMPR' - _subcode = 'Toch' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Update_Project = { - 'ExternalEditor' : 'Errs', - } - - def Update_Project(self, _no_object=None, _attributes={}, **_arguments): - """Update Project: Update the current project - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors that occurred while updating the project - """ - _code = 'MMPR' - _subcode = 'UpdP' - - aetools.keysubst(_arguments, self._argmap_Update_Project) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Open_browser(self, _object, _attributes={}, **_arguments): - """Open browser: Display a class, member function, or data member object in a single class browser window - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'Brow' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_nonsimple_classes(self, _no_object=None, _attributes={}, **_arguments): - """Get nonsimple classes: Returns an alphabetical list of classes with member functions, bases classes, or subclasses - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'list' - """ - _code = 'MMPR' - _subcode = 'NsCl' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_member_function_names(self, _object, _attributes={}, **_arguments): - """Get member function names: Returns a list containing the names of all the member functions of a class object - Required argument: must be a class object - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'list' - """ - _code = 'MMPR' - _subcode = 'MbFN' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# Class 'Access Paths' ('PATH') -- 'Contains the definitions of a project\325s access (search) paths.' -# property 'User Paths' ('PA01') 'PInf' -- 'To add an access path for the source files.' [mutable list] -# property 'System Paths' ('PA03') 'PInf' -- 'To add an access path for the include files. (Not supported in Pascal)' [mutable list] -# property 'Always Full Search' ('PA02') 'bool' -- 'To force the compiler to search for system includes like it searches for user includes.' [mutable] - -# Class 'Editor' ('EDTR') -- '' -# property 'Flash delay' ('ED01') 'long' -- 'The amount of time, in sixtieths of a second, the editor highlights a matching bracket.' [mutable] -# property 'Dynamic scroll' ('ED02') 'bool' -- 'Display a window\325s contents as you move the scroll box.' [mutable] -# property 'Balance' ('ED03') 'bool' -- 'Flash the matching opening bracket when you type a closing bracket.' [mutable] -# property 'Use Drag & Drop Editing' ('ED04') 'bool' -- 'Use Drag & Drop text editing.' [mutable] -# property 'Save on update' ('ED05') 'bool' -- 'Save all editor windows automatically when you choose the Update command.' [mutable] -# property 'Sort Function Popup' ('ED06') 'bool' -- '' [mutable] -# property 'Use Multiple Undo' ('ED07') 'bool' -- '' [mutable] -# property 'Remember font' ('ED08') 'bool' -- 'Display a source file with its own font settings.' [mutable] -# property 'Remember selection' ('ED09') 'bool' -- 'Restore the previous selection in a file when you open it.' [mutable] -# property 'Remember window' ('ED10') 'bool' -- 'Restore the last size and position for a source file window when you open it.' [mutable] -# property 'Main Text Color' ('ED12') 'cRGB' -- 'Main, default, color for text.' [mutable] -# property 'Background Color' ('ED13') 'cRGB' -- 'Color of the background of editor windows.' [mutable] -# property 'Context Popup Delay' ('ED14') 'bool' -- 'The amount of time, in sixtieths of a second, before the context popup is displayed if you click and hold on a browser symbol.' [mutable] - -# Class 'Syntax Coloring' ('SNTX') -- '' -# property 'Syntax coloring' ('GH01') 'bool' -- 'Mark keywords and comments with color.' [mutable] -# property 'Comment color' ('GH02') 'cRGB' -- 'The color for comments.' [mutable] -# property 'Keyword color' ('GH03') 'cRGB' -- 'The color for language keywords.' [mutable] -# property 'String color' ('GH04') 'cRGB' -- 'The color for strings.' [mutable] -# property 'Custom color 1' ('GH05') 'cRGB' -- 'The color for the first set of custom keywords.' [mutable] -# property 'Custom color 2' ('GH06') 'cRGB' -- 'The color for the second set custom keywords.' [mutable] -# property 'Custom color 3' ('GH07') 'cRGB' -- 'The color for the third set of custom keywords.' [mutable] -# property 'Custom color 4' ('GH08') 'cRGB' -- 'The color for the fourth set of custom keywords.' [mutable] - -# Class 'Custom Keywords' ('CUKW') -- '' -# property 'Custom color 1' ('KW01') 'cRGB' -- 'The color for the first set of custom keywords.' [mutable] -# property 'Custom color 2' ('KW02') 'cRGB' -- 'The color for the second set custom keywords.' [mutable] -# property 'Custom color 3' ('KW03') 'cRGB' -- 'The color for the third set of custom keywords.' [mutable] -# property 'Custom color 4' ('KW04') 'cRGB' -- 'The color for the fourth set of custom keywords.' [mutable] - -# Class 'Browser Coloring' ('BRKW') -- 'Colors for Browser symbols.' -# property 'Browser Keywords' ('BW00') 'bool' -- 'Mark Browser symbols with color.' [mutable] -# property 'Classes Color' ('BW01') 'cRGB' -- 'The color for classes.' [mutable] -# property 'Constants Color' ('BW02') 'cRGB' -- 'The color for constants.' [mutable] -# property 'Enums Color' ('BW03') 'cRGB' -- 'The color for enums.' [mutable] -# property 'Functions Color' ('BW04') 'cRGB' -- 'Set color for functions.' [mutable] -# property 'Globals Color' ('BW05') 'cRGB' -- 'The color for globals' [mutable] -# property 'Macros Color' ('BW06') 'cRGB' -- 'The color for macros.' [mutable] -# property 'Templates Color' ('BW07') 'cRGB' -- 'Set color for templates.' [mutable] -# property 'Typedefs Color' ('BW08') 'cRGB' -- 'The color for typedefs.' [mutable] - -# Class 'Error Information' ('ErrM') -- 'Describes a single error or warning from the compiler or the linker.' -# property 'kind' ('ErrT') 'ErrT' -- 'The type of error or warning.' [enum] -# property 'message' ('ErrS') 'TEXT' -- 'The error or warning message.' [] -# property 'disk file' ('file') 'fss ' -- 'The file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).' [] -# property 'lineNumber' ('ErrL') 'long' -- 'The line in the file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).' [] - -# Class 'Extras' ('GXTR') -- '' -# property 'Completion sound' ('EX01') 'bool' -- 'Play a sound when finished a Bring Up To Date or Make command.' [mutable] -# property 'Success sound' ('EX02') 'TEXT' -- 'The sound CodeWarrior plays when it successfully finishes a Bring Up To Date or Make command.' [mutable] -# property 'Failure sound' ('EX03') 'TEXT' -- 'The sound CodeWarrior plays when it cannot finish a Bring Up To Date or Make command.' [mutable] -# property 'Full screen zoom' ('EX07') 'bool' -- 'Zoom windows to the full screen width.' [mutable] -# property 'External reference' ('EX08') 'RefP' -- 'Which on-line function reference to use.' [mutable enum] -# property 'Use Script Menu' ('EX12') 'bool' -- 'Controls the use of the AppleScript menu' [mutable] -# property 'Use Editor Extensions' ('EX10') 'bool' -- 'Controls the use of the Editor Extensions menu' [mutable] -# property 'Use External Editor' ('EX11') 'bool' -- 'Controls whether CodeWarrior uses its own integrated editor or an external application for editing text files.' [mutable] -# property 'Honor Projector State for Projects' ('EX13') 'bool' -- 'Controls whether CodeWarrior opens files set to read-only by Projector.' [mutable] - -# Class 'Build Extras' ('LXTR') -- '' -# property 'Browser active' ('EX09') 'bool' -- 'Allow the collection of browser information.' [mutable] -# property 'Modification date caching' ('EX04') 'bool' -- '' [mutable] -# property 'Generate Map' ('EX05') 'bool' -- 'Generate a Pascal Make map file.' [mutable] -# property 'Store analysis results' ('EX06') 'bool' -- '' [mutable] - -# Class 'Font' ('mFNT') -- '' -# property 'Auto indent' ('FN01') 'bool' -- 'Indent new lines automatically.' [mutable] -# property 'Tab size' ('FN02') 'shor' -- '' [mutable] -# property 'Text font' ('ptxf') 'TEXT' -- 'The font used in editing windows.' [mutable] -# property 'Text size' ('ptps') 'shor' -- 'The size of the text in an editing window.' [mutable] - -# Class 'Function Information' ('FDef') -- 'Describes the location of any function or global data definition within the current project.' -# property 'disk file' ('file') 'fss ' -- 'The location on disk of the file containing the definition.' [] -# property 'lineNumber' ('ErrL') 'long' -- 'The line number where the definition begins.' [] - -# Class 'Path Information' ('PInf') -- 'Contains all of the parameters that describe an access path.' -# property 'name' ('pnam') 'TEXT' -- 'The actual path name.' [mutable] -# property 'recursive' ('Recu') 'bool' -- 'Will the path be searched recursively? (Default is true)' [mutable] -# property 'origin' ('Orig') 'PPrm' -- '' [mutable enum] - -# Class 'ProjectFile' ('SrcF') -- 'A file contained in a project' -# property 'filetype' ('SrcT') 'SrcT' -- 'What kind of file is this ?' [enum] -# property 'name' ('pnam') 'TEXT' -- 'The file\325s name' [] -# property 'disk file' ('file') 'fss ' -- 'The file\325s location on disk' [] -# property 'codesize' ('CSiz') 'long' -- 'The size of this file\325s code.' [] -# property 'datasize' ('DSiz') 'long' -- 'The size of this file\325s data.' [] -# property 'up to date' ('UpTD') 'bool' -- 'Has the file been compiled since its last modification ?' [] -# property 'symbols' ('SymG') 'bool' -- 'Are debugging symbols generated for this file ?' [mutable] -# property 'weak link' ('Weak') 'bool' -- 'Is this file imported weakly into the project ? [PowerPC only]' [mutable] -# property 'initialize before' ('Bfor') 'bool' -- 'Intiailize the shared library before the main application.' [mutable] -# property 'includes' ('IncF') 'fss ' -- '' [] - -# Class 'Segment' ('Seg ') -- 'A segment or group in the project' -# property 'name' ('pnam') 'TEXT' -- '' [mutable] -# property 'filecount' ('NumF') 'shor' -- '' [] -# property 'preloaded' ('Prel') 'bool' -- 'Is the segment preloaded ? [68K only]' [mutable] -# property 'protected' ('Prot') 'bool' -- 'Is the segment protected ? [68K only]' [mutable] -# property 'locked' ('PLck') 'bool' -- 'Is the segment locked ? [68K only]' [mutable] -# property 'purgeable' ('Purg') 'bool' -- 'Is the segment purgeable ? [68K only]' [mutable] -# property 'system heap' ('SysH') 'bool' -- 'Is the segment loaded into the system heap ? [68K only]' [mutable] - -# Class 'Target' ('TARG') -- 'Contains the definitions of a project\325s target.' -# property 'Current Target' ('TA01') 'TEXT' -- 'The name of the current target.' [mutable] -# property 'Mappings' ('TA08') 'TInf' -- '' [mutable list] - -# Class 'Target Information' ('TInf') -- '' -# property 'File Type' ('PR04') 'TEXT' -- '' [mutable] -# property 'Extension' ('TA02') 'TEXT' -- '' [mutable] -# property 'Precompiled' ('TA03') 'bool' -- '' [mutable] -# property 'Resource File' ('TA04') 'bool' -- '' [mutable] -# property 'Launchable' ('TA05') 'bool' -- '' [mutable] -# property 'Ignored by Make' ('TA06') 'bool' -- '' [mutable] -# property 'Compiler' ('TA07') 'TEXT' -- '' [mutable] - -# Class 'class' ('Clas') -- 'A class, struct, or record type in the current project' -# property 'name' ('pnam') 'TEXT' -- '' [] -# property 'language' ('Lang') 'Lang' -- 'Implementation language of this class' [enum] -# property 'declaration file' ('DcFl') 'fss ' -- 'Source file containing the class declaration' [] -# property 'declaration start offset' ('DcSt') 'long' -- 'Start of class declaration source code' [] -# property 'declaration end offset' ('DcEn') 'long' -- 'End of class declaration' [] -# property 'subclasses' ('SubC') 'Clas' -- 'the immediate subclasses of this class' [list] -# property 'all subclasses' ('SubA') 'Clas' -- 'the classes directly or indirectly derived from this class' [list] -# element 'BsCl' as ['indx'] -# element 'MbFn' as ['indx', 'name'] -# element 'DtMb' as ['indx', 'name'] - -# Class 'classes' ('Clas') -- '' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'member function' ('MbFn') -- 'A class member function or method.' -# property 'name' ('pnam') 'TEXT' -- '' [] -# property 'access' ('Acce') 'Acce' -- '' [enum] -# property 'virtual' ('Virt') 'bool' -- '' [] -# property 'static' ('Stat') 'bool' -- '' [] -# property 'declaration file' ('DcFl') 'fss ' -- 'Source file containing the member function declaration' [] -# property 'declaration start offset' ('DcSt') 'long' -- 'start of member function declaration source code' [] -# property 'declaration end offset' ('DcEn') 'long' -- 'end of member function declaration' [] -# property 'implementation file' ('DfFl') 'fss ' -- 'Source file containing the member function definition' [] -# property 'implementation start offset' ('DfSt') 'long' -- 'start of member function definition source code' [] -# property 'implementation end offset' ('DfEn') 'long' -- 'end of member function definition' [] - -# Class 'member functions' ('MbFn') -- '' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'data member' ('DtMb') -- 'A class data member or field' -# property 'name' ('pnam') 'TEXT' -- '' [] -# property 'access' ('Acce') 'Acce' -- '' [enum] -# property 'static' ('Stat') 'bool' -- '' [] -# property 'declaration start offset' ('DcSt') 'long' -- '' [] -# property 'declaration end offset' ('DcEn') 'long' -- '' [] - -# Class 'data members' ('DtMb') -- '' -# property '' ('c@#!') 'type' -- '' [0] - -# Class 'base class' ('BsCl') -- 'A base class or super class of a class' -# property 'class' ('Clas') 'obj ' -- 'The class object corresponding to this base class' [] -# property 'access' ('Acce') 'Acce' -- '' [enum] -# property 'virtual' ('Virt') 'bool' -- '' [] - -# Class 'base classes' ('BsCl') -- '' -# property '' ('c@#!') 'type' -- '' [0 enum] - -# Class 'browser catalog' ('Cata') -- 'The browser symbol catalog for the current project' -# element 'Clas' as ['indx', 'name'] - -# Class 'VCS Setup' ('VCSs') -- 'The version control system perferences.' -# property 'VCS Active' ('VC01') 'bool' -- 'Use Version Control' [mutable] -# property 'Connection Method' ('VC02') 'TEXT' -- 'Name of Version Control System to use.' [mutable] -# property 'Username' ('VC03') 'TEXT' -- 'The user name for the VCS.' [mutable] -# property 'Password' ('VC04') 'TEXT' -- 'The password for the VCS.' [mutable] -# property 'Auto Connect' ('VC05') 'bool' -- 'Automatically connect to database when starting.' [mutable] -# property 'Store Password' ('VC06') 'bool' -- 'Store the password.' [mutable] -# property 'Always Prompt' ('VC07') 'bool' -- 'Always show login dialog' [mutable] -# property 'Mount Volume' ('VC08') 'bool' -- "Attempt to mount the database volume if it isn't available." [mutable] -# property 'Database Path' ('VC09') 'PInf' -- 'Path to the VCS database.' [mutable] -# property 'Local Root' ('VC10') 'PInf' -- 'Path to the local directory to checkout to.' [mutable] |