Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

735 lines
34 KiB

  1. /*
  2. File: FinderRegistry.h
  3. Contains: Data types for Finder AppleEvents
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 1991-2001 by Apple Computer, Inc., all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://developer.apple.com/bugreporter/
  9. */
  10. #ifndef __FINDERREGISTRY__
  11. #define __FINDERREGISTRY__
  12. #ifndef __AEREGISTRY__
  13. #include <AERegistry.h>
  14. #endif
  15. #ifndef __OSA__
  16. #include <OSA.h>
  17. #endif
  18. #if PRAGMA_ONCE
  19. #pragma once
  20. #endif
  21. #if PRAGMA_IMPORT
  22. #pragma import on
  23. #endif
  24. /*
  25. //////////////////////////////////////
  26. Finder Suite
  27. //////////////////////////////////////
  28. */
  29. /*
  30. The old Finder Event suite was 'FNDR'
  31. The new suite is 'fndr'
  32. */
  33. enum {
  34. kAEFinderSuite = FOUR_CHAR_CODE('fndr')
  35. };
  36. /*
  37. //////////////////////////////////////
  38. Finder Events
  39. //////////////////////////////////////
  40. */
  41. enum {
  42. kAECleanUp = FOUR_CHAR_CODE('fclu'),
  43. kAEEject = FOUR_CHAR_CODE('ejct'),
  44. kAEEmpty = FOUR_CHAR_CODE('empt'),
  45. kAEErase = FOUR_CHAR_CODE('fera'),
  46. kAEGestalt = FOUR_CHAR_CODE('gstl'),
  47. kAEPutAway = FOUR_CHAR_CODE('ptwy'),
  48. kAERebuildDesktopDB = FOUR_CHAR_CODE('rddb'),
  49. kAESync = FOUR_CHAR_CODE('fupd'),
  50. kAEInterceptOpen = FOUR_CHAR_CODE('fopn')
  51. };
  52. /* "Sort" from the database suite:*/
  53. enum {
  54. kAEDatabaseSuite = FOUR_CHAR_CODE('DATA'),
  55. kAESort = FOUR_CHAR_CODE('SORT')
  56. };
  57. /*
  58. ////////////////////////////////////////////////////////////////////////
  59. Classes
  60. Note: all classes are defined up front so that the property definitions
  61. can reference classes.
  62. ////////////////////////////////////////////////////////////////////////
  63. */
  64. enum {
  65. cInternalFinderObject = FOUR_CHAR_CODE('obj ') /* cReference - used to distinguish objects used inside the Finder only*/
  66. };
  67. /*
  68. Main Finder class definitions
  69. Indentation implies object model hierarchy
  70. */
  71. enum {
  72. /* We do not use class cItem from AERegistry.r. Instead our class Item is a cObject*/
  73. /* cItem = 'citm', // defined in AERegistry.r*/
  74. /* cFile = 'file', // defined in AERegistry.r*/
  75. cAliasFile = FOUR_CHAR_CODE('alia'),
  76. cApplicationFile = FOUR_CHAR_CODE('appf'),
  77. cControlPanelFile = FOUR_CHAR_CODE('ccdv'),
  78. cDeskAccessoryFile = FOUR_CHAR_CODE('dafi'),
  79. cDocumentFile = FOUR_CHAR_CODE('docf'),
  80. cFontFile = FOUR_CHAR_CODE('fntf'),
  81. cSoundFile = FOUR_CHAR_CODE('sndf'),
  82. cClippingFile = FOUR_CHAR_CODE('clpf'),
  83. cContainer = FOUR_CHAR_CODE('ctnr'),
  84. cDesktop = FOUR_CHAR_CODE('cdsk'),
  85. cSharableContainer = FOUR_CHAR_CODE('sctr'),
  86. cDisk = FOUR_CHAR_CODE('cdis'),
  87. cFolder = FOUR_CHAR_CODE('cfol'),
  88. cSuitcase = FOUR_CHAR_CODE('stcs'),
  89. cAccessorySuitcase = FOUR_CHAR_CODE('dsut'),
  90. cFontSuitcase = FOUR_CHAR_CODE('fsut'),
  91. cTrash = FOUR_CHAR_CODE('ctrs'),
  92. cDesktopPrinter = FOUR_CHAR_CODE('dskp'),
  93. cPackage = FOUR_CHAR_CODE('pack'),
  94. cContentSpace = FOUR_CHAR_CODE('dwnd'), /* cWindow = 'cwin', // defined in AERegistry.r*/
  95. cContainerWindow = FOUR_CHAR_CODE('cwnd'),
  96. cInfoWindow = FOUR_CHAR_CODE('iwnd'),
  97. cSharingWindow = FOUR_CHAR_CODE('swnd'),
  98. cStatusWindow = FOUR_CHAR_CODE('qwnd'),
  99. cClippingWindow = FOUR_CHAR_CODE('lwnd'),
  100. cPreferencesWindow = FOUR_CHAR_CODE('pwnd'),
  101. cDTPWindow = FOUR_CHAR_CODE('dtpw'),
  102. cProcess = FOUR_CHAR_CODE('prcs'),
  103. cAccessoryProcess = FOUR_CHAR_CODE('pcda'),
  104. cApplicationProcess = FOUR_CHAR_CODE('pcap'),
  105. cGroup = FOUR_CHAR_CODE('sgrp'),
  106. cUser = FOUR_CHAR_CODE('cuse'), /* cApplication = 'capp', // defined in AERegistry.r*/
  107. cSharingPrivileges = FOUR_CHAR_CODE('priv'),
  108. cPreferences = FOUR_CHAR_CODE('cprf'),
  109. cLabel = FOUR_CHAR_CODE('clbl'),
  110. cSound = FOUR_CHAR_CODE('snd '),
  111. cAliasList = FOUR_CHAR_CODE('alst'),
  112. cSpecialFolders = FOUR_CHAR_CODE('spfl'), /* For use by viewer search engines:*/
  113. cOnlineDisk = FOUR_CHAR_CODE('cods'),
  114. cOnlineLocalDisk = FOUR_CHAR_CODE('clds'),
  115. cOnlineRemoteDisk = FOUR_CHAR_CODE('crds'), /* Miscellaneous class definitions*/
  116. cEntireContents = FOUR_CHAR_CODE('ects'),
  117. cIconFamily = FOUR_CHAR_CODE('ifam')
  118. };
  119. /*
  120. //////////////////////////////////////
  121. Properties
  122. //////////////////////////////////////
  123. */
  124. /* Properties of class cItem (really cObject)*/
  125. enum {
  126. /* pBounds = 'pbnd', // defined in AERegistry.r*/
  127. pComment = FOUR_CHAR_CODE('comt'),
  128. pContainer = cContainer,
  129. pContentSpace = cContentSpace,
  130. pCreationDateOld = FOUR_CHAR_CODE('crtd'), /* to support pre-Finder 8 scripts*/
  131. pCreationDate = FOUR_CHAR_CODE('ascd'), /* from File Commands OSAX*/
  132. pDescription = FOUR_CHAR_CODE('dscr'),
  133. pDisk = cDisk,
  134. pFolderOld = cFolder, /* to support pre-Finder 8 scripts*/
  135. pFolder = FOUR_CHAR_CODE('asdr'), /* from File Commands OSAX*/
  136. pIconBitmap = FOUR_CHAR_CODE('iimg'), /* pID = 'ID ', // defined in AERegistry.r*/
  137. pInfoWindow = cInfoWindow,
  138. pKind = FOUR_CHAR_CODE('kind'),
  139. pLabelIndex = FOUR_CHAR_CODE('labi'),
  140. pModificationDateOld = FOUR_CHAR_CODE('modd'), /* to support pre-Finder 8 scripts*/
  141. pModificationDate = FOUR_CHAR_CODE('asmo'), /* from File Commands OSAX*/
  142. /* pName = 'pnam', // defined in AERegistry.r*/
  143. pPhysicalSize = FOUR_CHAR_CODE('phys'),
  144. pPosition = FOUR_CHAR_CODE('posn'),
  145. pIsSelected = FOUR_CHAR_CODE('issl'),
  146. pSize = pPointSize, /* pPointSize defined in AERegistry.r*/
  147. pWindow = cWindow,
  148. pPreferencesWindow = cPreferencesWindow
  149. };
  150. /* Properties of class cFile (subclass of cItem)*/
  151. enum {
  152. pFileCreator = FOUR_CHAR_CODE('fcrt'),
  153. pFileType = FOUR_CHAR_CODE('asty'), /* from File Commands OSAX*/
  154. pFileTypeOld = FOUR_CHAR_CODE('fitp'), /* to support pre-Finder 8 scripts*/
  155. pIsLocked = FOUR_CHAR_CODE('aslk'), /* from File Commands OSAX*/
  156. pIsLockedOld = FOUR_CHAR_CODE('islk'), /* to support pre-Finder 8 scripts*/
  157. /* pIsStationeryPad = 'pspd', // defined in AERegistry.r */
  158. /* pVersion = 'vers', // defined in AERegistry.r*/
  159. pProductVersion = FOUR_CHAR_CODE('ver2')
  160. };
  161. /* Properties of class cAliasFile (subclass of cFile)*/
  162. enum {
  163. pOriginalItem = FOUR_CHAR_CODE('orig')
  164. };
  165. /* Properties of class cApplicationFile (subclass of cFile)*/
  166. enum {
  167. pMinAppPartition = FOUR_CHAR_CODE('mprt'),
  168. pAppPartition = FOUR_CHAR_CODE('appt'),
  169. pSuggestedAppPartition = FOUR_CHAR_CODE('sprt'),
  170. pIsScriptable = FOUR_CHAR_CODE('isab')
  171. };
  172. /* Properties of class cURLFile (subclass of cFile)*/
  173. enum {
  174. pInternetLocation = FOUR_CHAR_CODE('iloc')
  175. };
  176. /* Properties of class cSoundFile (subclass of cFile)*/
  177. enum {
  178. pSound = FOUR_CHAR_CODE('snd ')
  179. };
  180. /*
  181. Properties of class cControlPanel (Views CP only) (subclass of cFile)
  182. Note: the other view-like preference settings are not available in the Views
  183. control panel. These properties are only offered here for backward compatability.
  184. To set the full range of Finder Preferences, use the Preferences object.
  185. */
  186. enum {
  187. pShowFolderSize = FOUR_CHAR_CODE('sfsz'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  188. pShowComment = FOUR_CHAR_CODE('scom'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  189. pShowDate = FOUR_CHAR_CODE('sdat'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  190. pShowCreationDate = FOUR_CHAR_CODE('scda'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  191. pShowKind = FOUR_CHAR_CODE('sknd'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  192. pShowLabel = FOUR_CHAR_CODE('slbl'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  193. pShowSize = FOUR_CHAR_CODE('ssiz'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  194. pShowVersion = FOUR_CHAR_CODE('svrs'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  195. pSortDirection = FOUR_CHAR_CODE('sord'),
  196. pShowDiskInfo = FOUR_CHAR_CODE('sdin'), /* Always on in Finder 8.0 HIS*/
  197. pListViewIconSize = FOUR_CHAR_CODE('lvis'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  198. pGridIcons = FOUR_CHAR_CODE('fgrd'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  199. pStaggerIcons = FOUR_CHAR_CODE('fstg'), /* No longer part of the Finder 8.0 HIS*/
  200. pViewFont = FOUR_CHAR_CODE('vfnt'),
  201. pViewFontSize = FOUR_CHAR_CODE('vfsz')
  202. };
  203. /* Properties of class cContainer (subclass of cItem)*/
  204. enum {
  205. pCompletelyExpanded = FOUR_CHAR_CODE('pexc'),
  206. pContainerWindow = cContainerWindow,
  207. pEntireContents = cEntireContents,
  208. pExpandable = FOUR_CHAR_CODE('pexa'),
  209. pExpanded = FOUR_CHAR_CODE('pexp'),
  210. pPreviousView = FOUR_CHAR_CODE('svew'), /* pSelection = 'sele', // defined in AERegistry.r*/
  211. pView = FOUR_CHAR_CODE('pvew'),
  212. pIconSize = pListViewIconSize, /* defined above*/
  213. pKeepArranged = FOUR_CHAR_CODE('arrg'), /* OBSOLETE in Finder 9 or later*/
  214. pKeepArrangedBy = FOUR_CHAR_CODE('arby') /* OBSOLETE in Finder 9 or later*/
  215. };
  216. /* Properties of class cDesktop (subclass of cContainer)*/
  217. enum {
  218. pStartupDisk = FOUR_CHAR_CODE('sdsk'),
  219. pTrash = FOUR_CHAR_CODE('trsh')
  220. };
  221. /* Properties of class cSharableContainer (subclass of cContainer)*/
  222. enum {
  223. pOwner = FOUR_CHAR_CODE('sown'),
  224. pOwnerPrivileges = FOUR_CHAR_CODE('ownr'),
  225. pGroup = cGroup,
  226. pGroupPrivileges = FOUR_CHAR_CODE('gppr'),
  227. pGuestPrivileges = FOUR_CHAR_CODE('gstp'),
  228. pArePrivilegesInherited = FOUR_CHAR_CODE('iprv'),
  229. pExported = FOUR_CHAR_CODE('sexp'),
  230. pMounted = FOUR_CHAR_CODE('smou'),
  231. pSharingProtection = FOUR_CHAR_CODE('spro'),
  232. pSharing = FOUR_CHAR_CODE('shar'),
  233. pSharingWindow = cSharingWindow
  234. };
  235. /* Properties of class cDisk (subclass of cSharableContainer)*/
  236. enum {
  237. pCapacity = FOUR_CHAR_CODE('capa'),
  238. pEjectable = FOUR_CHAR_CODE('isej'),
  239. pFreeSpace = FOUR_CHAR_CODE('frsp'),
  240. pLocal = FOUR_CHAR_CODE('isrv'),
  241. pIsStartup = FOUR_CHAR_CODE('istd')
  242. };
  243. /* Properties of class cTrash (subclass of cSharableContainer)*/
  244. enum {
  245. pWarnOnEmpty = FOUR_CHAR_CODE('warn')
  246. };
  247. /* Properties of class cWindow (subclass of cContentSpace)*/
  248. enum {
  249. /* pBounds = 'pbnd', // defined in AERegistry.r*/
  250. /* pHasCloseBox = 'hclb', // defined in AERegistry.r*/
  251. /* pIsFloating = 'isfl', // defined in AERegistry.r*/
  252. /* pIndex = 'pidx', // defined in AERegistry.r*/
  253. /* pIsModal = 'pmod', // defined in AERegistry.r*/
  254. /* pPosition = 'posn', // defined above*/
  255. /* pIsResizable = 'prsz', // defined in AERegistry.r*/
  256. /* pHasTitleBar = 'ptit', // defined in AERegistry.r*/
  257. /* pVisible = 'pvis', // defined in AERegistry.r*/
  258. /* pIsZoomable = 'iszm', // defined in AERegistry.r*/
  259. /* pIsZoomed = 'pzum', // defined in AERegistry.r*/
  260. pIsZoomedFull = FOUR_CHAR_CODE('zumf'),
  261. pIsPopup = FOUR_CHAR_CODE('drwr'),
  262. pIsPulledOpen = FOUR_CHAR_CODE('pull'), /* only applies to popup windows*/
  263. pIsCollapsed = FOUR_CHAR_CODE('wshd') /* only applies to normal windows*/
  264. };
  265. /* Properties of class cContainerWindow (subclass of cWindow)*/
  266. enum {
  267. pObject = cObject
  268. };
  269. /* Properties of class cSharingWindow (subclass of cWindow)*/
  270. enum {
  271. pSharableContainer = cSharableContainer
  272. };
  273. /* Properties of class cInfoWindow (subclass of cWindow)*/
  274. enum {
  275. pInfoPanel = FOUR_CHAR_CODE('panl')
  276. };
  277. /* Properties of networking support*/
  278. enum {
  279. pFileShareOn = FOUR_CHAR_CODE('fshr'),
  280. pFileShareStartingUp = FOUR_CHAR_CODE('fsup'),
  281. pProgramLinkingOn = FOUR_CHAR_CODE('iac ')
  282. };
  283. /* Properties of class cPreferencesWindow (subclass of cWindow)*/
  284. enum {
  285. /* pShowFolderSize = 'sfsz', // defined above for Views CP*/
  286. /* pShowComment = 'scom', // defined above for Views CP*/
  287. pShowModificationDate = pShowDate, /* pShowDate defined above for Views CP*/
  288. /* pShowKind = 'sknd', // defined above for Views CP*/
  289. /* pShowLabel = 'slbl', // defined above for Views CP*/
  290. /* pShowSize = 'ssiz', // defined above for Views CP*/
  291. /* pShowVersion = 'svrs', // defined above for Views CP*/
  292. /* pShowCreationDate = 'scda', // Removed from Finder 8.0 HIS*/
  293. /* pShowFileType = 'sfty', // Removed from Finder 8.0 HIS*/
  294. /* pShowFileCreator = 'sfcr', // Removed from Finder 8.0 HIS*/
  295. /* pListViewIconSize = 'lvis', // defined above for Views CP*/
  296. /* pGridIcons = 'fgrd', // defined above for Views CP*/
  297. /* pStaggerIcons = 'fstg', // defined above for Views CP*/
  298. /* pViewFont = 'vfnt', // defined above for Views CP*/
  299. /* pViewFontSize = 'vfsz', // defined above for Views CP*/
  300. pUseRelativeDate = FOUR_CHAR_CODE('urdt'), /* Moved to a per-folder basis in Finder 8.0 HIS*/
  301. pDelayBeforeSpringing = FOUR_CHAR_CODE('dela'),
  302. pSpringOpenFolders = FOUR_CHAR_CODE('sprg'),
  303. pUseShortMenus = FOUR_CHAR_CODE('usme'),
  304. pUseWideGrid = FOUR_CHAR_CODE('uswg'),
  305. pLabel1 = FOUR_CHAR_CODE('lbl1'),
  306. pLabel2 = FOUR_CHAR_CODE('lbl2'),
  307. pLabel3 = FOUR_CHAR_CODE('lbl3'),
  308. pLabel4 = FOUR_CHAR_CODE('lbl4'),
  309. pLabel5 = FOUR_CHAR_CODE('lbl5'),
  310. pLabel6 = FOUR_CHAR_CODE('lbl6'),
  311. pLabel7 = FOUR_CHAR_CODE('lbl7'),
  312. pDefaultIconViewIconSize = FOUR_CHAR_CODE('iisz'),
  313. pDefaultButtonViewIconSize = FOUR_CHAR_CODE('bisz'),
  314. pDefaultListViewIconSize = FOUR_CHAR_CODE('lisz'), /* old use of this name is now pIconSize*/
  315. pIconViewArrangement = FOUR_CHAR_CODE('iarr'),
  316. pButtonViewArrangement = FOUR_CHAR_CODE('barr')
  317. };
  318. /*
  319. The next bunch are the various arrangements that make up
  320. enumArrangement
  321. */
  322. enum {
  323. pNoArrangement = FOUR_CHAR_CODE('narr'),
  324. pSnapToGridArrangement = FOUR_CHAR_CODE('grda'),
  325. pByNameArrangement = FOUR_CHAR_CODE('nama'),
  326. pByModificationDateArrangement = FOUR_CHAR_CODE('mdta'),
  327. pByCreationDateArrangement = FOUR_CHAR_CODE('cdta'),
  328. pBySizeArrangement = FOUR_CHAR_CODE('siza'),
  329. pByKindArrangement = FOUR_CHAR_CODE('kina'),
  330. pByLabelArrangement = FOUR_CHAR_CODE('laba')
  331. };
  332. /* #define pObject cObject // defined above*/
  333. /* Properties of class cProcess (subclass of cObject)*/
  334. enum {
  335. /* pName = 'pnam', // defined in AERegistry.r*/
  336. pFile = cFile, /* pCreatorType = 'fcrt', // defined above*/
  337. /* pFileType = 'asty', // defined above*/
  338. /* pIsFrontProcess = 'pisf', // defined in AERegistry.r*/
  339. /* pAppPartition = 'appt', // defined above*/
  340. pPartitionSpaceUsed = FOUR_CHAR_CODE('pusd'), /* pIsScriptable = 'isab', // defined in AERegistry.r*/
  341. /* pVisible = 'pvis' // defined in AERegistry.r*/
  342. pLocalAndRemoteEvents = FOUR_CHAR_CODE('revt'),
  343. pHasScriptingTerminology = FOUR_CHAR_CODE('hscr')
  344. };
  345. /* Properties of class cAccessoryProcess (subclass of cProcess)*/
  346. enum {
  347. pDeskAccessoryFile = cDeskAccessoryFile
  348. };
  349. /* Properties of class cApplicationProcess (subclass of cProcess)*/
  350. enum {
  351. pApplicationFile = cApplicationFile
  352. };
  353. /*
  354. Properties of class cGroup (subclass of cObject)
  355. enum {
  356. pBounds
  357. pIconBitmap
  358. pLabelIndex
  359. pName
  360. pPosition
  361. pWindow = cWindow // defined above
  362. };
  363. */
  364. /* Properties of class cUser (subclass of cObject)*/
  365. enum {
  366. /* pBounds*/
  367. /* pIconBitmap*/
  368. /* pLabelIndex*/
  369. /* pName*/
  370. /* pPosition*/
  371. /* pWindow = cWindow, // defined above*/
  372. pCanConnect = FOUR_CHAR_CODE('ccon'),
  373. pCanChangePassword = FOUR_CHAR_CODE('ccpw'),
  374. pCanDoProgramLinking = FOUR_CHAR_CODE('ciac'),
  375. pIsOwner = FOUR_CHAR_CODE('isow'),
  376. pARADialIn = FOUR_CHAR_CODE('arad'),
  377. pShouldCallBack = FOUR_CHAR_CODE('calb'),
  378. pCallBackNumber = FOUR_CHAR_CODE('cbnm')
  379. };
  380. /*
  381. Properties of class cApplication (subclass of cObject)
  382. NOTE: properties for the special folders must match their respective kXXXFolderType constants
  383. */
  384. enum {
  385. pAboutMacintosh = FOUR_CHAR_CODE('abbx'),
  386. pAppleMenuItemsFolder = FOUR_CHAR_CODE('amnu'), /* kAppleMenuFolderType*/
  387. /* pClipboard = 'pcli', // defined in AERegistry.r*/
  388. pControlPanelsFolder = FOUR_CHAR_CODE('ctrl'), /* kControlPanelFolderType*/
  389. pDesktop = FOUR_CHAR_CODE('desk'), /* kDesktopFolderType*/
  390. pExtensionsFolder = FOUR_CHAR_CODE('extn'), /* kExtensionFolderType*/
  391. /* pFileShareOn = 'fshr', // defined above*/
  392. pFinderPreferences = FOUR_CHAR_CODE('pfrp'),
  393. pFontsFolder = FOUR_CHAR_CODE('font'),
  394. pFontsFolderPreAllegro = FOUR_CHAR_CODE('ffnt'), /* DO NOT USE THIS - FOR BACKWARDS COMPAT ONLY*/
  395. /* pIsFrontProcess = 'pisf', // defined in AERegistry.r*/
  396. /* pInsertionLoc = 'pins', // defined in AERegistry.r*/
  397. pLargestFreeBlock = FOUR_CHAR_CODE('mfre'),
  398. pPreferencesFolder = FOUR_CHAR_CODE('pref'), /* kPreferencesFolderType*/
  399. /* pProductVersion = 'ver2', // defined above*/
  400. /* pUserSelection = 'pusl', // defined in AERegistry.r*/
  401. /* pFileShareStartingUp = 'fsup', // defined above*/
  402. pShortCuts = FOUR_CHAR_CODE('scut'),
  403. pShutdownFolder = FOUR_CHAR_CODE('shdf'),
  404. pStartupItemsFolder = FOUR_CHAR_CODE('strt'), /* kStartupFolderType*/
  405. pSystemFolder = FOUR_CHAR_CODE('macs'), /* kSystemFolderType*/
  406. pTemporaryFolder = FOUR_CHAR_CODE('temp'), /* kTemporaryFolderType*/
  407. /* pVersion = 'vers', // defined in AERegistry.r*/
  408. pViewPreferences = FOUR_CHAR_CODE('pvwp'), /* pVisible = 'pvis', // defined in AERegistry.r*/
  409. pStartingUp = FOUR_CHAR_CODE('awak') /* private property to tell whether the Finder is fully up and running*/
  410. };
  411. /* Properties of class cSharingPrivileges (subclass of cObject)*/
  412. enum {
  413. pSeeFiles = FOUR_CHAR_CODE('prvr'),
  414. pSeeFolders = FOUR_CHAR_CODE('prvs'),
  415. pMakeChanges = FOUR_CHAR_CODE('prvw')
  416. };
  417. /*
  418. Properties of class cPreferences (subclass of cObject)
  419. enum {
  420. pShowFolderSize = 'sfsz', // defined above for Views CP
  421. pShowComment = 'scom', // defined above for Views CP
  422. pShowModificationDate = pShowDate, // pShowDate defined above for Views CP
  423. pShowKind = 'sknd', // defined above for Views CP
  424. pShowLabel = 'slbl', // defined above for Views CP
  425. pShowSize = 'ssiz', // defined above for Views CP
  426. pShowVersion = 'svrs', // defined above for Views CP
  427. pShowCreationDate = 'scda', // defined in cPreferencesWindow
  428. pShowFileType = 'sfty', // defined in cPreferencesWindow
  429. pShowFileCreator = 'sfcr', // defined in cPreferencesWindow
  430. pListViewIconSize = 'lvis', // defined above for Views CP
  431. pGridIcons = 'fgrd', // defined above for Views CP
  432. pStaggerIcons = 'fstg', // defined above for Views CP
  433. pViewFont = 'vfnt', // defined above for Views CP
  434. pViewFontSize = 'vfsz', // defined above for Views CP
  435. pUseRelativeDate = 'urdt', // defined in cPreferencesWindow
  436. pDelayBeforeSpringing = 'dela', // defined in cPreferencesWindow
  437. pShowMacOSFolder = 'sosf', // defined in cPreferencesWindow
  438. pUseShortMenus = 'usme', // defined in cPreferencesWindow
  439. pUseCustomNewMenu = 'ucnm', // defined in cPreferencesWindow
  440. pShowDesktopInBackground = 'sdtb', // defined in cPreferencesWindow
  441. pActivateDesktopOnClick = 'adtc', // defined in cPreferencesWindow
  442. pLabel1 = 'lbl1', // defined in cPreferencesWindow
  443. pLabel2 = 'lbl2', // defined in cPreferencesWindow
  444. pLabel3 = 'lbl3', // defined in cPreferencesWindow
  445. pLabel4 = 'lbl4', // defined in cPreferencesWindow
  446. pLabel5 = 'lbl5', // defined in cPreferencesWindow
  447. pLabel6 = 'lbl6', // defined in cPreferencesWindow
  448. pLabel7 = 'lbl7', // defined in cPreferencesWindow
  449. pWindow = cWindow // defined above
  450. };
  451. */
  452. /*
  453. Properties of class cLabel (subclass of cObject)
  454. enum {
  455. pName = 'pnam', // defined in AERegistry.r
  456. pColor = 'colr', // defined in AERegistry.r
  457. };
  458. */
  459. /* Misc Properties*/
  460. enum {
  461. pSmallIcon = FOUR_CHAR_CODE('smic'),
  462. pSmallButton = FOUR_CHAR_CODE('smbu'),
  463. pLargeButton = FOUR_CHAR_CODE('lgbu'),
  464. pGrid = FOUR_CHAR_CODE('grid')
  465. };
  466. /*
  467. //////////////////////////////////////
  468. Enumerations defined by the Finder
  469. //////////////////////////////////////
  470. */
  471. enum {
  472. enumViewBy = FOUR_CHAR_CODE('vwby'),
  473. enumGestalt = FOUR_CHAR_CODE('gsen'),
  474. enumConflicts = FOUR_CHAR_CODE('cflc'),
  475. enumExistingItems = FOUR_CHAR_CODE('exsi'),
  476. enumOlderItems = FOUR_CHAR_CODE('oldr')
  477. };
  478. enum {
  479. enumDate = FOUR_CHAR_CODE('enda'),
  480. enumAnyDate = FOUR_CHAR_CODE('anyd'),
  481. enumToday = FOUR_CHAR_CODE('tday'),
  482. enumYesterday = FOUR_CHAR_CODE('yday'),
  483. enumThisWeek = FOUR_CHAR_CODE('twek'),
  484. enumLastWeek = FOUR_CHAR_CODE('lwek'),
  485. enumThisMonth = FOUR_CHAR_CODE('tmon'),
  486. enumLastMonth = FOUR_CHAR_CODE('lmon'),
  487. enumThisYear = FOUR_CHAR_CODE('tyer'),
  488. enumLastYear = FOUR_CHAR_CODE('lyer'),
  489. enumBeforeDate = FOUR_CHAR_CODE('bfdt'),
  490. enumAfterDate = FOUR_CHAR_CODE('afdt'),
  491. enumBetweenDate = FOUR_CHAR_CODE('btdt'),
  492. enumOnDate = FOUR_CHAR_CODE('ondt')
  493. };
  494. enum {
  495. enumAllDocuments = FOUR_CHAR_CODE('alld'),
  496. enumFolders = FOUR_CHAR_CODE('fold'),
  497. enumAliases = FOUR_CHAR_CODE('alia'),
  498. enumStationery = FOUR_CHAR_CODE('stat')
  499. };
  500. enum {
  501. enumWhere = FOUR_CHAR_CODE('wher'),
  502. enumAllLocalDisks = FOUR_CHAR_CODE('aldk'),
  503. enumAllRemoteDisks = FOUR_CHAR_CODE('ardk'),
  504. enumAllDisks = FOUR_CHAR_CODE('alld'),
  505. enumAllOpenFolders = FOUR_CHAR_CODE('aofo')
  506. };
  507. enum {
  508. enumIconSize = FOUR_CHAR_CODE('isiz'),
  509. enumSmallIconSize = pSmallIcon,
  510. enumMiniIconSize = FOUR_CHAR_CODE('miic'),
  511. enumLargeIconSize = FOUR_CHAR_CODE('lgic')
  512. };
  513. enum {
  514. enumSortDirection = FOUR_CHAR_CODE('sodr'),
  515. enumSortDirectionNormal = FOUR_CHAR_CODE('snrm'),
  516. enumSortDirectionReverse = FOUR_CHAR_CODE('srvs')
  517. };
  518. enum {
  519. enumArrangement = FOUR_CHAR_CODE('earr')
  520. };
  521. /* Get Info Window panel enumeration*/
  522. enum {
  523. enumInfoWindowPanel = FOUR_CHAR_CODE('ipnl'),
  524. enumGeneralPanel = FOUR_CHAR_CODE('gpnl'),
  525. enumSharingPanel = FOUR_CHAR_CODE('spnl'),
  526. enumStatusNConfigPanel = FOUR_CHAR_CODE('scnl'),
  527. enumFontsPanel = FOUR_CHAR_CODE('fpnl'),
  528. enumMemoryPanel = FOUR_CHAR_CODE('mpnl')
  529. };
  530. /* Preferences panel enumeration*/
  531. enum {
  532. enumPrefsWindowPanel = FOUR_CHAR_CODE('pple'),
  533. enumPrefsGeneralPanel = FOUR_CHAR_CODE('pgnp'),
  534. enumPrefsLabelPanel = FOUR_CHAR_CODE('plbp'),
  535. enumPrefsIconViewPanel = FOUR_CHAR_CODE('pivp'),
  536. enumPrefsButtonViewPanel = FOUR_CHAR_CODE('pbvp'),
  537. enumPrefsListViewPanel = FOUR_CHAR_CODE('plvp')
  538. };
  539. /*
  540. //////////////////////////////////////
  541. Types defined by the Finder
  542. //////////////////////////////////////
  543. */
  544. enum {
  545. typeIconFamily = cIconFamily, /* An AEList of typeIconAndMask, type8BitIcon, & c.*/
  546. typeIconAndMask = FOUR_CHAR_CODE('ICN#'),
  547. type8BitMask = FOUR_CHAR_CODE('l8mk'),
  548. type32BitIcon = FOUR_CHAR_CODE('il32'),
  549. type8BitIcon = FOUR_CHAR_CODE('icl8'),
  550. type4BitIcon = FOUR_CHAR_CODE('icl4'),
  551. typeSmallIconAndMask = FOUR_CHAR_CODE('ics#'),
  552. typeSmall8BitMask = FOUR_CHAR_CODE('s8mk'),
  553. typeSmall32BitIcon = FOUR_CHAR_CODE('is32'),
  554. typeSmall8BitIcon = FOUR_CHAR_CODE('ics8'),
  555. typeSmall4BitIcon = FOUR_CHAR_CODE('ics4'),
  556. typeRelativeTime = FOUR_CHAR_CODE('rtim'),
  557. typeConceptualTime = FOUR_CHAR_CODE('timc')
  558. };
  559. /*
  560. //////////////////////////////////////
  561. Keywords defined by the Finder
  562. //////////////////////////////////////
  563. */
  564. enum {
  565. keyIconAndMask = FOUR_CHAR_CODE('ICN#'),
  566. key32BitIcon = FOUR_CHAR_CODE('il32'),
  567. key8BitIcon = FOUR_CHAR_CODE('icl8'),
  568. key4BitIcon = FOUR_CHAR_CODE('icl4'),
  569. key8BitMask = FOUR_CHAR_CODE('l8mk'),
  570. keySmallIconAndMask = FOUR_CHAR_CODE('ics#'),
  571. keySmall8BitIcon = FOUR_CHAR_CODE('ics8'),
  572. keySmall4BitIcon = FOUR_CHAR_CODE('ics4'),
  573. keySmall32BitIcon = FOUR_CHAR_CODE('is32'),
  574. keySmall8BitMask = FOUR_CHAR_CODE('s8mk'),
  575. keyMini1BitMask = FOUR_CHAR_CODE('icm#'),
  576. keyMini4BitIcon = FOUR_CHAR_CODE('icm4'),
  577. keyMini8BitIcon = FOUR_CHAR_CODE('icm8'),
  578. keyAEUsing = FOUR_CHAR_CODE('usin'),
  579. keyAEReplacing = FOUR_CHAR_CODE('alrp'),
  580. keyAENoAutoRouting = FOUR_CHAR_CODE('rout'),
  581. keyLocalPositionList = FOUR_CHAR_CODE('mvpl'),
  582. keyGlobalPositionList = FOUR_CHAR_CODE('mvpg'),
  583. keyRedirectedDocumentList = FOUR_CHAR_CODE('fpdl')
  584. };
  585. /*
  586. //////////////////////////////////////
  587. New prepositions used by the Finder
  588. //////////////////////////////////////
  589. */
  590. enum {
  591. keyASPrepositionHas = FOUR_CHAR_CODE('has '),
  592. keyAll = FOUR_CHAR_CODE('kyal'),
  593. keyOldFinderItems = FOUR_CHAR_CODE('fsel')
  594. };
  595. /*
  596. //////////////////////////////////////
  597. New key forms used by the Finder
  598. //////////////////////////////////////
  599. */
  600. enum {
  601. formAlias = typeAlias,
  602. formCreator = pFileCreator
  603. };
  604. /*
  605. //////////////////////////////////////
  606. Finder error codes
  607. //////////////////////////////////////
  608. */
  609. enum {
  610. errFinderIsBusy = -15260,
  611. errFinderWindowNotOpen = -15261,
  612. errFinderCannotPutAway = -15262,
  613. errFinderWindowMustBeIconView = -15263, /* RequireWindowInIconView*/
  614. errFinderWindowMustBeListView = -15264, /* RequireWindowInListView*/
  615. errFinderCantMoveToDestination = -15265,
  616. errFinderCantMoveSource = -15266,
  617. errFinderCantOverwrite = -15267,
  618. errFinderIncestuousMove = -15268, /* Could just use errFinderCantMoveSource*/
  619. errFinderCantMoveToAncestor = -15269, /* Could also use errFinderCantMoveSource*/
  620. errFinderCantUseTrashedItems = -15270,
  621. errFinderItemAlreadyInDest = -15271, /* Move from folder A to folder A*/
  622. errFinderUnknownUser = -15272, /* Includes unknown group*/
  623. errFinderSharePointsCantInherit = -15273,
  624. errFinderWindowWrongType = -15274,
  625. errFinderPropertyNowWindowBased = -15275,
  626. errFinderAppFolderProtected = -15276, /* used by General controls when folder protection is on*/
  627. errFinderSysFolderProtected = -15277, /* used by General controls when folder protection is on*/
  628. errFinderBoundsWrong = -15278,
  629. errAEValueOutOfRange = -15279,
  630. errFinderPropertyDoesNotApply = -15280,
  631. errFinderFileSharingMustBeOn = -15281,
  632. errFinderMustBeActive = -15282,
  633. errFinderVolumeNotFound = -15283, /* more descriptive than what we get with nsvErr*/
  634. errFinderLockedItemsInTrash = -15284, /* there are some locked items in the trash*/
  635. errFinderOnlyLockedItemsInTrash = -15285, /* all the items (except folders) in the trash are locked*/
  636. errFinderProgramLinkingMustBeOn = -15286,
  637. errFinderWindowMustBeButtonView = -15287,
  638. errFinderBadPackageContents = -15288, /* something is wrong within the package */
  639. errFinderUnsupportedInsidePackages = -15289, /* operation cannot be used on items within a package */
  640. errFinderCorruptOpenFolderList = -15290, /* was -15276 in Finder 8.6 and earlier, but that conflicted with General Controls*/
  641. errFinderNoInvisibleFiles = -15291, /* was -15277 in Finder 8.6 and earlier, but that conflicted with General Controls*/
  642. errFinderCantDeleteImmediately = -15292, /* cannot delete immediately via scripting*/
  643. errFinderLastReserved = -15379
  644. };
  645. #ifdef PRAGMA_IMPORT_OFF
  646. #pragma import off
  647. #elif PRAGMA_IMPORT
  648. #pragma import reset
  649. #endif
  650. #endif /* __FINDERREGISTRY__ */