home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!uvo.dec.com!olo.dec.com!davew
- From: davew@olo.dec.com (Dave Willoughby)
- Subject: VUE defining filetypes problems
- Message-ID: <1993Jan8.104335.14846@decuk.uvo.dec.com>
- Lines: 74
- Sender: davew@warshp.olo.dec.com (Dave Willoughby)
- Reply-To: davew@olo.dec.com
- Organization: Digital Equipment Corporation
- Date: Fri, 8 Jan 1993 10:43:35 GMT
-
-
- Hi
-
- I'm trying to define some new filetypes and associate bitmaps with them.
- I had some initial success defining one for read-only files. They now show up
- in vuefile as a data bitmap with a cross through it ( I might design some
- better ones later).
-
- However I have not had any luck since. I have tried to setup filetypes and
- bitmaps for unreadable files and core files, and they both still show up
- as normal data files, and their associated action menu is the same as the data
- file. Here's my /usr/local/lib/X11/vue/types/vue.ft:
-
- #############################################################################
- #
- # Define some commonly used bitmap names
- #
- set DATA_L=data.l.bm
- set DATA_S=data.s.bm
- set DIR_L=dir.l.bm
- set DIR_S=dir.s.bm
- set EXEC_L=exec.l.bm
- set EXEC_S=exec.s.bm
- set READ_L=reader.l.bm
- set READ_S=reader.s.bm
- set NOREAD_L=noread.l.bm
- set NOREAD_S=noread.s.bm
- set CORE_L=core.l.bm
- set CORE_S=core.s.bm
-
-
- #############################################################################
- #
- # Define a list of actions for data files
- #
- set TEXT=EDIT,VIEW,PRINT
-
-
- CORE
- */core \
- !d&r \
- core.l.bm \
- core.s.bm \
- XDB
-
- NONREADABLE \
- * \
- !d&!r&!x \
- ${NOREAD_L} \
- ${NOREAD_S}
-
- READONLY \
- * \
- !d&!w&!x \
- ${READ_L} \
- ${READ_S} \
- VIEW
-
-
- The READONLY entry works, but the other two don't. The NONREADABLE one
- I thought might conflict with the DATA entry, but the CORE entry ought to work.
- The XDB action doesn't exist, but it shouldn't worry about that until I try and
- use it, and besides as a test I tried setting the action to be VIEW and it
- still didn't work.
-
- By the way this is HP VUE 2.01 on HP-UX 8.07.
-
- Anyone see what I'm doing wrong ?
-
- Thanks for any ideas,
-
- Dave Willoughby,
- Digital Equipment Co Ltd,
- Warrington, UK.
-