Found by dragging a file from dtfile onto the printer in the front panel: the DtPrint action runs dtaction Print, whose action in datatypes.dt called /usr/dt/bin/dtlp -- a path no Makronix has (the installation is /usr/pkg/dt). The dialog said "/usr/dt/bin/dtlp ... Check that the program exists". 69 occurrences in 14 .src files under programs/types now use CDE_INSTALLATION_TOP, so the types are correct in the development installation and in /usr/pkg/dt alike: datatypes, develop, dt, dtfile, dthelp, dthelpprint, dthelptag, dtinfo, dtpad, ibm, miscImages, unsupported, uxstd, xclients. dt.dt.src's "Edit Dtwmrc" action also copies from /usr/dt/config and /etc/dt/config; it now uses CDE_INSTALLATION_TOP and CDE_CONFIGURATION_TOP. dtcm.dt is a plain .dt (no .src, no preprocessing): there the paths are bare program names (dtcm, dtcm_insert, dterror.ds), which the session's PATH finds under the installation's bin. Measured: make mcde-linux MCDE_DIRS="programs/types" then "install programs/localized/C/types" exit=0; the installed datatypes.dt has ".../build/mcde-root/dt/bin/dtlp" and dtcm.dt has "dtcm_insert" (no /usr/dt/bin left in the generated types except the /usr/dt/config line in dt.dt.src, which is now CDE_INSTALLATION_TOP too).
129 lines
3.2 KiB
Plaintext
129 lines
3.2 KiB
Plaintext
###############################################################################
|
|
#
|
|
# dtcm.dt
|
|
#
|
|
# Action and DataType definitions for the Common Desktop Environment
|
|
# (CDE) Calendar Component.
|
|
#
|
|
# (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
|
|
# (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
|
|
# (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
|
|
# (c) Copyright 1993, 1994, 1995 Novell, Inc.
|
|
#
|
|
#
|
|
###############################################################################
|
|
set DtDbVersion=1.0
|
|
|
|
###############################################################################
|
|
#
|
|
%|nls-10-#\# WARNING:...#|
|
|
#
|
|
###############################################################################
|
|
|
|
###################################################################
|
|
#
|
|
%|nls-11-#\# Data Attributes#|
|
|
#
|
|
###################################################################
|
|
DATA_ATTRIBUTES DtcmAppointmentAttrs
|
|
{
|
|
ACTIONS Open,Insert,Print
|
|
ICON DtCMapt
|
|
NAME_TEMPLATE %s.appt
|
|
MIME_TYPE text/plain
|
|
SUNV3_TYPE ae-file
|
|
MEDIA DT_APPOINTMENT
|
|
DESCRIPTION %|nls-20001-#This file...#|
|
|
TYPE_LABEL %|nls-31100-#DtcmAppointmentAttrs#|
|
|
}
|
|
DATA_CRITERIA DtcmAppointmentAttrs1
|
|
{
|
|
DATA_ATTRIBUTES_NAME DtcmAppointmentAttrs
|
|
MODE fr
|
|
NAME_PATTERN *.appt
|
|
}
|
|
DATA_CRITERIA DtcmAppointmentAttrs2
|
|
{
|
|
DATA_ATTRIBUTES_NAME DtcmAppointmentAttrs
|
|
MODE fr
|
|
CONTENT 3 string ** Calendar Appointment **
|
|
}
|
|
DATA_CRITERIA DtcmAppointmentAttrs3
|
|
{
|
|
DATA_ATTRIBUTES_NAME DtcmAppointmentAttrs
|
|
MODE fr
|
|
CONTENT 3 string ** Calendar To Do Item **
|
|
}
|
|
ACTION Open
|
|
{
|
|
LABEL %|nls-1-#Open#|
|
|
ARG_TYPE DtcmAppointmentAttrs
|
|
TYPE MAP
|
|
MAP_ACTION DtcmEdit
|
|
}
|
|
ACTION Insert
|
|
{
|
|
LABEL %|nls-20008-#Insert#|
|
|
ARG_TYPE DtcmAppointmentAttrs
|
|
TYPE MAP
|
|
MAP_ACTION DtcmInsert
|
|
}
|
|
ACTION Print
|
|
{
|
|
LABEL %|nls-2-#Open#|
|
|
ARG_TYPE DtcmAppointmentAttrs
|
|
TYPE MAP
|
|
MAP_ACTION NoPrint
|
|
}
|
|
|
|
|
|
###################################################################
|
|
###################################################################
|
|
#
|
|
%|nls-12-#\# Actions#|
|
|
#
|
|
###################################################################
|
|
ACTION Dtcm
|
|
{
|
|
LABEL %|nls-20002-#Calendar#|
|
|
ICON DtCM
|
|
TYPE COMMAND
|
|
EXEC_STRING dtcm
|
|
WINDOW_TYPE NO_STDIO
|
|
DESCRIPTION %|nls-20003-#The Calendar...#|
|
|
}
|
|
|
|
######
|
|
|
|
ACTION DtcmInsert
|
|
{
|
|
LABEL %|nls-20004-#Calendar Insert#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING sh -c 'dtcm_insert -a "%(File)Arg_1%" ;\
|
|
if [ \$? -ne 0 ] ; then \
|
|
dterror.ds \
|
|
"%|nls-20009-#Calendar Insert error.#|" \
|
|
"%|nls-20010-#Calendar : Error - Schedule.#|" \
|
|
"%|nls-6-#OK#|" ; \
|
|
fi'
|
|
DESCRIPTION %|nls-20005-#The Calendar Insert...#|
|
|
}
|
|
|
|
######
|
|
|
|
ACTION DtcmEdit
|
|
{
|
|
LABEL %|nls-20006-#Calendar Edit#|
|
|
TYPE TT_MSG
|
|
TT_SCOPE TT_SESSION
|
|
TT_CLASS TT_REQUEST
|
|
TT_OPERATION Edit
|
|
TT_ARG0_MODE TT_INOUT
|
|
TT_ARG0_VTYPE %Arg_1%
|
|
TT_FILE %Arg_1"%|nls-20011-#Appointment File:#|"%
|
|
DESCRIPTION %|nls-20007-#The Calendar Edit...#|
|
|
}
|
|
|
|
########################### EOF ##############################################
|