# @(#)47 1.8 src/cde/cde1/types/dt.dt.src, desktop, cde720 1/5/99 13:25:27 ############################################################################### # # 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. # # $Revision: 1.60 $ # ############################################################################### 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 # /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 ReloadActions { LABEL Reload Actions TYPE TT_MSG TT_CLASS TT_NOTICE TT_SCOPE TT_SESSION TT_OPERATION DtTypes_Reloaded 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/dt/bin/dtksh } DATA_CRITERIA DTKSH_SCRIPT3 { DATA_ATTRIBUTES_NAME DTKSH_SCRIPT MODE f&x CONTENT 0 string #! /usr/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/dt/bin/dtstyle DESCRIPTION The Style Manager (Dtstyle) action starts \ the desktop Style Manager. } ####### ACTION OpenDtIntro { LABEL OpenDtIntro ARG_COUNT 0 TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /bin/sh -c '/usr/dt/bin/dthelpgen -dir $HOME/.dt/help/$DTUSERSESSION; /usr/dt/bin/dthelpview -helpVolume Intromgr' DESCRIPTION The OpenDtIntro 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/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 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/dt/bin/dtaction ReloadActions; /usr/dt/bin/dtappgather -r; /usr/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/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 /etc/dt/config/sys.dtwmrc ] ; then cp /usr/dt/config/$LANG/sys.dtwmrc $HOME/.dt/dtwmrc; else cp /etc/dt/config/sys.dtwmrc $HOME/.dt/dtwmrc; fi; chmod u+w $HOME/.dt/dtwmrc; fi; /usr/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/dt/config//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 COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/dt/bin/dtmail 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/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/dt/bin/dtterm 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/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/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/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 /usr/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/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/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/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 } ACTION ReloadDatabaseCache { LABEL Reload Database Cache ARG_COUNT 0 TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/dt/bin/dtdbcache -init DESCRIPTION The Reload Database Cache action \ recreates the cache file containing the \ database of action, data type and front \ panel definitions. This action can be \ executed, to improve performance, after \ modifying a file containing an action, \ data type or front panel definition while \ logged into the desktop. The cache file \ will automatically be recreated, without \ executing this action, the next time you \ log into the CDE desktop. } ACTION FPOnItemHelp { LABEL On Item Help TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/dt/bin/dterror.ds "On Item Help can only be accessed from the Main Help Subpanel." "On Item Help" "OK" DESCRIPTION An action for On Item Help to display the appropriate error message when On Item Help is used from the right clicked popup menu. } ########################### EOF ##############################################