home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14644 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.2 KB  |  86 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!uvo.dec.com!olo.dec.com!davew
  3. From: davew@olo.dec.com (Dave Willoughby)
  4. Subject: VUE defining filetypes problems
  5. Message-ID: <1993Jan8.104335.14846@decuk.uvo.dec.com>
  6. Lines: 74
  7. Sender: davew@warshp.olo.dec.com (Dave Willoughby)
  8. Reply-To: davew@olo.dec.com
  9. Organization: Digital Equipment Corporation
  10. Date: Fri, 8 Jan 1993 10:43:35 GMT
  11.  
  12.  
  13. Hi
  14.  
  15. I'm trying to define some new filetypes and associate bitmaps with them.
  16. I had some initial success defining one for read-only files. They now show up
  17. in vuefile as a data bitmap with a cross through it ( I might design some
  18. better ones later).
  19.  
  20. However I have not had any luck since. I have tried to setup filetypes and 
  21. bitmaps for unreadable files and core files, and they both still show up 
  22. as normal data files, and their associated action menu is the same as the data
  23. file. Here's my /usr/local/lib/X11/vue/types/vue.ft:
  24.  
  25. #############################################################################
  26. #
  27. # Define some commonly used bitmap names
  28. #
  29. set DATA_L=data.l.bm
  30. set DATA_S=data.s.bm
  31. set DIR_L=dir.l.bm
  32. set DIR_S=dir.s.bm
  33. set EXEC_L=exec.l.bm
  34. set EXEC_S=exec.s.bm
  35. set READ_L=reader.l.bm
  36. set READ_S=reader.s.bm
  37. set NOREAD_L=noread.l.bm
  38. set NOREAD_S=noread.s.bm
  39. set CORE_L=core.l.bm
  40. set CORE_S=core.s.bm
  41.  
  42.  
  43. #############################################################################
  44. #
  45. # Define a list of actions for data files
  46. #
  47. set TEXT=EDIT,VIEW,PRINT
  48.  
  49.  
  50. CORE
  51.     */core     \
  52.     !d&r     \
  53.     core.l.bm     \
  54.     core.s.bm    \
  55.     XDB
  56.  
  57. NONREADABLE           \
  58.     *                  \
  59.     !d&!r&!x        \
  60.     ${NOREAD_L}      \
  61.     ${NOREAD_S}
  62.  
  63. READONLY               \
  64.     *                  \
  65.     !d&!w&!x        \
  66.     ${READ_L}          \
  67.     ${READ_S}        \
  68.     VIEW
  69.  
  70.  
  71. The READONLY entry works, but the other two don't. The NONREADABLE one
  72. I thought might conflict with the DATA entry, but the CORE entry ought to work.
  73. The XDB action doesn't exist, but it shouldn't worry about that until I try and
  74. use it, and besides as a test I tried setting the action to be VIEW and it
  75. still didn't work.
  76.  
  77. By the way this is HP VUE 2.01 on HP-UX 8.07.
  78.  
  79. Anyone see what I'm doing wrong ?
  80.  
  81. Thanks for any ideas,
  82.  
  83. Dave Willoughby,
  84. Digital Equipment Co Ltd,
  85. Warrington, UK.
  86.