/Lib/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py

http://unladen-swallow.googlecode.com/ · Python · 346 lines · 271 code · 19 blank · 56 comment · 0 complexity · 7bbd1e368e261b654bcb6827bd901224 MD5 · raw file

  1. """Suite Type Definitions: Definitions of records used in scripting the Finder
  2. Level 1, version 1
  3. Generated from /System/Library/CoreServices/Finder.app
  4. AETE/AEUT resource version 0/144, language 0, script 0
  5. """
  6. import aetools
  7. import MacOS
  8. _code = 'tpdf'
  9. class Type_Definitions_Events:
  10. pass
  11. class alias_list(aetools.ComponentItem):
  12. """alias list - A list of aliases. Use \xd4as alias list\xd5 when a list of aliases is needed (instead of a list of file system item references). """
  13. want = 'alst'
  14. class label(aetools.ComponentItem):
  15. """label - (NOT AVAILABLE YET) A Finder label (name and color) """
  16. want = 'clbl'
  17. class _Prop_color(aetools.NProperty):
  18. """color - the color associated with the label """
  19. which = 'colr'
  20. want = 'cRGB'
  21. class _Prop_index(aetools.NProperty):
  22. """index - the index in the front-to-back ordering within its container """
  23. which = 'pidx'
  24. want = 'long'
  25. class _Prop_name(aetools.NProperty):
  26. """name - the name associated with the label """
  27. which = 'pnam'
  28. want = 'utxt'
  29. class preferences(aetools.ComponentItem):
  30. """preferences - (NOT AVAILABLE, SUBJECT TO CHANGE) The Finder Preferences """
  31. want = 'cprf'
  32. class _Prop_button_view_arrangement(aetools.NProperty):
  33. """button view arrangement - the method of arrangement of icons in default Finder button view windows """
  34. which = 'barr'
  35. want = 'earr'
  36. class _Prop_button_view_icon_size(aetools.NProperty):
  37. """button view icon size - the size of icons displayed in Finder button view windows. """
  38. which = 'bisz'
  39. want = 'long'
  40. class _Prop_calculates_folder_sizes(aetools.NProperty):
  41. """calculates folder sizes - Are folder sizes calculated and displayed in Finder list view windows? """
  42. which = 'sfsz'
  43. want = 'bool'
  44. class _Prop_delay_before_springing(aetools.NProperty):
  45. """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) """
  46. which = 'dela'
  47. want = 'shor'
  48. class _Prop_list_view_icon_size(aetools.NProperty):
  49. """list view icon size - the size of icons displayed in Finder list view windows. """
  50. which = 'lisz'
  51. want = 'long'
  52. class _Prop_shows_comments(aetools.NProperty):
  53. """shows comments - Are comments displayed in default Finder list view windows? """
  54. which = 'scom'
  55. want = 'bool'
  56. class _Prop_shows_creation_date(aetools.NProperty):
  57. """shows creation date - Are creation dates displayed in default Finder list view windows? """
  58. which = 'scda'
  59. want = 'bool'
  60. class _Prop_shows_kind(aetools.NProperty):
  61. """shows kind - Are document kinds displayed in default Finder list view windows? """
  62. which = 'sknd'
  63. want = 'bool'
  64. class _Prop_shows_label(aetools.NProperty):
  65. """shows label - Are labels displayed in default Finder list view windows? """
  66. which = 'slbl'
  67. want = 'bool'
  68. class _Prop_shows_modification_date(aetools.NProperty):
  69. """shows modification date - Are modification dates displayed in default Finder list view windows? """
  70. which = 'sdat'
  71. want = 'bool'
  72. class _Prop_shows_size(aetools.NProperty):
  73. """shows size - Are file sizes displayed in default Finder list view windows? """
  74. which = 'ssiz'
  75. want = 'bool'
  76. class _Prop_shows_version(aetools.NProperty):
  77. """shows version - Are file versions displayed in default Finder list view windows? """
  78. which = 'svrs'
  79. want = 'bool'
  80. class _Prop_spatial_view_arrangement(aetools.NProperty):
  81. """spatial view arrangement - the method of arrangement of icons in default Finder spatial view windows """
  82. which = 'iarr'
  83. want = 'earr'
  84. class _Prop_spatial_view_icon_size(aetools.NProperty):
  85. """spatial view icon size - the size of icons displayed in Finder spatial view windows. """
  86. which = 'iisz'
  87. want = 'long'
  88. class _Prop_spring_open_folders(aetools.NProperty):
  89. """spring open folders - Spring open folders after the specified delay? """
  90. which = 'sprg'
  91. want = 'bool'
  92. class _Prop_uses_relative_dates(aetools.NProperty):
  93. """uses relative dates - Are relative dates (e.g., today, yesterday) shown in Finder list view windows? """
  94. which = 'urdt'
  95. want = 'bool'
  96. class _Prop_uses_simple_menus(aetools.NProperty):
  97. """uses simple menus - Use simplified Finder menus? """
  98. which = 'usme'
  99. want = 'bool'
  100. class _Prop_uses_wide_grid(aetools.NProperty):
  101. """uses wide grid - Space icons on a wide grid? """
  102. which = 'uswg'
  103. want = 'bool'
  104. class _Prop_view_font(aetools.NProperty):
  105. """view font - the id of the font used in Finder views. """
  106. which = 'vfnt'
  107. want = 'long'
  108. class _Prop_view_font_size(aetools.NProperty):
  109. """view font size - the size of the font used in Finder views """
  110. which = 'vfsz'
  111. want = 'long'
  112. class _Prop_window(aetools.NProperty):
  113. """window - the window that would open if Finder preferences was opened """
  114. which = 'cwin'
  115. want = 'pwnd'
  116. # element 'clbl' as ['indx', 'name']
  117. class icon_view_options(aetools.ComponentItem):
  118. """icon view options - the icon view options """
  119. want = 'icop'
  120. _Prop_arrangement = _Prop_spatial_view_arrangement
  121. class _Prop_icon_size(aetools.NProperty):
  122. """icon size - the size of icons displayed in the icon view """
  123. which = 'lvis'
  124. want = 'shor'
  125. class icon_family(aetools.ComponentItem):
  126. """icon family - (NOT AVAILABLE YET) A family of icons """
  127. want = 'ifam'
  128. class _Prop_large_32_bit_icon(aetools.NProperty):
  129. """large 32 bit icon - the large 32-bit color icon """
  130. which = 'il32'
  131. want = 'il32'
  132. class _Prop_large_4_bit_icon(aetools.NProperty):
  133. """large 4 bit icon - the large 4-bit color icon """
  134. which = 'icl4'
  135. want = 'icl4'
  136. class _Prop_large_8_bit_icon(aetools.NProperty):
  137. """large 8 bit icon - the large 8-bit color icon """
  138. which = 'icl8'
  139. want = 'icl8'
  140. class _Prop_large_8_bit_mask(aetools.NProperty):
  141. """large 8 bit mask - the large 8-bit mask for large 32-bit icons """
  142. which = 'l8mk'
  143. want = 'l8mk'
  144. class _Prop_large_monochrome_icon_and_mask(aetools.NProperty):
  145. """large monochrome icon and mask - the large black-and-white icon and the mask for large icons """
  146. which = 'ICN#'
  147. want = 'ICN#'
  148. class _Prop_small_32_bit_icon(aetools.NProperty):
  149. """small 32 bit icon - the small 32-bit color icon """
  150. which = 'is32'
  151. want = 'is32'
  152. class _Prop_small_4_bit_icon(aetools.NProperty):
  153. """small 4 bit icon - the small 4-bit color icon """
  154. which = 'ics4'
  155. want = 'ics4'
  156. class _Prop_small_8_bit_icon(aetools.NProperty):
  157. """small 8 bit icon - the small 8-bit color icon """
  158. which = 'ics8'
  159. want = 'ics8'
  160. _Prop_small_8_bit_mask = _Prop_small_8_bit_icon
  161. class _Prop_small_monochrome_icon_and_mask(aetools.NProperty):
  162. """small monochrome icon and mask - the small black-and-white icon and the mask for small icons """
  163. which = 'ics#'
  164. want = 'ics#'
  165. class column(aetools.ComponentItem):
  166. """column - a column of a list view """
  167. want = 'lvcl'
  168. class _Prop_sort_direction(aetools.NProperty):
  169. """sort direction - The direction in which the window is sorted """
  170. which = 'sord'
  171. want = 'sodr'
  172. class _Prop_visible(aetools.NProperty):
  173. """visible - is this column visible """
  174. which = 'pvis'
  175. want = 'bool'
  176. class _Prop_width(aetools.NProperty):
  177. """width - the width of this column """
  178. which = 'clwd'
  179. want = 'shor'
  180. columns = column
  181. class list_view_options(aetools.ComponentItem):
  182. """list view options - the list view options """
  183. want = 'lvop'
  184. class _Prop_sort_column(aetools.NProperty):
  185. """sort column - the column that the list view is sorted on """
  186. which = 'srtc'
  187. want = 'lvcl'
  188. # element 'lvcl' as ['indx', 'rele', 'rang', 'test']
  189. alias_list._superclassnames = []
  190. alias_list._privpropdict = {
  191. }
  192. alias_list._privelemdict = {
  193. }
  194. label._superclassnames = []
  195. label._privpropdict = {
  196. 'color' : _Prop_color,
  197. 'index' : _Prop_index,
  198. 'name' : _Prop_name,
  199. }
  200. label._privelemdict = {
  201. }
  202. preferences._superclassnames = []
  203. preferences._privpropdict = {
  204. 'button_view_arrangement' : _Prop_button_view_arrangement,
  205. 'button_view_icon_size' : _Prop_button_view_icon_size,
  206. 'calculates_folder_sizes' : _Prop_calculates_folder_sizes,
  207. 'delay_before_springing' : _Prop_delay_before_springing,
  208. 'list_view_icon_size' : _Prop_list_view_icon_size,
  209. 'shows_comments' : _Prop_shows_comments,
  210. 'shows_creation_date' : _Prop_shows_creation_date,
  211. 'shows_kind' : _Prop_shows_kind,
  212. 'shows_label' : _Prop_shows_label,
  213. 'shows_modification_date' : _Prop_shows_modification_date,
  214. 'shows_size' : _Prop_shows_size,
  215. 'shows_version' : _Prop_shows_version,
  216. 'spatial_view_arrangement' : _Prop_spatial_view_arrangement,
  217. 'spatial_view_icon_size' : _Prop_spatial_view_icon_size,
  218. 'spring_open_folders' : _Prop_spring_open_folders,
  219. 'uses_relative_dates' : _Prop_uses_relative_dates,
  220. 'uses_simple_menus' : _Prop_uses_simple_menus,
  221. 'uses_wide_grid' : _Prop_uses_wide_grid,
  222. 'view_font' : _Prop_view_font,
  223. 'view_font_size' : _Prop_view_font_size,
  224. 'window' : _Prop_window,
  225. }
  226. preferences._privelemdict = {
  227. 'label' : label,
  228. }
  229. icon_view_options._superclassnames = []
  230. icon_view_options._privpropdict = {
  231. 'arrangement' : _Prop_arrangement,
  232. 'icon_size' : _Prop_icon_size,
  233. }
  234. icon_view_options._privelemdict = {
  235. }
  236. icon_family._superclassnames = []
  237. icon_family._privpropdict = {
  238. 'large_32_bit_icon' : _Prop_large_32_bit_icon,
  239. 'large_4_bit_icon' : _Prop_large_4_bit_icon,
  240. 'large_8_bit_icon' : _Prop_large_8_bit_icon,
  241. 'large_8_bit_mask' : _Prop_large_8_bit_mask,
  242. 'large_monochrome_icon_and_mask' : _Prop_large_monochrome_icon_and_mask,
  243. 'small_32_bit_icon' : _Prop_small_32_bit_icon,
  244. 'small_4_bit_icon' : _Prop_small_4_bit_icon,
  245. 'small_8_bit_icon' : _Prop_small_8_bit_icon,
  246. 'small_8_bit_mask' : _Prop_small_8_bit_mask,
  247. 'small_monochrome_icon_and_mask' : _Prop_small_monochrome_icon_and_mask,
  248. }
  249. icon_family._privelemdict = {
  250. }
  251. column._superclassnames = []
  252. column._privpropdict = {
  253. 'index' : _Prop_index,
  254. 'name' : _Prop_name,
  255. 'sort_direction' : _Prop_sort_direction,
  256. 'visible' : _Prop_visible,
  257. 'width' : _Prop_width,
  258. }
  259. column._privelemdict = {
  260. }
  261. list_view_options._superclassnames = []
  262. list_view_options._privpropdict = {
  263. 'calculates_folder_sizes' : _Prop_calculates_folder_sizes,
  264. 'icon_size' : _Prop_icon_size,
  265. 'sort_column' : _Prop_sort_column,
  266. 'uses_relative_dates' : _Prop_uses_relative_dates,
  267. }
  268. list_view_options._privelemdict = {
  269. 'column' : column,
  270. }
  271. #
  272. # Indices of types declared in this module
  273. #
  274. _classdeclarations = {
  275. 'alst' : alias_list,
  276. 'clbl' : label,
  277. 'cprf' : preferences,
  278. 'icop' : icon_view_options,
  279. 'ifam' : icon_family,
  280. 'lvcl' : column,
  281. 'lvop' : list_view_options,
  282. }
  283. _propdeclarations = {
  284. 'ICN#' : _Prop_large_monochrome_icon_and_mask,
  285. 'barr' : _Prop_button_view_arrangement,
  286. 'bisz' : _Prop_button_view_icon_size,
  287. 'clwd' : _Prop_width,
  288. 'colr' : _Prop_color,
  289. 'cwin' : _Prop_window,
  290. 'dela' : _Prop_delay_before_springing,
  291. 'iarr' : _Prop_spatial_view_arrangement,
  292. 'icl4' : _Prop_large_4_bit_icon,
  293. 'icl8' : _Prop_large_8_bit_icon,
  294. 'ics#' : _Prop_small_monochrome_icon_and_mask,
  295. 'ics4' : _Prop_small_4_bit_icon,
  296. 'ics8' : _Prop_small_8_bit_icon,
  297. 'iisz' : _Prop_spatial_view_icon_size,
  298. 'il32' : _Prop_large_32_bit_icon,
  299. 'is32' : _Prop_small_32_bit_icon,
  300. 'l8mk' : _Prop_large_8_bit_mask,
  301. 'lisz' : _Prop_list_view_icon_size,
  302. 'lvis' : _Prop_icon_size,
  303. 'pidx' : _Prop_index,
  304. 'pnam' : _Prop_name,
  305. 'pvis' : _Prop_visible,
  306. 'scda' : _Prop_shows_creation_date,
  307. 'scom' : _Prop_shows_comments,
  308. 'sdat' : _Prop_shows_modification_date,
  309. 'sfsz' : _Prop_calculates_folder_sizes,
  310. 'sknd' : _Prop_shows_kind,
  311. 'slbl' : _Prop_shows_label,
  312. 'sord' : _Prop_sort_direction,
  313. 'sprg' : _Prop_spring_open_folders,
  314. 'srtc' : _Prop_sort_column,
  315. 'ssiz' : _Prop_shows_size,
  316. 'svrs' : _Prop_shows_version,
  317. 'urdt' : _Prop_uses_relative_dates,
  318. 'usme' : _Prop_uses_simple_menus,
  319. 'uswg' : _Prop_uses_wide_grid,
  320. 'vfnt' : _Prop_view_font,
  321. 'vfsz' : _Prop_view_font_size,
  322. }
  323. _compdeclarations = {
  324. }
  325. _enumdeclarations = {
  326. }