Rename "dtapp" to "dtopen"
[oweals/cde.git] / cde / programs / localized / C / types / dtcm.dt
1 ###############################################################################
2 #
3 #     dtcm.dt
4 #
5 #     Action and DataType definitions for the Common Desktop Environment
6 #     (CDE) Calendar Component.
7 #
8 #    (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
9 #    (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
10 #    (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
11 #    (c) Copyright 1993, 1994, 1995 Novell, Inc.
12 #
13 #
14 ###############################################################################
15 set DtDbVersion=1.0
16
17 ###############################################################################
18 #
19 # WARNING:  This file may be overwritten in subsequent installations of
20 #     the Common Desktop Environment (CDE).  Consequently, any system wide
21 #     changes should be made to an equivalent database file in
22 #     /etc/dt/types and not in this file.
23 #
24 ###############################################################################
25
26 ###################################################################
27 #
28 # Data Attributes
29 #
30 ###################################################################
31 DATA_ATTRIBUTES DtcmAppointmentAttrs
32 {
33         ACTIONS         Open,Insert,Print
34         ICON            DtCMapt
35         NAME_TEMPLATE   %s.appt
36         MIME_TYPE       text/plain
37         SUNV3_TYPE      ae-file
38         MEDIA           DT_APPOINTMENT
39         DESCRIPTION     This file contains information pertaining to Calendar \
40                         Manager appointments.  Its data type is named \
41                         CalendarAppointmentAttrs. CalendarAppointmentAttrs \
42                         files have names ending with '.appt'.
43         TYPE_LABEL      DtcmAppointmentAttrs
44 }
45 DATA_CRITERIA DtcmAppointmentAttrs1
46 {
47         DATA_ATTRIBUTES_NAME DtcmAppointmentAttrs
48         MODE            fr
49         NAME_PATTERN    *.appt
50 }
51 DATA_CRITERIA DtcmAppointmentAttrs2
52 {
53         DATA_ATTRIBUTES_NAME DtcmAppointmentAttrs
54         MODE            fr
55         CONTENT         3 string ** Calendar Appointment **
56 }
57 DATA_CRITERIA DtcmAppointmentAttrs3
58 {
59         DATA_ATTRIBUTES_NAME DtcmAppointmentAttrs
60         MODE            fr
61         CONTENT         3 string ** Calendar To Do Item **
62 }
63 ACTION Open
64 {
65         LABEL           Open
66         ARG_TYPE        DtcmAppointmentAttrs
67         TYPE            MAP
68         MAP_ACTION      DtcmEdit
69 }
70 ACTION Insert
71 {
72         LABEL           Insert
73         ARG_TYPE        DtcmAppointmentAttrs
74         TYPE            MAP
75         MAP_ACTION      DtcmInsert
76 }
77 ACTION Print
78 {
79         LABEL           Print
80         ARG_TYPE        DtcmAppointmentAttrs
81         TYPE            MAP
82         MAP_ACTION      NoPrint
83 }
84
85
86 ###################################################################
87 ###################################################################
88 #
89 # Actions
90 #
91 ###################################################################
92 ACTION Dtcm
93 {
94         LABEL           Calendar
95         ICON            DtCM
96         TYPE            COMMAND
97         EXEC_STRING     /usr/dt/bin/dtcm
98         WINDOW_TYPE     NO_STDIO
99         DESCRIPTION     The Calendar (Dtcm) action starts the desktop Calendar \
100                         Manager.
101 }
102
103 ######
104
105 ACTION DtcmInsert
106 {
107         LABEL           Calendar Insert
108         TYPE            COMMAND
109         WINDOW_TYPE     NO_STDIO
110         EXEC_STRING     sh -c '/usr/dt/bin/dtcm_insert  -a "%(File)Arg_1%" ;\
111                         if [ \$? -ne 0 ] ; then \
112                           /usr/dt/bin/dterror.ds \
113                             "The appointment was not scheduled in your \
114                              calendar\\n\
115                              due to an error.  The appointment may not be \
116                              formatted\\n\
117                              correctly or your calendar may not be \
118                              accessible." \
119                             "Calendar : Error - Schedule" \
120                             "OK" ; \
121                         fi'
122         DESCRIPTION     The Calendar Insert (DtcmInsert) action \
123                         inserts an appointment into the user's default calendar.
124 }
125
126 ######
127
128 ACTION DtcmEdit
129 {
130         LABEL           Calendar Edit
131         TYPE            TT_MSG
132         TT_SCOPE        TT_SESSION
133         TT_CLASS        TT_REQUEST
134         TT_OPERATION    Edit
135         TT_ARG0_MODE    TT_INOUT
136         TT_ARG0_VTYPE   %Arg_1%
137         TT_FILE         %Arg_1"Appointment File:"%
138         DESCRIPTION     The Calendar Edit (DtcmEdit) action runs \
139                         the standalone appointment editor on a calendar \
140                         appointment.
141 }
142
143 ########################### EOF ##############################################