Rename "dtapp" to "dtopen"
[oweals/cde.git] / cde / programs / localized / C / types / IconBrowse.dt
1 # ##########################################################################
2
3 #      IconBrowse.dt
4
5 #      DataType definitions for instance-based icons.
6
7 #     (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
8 #     (c) Copyright 1993, 1994, 1995 International Business Machines Corp. 
9 #     (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.   
10 #     (c) Copyright 1993, 1994, 1995 Novell, Inc.
11
12 #    $XConsortium: IconBrowse.dt.src /main/4 1996/04/23 20:23:49 drk $
13
14 # ##########################################################################
15
16 set DtDbVersion=1.0
17
18 # ##########################################################################
19
20 # WARNING:  This file may be overwritten in subsequent installations of
21 #     the Common Desktop Environment (CDE).  Consequently, any system wide
22 #     changes should be made to an equivalent database file in
23 #     /etc/dt/types and not in this file.
24
25 # ##########################################################################
26
27 # ##########################################################################
28
29 # The two data types in this file (BM and PM) enable "instance-based" icons
30 # for bitmap and pixmap files.  That means that each icon file (.bm and .pm
31 # extensions) refer to themselves as their own icons.  This is useful for
32 # browsing a folder of icons, because you don't have to open each file to
33 # see what it looks like -- the icon displays itself.
34 #
35 # To enable instance-based icons, copy this file into the .dt/types/
36 # subfolder in your home folder, then reload the action and data type
37 # database.  (You can reload the action and data type database by logging out
38 # and back in, or by executing the ReloadApps action in the DtTools
39 # folder of the Application Manager)
40 #
41 #   NOTE:  Because of the additional work required to read and display custom
42 #          icons, File Manager may run slower with these data types enabled.
43 #
44 # To return to the default icons for these data types, remove this file from
45 # your personal .dt/types/ subfolder, then reload the action and data type
46 # database.
47
48 # ##########################################################################
49
50 # ##################################################################
51
52 # Data Attributes
53
54 # ##################################################################
55 DATA_ATTRIBUTES BM
56 {
57         ACTIONS         Open,Print
58         ICON            Dtbitmp
59         NAME_TEMPLATE   %s.bm
60         MIME_TYPE       text/plain
61         SUNV3_TYPE      xbm-file
62         INSTANCE_ICON   %dir%/%name%
63         DESCRIPTION     This is a file containing data in the X11 bitmap \
64                         format.  Its data type is named BM. BM files have \
65                         names ending with '.bm' or '.xbm'.
66         TYPE_LABEL      BM
67 }
68 DATA_CRITERIA BM1
69 {
70         DATA_ATTRIBUTES_NAME BM
71         MODE                    f
72         NAME_PATTERN            *.bm
73 }
74 DATA_CRITERIA BM2
75 {
76         DATA_ATTRIBUTES_NAME BM
77         MODE                    f
78         NAME_PATTERN            *.xbm
79 }
80 ACTION Open
81 {
82         LABEL           Open
83         ARG_TYPE        BM
84         TYPE            MAP
85         MAP_ACTION      Dticon
86 }
87 ACTION Print
88 {
89         LABEL           Print
90         ARG_TYPE        BM
91         TYPE            MAP
92         MAP_ACTION      NoPrint
93 }
94
95 # ##################################################################
96
97 DATA_ATTRIBUTES PM
98 {
99         ACTIONS         Open,Print
100         ICON            Dtpixmp
101         NAME_TEMPLATE   %s.pm
102         MIME_TYPE       text/plain
103         SUNV3_TYPE      xpm-file
104         INSTANCE_ICON   %dir%/%name%
105         DESCRIPTION     This is a pixmap file containing a multicolor image. \
106                         Its data type is named PM. PM files have names \
107                         ending with '.pm' or '.xpm', or have the characters \
108                         "! XPM2" in their contents.
109         TYPE_LABEL      PM
110 }
111 DATA_CRITERIA PM1
112 {
113         DATA_ATTRIBUTES_NAME PM
114         MODE                    f
115         NAME_PATTERN            *.pm
116 }
117 DATA_CRITERIA PM2
118 {
119         DATA_ATTRIBUTES_NAME PM
120         MODE                    f
121         NAME_PATTERN            *.xpm
122 }
123 ACTION Open
124 {
125         LABEL           Open
126         ARG_TYPE        PM
127         TYPE            MAP
128         MAP_ACTION      Dticon
129 }
130 ACTION Print
131 {
132         LABEL           Print
133         ARG_TYPE        PM
134         TYPE            MAP
135         MAP_ACTION      NoPrint
136 }
137 # ######################## EOF ############################################