# ##########################################################################
# 
#      dt.dt
# 
#      Action and DataType definitions for the Common Desktop Environment
#      (CDE) DT components.
# 
#     (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.
# 
#     $TOG: dt.dt.src /main/13 1998/12/18 18:16:14 mgreess $
# 
# ##########################################################################
set DtDbVersion=1.0
# ##########################################################################
# 
# WARNING:  This file may be overwritten in subsequent installations of
#     the Common Desktop Environment (CDE).  Consequently, any system wide
#     changes should be made to an equivalent database file in
#     /usr/pkg/etc/dt/types and not in this file.
# 
# ##########################################################################
# ##################################################################
# 
# Data Attributes
# 
# ##################################################################
DATA_ATTRIBUTES DT
{
        ACTIONS         Open,ReloadActions,Print
        ICON		Dtdt
        IS_TEXT		true
        NAME_TEMPLATE	%s.dt
        MIME_TYPE	text/plain
        DESCRIPTION     This is a desktop database file containing action \
                        and datatype definitions.  Its data type is \
                        named DT.  DT files have names ending with '.dt'.
        TYPE_LABEL      DT
}
DATA_CRITERIA DT1
{
	DATA_ATTRIBUTES_NAME DT
        MODE            f
        NAME_PATTERN    *.dt
}
ACTION ReloadActionsNotice
{
        LABEL           Reload Notification
        TYPE            TT_MSG
        TT_CLASS	TT_NOTICE
        TT_SCOPE	TT_SESSION
        TT_OPERATION	DtTypes_Reloaded
        DESCRIPTION     The ReloadActionsNotice action notifies 			applications of a rebuilt cache file database.
}
ACTION BuildDataBaseRequest
{
        LABEL           Rebuild Request
        TYPE            TT_MSG
        TT_CLASS	TT_REQUEST
        TT_SCOPE	TT_SESSION
        TT_OPERATION	DtDtsCache
        DESCRIPTION     The BuildDataBaseRequest action rebuilds the 			cache file database                         of action, data type and front panel definitions.
}
ACTION ReloadActions
{
        LABEL           Reload Actions
        TYPE            COMMAND
	WINDOW_TYPE	NO_STDIO
	EXEC_STRING	sh -c 'dtaction BuildDataBaseRequest ;			dtaction ReloadActionsNotice'
        DESCRIPTION     The Reload Actions action reloads the database \
                        of action, data type and front panel definitions.
}
# ######################################################
DATA_ATTRIBUTES FP
{
        ACTIONS         Open,Print
        ICON		Dtfpcfg
        IS_TEXT		true
        NAME_TEMPLATE	%s.fp
        MIME_TYPE	text/plain
        DESCRIPTION     This is a desktop database file containing definitions \
                        for the Front Panel configuration.  Its data type \
                        is named FP. FP files have names ending with '.fp'.
        TYPE_LABEL      FP
}
DATA_CRITERIA FP1
{
	DATA_ATTRIBUTES_NAME FP
        MODE            f
        NAME_PATTERN    *.fp
}
# ######################################################
DATA_ATTRIBUTES DTFILE_FILE
{
        PROPERTIES      invisible
        ACTIONS         Open,Print
        IS_TEXT         true
        MIME_TYPE	text/plain
        DESCRIPTION     This is a hidden file used by File Manager to hold \
                        certain configuration information.  Its data type \
                        is named DTFILE_FILE.
        TYPE_LABEL      DTFILE_FILE
}
DATA_CRITERIA DTFILE_FILE1
{
        DATA_ATTRIBUTES_NAME DTFILE_FILE
        MODE            f
        NAME_PATTERN    .\!*
}
# ######################################################
DATA_ATTRIBUTES DTKSH_SCRIPT
{
        ACTIONS         Run,Open,Print
        ICON            Dtdtksh
        IS_EXECUTABLE	true
        COPY_TO_ACTION  Execute
        NAME_TEMPLATE	%s.ds
        MIME_TYPE	text/plain
        DESCRIPTION     This is an executable file containing a 'dtksh' \
                        script.  Its data type is named DTKSH_SCRIPT.
        TYPE_LABEL      DTKSH_SCRIPT
}
DATA_CRITERIA DTKSH_SCRIPT1
{
        DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
	MODE		f&x
        NAME_PATTERN    *.ds
}
DATA_CRITERIA DTKSH_SCRIPT2
{
        DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
	MODE		f&x
        CONTENT		0 string #!/usr/pkg/dt/bin/dtksh
}
DATA_CRITERIA DTKSH_SCRIPT3
{
        DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
	MODE		f&x
        CONTENT		0 string #! /usr/pkg/dt/bin/dtksh
}
ACTION Run
{
        LABEL           Run
        ARG_TYPE        DTKSH_SCRIPT
        TYPE            MAP
        MAP_ACTION      Execute
}
# ######################################################
DATA_ATTRIBUTES DTKSH_CONV
{
        ACTIONS         Open,Print
        ICON            Dtdtksh
        NAME_TEMPLATE	%s.dtsh
        MIME_TYPE	text/plain
        DESCRIPTION     This file contains convenience functions that \
                        can be used by 'dtksh' scripts. Its data type is \
                        named  DTKSH_CONV.
        TYPE_LABEL      DTKSH_CONV
}
DATA_CRITERIA DTKSH_CONV1
{
        DATA_ATTRIBUTES_NAME DTKSH_CONV
        MODE            f
        NAME_PATTERN    *.dtsh
}
# ##################################################################
# ##################################################################
# 
# Actions
# 
# ##################################################################
ACTION Dtstyle
{
	LABEL		Style Manager
        ARG_COUNT       0
        ICON		Fpstyle
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dtstyle
        DESCRIPTION     The Style Manager (Dtstyle) action starts \
                        the desktop Style Manager.
}
# ######
ACTION OpenDtIntro
{
	LABEL		Desktop Introduction
        ARG_COUNT       0
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dthelpview -helpVolume Intromgr
        DESCRIPTION     The Desktop Introduction action displays the help volume \
                        containing introductory and basic skills \
                        information about the desktop. 
}
# ######
ACTION FPHelp
{
	LABEL		FPHelp
        ARG_COUNT       0
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dthelpview -helpVolume FPanel
        DESCRIPTION     The FPHELP action icon displays the Front \
                        Panel help volume.
}
# ######
ACTION LockDisplay
{
	LABEL		LockDisplay
        TYPE            TT_MSG
        TT_CLASS	TT_REQUEST
        TT_SCOPE	TT_SESSION
        TT_OPERATION	Display_Lock
        DESCRIPTION     The LockDisplay action locks the workstation. \
                        You must know the user's or root password to \
                        unlock the workstation.
}
# ######
ACTION ExitSession
{
	LABEL		ExitSession
        ARG_COUNT      	0
        TYPE            TT_MSG
        TT_CLASS	TT_REQUEST
        TT_SCOPE	TT_SESSION
        TT_OPERATION	XSession_Exit
        DESCRIPTION     The ExitSession action ends the user's \
                        desktop session and displays the Login screen. \
                        To begin another session, the user must log in.
}
# ######
# ######
ACTION SaveSession
{
	LABEL			Save Session
	TYPE			TT_MSG
	TT_CLASS		TT_REQUEST
	TT_SCOPE		TT_SESSION
	TT_OPERATION		Save_Session
	#
	# The legal values for save_type are: Local, Global and Both
	#
	TT_ARG0_MODE		TT_IN
	TT_ARG0_VTYPE		save_type
	TT_ARG0_REP_TYPE	TT_REP_STRING	
	TT_ARG0_VALUE		Local
	#
	# The legal values for shutdown are: True and False
	#
	TT_ARG1_MODE		TT_IN
	TT_ARG1_VTYPE		shutdown
	TT_ARG1_REP_TYPE	TT_REP_STRING	
	TT_ARG1_VALUE		False
	#
	# The legal values for interact_style are: None, Errors and Any
	#
	TT_ARG2_MODE		TT_IN
	TT_ARG2_VTYPE		interact_style
	TT_ARG2_REP_TYPE	TT_REP_STRING	
	TT_ARG2_VALUE		None
	#
	# The legal values for fast are: True and False
	#
	TT_ARG3_MODE		TT_IN
	TT_ARG3_VTYPE		fast
	TT_ARG3_REP_TYPE	TT_REP_STRING	
	TT_ARG3_VALUE		True
	#
	# The legal values for global are: True and False
	#
	TT_ARG4_MODE		TT_IN
	TT_ARG4_VTYPE		global
	TT_ARG4_REP_TYPE	TT_REP_STRING	
	TT_ARG4_VALUE		True
	#
	# The num_sessions_backedup field can be any positive
	#   number.  If it is 0, the default number of sessions
	#   will be backedup.
	#
	TT_ARG5_MODE		TT_IN
	TT_ARG5_VTYPE		num_sessions_backedup
	TT_ARG5_REP_TYPE	TT_REP_STRING	
	TT_ARG5_VALUE		0
	DESCRIPTION		The Save Session action causes the currently \
                                running session to be saved.
} 
# ######
ACTION ReloadResources
{
        LABEL           Reload Resources
        ARG_COUNT       0
        TYPE            TT_MSG
        TT_CLASS	TT_REQUEST
        TT_SCOPE	TT_SESSION
        TT_OPERATION	Resources_Reload
        DESCRIPTION     The Reload Resources action reloads your \
                        X resources database with the desktop resources \
                        files, incorporating any changes that may have \
                        occurred to them since you logged in.
}
# ######
ACTION ReloadApps
{
	LABEL		Reload Applications
        ARG_COUNT       0
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /bin/sh -c '/usr/pkg/dt/bin/dtaction ReloadActions;                            /usr/pkg/dt/bin/dtappgather -r; 			   /usr/pkg/dt/bin/dthelpgen -dir $HOME/.dt/help '
        DESCRIPTION     The Reload Applications action reloads the \
                        database of action, data type and front panel \
                        definitions.
}
# ######
ACTION Dtcreate
{
	LABEL		Create Action
        ICON		Dtrunpn
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dtcreate "%Arg_1%"
        DESCRIPTION     The Create Action (Dtcreate) action runs the Create \
                        Action application.  Use Create Action to create \
                        action and data type definitions for applications.
}
# ######
ACTION DtwmrcEdit
{
	LABEL		Edit Dtwmrc
        ICON            Fppenpd
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     sh -c 'if [ ! -f $HOME/.dt/dtwmrc ] ; then                                   if [ ! -f /usr/pkg/etc/dt/config/sys.dtwmrc ] ; then                                     cp /usr/pkg/dt/config/$LANG/sys.dtwmrc                                                             $HOME/.dt/dtwmrc;                                   else                                     cp /usr/pkg/etc/dt/config/sys.dtwmrc                                                             $HOME/.dt/dtwmrc;                                   fi;                                   chmod u+w $HOME/.dt/dtwmrc;                                fi;                                /usr/pkg/dt/bin/dtaction Open $HOME/.dt/dtwmrc'
        DESCRIPTION     The Edit Dtwmrc (DtwmrcEdit) action opens a \
                        copy of $HOME/.dt/dtwmrc in your system editor \
                        (the editor specified by the EDITOR environment \
                        variable).  If $HOME/.dt/dtwmrc doesn't exist, the \
                        action creates the file by copying \
                        /usr/pkg/dt/config/<language>/sys.dtwmrc.  When you \
                        save the file and exit the editor, you must \
                        restart the Workspace Manager by choosing Restart \
                        Workspace Manager from the Workspace Menu.
}
# ######
ACTION RestorePanel
{
	LABEL		Restore Front Panel
        TYPE            TT_MSG
        TT_CLASS	TT_REQUEST
        TT_SCOPE	TT_SESSION
        TT_OPERATION	DtPanel_Restore
        DESCRIPTION     The Restore Front Panel action restores the \
                        front panel to its default state.
}
# ######
ACTION Dtmail
{
	LABEL		Mailer
        ICON		DtMail
	TYPE		TT_MSG
	TT_CLASS	TT_REQUEST
	TT_SCOPE	TT_SESSION
	TT_OPERATION	Display
	TT_ARG0_MODE	TT_IN
	TT_ARG0_VTYPE	RFC_822_MESSAGE
	TT_ARG0_VALUE	DTMAIL_INBOX
        DESCRIPTION     The Mailer (Dtmail) action runs the desktop \
                        Mailer application.
}
# ######
ACTION Dtcalc
{
	LABEL		Calculator
        ICON            Dtcalc
        ARG_COUNT       0
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dtcalc
        DESCRIPTION     The Calculator (Dtcalc) action runs the desktop \
                        Calculator application.
}
# ######
ACTION Dtterm
{
	LABEL		Terminal
        ARG_COUNT       0
        ICON            Dtterm
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dtterm
        DESCRIPTION     The Terminal (Dtterm) action runs the desktop Terminal \
                        Emulator application.
}
# 
#  The following action is used to start a terminal emulator
#  via the desktop's messaging system.  If a terminal emumaltor
#  server is not running when this action is invoked, a server
#  will be started.  Once the server is started, subsequent
#  invocations of this action will not start a new process but
#  instead, a message will be sent to the server and a new
#  terminal emulator window will be mapped.
# 
#  Note that all shells started via the server will run on the
#  server's host, regardless of the host where the action is
#  invoked.
ACTION DttermServer
{
	LABEL			Terminal
	ARG_COUNT		0
	ICON			Dtterm
	TYPE			TT_MSG
	TT_CLASS		TT_REQUEST
	TT_SCOPE		TT_SESSION
	TT_OPERATION		DtTerminal_New
	TT_ARG0_MODE		TT_IN
	TT_ARG0_VTYPE		-display
	TT_ARG0_REP_TYPE	TT_REP_STRING
	TT_ARG0_VALUE		$DISPLAY
	TT_ARG1_MODE		TT_IN
	TT_ARG1_VTYPE		-display
	TT_ARG1_REP_TYPE	TT_REP_STRING
	TT_ARG1_VALUE		$DISPLAY
	DESCRIPTION		The Terminal (Dtterm) action runs the desktop Terminal \
                        Emulator application.
}
# ######
ACTION Dticon
{
	LABEL		Icon Editor
        ICON		Dtpaint
        ARG_COUNT       0
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dticon
        DESCRIPTION     The Icon Editor (Dticon) action runs the desktop Icon \
                        Editor. Use the Icon Editor to create and edit \
                        bitmap and pixmap image files.
}
ACTION Dticon
{
	LABEL		Icon Editor
        ICON		Dtpaint
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dticon -file                           "%(File)Arg_1"Icon File To Edit:"%"
        DESCRIPTION     The Icon Editor (Dticon) action runs the desktop Icon \
                        Editor. Use the Icon Editor to create and edit \
                        bitmap and pixmap image files.
}
# ######
ACTION (None)
{
	LABEL		(None)
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dterror.ds                        "There are no actions available \\n for this type of file."                        "No Actions"                        "OK"
        DESCRIPTION     The (None) action is a special action used to \
                        report that no actions are available for a \
                        particular data type.
}
# ######
ACTION DttermErrorlog
{
	LABEL		Watch Errors
        ARG_COUNT       0
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /bin/sh -c 'if [ ! -f $HOME/.dt/errorlog ] ; then                                       /bin/touch $HOME/.dt/errorlog;                                      fi;                         /usr/pkg/dt/bin/dtterm -map -title 			     "Watch Errors"                              -e tail -f $HOME/.dt/errorlog'
        DESCRIPTION     The Watch Errors action opens a terminal window \
                        that continuously displays the contents of the \
                        error log file $HOME/.dt/errorlog file.  If the \
                        window is minimized, it will automatically \
                        normalize when an error is received.
}
# ######
ACTION Dttypes
{
        LABEL           Types and Actions
        ARG_COUNT       0
        TYPE            COMMAND
        WINDOW_TYPE     PERM_TERMINAL
        EXEC_STRING     sh -c '                         /usr/pkg/dt/bin/dttypes | \${PAGER:-more};             echo "\\n*** Select Close or Exit from the window menu to close this window ***"'
        DESCRIPTION     The Types and Actions (Dttypes) action runs the \
                        'dttypes' utility, which provides trouble-shooting \
                        information for the actions and data types database.
}
ACTION Dttypes
{
        LABEL           Types and Actions
        TYPE            COMMAND
        WINDOW_TYPE     PERM_TERMINAL
        EXEC_STRING     sh -c '/usr/pkg/dt/bin/dttypes -type "%(File)Arg_1%";                  echo "\\n*** Select Close or Exit from the window menu to close this window ***"'
        DESCRIPTION     The Types and Actions (Dttypes) action runs the \
                        'dttypes' utility, which provides trouble-shooting \
                        information for the actions and data types database.
}
# #########################################################################
# 
#  This is the Default 'NoPrint' action.
# 
# #########################################################################
ACTION NoPrint
{
	LABEL		NoPrint
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/pkg/dt/bin/dterror.ds                        "There is no print capability for this datatype."                        "Unable To Print"                        "OK"
        DESCRIPTION    The NoPrint action brings up an Error dialog \
                       indicating that the file the user is trying \
                       to print is of a datatype that doesn't have a \
                       'Print' action defined for it.     
}
# #########################################################################
# 
#  This is the Default 'Open' action.
# 
# #########################################################################
ACTION Open
{
        LABEL           Open
        TYPE            MAP
        MAP_ACTION      TextEditor
}
# #########################################################################
# 
# 
# #########################################################################
ACTION DtTTMediaOpen
{
	ARG_COUNT	0
	ICON		Fppenpd
	TYPE		TT_MSG
	TT_CLASS	TT_REQUEST
	TT_SCOPE	TT_SESSION
	TT_OPERATION	Instantiate
	TT_ARG0_MODE	TT_IN
	TT_ARG0_VTYPE	C_STRING
	TT_ARG0_REP_TYPE TT_REP_STRING
}
ACTION DtTTMediaOpen
{
	ARG_CLASS	BUFFER
	ARG_MODE	w
	ARG_COUNT	>0
	ICON		Fppenpd
	TYPE		TT_MSG
	TT_CLASS	TT_REQUEST
	TT_SCOPE	TT_SESSION
	TT_OPERATION	Edit
	TT_ARG0_MODE	TT_INOUT
	TT_ARG0_VTYPE	%Arg_1%
	TT_ARG0_VALUE	%Arg_1%
	TT_ARG0_REP_TYPE TT_REP_BUFFER
}
ACTION DtTTMediaOpen
{
	ARG_CLASS	BUFFER
	ARG_MODE	!w
	ARG_COUNT	>0
	ICON		Fppenpd
	TYPE		TT_MSG
	TT_CLASS	TT_REQUEST
	TT_SCOPE	TT_SESSION
	TT_OPERATION	Display
	TT_ARG0_MODE	TT_IN
	TT_ARG0_VTYPE	%Arg_1%
	TT_ARG0_VALUE	%Arg_1%
	TT_ARG0_REP_TYPE TT_REP_BUFFER
}
ACTION DtTTMediaOpen
{
	ARG_CLASS	FILE
	ARG_COUNT	>0
	ICON		Fppenpd
	TYPE		TT_MSG
	TT_CLASS	TT_REQUEST
	TT_SCOPE	TT_SESSION
	TT_OPERATION	Edit
	TT_FILE		%Arg_1%
	TT_ARG0_MODE	TT_INOUT
	TT_ARG0_VTYPE	%Arg_1%
	TT_ARG0_REP_TYPE TT_REP_STRING
}
# ######################## EOF ############################################
