home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / code_examples / pfiler / pfiler.i < prev    next >
Text File  |  1990-10-29  |  2KB  |  54 lines

  1.  
  2. * Header file for the FileSelect.
  3.  
  4.                 ;Flags
  5. FSB_NOINFO    =0        ;Don't want to see '.info' files
  6. FSB_NOFILE    =1        ;Don't want to see files
  7. FSB_NODIR    =2        ;Don't want to see dirs
  8. FSB_NODRIVE    =3        ;Don't want to see drives
  9. FSB_NOVOL    =4        ;Don't want to see volumes
  10. FSB_NOASSIGN    =5        ;Don't want to see logical devices
  11. FSB_NOFILESIZE    =6        ;Don't want to see file-sizes
  12.  
  13. FSF_NOINFO    =(1<<FSB_NOINFO)
  14. FSF_NOFILE    =(1<<FSB_NOFILE)
  15. FSF_NODIR    =(1<<FSB_NODIR)
  16. FSF_NODRIVE    =(1<<FSB_NODRIVE)
  17. FSF_NOVOL    =(1<<FSB_NOVOL)
  18. FSF_NOASSIGN    =(1<<FSB_NOASSIGN)
  19. FSF_NODEV    =FSF_NODRIVE+FSF_NOVOL+FSF_NOASSIGN
  20. FSF_NOFILESIZE    =(1<<FSB_NOFILESIZE)
  21.  
  22.                 ;Result codes returned by FileSelect
  23. FSENoMem    =-3        ;Could not get memory for internal use
  24. FSENoWin    =-2        ;Could not open window
  25. FSENoLib    =-1        ;Could not open either dos/graphics/intuition.library
  26. FSENeg        =0        ;No file has been selected
  27. FSEPos        =1        ;A file has been selected
  28.  
  29.                 ;The FileSelectRequest is what the
  30.                 ;user has to pass as a parameter
  31.                 ;STRUCTURE FileSelectRequest
  32. FR_LeftEdge    =0        ;WORD FR_LeftEdge
  33. FR_TopEdge    =2        ;WORD FR_TopEdge
  34. FR_Flags    =4        ;WORD FR_Flags
  35. FR_PathChars    =6        ;WORD FR_PathChars
  36. FR_FileChars    =8        ;WORD FR_FileChars
  37. FR_PathBuf    =10        ;APTR FR_PathBuf    ;ptr to buffer of size FR_PathChars (in bytes)
  38. FR_FileBuf    =14        ;APTR FR_FileBuf    ;ptr to buffer of size FR_FileChars (in bytes)
  39. FR_TitleTxt    =18        ;APTR FR_TitleTxt    ;ptr to text to use as window title instead  of the default 'Select a file'
  40. FR_PosTxt    =22        ;APTR FR_PosTxt        ;ptr to text to put in the 'Ok' gadget (Max 6 bytes)
  41. FR_NegTxt    =26        ;APTR FR_NegTxt        ;ptr to text to put in the 'Cancel' gadget (Max 6 bytes)
  42. FR_Screen    =30        ;APTR FR_Screen        ;ptr to screen to open the window on (0=workbench)
  43. * These are -PRIVATE-, The user MUSTN'T modify them
  44. FR_List        =34        ;APTR FR_List        ;ptr to list of names
  45. FR_TopView    =38        ;APTR FR_TopView    ;ptr to first visible name
  46. FR_TopCount    =42        ;WORD FR_TopCount    ;count of first visible name
  47. FR_Files    =44        ;WORD FR_Files        ;number of files read
  48. FR_Dirs        =46        ;WORD FR_Dirs        ;number of directories read
  49. FR_Devs        =48        ;WORD FR_Devs        ;number of devices read
  50. FR_Count    =50        ;WORD FR_Count        ;number of files+directories read (+ devices if not NOTDEVS)
  51. FR_ToDo        =52        ;WORD FR_ToDo        ;A few flags
  52. FR_SIZEOF    =54        ;Size of FileSelectRequest
  53.  
  54.