2000-08-20 16:29:03 -03:00
|
|
|
"""
|
2003-03-28 20:13:17 -04:00
|
|
|
Package generated from /System/Library/CoreServices/Finder.app
|
2000-08-20 16:29:03 -03:00
|
|
|
"""
|
|
|
|
import aetools
|
2000-08-22 17:35:17 -03:00
|
|
|
Error = aetools.Error
|
2000-08-20 16:29:03 -03:00
|
|
|
import Standard_Suite
|
2003-03-28 20:13:17 -04:00
|
|
|
import Legacy_suite
|
2000-08-20 16:29:03 -03:00
|
|
|
import Containers_and_folders
|
2003-03-28 20:13:17 -04:00
|
|
|
import Files
|
2003-03-28 18:07:22 -04:00
|
|
|
import Finder_Basics
|
|
|
|
import Finder_items
|
|
|
|
import Window_classes
|
2000-08-20 16:29:03 -03:00
|
|
|
import Type_Definitions
|
|
|
|
import Enumerations
|
|
|
|
|
|
|
|
|
|
|
|
_code_to_module = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'CoRe' : Standard_Suite,
|
|
|
|
'fleg' : Legacy_suite,
|
|
|
|
'fndr' : Containers_and_folders,
|
|
|
|
'fndr' : Files,
|
|
|
|
'fndr' : Finder_Basics,
|
|
|
|
'fndr' : Finder_items,
|
|
|
|
'fndr' : Window_classes,
|
|
|
|
'tpdf' : Type_Definitions,
|
|
|
|
'tpnm' : Enumerations,
|
2000-08-20 16:29:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_code_to_fullname = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'CoRe' : ('Finder.Standard_Suite', 'Standard_Suite'),
|
|
|
|
'fleg' : ('Finder.Legacy_suite', 'Legacy_suite'),
|
|
|
|
'fndr' : ('Finder.Containers_and_folders', 'Containers_and_folders'),
|
|
|
|
'fndr' : ('Finder.Files', 'Files'),
|
|
|
|
'fndr' : ('Finder.Finder_Basics', 'Finder_Basics'),
|
|
|
|
'fndr' : ('Finder.Finder_items', 'Finder_items'),
|
|
|
|
'fndr' : ('Finder.Window_classes', 'Window_classes'),
|
|
|
|
'tpdf' : ('Finder.Type_Definitions', 'Type_Definitions'),
|
|
|
|
'tpnm' : ('Finder.Enumerations', 'Enumerations'),
|
2000-08-20 16:29:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
from Standard_Suite import *
|
2003-03-28 20:13:17 -04:00
|
|
|
from Legacy_suite import *
|
2000-08-20 16:29:03 -03:00
|
|
|
from Containers_and_folders import *
|
2003-03-28 20:13:17 -04:00
|
|
|
from Files import *
|
2003-03-28 18:07:22 -04:00
|
|
|
from Finder_Basics import *
|
|
|
|
from Finder_items import *
|
|
|
|
from Window_classes import *
|
2000-08-20 16:29:03 -03:00
|
|
|
from Type_Definitions import *
|
|
|
|
from Enumerations import *
|
2003-03-23 18:07:28 -04:00
|
|
|
|
2002-08-07 12:53:42 -03:00
|
|
|
def getbaseclasses(v):
|
2003-04-12 19:27:11 -03:00
|
|
|
if not getattr(v, '_propdict', None):
|
|
|
|
v._propdict = {}
|
|
|
|
v._elemdict = {}
|
|
|
|
for superclassname in getattr(v, '_superclassnames', []):
|
|
|
|
superclass = eval(superclassname)
|
|
|
|
getbaseclasses(superclass)
|
|
|
|
v._propdict.update(getattr(superclass, '_propdict', {}))
|
|
|
|
v._elemdict.update(getattr(superclass, '_elemdict', {}))
|
|
|
|
v._propdict.update(getattr(v, '_privpropdict', {}))
|
|
|
|
v._elemdict.update(getattr(v, '_privelemdict', {}))
|
2002-08-07 12:53:42 -03:00
|
|
|
|
|
|
|
import StdSuites
|
|
|
|
|
|
|
|
#
|
|
|
|
# Set property and element dictionaries now that all classes have been defined
|
|
|
|
#
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.color_table)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.fixed_point)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.string)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.type_element_info)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.machine_location)
|
2003-03-28 20:13:17 -04:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.PostScript_picture)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.type_property_info)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.menu_item)
|
2003-03-28 20:13:17 -04:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.scrap_styles)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.fixed_rectangle)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.null)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.type_event_info)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.rotation)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_rectangle)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.long_point)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.target_id)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.type_suite_info)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_point)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.TIFF_picture)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.version)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.double_integer)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.location_reference)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.point)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.application_dictionary)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.unsigned_integer)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.menu)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.small_real)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.fixed)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.type_class_info)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.RGB96_color)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.dash_style)
|
2002-08-07 12:53:42 -03:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.pixel_map_record)
|
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.extended_real)
|
2003-03-28 20:13:17 -04:00
|
|
|
getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(process)
|
|
|
|
getbaseclasses(application_process)
|
|
|
|
getbaseclasses(desk_accessory_process)
|
|
|
|
getbaseclasses(application)
|
|
|
|
getbaseclasses(trash_2d_object)
|
|
|
|
getbaseclasses(desktop_2d_object)
|
|
|
|
getbaseclasses(container)
|
|
|
|
getbaseclasses(folder)
|
|
|
|
getbaseclasses(disk)
|
|
|
|
getbaseclasses(application)
|
|
|
|
getbaseclasses(alias_file)
|
|
|
|
getbaseclasses(package)
|
|
|
|
getbaseclasses(file)
|
|
|
|
getbaseclasses(application_file)
|
|
|
|
getbaseclasses(internet_location_file)
|
|
|
|
getbaseclasses(document_file)
|
|
|
|
getbaseclasses(clipping)
|
|
|
|
getbaseclasses(preferences_window)
|
|
|
|
getbaseclasses(Finder_window)
|
|
|
|
getbaseclasses(window)
|
|
|
|
getbaseclasses(clipping_window)
|
|
|
|
getbaseclasses(information_window)
|
|
|
|
getbaseclasses(item)
|
|
|
|
getbaseclasses(icon_view_options)
|
|
|
|
getbaseclasses(preferences)
|
|
|
|
getbaseclasses(alias_list)
|
|
|
|
getbaseclasses(icon_family)
|
|
|
|
getbaseclasses(label)
|
|
|
|
getbaseclasses(column)
|
|
|
|
getbaseclasses(list_view_options)
|
2002-08-07 12:53:42 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Indices of types declared in this module
|
|
|
|
#
|
|
|
|
_classdeclarations = {
|
2003-06-13 11:31:19 -03:00
|
|
|
'shor' : StdSuites.Type_Names_Suite.small_integer,
|
2003-04-12 19:27:11 -03:00
|
|
|
'aeut' : StdSuites.Type_Names_Suite.system_dictionary,
|
|
|
|
'clrt' : StdSuites.Type_Names_Suite.color_table,
|
|
|
|
'fpnt' : StdSuites.Type_Names_Suite.fixed_point,
|
2003-06-13 11:31:19 -03:00
|
|
|
'TEXT' : StdSuites.Type_Names_Suite.string,
|
2003-04-12 19:27:11 -03:00
|
|
|
'elin' : StdSuites.Type_Names_Suite.type_element_info,
|
|
|
|
'mLoc' : StdSuites.Type_Names_Suite.machine_location,
|
|
|
|
'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture,
|
2003-06-13 11:31:19 -03:00
|
|
|
'pinf' : StdSuites.Type_Names_Suite.type_property_info,
|
2003-04-12 19:27:11 -03:00
|
|
|
'cmen' : StdSuites.Type_Names_Suite.menu_item,
|
|
|
|
'styl' : StdSuites.Type_Names_Suite.scrap_styles,
|
|
|
|
'frct' : StdSuites.Type_Names_Suite.fixed_rectangle,
|
2003-06-13 11:31:19 -03:00
|
|
|
'null' : StdSuites.Type_Names_Suite.null,
|
|
|
|
'evin' : StdSuites.Type_Names_Suite.type_event_info,
|
|
|
|
'trot' : StdSuites.Type_Names_Suite.rotation,
|
2003-04-12 19:27:11 -03:00
|
|
|
'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle,
|
2003-06-13 11:31:19 -03:00
|
|
|
'lpnt' : StdSuites.Type_Names_Suite.long_point,
|
|
|
|
'targ' : StdSuites.Type_Names_Suite.target_id,
|
2003-04-12 19:27:11 -03:00
|
|
|
'suin' : StdSuites.Type_Names_Suite.type_suite_info,
|
2003-06-13 11:31:19 -03:00
|
|
|
'pmin' : StdSuites.Type_Names_Suite.type_parameter_info,
|
|
|
|
'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point,
|
|
|
|
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
|
|
|
|
'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture,
|
|
|
|
'lfxd' : StdSuites.Type_Names_Suite.long_fixed,
|
|
|
|
'vers' : StdSuites.Type_Names_Suite.version,
|
|
|
|
'tr16' : StdSuites.Type_Names_Suite.RGB16_color,
|
|
|
|
'comp' : StdSuites.Type_Names_Suite.double_integer,
|
|
|
|
'insl' : StdSuites.Type_Names_Suite.location_reference,
|
|
|
|
'QDpt' : StdSuites.Type_Names_Suite.point,
|
|
|
|
'aete' : StdSuites.Type_Names_Suite.application_dictionary,
|
|
|
|
'magn' : StdSuites.Type_Names_Suite.unsigned_integer,
|
|
|
|
'cmnu' : StdSuites.Type_Names_Suite.menu,
|
|
|
|
'sing' : StdSuites.Type_Names_Suite.small_real,
|
2003-04-12 19:27:11 -03:00
|
|
|
'fixd' : StdSuites.Type_Names_Suite.fixed,
|
|
|
|
'gcli' : StdSuites.Type_Names_Suite.type_class_info,
|
|
|
|
'tr96' : StdSuites.Type_Names_Suite.RGB96_color,
|
2003-06-13 11:31:19 -03:00
|
|
|
'tdas' : StdSuites.Type_Names_Suite.dash_style,
|
2003-04-12 19:27:11 -03:00
|
|
|
'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record,
|
|
|
|
'exte' : StdSuites.Type_Names_Suite.extended_real,
|
|
|
|
'lrct' : StdSuites.Type_Names_Suite.long_rectangle,
|
2003-06-13 11:31:19 -03:00
|
|
|
'prcs' : process,
|
|
|
|
'pcap' : application_process,
|
|
|
|
'pcda' : desk_accessory_process,
|
|
|
|
'capp' : application,
|
|
|
|
'ctrs' : trash_2d_object,
|
|
|
|
'cdsk' : desktop_2d_object,
|
|
|
|
'ctnr' : container,
|
|
|
|
'cfol' : folder,
|
|
|
|
'cdis' : disk,
|
|
|
|
'capp' : application,
|
|
|
|
'alia' : alias_file,
|
|
|
|
'pack' : package,
|
|
|
|
'file' : file,
|
|
|
|
'appf' : application_file,
|
|
|
|
'inlf' : internet_location_file,
|
|
|
|
'docf' : document_file,
|
|
|
|
'clpf' : clipping,
|
|
|
|
'pwnd' : preferences_window,
|
|
|
|
'brow' : Finder_window,
|
|
|
|
'cwin' : window,
|
|
|
|
'lwnd' : clipping_window,
|
|
|
|
'iwnd' : information_window,
|
|
|
|
'cobj' : item,
|
|
|
|
'icop' : icon_view_options,
|
|
|
|
'cprf' : preferences,
|
|
|
|
'alst' : alias_list,
|
|
|
|
'ifam' : icon_family,
|
|
|
|
'clbl' : label,
|
|
|
|
'lvcl' : column,
|
|
|
|
'lvop' : list_view_options,
|
2002-08-07 12:53:42 -03:00
|
|
|
}
|
2000-08-20 16:29:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
class Finder(Standard_Suite_Events,
|
2003-04-12 19:27:11 -03:00
|
|
|
Legacy_suite_Events,
|
|
|
|
Containers_and_folders_Events,
|
|
|
|
Files_Events,
|
|
|
|
Finder_Basics_Events,
|
|
|
|
Finder_items_Events,
|
|
|
|
Window_classes_Events,
|
|
|
|
Type_Definitions_Events,
|
|
|
|
Enumerations_Events,
|
|
|
|
aetools.TalkTo):
|
|
|
|
_signature = 'MACS'
|
2000-08-20 16:29:03 -03:00
|
|
|
|
2003-04-12 19:27:11 -03:00
|
|
|
_moduleName = 'Finder'
|
2002-08-07 12:53:42 -03:00
|
|
|
|
2003-06-13 11:31:19 -03:00
|
|
|
_elemdict = application._elemdict
|
|
|
|
_propdict = application._propdict
|