diff options
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/Finder')
10 files changed, 326 insertions, 562 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py b/Lib/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py index 73cd500..08b9e76 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py @@ -18,35 +18,35 @@ class Containers_and_folders_Events: class disk(aetools.ComponentItem): """disk - A disk """ want = 'cdis' -class _3c_Inheritance_3e_(aetools.NProperty): +class _Prop__3c_Inheritance_3e_(aetools.NProperty): """<Inheritance> - inherits some of its properties from the container class """ which = 'c@#^' want = 'ctnr' -class capacity(aetools.NProperty): +class _Prop_capacity(aetools.NProperty): """capacity - the total number of bytes (free or used) on the disk """ which = 'capa' want = 'comp' -class ejectable(aetools.NProperty): +class _Prop_ejectable(aetools.NProperty): """ejectable - Can the media be ejected (floppies, CD's, and so on)? """ which = 'isej' want = 'bool' -class format(aetools.NProperty): +class _Prop_format(aetools.NProperty): """format - the filesystem format of this disk """ which = 'dfmt' want = 'edfm' -class free_space(aetools.NProperty): +class _Prop_free_space(aetools.NProperty): """free space - the number of free bytes left on the disk """ which = 'frsp' want = 'comp' -class ignore_privileges(aetools.NProperty): +class _Prop_ignore_privileges(aetools.NProperty): """ignore privileges - Ignore permissions on this disk? """ which = 'igpr' want = 'bool' -class local_volume(aetools.NProperty): +class _Prop_local_volume(aetools.NProperty): """local volume - Is the media a local volume (as opposed to a file server)? """ which = 'isrv' want = 'bool' -class startup(aetools.NProperty): +class _Prop_startup(aetools.NProperty): """startup - Is this disk the boot disk? """ which = 'istd' want = 'bool' @@ -97,23 +97,23 @@ folders = folder class container(aetools.ComponentItem): """container - An item that contains other items """ want = 'ctnr' -class completely_expanded(aetools.NProperty): +class _Prop_completely_expanded(aetools.NProperty): """completely expanded - (NOT AVAILABLE YET) Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists) """ which = 'pexc' want = 'bool' -class container_window(aetools.NProperty): +class _Prop_container_window(aetools.NProperty): """container window - the container window for this folder """ which = 'cwnd' want = 'obj ' -class entire_contents(aetools.NProperty): +class _Prop_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): +class _Prop_expandable(aetools.NProperty): """expandable - (NOT AVAILABLE YET) Is the container capable of being expanded as an outline? """ which = 'pexa' want = 'bool' -class expanded(aetools.NProperty): +class _Prop_expanded(aetools.NProperty): """expanded - (NOT AVAILABLE YET) Is the container opened as an outline? (can only be set for containers viewed as lists) """ which = 'pexp' want = 'bool' @@ -133,7 +133,7 @@ containers = container class trash_2d_object(aetools.ComponentItem): """trash-object - Trash-object is the class of the \xd2trash\xd3 object """ want = 'ctrs' -class warns_before_emptying(aetools.NProperty): +class _Prop_warns_before_emptying(aetools.NProperty): """warns before emptying - Display a dialog when emptying the trash? """ which = 'warn' want = 'bool' @@ -151,14 +151,14 @@ disk._superclassnames = ['container'] import Files import Finder_items disk._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'capacity' : capacity, - 'ejectable' : ejectable, - 'format' : format, - 'free_space' : free_space, - 'ignore_privileges' : ignore_privileges, - 'local_volume' : local_volume, - 'startup' : startup, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'capacity' : _Prop_capacity, + 'ejectable' : _Prop_ejectable, + 'format' : _Prop_format, + 'free_space' : _Prop_free_space, + 'ignore_privileges' : _Prop_ignore_privileges, + 'local_volume' : _Prop_local_volume, + 'startup' : _Prop_startup, } disk._privelemdict = { 'alias_file' : Files.alias_file, @@ -174,7 +174,7 @@ disk._privelemdict = { } desktop_2d_object._superclassnames = ['container'] desktop_2d_object._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, } desktop_2d_object._privelemdict = { 'alias_file' : Files.alias_file, @@ -191,7 +191,7 @@ desktop_2d_object._privelemdict = { } folder._superclassnames = ['container'] folder._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, } folder._privelemdict = { 'alias_file' : Files.alias_file, @@ -207,12 +207,12 @@ folder._privelemdict = { } container._superclassnames = ['item'] container._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'completely_expanded' : completely_expanded, - 'container_window' : container_window, - 'entire_contents' : entire_contents, - 'expandable' : expandable, - 'expanded' : expanded, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'completely_expanded' : _Prop_completely_expanded, + 'container_window' : _Prop_container_window, + 'entire_contents' : _Prop_entire_contents, + 'expandable' : _Prop_expandable, + 'expanded' : _Prop_expanded, } container._privelemdict = { 'alias_file' : Files.alias_file, @@ -228,8 +228,8 @@ container._privelemdict = { } trash_2d_object._superclassnames = ['container'] trash_2d_object._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'warns_before_emptying' : warns_before_emptying, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'warns_before_emptying' : _Prop_warns_before_emptying, } trash_2d_object._privelemdict = { 'alias_file' : Files.alias_file, @@ -254,26 +254,3 @@ _classdeclarations = { 'ctnr' : container, 'ctrs' : trash_2d_object, } - -_propdeclarations = { - 'c@#^' : _3c_Inheritance_3e_, - 'capa' : capacity, - 'cwnd' : container_window, - 'dfmt' : format, - 'ects' : entire_contents, - 'frsp' : free_space, - 'igpr' : ignore_privileges, - 'isej' : ejectable, - 'isrv' : local_volume, - 'istd' : startup, - 'pexa' : expandable, - 'pexc' : completely_expanded, - 'pexp' : expanded, - 'warn' : warns_before_emptying, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Enumerations.py b/Lib/plat-mac/lib-scriptpackages/Finder/Enumerations.py index 44eab6d..e87d914 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Enumerations.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Enumerations.py @@ -124,22 +124,3 @@ _Enum_vwby = { # _classdeclarations = { } - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'earr' : _Enum_earr, - 'ecvw' : _Enum_ecvw, - 'edfm' : _Enum_edfm, - 'elsv' : _Enum_elsv, - 'ipnl' : _Enum_ipnl, - 'isiz' : _Enum_isiz, - 'lvic' : _Enum_lvic, - 'priv' : _Enum_priv, - 'sodr' : _Enum_sodr, - 'vwby' : _Enum_vwby, -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Files.py b/Lib/plat-mac/lib-scriptpackages/Finder/Files.py index b754e6b..37cf458 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Files.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Files.py @@ -18,11 +18,11 @@ class Files_Events: class alias_file(aetools.ComponentItem): """alias file - An alias file (created with \xd2Make Alias\xd3) """ want = 'alia' -class _3c_Inheritance_3e_(aetools.NProperty): +class _Prop__3c_Inheritance_3e_(aetools.NProperty): """<Inheritance> - inherits some of its properties from the file class """ which = 'c@#^' want = 'file' -class original_item(aetools.NProperty): +class _Prop_original_item(aetools.NProperty): """original item - the original item pointed to by the alias """ which = 'orig' want = 'obj ' @@ -32,27 +32,27 @@ alias_files = alias_file class application_file(aetools.ComponentItem): """application file - An application's file on disk """ want = 'appf' -class accepts_high_level_events(aetools.NProperty): +class _Prop_accepts_high_level_events(aetools.NProperty): """accepts high level events - Is the application high-level event aware? (OBSOLETE: always returns true) """ which = 'isab' want = 'bool' -class has_scripting_terminology(aetools.NProperty): +class _Prop_has_scripting_terminology(aetools.NProperty): """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """ which = 'hscr' want = 'bool' -class minimum_size(aetools.NProperty): +class _Prop_minimum_size(aetools.NProperty): """minimum size - the smallest memory size with which the application can be launched """ which = 'mprt' want = 'long' -class opens_in_Classic(aetools.NProperty): +class _Prop_opens_in_Classic(aetools.NProperty): """opens in Classic - Should the application launch in the Classic environment? """ which = 'Clsc' want = 'bool' -class preferred_size(aetools.NProperty): +class _Prop_preferred_size(aetools.NProperty): """preferred size - the memory size with which the application will be launched """ which = 'appt' want = 'long' -class suggested_size(aetools.NProperty): +class _Prop_suggested_size(aetools.NProperty): """suggested size - the memory size with which the developer recommends the application be launched """ which = 'sprt' want = 'long' @@ -62,7 +62,7 @@ application_files = application_file class clipping(aetools.ComponentItem): """clipping - A clipping """ want = 'clpf' -class clipping_window(aetools.NProperty): +class _Prop_clipping_window(aetools.NProperty): """clipping window - (NOT AVAILABLE YET) the clipping window for this clipping """ which = 'lwnd' want = 'obj ' @@ -78,23 +78,23 @@ document_files = document_file class file(aetools.ComponentItem): """file - A file """ want = 'file' -class creator_type(aetools.NProperty): +class _Prop_creator_type(aetools.NProperty): """creator type - the OSType identifying the application that created the item """ which = 'fcrt' want = 'type' -class file_type(aetools.NProperty): +class _Prop_file_type(aetools.NProperty): """file type - the OSType identifying the type of data contained in the item """ which = 'asty' want = 'type' -class product_version(aetools.NProperty): +class _Prop_product_version(aetools.NProperty): """product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """ which = 'ver2' want = 'utxt' -class stationery(aetools.NProperty): +class _Prop_stationery(aetools.NProperty): """stationery - Is the file a stationery pad? """ which = 'pspd' want = 'bool' -class version(aetools.NProperty): +class _Prop_version(aetools.NProperty): """version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """ which = 'vers' want = 'utxt' @@ -104,7 +104,7 @@ files = file class internet_location_file(aetools.ComponentItem): """internet location file - An file containing an internet location """ want = 'inlf' -class location(aetools.NProperty): +class _Prop_location(aetools.NProperty): """location - the internet location """ which = 'iloc' want = 'utxt' @@ -118,58 +118,58 @@ class package(aetools.ComponentItem): packages = package alias_file._superclassnames = ['file'] alias_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'original_item' : original_item, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'original_item' : _Prop_original_item, } alias_file._privelemdict = { } application_file._superclassnames = ['file'] application_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'accepts_high_level_events' : accepts_high_level_events, - 'has_scripting_terminology' : has_scripting_terminology, - 'minimum_size' : minimum_size, - 'opens_in_Classic' : opens_in_Classic, - 'preferred_size' : preferred_size, - 'suggested_size' : suggested_size, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'accepts_high_level_events' : _Prop_accepts_high_level_events, + 'has_scripting_terminology' : _Prop_has_scripting_terminology, + 'minimum_size' : _Prop_minimum_size, + 'opens_in_Classic' : _Prop_opens_in_Classic, + 'preferred_size' : _Prop_preferred_size, + 'suggested_size' : _Prop_suggested_size, } application_file._privelemdict = { } clipping._superclassnames = ['file'] clipping._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'clipping_window' : clipping_window, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'clipping_window' : _Prop_clipping_window, } clipping._privelemdict = { } document_file._superclassnames = ['file'] document_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, } document_file._privelemdict = { } import Finder_items file._superclassnames = ['item'] file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'creator_type' : creator_type, - 'file_type' : file_type, - 'product_version' : product_version, - 'stationery' : stationery, - 'version' : version, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'creator_type' : _Prop_creator_type, + 'file_type' : _Prop_file_type, + 'product_version' : _Prop_product_version, + 'stationery' : _Prop_stationery, + 'version' : _Prop_version, } file._privelemdict = { } internet_location_file._superclassnames = ['file'] internet_location_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'location' : location, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'location' : _Prop_location, } internet_location_file._privelemdict = { } package._superclassnames = ['item'] package._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, } package._privelemdict = { } @@ -186,27 +186,3 @@ _classdeclarations = { 'inlf' : internet_location_file, 'pack' : package, } - -_propdeclarations = { - 'Clsc' : opens_in_Classic, - 'appt' : preferred_size, - 'asty' : file_type, - 'c@#^' : _3c_Inheritance_3e_, - 'fcrt' : creator_type, - 'hscr' : has_scripting_terminology, - 'iloc' : location, - 'isab' : accepts_high_level_events, - 'lwnd' : clipping_window, - 'mprt' : minimum_size, - 'orig' : original_item, - 'pspd' : stationery, - 'sprt' : suggested_size, - 'ver2' : product_version, - 'vers' : version, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py b/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py index cd9b10d..feb7660 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py @@ -61,55 +61,55 @@ class Finder_Basics_Events: class application(aetools.ComponentItem): """application - The Finder """ want = 'capp' -class Finder_preferences(aetools.NProperty): +class _Prop_Finder_preferences(aetools.NProperty): """Finder preferences - (NOT AVAILABLE YET) Various preferences that apply to the Finder as a whole """ which = 'pfrp' want = 'cprf' -class clipboard(aetools.NProperty): +class _Prop_clipboard(aetools.NProperty): """clipboard - (NOT AVAILABLE YET) the Finder\xd5s clipboard window """ which = 'pcli' want = 'obj ' -class desktop(aetools.NProperty): +class _Prop_desktop(aetools.NProperty): """desktop - the desktop """ which = 'desk' want = 'cdsk' -class frontmost(aetools.NProperty): +class _Prop_frontmost(aetools.NProperty): """frontmost - Is the Finder the frontmost process? """ which = 'pisf' want = 'bool' -class home(aetools.NProperty): +class _Prop_home(aetools.NProperty): """home - the home directory """ which = 'home' want = 'cfol' -class insertion_location(aetools.NProperty): +class _Prop_insertion_location(aetools.NProperty): """insertion location - the container in which a new folder would appear if \xd2New Folder\xd3 was selected """ which = 'pins' want = 'obj ' -class name(aetools.NProperty): +class _Prop_name(aetools.NProperty): """name - the Finder\xd5s name """ which = 'pnam' want = 'itxt' -class product_version(aetools.NProperty): +class _Prop_product_version(aetools.NProperty): """product version - the version of the System software running on this computer """ which = 'ver2' want = 'utxt' -class selection(aetools.NProperty): +class _Prop_selection(aetools.NProperty): """selection - the selection in the frontmost Finder window """ which = 'sele' want = 'obj ' -class startup_disk(aetools.NProperty): +class _Prop_startup_disk(aetools.NProperty): """startup disk - the startup disk """ which = 'sdsk' want = 'cdis' -class trash(aetools.NProperty): +class _Prop_trash(aetools.NProperty): """trash - the trash """ which = 'trsh' want = 'ctrs' -class version(aetools.NProperty): +class _Prop_version(aetools.NProperty): """version - the version of the Finder """ which = 'vers' want = 'utxt' -class visible(aetools.NProperty): +class _Prop_visible(aetools.NProperty): """visible - Is the Finder\xd5s layer visible? """ which = 'pvis' want = 'bool' @@ -133,19 +133,19 @@ import Window_classes import Containers_and_folders import Finder_items application._privpropdict = { - 'Finder_preferences' : Finder_preferences, - 'clipboard' : clipboard, - 'desktop' : desktop, - 'frontmost' : frontmost, - 'home' : home, - 'insertion_location' : insertion_location, - 'name' : name, - 'product_version' : product_version, - 'selection' : selection, - 'startup_disk' : startup_disk, - 'trash' : trash, - 'version' : version, - 'visible' : visible, + 'Finder_preferences' : _Prop_Finder_preferences, + 'clipboard' : _Prop_clipboard, + 'desktop' : _Prop_desktop, + 'frontmost' : _Prop_frontmost, + 'home' : _Prop_home, + 'insertion_location' : _Prop_insertion_location, + 'name' : _Prop_name, + 'product_version' : _Prop_product_version, + 'selection' : _Prop_selection, + 'startup_disk' : _Prop_startup_disk, + 'trash' : _Prop_trash, + 'version' : _Prop_version, + 'visible' : _Prop_visible, } application._privelemdict = { 'Finder_window' : Window_classes.Finder_window, @@ -170,25 +170,3 @@ application._privelemdict = { _classdeclarations = { 'capp' : application, } - -_propdeclarations = { - 'desk' : desktop, - 'home' : home, - 'pcli' : clipboard, - 'pfrp' : Finder_preferences, - 'pins' : insertion_location, - 'pisf' : frontmost, - 'pnam' : name, - 'pvis' : visible, - 'sdsk' : startup_disk, - 'sele' : selection, - 'trsh' : trash, - 'ver2' : product_version, - 'vers' : version, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Finder_items.py b/Lib/plat-mac/lib-scriptpackages/Finder/Finder_items.py index c7856cf..6f52667 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Finder_items.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Finder_items.py @@ -168,111 +168,111 @@ class Finder_items_Events: class item(aetools.ComponentItem): """item - An item """ want = 'cobj' -class bounds(aetools.NProperty): +class _Prop_bounds(aetools.NProperty): """bounds - the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons) """ which = 'pbnd' want = 'qdrt' -class comment(aetools.NProperty): +class _Prop_comment(aetools.NProperty): """comment - the comment of the item, displayed in the \xd2Get Info\xd3 window """ which = 'comt' want = 'utxt' -class container(aetools.NProperty): +class _Prop_container(aetools.NProperty): """container - the container of the item """ which = 'ctnr' want = 'obj ' -class creation_date(aetools.NProperty): +class _Prop_creation_date(aetools.NProperty): """creation date - the date on which the item was created """ which = 'ascd' want = 'ldt ' -class description(aetools.NProperty): +class _Prop_description(aetools.NProperty): """description - a description of the item """ which = 'dscr' want = 'utxt' -class disk(aetools.NProperty): +class _Prop_disk(aetools.NProperty): """disk - the disk on which the item is stored """ which = 'cdis' want = 'obj ' -class displayed_name(aetools.NProperty): +class _Prop_displayed_name(aetools.NProperty): """displayed name - the user-visible name of the item """ which = 'dnam' want = 'utxt' -class everyones_privileges(aetools.NProperty): +class _Prop_everyones_privileges(aetools.NProperty): """everyones privileges - """ which = 'gstp' want = 'priv' -class extension_hidden(aetools.NProperty): +class _Prop_extension_hidden(aetools.NProperty): """extension hidden - Is the item's extension hidden from the user? """ which = 'hidx' want = 'bool' -class group(aetools.NProperty): +class _Prop_group(aetools.NProperty): """group - the user or group that has special access to the container """ which = 'sgrp' want = 'utxt' -class group_privileges(aetools.NProperty): +class _Prop_group_privileges(aetools.NProperty): """group privileges - """ which = 'gppr' want = 'priv' -class icon(aetools.NProperty): +class _Prop_icon(aetools.NProperty): """icon - the icon bitmap of the item """ which = 'iimg' want = 'ifam' -class index(aetools.NProperty): +class _Prop_index(aetools.NProperty): """index - the index in the front-to-back ordering within its container """ which = 'pidx' want = 'long' -class information_window(aetools.NProperty): +class _Prop_information_window(aetools.NProperty): """information window - the information window for the item """ which = 'iwnd' want = 'obj ' -class kind(aetools.NProperty): +class _Prop_kind(aetools.NProperty): """kind - the kind of the item """ which = 'kind' want = 'utxt' -class label_index(aetools.NProperty): +class _Prop_label_index(aetools.NProperty): """label index - the label of the item """ which = 'labi' want = 'long' -class locked(aetools.NProperty): +class _Prop_locked(aetools.NProperty): """locked - Is the file locked? """ which = 'aslk' want = 'bool' -class modification_date(aetools.NProperty): +class _Prop_modification_date(aetools.NProperty): """modification date - the date on which the item was last modified """ which = 'asmo' want = 'ldt ' -class name(aetools.NProperty): +class _Prop_name(aetools.NProperty): """name - the name of the item """ which = 'pnam' want = 'utxt' -class name_extension(aetools.NProperty): +class _Prop_name_extension(aetools.NProperty): """name extension - the name extension of the item (such as \xd2txt\xd3) """ which = 'nmxt' want = 'utxt' -class owner(aetools.NProperty): +class _Prop_owner(aetools.NProperty): """owner - the user that owns the container """ which = 'sown' want = 'utxt' -class owner_privileges(aetools.NProperty): +class _Prop_owner_privileges(aetools.NProperty): """owner privileges - """ which = 'ownr' want = 'priv' -class physical_size(aetools.NProperty): +class _Prop_physical_size(aetools.NProperty): """physical size - the actual space used by the item on disk """ which = 'phys' want = 'comp' -class position(aetools.NProperty): +class _Prop_position(aetools.NProperty): """position - the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons) """ which = 'posn' want = 'QDpt' -class properties(aetools.NProperty): +class _Prop_properties(aetools.NProperty): """properties - every property of an item """ which = 'pALL' want = 'reco' -class size(aetools.NProperty): +class _Prop_size(aetools.NProperty): """size - the logical size of the item """ which = 'ptsz' want = 'comp' -class url(aetools.NProperty): +class _Prop_url(aetools.NProperty): """url - the url of the item """ which = 'pURL' want = 'utxt' @@ -280,33 +280,33 @@ class url(aetools.NProperty): items = item item._superclassnames = [] item._privpropdict = { - 'bounds' : bounds, - 'comment' : comment, - 'container' : container, - 'creation_date' : creation_date, - 'description' : description, - 'disk' : disk, - 'displayed_name' : displayed_name, - 'everyones_privileges' : everyones_privileges, - 'extension_hidden' : extension_hidden, - 'group' : group, - 'group_privileges' : group_privileges, - 'icon' : icon, - 'index' : index, - 'information_window' : information_window, - 'kind' : kind, - 'label_index' : label_index, - 'locked' : locked, - 'modification_date' : modification_date, - 'name' : name, - 'name_extension' : name_extension, - 'owner' : owner, - 'owner_privileges' : owner_privileges, - 'physical_size' : physical_size, - 'position' : position, - 'properties' : properties, - 'size' : size, - 'url' : url, + 'bounds' : _Prop_bounds, + 'comment' : _Prop_comment, + 'container' : _Prop_container, + 'creation_date' : _Prop_creation_date, + 'description' : _Prop_description, + 'disk' : _Prop_disk, + 'displayed_name' : _Prop_displayed_name, + 'everyones_privileges' : _Prop_everyones_privileges, + 'extension_hidden' : _Prop_extension_hidden, + 'group' : _Prop_group, + 'group_privileges' : _Prop_group_privileges, + 'icon' : _Prop_icon, + 'index' : _Prop_index, + 'information_window' : _Prop_information_window, + 'kind' : _Prop_kind, + 'label_index' : _Prop_label_index, + 'locked' : _Prop_locked, + 'modification_date' : _Prop_modification_date, + 'name' : _Prop_name, + 'name_extension' : _Prop_name_extension, + 'owner' : _Prop_owner, + 'owner_privileges' : _Prop_owner_privileges, + 'physical_size' : _Prop_physical_size, + 'position' : _Prop_position, + 'properties' : _Prop_properties, + 'size' : _Prop_size, + 'url' : _Prop_url, } item._privelemdict = { } @@ -317,39 +317,3 @@ item._privelemdict = { _classdeclarations = { 'cobj' : item, } - -_propdeclarations = { - 'ascd' : creation_date, - 'aslk' : locked, - 'asmo' : modification_date, - 'cdis' : disk, - 'comt' : comment, - 'ctnr' : container, - 'dnam' : displayed_name, - 'dscr' : description, - 'gppr' : group_privileges, - 'gstp' : everyones_privileges, - 'hidx' : extension_hidden, - 'iimg' : icon, - 'iwnd' : information_window, - 'kind' : kind, - 'labi' : label_index, - 'nmxt' : name_extension, - 'ownr' : owner_privileges, - 'pALL' : properties, - 'pURL' : url, - 'pbnd' : bounds, - 'phys' : physical_size, - 'pidx' : index, - 'pnam' : name, - 'posn' : position, - 'ptsz' : size, - 'sgrp' : group, - 'sown' : owner, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py b/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py index cfbb650..9418039 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py @@ -73,7 +73,7 @@ class Legacy_suite_Events: class application(aetools.ComponentItem): """application - The Finder """ want = 'capp' -class desktop_picture(aetools.NProperty): +class _Prop_desktop_picture(aetools.NProperty): """desktop picture - the desktop picture of the main monitor """ which = 'dpic' want = 'file' @@ -81,11 +81,11 @@ class desktop_picture(aetools.NProperty): class application_process(aetools.ComponentItem): """application process - A process launched from an application file """ want = 'pcap' -class _3c_Inheritance_3e_(aetools.NProperty): +class _Prop__3c_Inheritance_3e_(aetools.NProperty): """<Inheritance> - inherits some of its properties from the process class """ which = 'c@#^' want = 'prcs' -class application_file(aetools.NProperty): +class _Prop_application_file(aetools.NProperty): """application file - the application file from which this process was launched """ which = 'appf' want = 'appf' @@ -95,7 +95,7 @@ application_processes = application_process class desk_accessory_process(aetools.ComponentItem): """desk accessory process - A process launched from a desk accessory file """ want = 'pcda' -class desk_accessory_file(aetools.NProperty): +class _Prop_desk_accessory_file(aetools.NProperty): """desk accessory file - the desk accessory file from which this process was launched """ which = 'dafi' want = 'obj ' @@ -105,47 +105,47 @@ desk_accessory_processes = desk_accessory_process class process(aetools.ComponentItem): """process - A process running on this computer """ want = 'prcs' -class accepts_high_level_events(aetools.NProperty): +class _Prop_accepts_high_level_events(aetools.NProperty): """accepts high level events - Is the process high-level event aware (accepts open application, open document, print document, and quit)? """ which = 'isab' want = 'bool' -class accepts_remote_events(aetools.NProperty): +class _Prop_accepts_remote_events(aetools.NProperty): """accepts remote events - Does the process accept remote events? """ which = 'revt' want = 'bool' -class creator_type(aetools.NProperty): +class _Prop_creator_type(aetools.NProperty): """creator type - the OSType of the creator of the process (the signature) """ which = 'fcrt' want = 'type' -class file(aetools.NProperty): +class _Prop_file(aetools.NProperty): """file - the file from which the process was launched """ which = 'file' want = 'obj ' -class file_type(aetools.NProperty): +class _Prop_file_type(aetools.NProperty): """file type - the OSType of the file type of the process """ which = 'asty' want = 'type' -class frontmost(aetools.NProperty): +class _Prop_frontmost(aetools.NProperty): """frontmost - Is the process the frontmost process? """ which = 'pisf' want = 'bool' -class has_scripting_terminology(aetools.NProperty): +class _Prop_has_scripting_terminology(aetools.NProperty): """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """ which = 'hscr' want = 'bool' -class name(aetools.NProperty): +class _Prop_name(aetools.NProperty): """name - the name of the process """ which = 'pnam' want = 'itxt' -class partition_space_used(aetools.NProperty): +class _Prop_partition_space_used(aetools.NProperty): """partition space used - the number of bytes currently used in the process' partition """ which = 'pusd' want = 'long' -class total_partition_size(aetools.NProperty): +class _Prop_total_partition_size(aetools.NProperty): """total partition size - the size of the partition with which the process was launched """ which = 'appt' want = 'long' -class visible(aetools.NProperty): +class _Prop_visible(aetools.NProperty): """visible - Is the process' layer visible? """ which = 'pvis' want = 'bool' @@ -153,37 +153,37 @@ class visible(aetools.NProperty): processes = process application._superclassnames = [] application._privpropdict = { - 'desktop_picture' : desktop_picture, + 'desktop_picture' : _Prop_desktop_picture, } application._privelemdict = { } application_process._superclassnames = ['process'] application_process._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'application_file' : application_file, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'application_file' : _Prop_application_file, } application_process._privelemdict = { } desk_accessory_process._superclassnames = ['process'] desk_accessory_process._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'desk_accessory_file' : desk_accessory_file, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'desk_accessory_file' : _Prop_desk_accessory_file, } desk_accessory_process._privelemdict = { } process._superclassnames = [] process._privpropdict = { - 'accepts_high_level_events' : accepts_high_level_events, - 'accepts_remote_events' : accepts_remote_events, - 'creator_type' : creator_type, - 'file' : file, - 'file_type' : file_type, - 'frontmost' : frontmost, - 'has_scripting_terminology' : has_scripting_terminology, - 'name' : name, - 'partition_space_used' : partition_space_used, - 'total_partition_size' : total_partition_size, - 'visible' : visible, + 'accepts_high_level_events' : _Prop_accepts_high_level_events, + 'accepts_remote_events' : _Prop_accepts_remote_events, + 'creator_type' : _Prop_creator_type, + 'file' : _Prop_file, + 'file_type' : _Prop_file_type, + 'frontmost' : _Prop_frontmost, + 'has_scripting_terminology' : _Prop_has_scripting_terminology, + 'name' : _Prop_name, + 'partition_space_used' : _Prop_partition_space_used, + 'total_partition_size' : _Prop_total_partition_size, + 'visible' : _Prop_visible, } process._privelemdict = { } @@ -197,27 +197,3 @@ _classdeclarations = { 'pcda' : desk_accessory_process, 'prcs' : process, } - -_propdeclarations = { - 'appf' : application_file, - 'appt' : total_partition_size, - 'asty' : file_type, - 'c@#^' : _3c_Inheritance_3e_, - 'dafi' : desk_accessory_file, - 'dpic' : desktop_picture, - 'fcrt' : creator_type, - 'file' : file, - 'hscr' : has_scripting_terminology, - 'isab' : accepts_high_level_events, - 'pisf' : frontmost, - 'pnam' : name, - 'pusd' : partition_space_used, - 'pvis' : visible, - 'revt' : accepts_remote_events, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py b/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py index bbd4705..b9a172f 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py @@ -324,12 +324,3 @@ _Enum_bool = None # XXXX enum bool not found!! # _classdeclarations = { } - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py b/Lib/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py index 8e57233..6671d69 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py @@ -22,15 +22,15 @@ class alias_list(aetools.ComponentItem): class label(aetools.ComponentItem): """label - (NOT AVAILABLE YET) A Finder label (name and color) """ want = 'clbl' -class color(aetools.NProperty): +class _Prop_color(aetools.NProperty): """color - the color associated with the label """ which = 'colr' want = 'cRGB' -class index(aetools.NProperty): +class _Prop_index(aetools.NProperty): """index - the index in the front-to-back ordering within its container """ which = 'pidx' want = 'long' -class name(aetools.NProperty): +class _Prop_name(aetools.NProperty): """name - the name associated with the label """ which = 'pnam' want = 'utxt' @@ -38,87 +38,87 @@ class name(aetools.NProperty): class preferences(aetools.ComponentItem): """preferences - (NOT AVAILABLE, SUBJECT TO CHANGE) The Finder Preferences """ want = 'cprf' -class button_view_arrangement(aetools.NProperty): +class _Prop_button_view_arrangement(aetools.NProperty): """button view arrangement - the method of arrangement of icons in default Finder button view windows """ which = 'barr' want = 'earr' -class button_view_icon_size(aetools.NProperty): +class _Prop_button_view_icon_size(aetools.NProperty): """button view icon size - the size of icons displayed in Finder button view windows. """ which = 'bisz' want = 'long' -class calculates_folder_sizes(aetools.NProperty): +class _Prop_calculates_folder_sizes(aetools.NProperty): """calculates folder sizes - Are folder sizes calculated and displayed in Finder list view windows? """ which = 'sfsz' want = 'bool' -class delay_before_springing(aetools.NProperty): +class _Prop_delay_before_springing(aetools.NProperty): """delay before springing - the delay before springing open a container in ticks (1/60th of a second) (12 is shortest delay, 60 is longest delay) """ which = 'dela' want = 'shor' -class list_view_icon_size(aetools.NProperty): +class _Prop_list_view_icon_size(aetools.NProperty): """list view icon size - the size of icons displayed in Finder list view windows. """ which = 'lisz' want = 'long' -class shows_comments(aetools.NProperty): +class _Prop_shows_comments(aetools.NProperty): """shows comments - Are comments displayed in default Finder list view windows? """ which = 'scom' want = 'bool' -class shows_creation_date(aetools.NProperty): +class _Prop_shows_creation_date(aetools.NProperty): """shows creation date - Are creation dates displayed in default Finder list view windows? """ which = 'scda' want = 'bool' -class shows_kind(aetools.NProperty): +class _Prop_shows_kind(aetools.NProperty): """shows kind - Are document kinds displayed in default Finder list view windows? """ which = 'sknd' want = 'bool' -class shows_label(aetools.NProperty): +class _Prop_shows_label(aetools.NProperty): """shows label - Are labels displayed in default Finder list view windows? """ which = 'slbl' want = 'bool' -class shows_modification_date(aetools.NProperty): +class _Prop_shows_modification_date(aetools.NProperty): """shows modification date - Are modification dates displayed in default Finder list view windows? """ which = 'sdat' want = 'bool' -class shows_size(aetools.NProperty): +class _Prop_shows_size(aetools.NProperty): """shows size - Are file sizes displayed in default Finder list view windows? """ which = 'ssiz' want = 'bool' -class shows_version(aetools.NProperty): +class _Prop_shows_version(aetools.NProperty): """shows version - Are file versions displayed in default Finder list view windows? """ which = 'svrs' want = 'bool' -class spatial_view_arrangement(aetools.NProperty): +class _Prop_spatial_view_arrangement(aetools.NProperty): """spatial view arrangement - the method of arrangement of icons in default Finder spatial view windows """ which = 'iarr' want = 'earr' -class spatial_view_icon_size(aetools.NProperty): +class _Prop_spatial_view_icon_size(aetools.NProperty): """spatial view icon size - the size of icons displayed in Finder spatial view windows. """ which = 'iisz' want = 'long' -class spring_open_folders(aetools.NProperty): +class _Prop_spring_open_folders(aetools.NProperty): """spring open folders - Spring open folders after the specified delay? """ which = 'sprg' want = 'bool' -class uses_relative_dates(aetools.NProperty): +class _Prop_uses_relative_dates(aetools.NProperty): """uses relative dates - Are relative dates (e.g., today, yesterday) shown in Finder list view windows? """ which = 'urdt' want = 'bool' -class uses_simple_menus(aetools.NProperty): +class _Prop_uses_simple_menus(aetools.NProperty): """uses simple menus - Use simplified Finder menus? """ which = 'usme' want = 'bool' -class uses_wide_grid(aetools.NProperty): +class _Prop_uses_wide_grid(aetools.NProperty): """uses wide grid - Space icons on a wide grid? """ which = 'uswg' want = 'bool' -class view_font(aetools.NProperty): +class _Prop_view_font(aetools.NProperty): """view font - the id of the font used in Finder views. """ which = 'vfnt' want = 'long' -class view_font_size(aetools.NProperty): +class _Prop_view_font_size(aetools.NProperty): """view font size - the size of the font used in Finder views """ which = 'vfsz' want = 'long' -class window(aetools.NProperty): +class _Prop_window(aetools.NProperty): """window - the window that would open if Finder preferences was opened """ which = 'cwin' want = 'pwnd' @@ -128,8 +128,8 @@ class icon_view_options(aetools.ComponentItem): """icon view options - the icon view options """ want = 'icop' -arrangement = spatial_view_arrangement -class icon_size(aetools.NProperty): +_Prop_arrangement = _Prop_spatial_view_arrangement +class _Prop_icon_size(aetools.NProperty): """icon size - the size of icons displayed in the icon view """ which = 'lvis' want = 'shor' @@ -137,41 +137,41 @@ class icon_size(aetools.NProperty): class icon_family(aetools.ComponentItem): """icon family - (NOT AVAILABLE YET) A family of icons """ want = 'ifam' -class large_32_bit_icon(aetools.NProperty): +class _Prop_large_32_bit_icon(aetools.NProperty): """large 32 bit icon - the large 32-bit color icon """ which = 'il32' want = 'il32' -class large_4_bit_icon(aetools.NProperty): +class _Prop_large_4_bit_icon(aetools.NProperty): """large 4 bit icon - the large 4-bit color icon """ which = 'icl4' want = 'icl4' -class large_8_bit_icon(aetools.NProperty): +class _Prop_large_8_bit_icon(aetools.NProperty): """large 8 bit icon - the large 8-bit color icon """ which = 'icl8' want = 'icl8' -class large_8_bit_mask(aetools.NProperty): +class _Prop_large_8_bit_mask(aetools.NProperty): """large 8 bit mask - the large 8-bit mask for large 32-bit icons """ which = 'l8mk' want = 'l8mk' -class large_monochrome_icon_and_mask(aetools.NProperty): +class _Prop_large_monochrome_icon_and_mask(aetools.NProperty): """large monochrome icon and mask - the large black-and-white icon and the mask for large icons """ which = 'ICN#' want = 'ICN#' -class small_32_bit_icon(aetools.NProperty): +class _Prop_small_32_bit_icon(aetools.NProperty): """small 32 bit icon - the small 32-bit color icon """ which = 'is32' want = 'is32' -class small_4_bit_icon(aetools.NProperty): +class _Prop_small_4_bit_icon(aetools.NProperty): """small 4 bit icon - the small 4-bit color icon """ which = 'ics4' want = 'ics4' -class small_8_bit_icon(aetools.NProperty): +class _Prop_small_8_bit_icon(aetools.NProperty): """small 8 bit icon - the small 8-bit color icon """ which = 'ics8' want = 'ics8' -small_8_bit_mask = small_8_bit_icon -class small_monochrome_icon_and_mask(aetools.NProperty): +_Prop_small_8_bit_mask = _Prop_small_8_bit_icon +class _Prop_small_monochrome_icon_and_mask(aetools.NProperty): """small monochrome icon and mask - the small black-and-white icon and the mask for small icons """ which = 'ics#' want = 'ics#' @@ -179,15 +179,15 @@ class small_monochrome_icon_and_mask(aetools.NProperty): class column(aetools.ComponentItem): """column - a column of a list view """ want = 'lvcl' -class sort_direction(aetools.NProperty): +class _Prop_sort_direction(aetools.NProperty): """sort direction - The direction in which the window is sorted """ which = 'sord' want = 'sodr' -class visible(aetools.NProperty): +class _Prop_visible(aetools.NProperty): """visible - is this column visible """ which = 'pvis' want = 'bool' -class width(aetools.NProperty): +class _Prop_width(aetools.NProperty): """width - the width of this column """ which = 'clwd' want = 'shor' @@ -197,7 +197,7 @@ columns = column class list_view_options(aetools.ComponentItem): """list view options - the list view options """ want = 'lvop' -class sort_column(aetools.NProperty): +class _Prop_sort_column(aetools.NProperty): """sort column - the column that the list view is sorted on """ which = 'srtc' want = 'lvcl' @@ -209,77 +209,77 @@ alias_list._privelemdict = { } label._superclassnames = [] label._privpropdict = { - 'color' : color, - 'index' : index, - 'name' : name, + 'color' : _Prop_color, + 'index' : _Prop_index, + 'name' : _Prop_name, } label._privelemdict = { } preferences._superclassnames = [] preferences._privpropdict = { - 'button_view_arrangement' : button_view_arrangement, - 'button_view_icon_size' : button_view_icon_size, - 'calculates_folder_sizes' : calculates_folder_sizes, - 'delay_before_springing' : delay_before_springing, - 'list_view_icon_size' : list_view_icon_size, - 'shows_comments' : shows_comments, - 'shows_creation_date' : shows_creation_date, - 'shows_kind' : shows_kind, - 'shows_label' : shows_label, - 'shows_modification_date' : shows_modification_date, - 'shows_size' : shows_size, - 'shows_version' : shows_version, - 'spatial_view_arrangement' : spatial_view_arrangement, - 'spatial_view_icon_size' : spatial_view_icon_size, - 'spring_open_folders' : spring_open_folders, - 'uses_relative_dates' : uses_relative_dates, - 'uses_simple_menus' : uses_simple_menus, - 'uses_wide_grid' : uses_wide_grid, - 'view_font' : view_font, - 'view_font_size' : view_font_size, - 'window' : window, + 'button_view_arrangement' : _Prop_button_view_arrangement, + 'button_view_icon_size' : _Prop_button_view_icon_size, + 'calculates_folder_sizes' : _Prop_calculates_folder_sizes, + 'delay_before_springing' : _Prop_delay_before_springing, + 'list_view_icon_size' : _Prop_list_view_icon_size, + 'shows_comments' : _Prop_shows_comments, + 'shows_creation_date' : _Prop_shows_creation_date, + 'shows_kind' : _Prop_shows_kind, + 'shows_label' : _Prop_shows_label, + 'shows_modification_date' : _Prop_shows_modification_date, + 'shows_size' : _Prop_shows_size, + 'shows_version' : _Prop_shows_version, + 'spatial_view_arrangement' : _Prop_spatial_view_arrangement, + 'spatial_view_icon_size' : _Prop_spatial_view_icon_size, + 'spring_open_folders' : _Prop_spring_open_folders, + 'uses_relative_dates' : _Prop_uses_relative_dates, + 'uses_simple_menus' : _Prop_uses_simple_menus, + 'uses_wide_grid' : _Prop_uses_wide_grid, + 'view_font' : _Prop_view_font, + 'view_font_size' : _Prop_view_font_size, + 'window' : _Prop_window, } preferences._privelemdict = { 'label' : label, } icon_view_options._superclassnames = [] icon_view_options._privpropdict = { - 'arrangement' : arrangement, - 'icon_size' : icon_size, + 'arrangement' : _Prop_arrangement, + 'icon_size' : _Prop_icon_size, } icon_view_options._privelemdict = { } icon_family._superclassnames = [] icon_family._privpropdict = { - 'large_32_bit_icon' : large_32_bit_icon, - 'large_4_bit_icon' : large_4_bit_icon, - 'large_8_bit_icon' : large_8_bit_icon, - 'large_8_bit_mask' : large_8_bit_mask, - 'large_monochrome_icon_and_mask' : large_monochrome_icon_and_mask, - 'small_32_bit_icon' : small_32_bit_icon, - 'small_4_bit_icon' : small_4_bit_icon, - 'small_8_bit_icon' : small_8_bit_icon, - 'small_8_bit_mask' : small_8_bit_mask, - 'small_monochrome_icon_and_mask' : small_monochrome_icon_and_mask, + 'large_32_bit_icon' : _Prop_large_32_bit_icon, + 'large_4_bit_icon' : _Prop_large_4_bit_icon, + 'large_8_bit_icon' : _Prop_large_8_bit_icon, + 'large_8_bit_mask' : _Prop_large_8_bit_mask, + 'large_monochrome_icon_and_mask' : _Prop_large_monochrome_icon_and_mask, + 'small_32_bit_icon' : _Prop_small_32_bit_icon, + 'small_4_bit_icon' : _Prop_small_4_bit_icon, + 'small_8_bit_icon' : _Prop_small_8_bit_icon, + 'small_8_bit_mask' : _Prop_small_8_bit_mask, + 'small_monochrome_icon_and_mask' : _Prop_small_monochrome_icon_and_mask, } icon_family._privelemdict = { } column._superclassnames = [] column._privpropdict = { - 'index' : index, - 'name' : name, - 'sort_direction' : sort_direction, - 'visible' : visible, - 'width' : width, + 'index' : _Prop_index, + 'name' : _Prop_name, + 'sort_direction' : _Prop_sort_direction, + 'visible' : _Prop_visible, + 'width' : _Prop_width, } column._privelemdict = { } list_view_options._superclassnames = [] list_view_options._privpropdict = { - 'calculates_folder_sizes' : calculates_folder_sizes, - 'icon_size' : icon_size, - 'sort_column' : sort_column, - 'uses_relative_dates' : uses_relative_dates, + 'calculates_folder_sizes' : _Prop_calculates_folder_sizes, + 'icon_size' : _Prop_icon_size, + 'sort_column' : _Prop_sort_column, + 'uses_relative_dates' : _Prop_uses_relative_dates, } list_view_options._privelemdict = { 'column' : column, @@ -297,50 +297,3 @@ _classdeclarations = { 'lvcl' : column, 'lvop' : list_view_options, } - -_propdeclarations = { - 'ICN#' : large_monochrome_icon_and_mask, - 'barr' : button_view_arrangement, - 'bisz' : button_view_icon_size, - 'clwd' : width, - 'colr' : color, - 'cwin' : window, - 'dela' : delay_before_springing, - 'iarr' : spatial_view_arrangement, - 'icl4' : large_4_bit_icon, - 'icl8' : large_8_bit_icon, - 'ics#' : small_monochrome_icon_and_mask, - 'ics4' : small_4_bit_icon, - 'ics8' : small_8_bit_icon, - 'iisz' : spatial_view_icon_size, - 'il32' : large_32_bit_icon, - 'is32' : small_32_bit_icon, - 'l8mk' : large_8_bit_mask, - 'lisz' : list_view_icon_size, - 'lvis' : icon_size, - 'pidx' : index, - 'pnam' : name, - 'pvis' : visible, - 'scda' : shows_creation_date, - 'scom' : shows_comments, - 'sdat' : shows_modification_date, - 'sfsz' : calculates_folder_sizes, - 'sknd' : shows_kind, - 'slbl' : shows_label, - 'sord' : sort_direction, - 'sprg' : spring_open_folders, - 'srtc' : sort_column, - 'ssiz' : shows_size, - 'svrs' : shows_version, - 'urdt' : uses_relative_dates, - 'usme' : uses_simple_menus, - 'uswg' : uses_wide_grid, - 'vfnt' : view_font, - 'vfsz' : view_font_size, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Window_classes.py b/Lib/plat-mac/lib-scriptpackages/Finder/Window_classes.py index 205b972..73062f1 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/Window_classes.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/Window_classes.py @@ -18,23 +18,23 @@ class Window_classes_Events: class Finder_window(aetools.ComponentItem): """Finder window - A file viewer window """ want = 'brow' -class _3c_Inheritance_3e_(aetools.NProperty): +class _Prop__3c_Inheritance_3e_(aetools.NProperty): """<Inheritance> - inherits some of its properties from the window class """ which = 'c@#^' want = 'cwin' -class current_view(aetools.NProperty): +class _Prop_current_view(aetools.NProperty): """current view - the current view for the container window """ which = 'pvew' want = 'ecvw' -class icon_view_options(aetools.NProperty): +class _Prop_icon_view_options(aetools.NProperty): """icon view options - the icon view options for the container window """ which = 'icop' want = 'icop' -class list_view_options(aetools.NProperty): +class _Prop_list_view_options(aetools.NProperty): """list view options - the list view options for the container window """ which = 'lvop' want = 'lvop' -class target(aetools.NProperty): +class _Prop_target(aetools.NProperty): """target - the container at which this file viewer is targeted """ which = 'fvtg' want = 'obj ' @@ -44,67 +44,67 @@ Finder_windows = Finder_window class window(aetools.ComponentItem): """window - A window """ want = 'cwin' -class bounds(aetools.NProperty): +class _Prop_bounds(aetools.NProperty): """bounds - the boundary rectangle for the window """ which = 'pbnd' want = 'qdrt' -class closeable(aetools.NProperty): +class _Prop_closeable(aetools.NProperty): """closeable - Does the window have a close box? """ which = 'hclb' want = 'bool' -class collapsed(aetools.NProperty): +class _Prop_collapsed(aetools.NProperty): """collapsed - Is the window collapsed """ which = 'wshd' want = 'bool' -class floating(aetools.NProperty): +class _Prop_floating(aetools.NProperty): """floating - Does the window have a title bar? """ which = 'isfl' want = 'bool' -class id(aetools.NProperty): +class _Prop_id(aetools.NProperty): """id - the unique id for this window """ which = 'ID ' want = 'magn' -class index(aetools.NProperty): +class _Prop_index(aetools.NProperty): """index - the number of the window in the front-to-back layer ordering """ which = 'pidx' want = 'long' -class modal(aetools.NProperty): +class _Prop_modal(aetools.NProperty): """modal - Is the window modal? """ which = 'pmod' want = 'bool' -class name(aetools.NProperty): +class _Prop_name(aetools.NProperty): """name - the name of the window """ which = 'pnam' want = 'utxt' -class position(aetools.NProperty): +class _Prop_position(aetools.NProperty): """position - the upper left position of the window """ which = 'posn' want = 'QDpt' -class properties(aetools.NProperty): +class _Prop_properties(aetools.NProperty): """properties - every property of a window """ which = 'pALL' want = 'reco' -class resizable(aetools.NProperty): +class _Prop_resizable(aetools.NProperty): """resizable - Is the window resizable? """ which = 'prsz' want = 'bool' -class titled(aetools.NProperty): +class _Prop_titled(aetools.NProperty): """titled - Does the window have a title bar? """ which = 'ptit' want = 'bool' -class visible(aetools.NProperty): +class _Prop_visible(aetools.NProperty): """visible - Is the window visible (always true for open Finder windows)? """ which = 'pvis' want = 'bool' -class zoomable(aetools.NProperty): +class _Prop_zoomable(aetools.NProperty): """zoomable - Is the window zoomable? """ which = 'iszm' want = 'bool' -class zoomed(aetools.NProperty): +class _Prop_zoomed(aetools.NProperty): """zoomed - Is the window zoomed? """ which = 'pzum' want = 'bool' -class zoomed_full_size(aetools.NProperty): +class _Prop_zoomed_full_size(aetools.NProperty): """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read) """ which = 'zumf' want = 'bool' @@ -114,11 +114,11 @@ windows = window class information_window(aetools.ComponentItem): """information window - An inspector window (opened by \xd2Show Info\xd3) """ want = 'iwnd' -class current_panel(aetools.NProperty): +class _Prop_current_panel(aetools.NProperty): """current panel - the current panel in the information window """ which = 'panl' want = 'ipnl' -class item(aetools.NProperty): +class _Prop_item(aetools.NProperty): """item - the item from which this window was opened """ which = 'cobj' want = 'obj ' @@ -134,53 +134,53 @@ class preferences_window(aetools.ComponentItem): want = 'pwnd' Finder_window._superclassnames = ['window'] Finder_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'current_view' : current_view, - 'icon_view_options' : icon_view_options, - 'list_view_options' : list_view_options, - 'target' : target, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'current_view' : _Prop_current_view, + 'icon_view_options' : _Prop_icon_view_options, + 'list_view_options' : _Prop_list_view_options, + 'target' : _Prop_target, } Finder_window._privelemdict = { } window._superclassnames = [] window._privpropdict = { - 'bounds' : bounds, - 'closeable' : closeable, - 'collapsed' : collapsed, - 'floating' : floating, - 'id' : id, - 'index' : index, - 'modal' : modal, - 'name' : name, - 'position' : position, - 'properties' : properties, - 'resizable' : resizable, - 'titled' : titled, - 'visible' : visible, - 'zoomable' : zoomable, - 'zoomed' : zoomed, - 'zoomed_full_size' : zoomed_full_size, + 'bounds' : _Prop_bounds, + 'closeable' : _Prop_closeable, + 'collapsed' : _Prop_collapsed, + 'floating' : _Prop_floating, + 'id' : _Prop_id, + 'index' : _Prop_index, + 'modal' : _Prop_modal, + 'name' : _Prop_name, + 'position' : _Prop_position, + 'properties' : _Prop_properties, + 'resizable' : _Prop_resizable, + 'titled' : _Prop_titled, + 'visible' : _Prop_visible, + 'zoomable' : _Prop_zoomable, + 'zoomed' : _Prop_zoomed, + 'zoomed_full_size' : _Prop_zoomed_full_size, } window._privelemdict = { } information_window._superclassnames = ['window'] information_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'current_panel' : current_panel, - 'item' : item, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'current_panel' : _Prop_current_panel, + 'item' : _Prop_item, } information_window._privelemdict = { } clipping_window._superclassnames = ['window'] clipping_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, } clipping_window._privelemdict = { } preferences_window._superclassnames = ['window'] preferences_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'current_panel' : current_panel, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'current_panel' : _Prop_current_panel, } preferences_window._privelemdict = { } @@ -195,35 +195,3 @@ _classdeclarations = { 'lwnd' : clipping_window, 'pwnd' : preferences_window, } - -_propdeclarations = { - 'ID ' : id, - 'c@#^' : _3c_Inheritance_3e_, - 'cobj' : item, - 'fvtg' : target, - 'hclb' : closeable, - 'icop' : icon_view_options, - 'isfl' : floating, - 'iszm' : zoomable, - 'lvop' : list_view_options, - 'pALL' : properties, - 'panl' : current_panel, - 'pbnd' : bounds, - 'pidx' : index, - 'pmod' : modal, - 'pnam' : name, - 'posn' : position, - 'prsz' : resizable, - 'ptit' : titled, - 'pvew' : current_view, - 'pvis' : visible, - 'pzum' : zoomed, - 'wshd' : collapsed, - 'zumf' : zoomed_full_size, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py b/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py index c5f6a7f..80d1cbb 100644 --- a/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py +++ b/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py @@ -67,13 +67,13 @@ import StdSuites # # Set property and element dictionaries now that all classes have been defined # -getbaseclasses(item) getbaseclasses(application) getbaseclasses(trash_2d_object) getbaseclasses(desktop_2d_object) getbaseclasses(container) getbaseclasses(folder) getbaseclasses(disk) +getbaseclasses(item) getbaseclasses(package) getbaseclasses(file) getbaseclasses(application_file) @@ -86,6 +86,10 @@ getbaseclasses(Finder_window) getbaseclasses(window) getbaseclasses(clipping_window) getbaseclasses(information_window) +getbaseclasses(process) +getbaseclasses(application_process) +getbaseclasses(desk_accessory_process) +getbaseclasses(application) getbaseclasses(icon_view_options) getbaseclasses(label) getbaseclasses(column) @@ -93,10 +97,6 @@ getbaseclasses(preferences) getbaseclasses(alias_list) getbaseclasses(icon_family) getbaseclasses(list_view_options) -getbaseclasses(process) -getbaseclasses(application_process) -getbaseclasses(desk_accessory_process) -getbaseclasses(application) getbaseclasses(StdSuites.Type_Names_Suite.double_integer) getbaseclasses(StdSuites.Type_Names_Suite.version) getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color) @@ -132,7 +132,7 @@ getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info) getbaseclasses(StdSuites.Type_Names_Suite.extended_real) getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle) getbaseclasses(StdSuites.Type_Names_Suite.dash_style) -getbaseclasses(StdSuites.Type_Names_Suite.plain_text) +getbaseclasses(StdSuites.Type_Names_Suite.string) getbaseclasses(StdSuites.Type_Names_Suite.small_real) getbaseclasses(StdSuites.Type_Names_Suite.null) getbaseclasses(StdSuites.Type_Names_Suite.location_reference) @@ -142,13 +142,13 @@ getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) # Indices of types declared in this module # _classdeclarations = { - 'cobj' : item, 'capp' : application, 'ctrs' : trash_2d_object, 'cdsk' : desktop_2d_object, 'ctnr' : container, 'cfol' : folder, 'cdis' : disk, + 'cobj' : item, 'pack' : package, 'file' : file, 'appf' : application_file, @@ -161,6 +161,10 @@ _classdeclarations = { 'cwin' : window, 'lwnd' : clipping_window, 'iwnd' : information_window, + 'prcs' : process, + 'pcap' : application_process, + 'pcda' : desk_accessory_process, + 'capp' : application, 'icop' : icon_view_options, 'clbl' : label, 'lvcl' : column, @@ -168,10 +172,6 @@ _classdeclarations = { 'alst' : alias_list, 'ifam' : icon_family, 'lvop' : list_view_options, - 'prcs' : process, - 'pcap' : application_process, - 'pcda' : desk_accessory_process, - 'capp' : application, 'comp' : StdSuites.Type_Names_Suite.double_integer, 'vers' : StdSuites.Type_Names_Suite.version, 'tr16' : StdSuites.Type_Names_Suite.RGB16_color, @@ -207,7 +207,7 @@ _classdeclarations = { 'exte' : StdSuites.Type_Names_Suite.extended_real, 'lrct' : StdSuites.Type_Names_Suite.long_rectangle, 'tdas' : StdSuites.Type_Names_Suite.dash_style, - 'TEXT' : StdSuites.Type_Names_Suite.plain_text, + 'TEXT' : StdSuites.Type_Names_Suite.string, 'sing' : StdSuites.Type_Names_Suite.small_real, 'null' : StdSuites.Type_Names_Suite.null, 'insl' : StdSuites.Type_Names_Suite.location_reference, |
