123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670 |
- XCOMM ##########################################################################
- XCOMM
- XCOMM dtfile.dt
- XCOMM
- XCOMM Actions for interfacing to the Common Desktop Environment
- XCOMM File Manager.
- XCOMM
- XCOMM (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
- XCOMM (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
- XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
- XCOMM (c) Copyright 1993, 1994, 1995 Novell, Inc.
- XCOMM
- XCOMM $TOG: dtfile.dt.src /main/5 1997/03/28 14:46:11 mgreess $
- XCOMM
- XCOMM ##########################################################################
- #define HASH #
- set DtDbVersion=1.0
- XCOMM ##########################################################################
- XCOMM
- %|nls-10-#HASH WARNING:...#|
- XCOMM
- XCOMM ##########################################################################
- #define STAR *
- XCOMM ##################################################################
- XCOMM
- %|nls-4001-#HASH Data Attributes#|
- XCOMM
- XCOMM ##################################################################
- XCOMM ###########################################################
- XCOMM
- %|nls-4002-#HASH Folders#|
- XCOMM
- XCOMM ###########################################################
- DATA_ATTRIBUTES TRASH_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON DtdirR
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- DESCRIPTION %|nls-4003-#This folder....#|
- TYPE_LABEL %|nls-31034-#TRASH_FOLDER#|
- }
- DATA_CRITERIA TRASH_FOLDER1
- {
- DATA_ATTRIBUTES_NAME TRASH_FOLDER
- MODE d
- PATH_PATTERN STAR/.dt/Trash
- }
- ACTION Open
- {
- LABEL %|nls-1-Open|
- ARG_TYPE TRASH_FOLDER
- TYPE MAP
- MAP_ACTION OpenFolder
- }
- ACTION Print
- {
- LABEL %|nls-2-Print|
- ARG_TYPE TRASH_FOLDER
- TYPE MAP
- MAP_ACTION PrintFolderList
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES OPEN_PARENT_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON Dtdirup
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- }
- DATA_ATTRIBUTES PARENT_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON Dtdirup
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- DESCRIPTION %|nls-4004-#The '..'#|
- TYPE_LABEL %|nls-31035-#PARENT_FOLDER#|
- }
- DATA_CRITERIA PARENT_FOLDER1
- {
- DATA_ATTRIBUTES_NAME PARENT_FOLDER
- MODE d
- NAME_PATTERN ..
- }
- ACTION Open
- {
- LABEL %|nls-1-Open|
- ARG_TYPE PARENT_FOLDER
- TYPE MAP
- MAP_ACTION OpenFolder
- }
- ACTION Print
- {
- LABEL %|nls-2-Print|
- ARG_TYPE PARENT_FOLDER
- TYPE MAP
- MAP_ACTION PrintFolderList
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES OPEN_CURRENT_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON DtdirB
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- }
- DATA_ATTRIBUTES CURRENT_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON DtdirB
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- DESCRIPTION %|nls-4005-#The '.'#|
- TYPE_LABEL %|nls-31036-#CURRENT_FOLDER#|
- }
- DATA_CRITERIA CURRENT_FOLDER1
- {
- DATA_ATTRIBUTES_NAME CURRENT_FOLDER
- MODE d
- NAME_PATTERN .
- }
- ACTION Open
- {
- LABEL %|nls-1-Open|
- ARG_TYPE CURRENT_FOLDER
- TYPE MAP
- MAP_ACTION OpenFolder
- }
- ACTION Print
- {
- LABEL %|nls-2-Print|
- ARG_TYPE CURRENT_FOLDER
- TYPE MAP
- MAP_ACTION PrintFolderList
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES DOT_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON DtdirB
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- DESCRIPTION %|nls-4006-#This folder's#|
- TYPE_LABEL %|nls-31037-#DOT_FOLDER#|
- }
- DATA_CRITERIA DOT_FOLDER1
- {
- DATA_ATTRIBUTES_NAME DOT_FOLDER
- MODE d
- NAME_PATTERN .*
- }
- ACTION Open
- {
- LABEL %|nls-1-Open|
- ARG_TYPE DOT_FOLDER
- TYPE MAP
- MAP_ACTION OpenFolder
- }
- ACTION Print
- {
- LABEL %|nls-2-Print|
- ARG_TYPE DOT_FOLDER
- TYPE MAP
- MAP_ACTION PrintFolderList
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES FOLDER_LOCK
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON Dtdirlk
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- DESCRIPTION %|nls-4007-#This is#|
- TYPE_LABEL %|nls-31038-#FOLDER_LOCK#|
- }
- DATA_CRITERIA FOLDER_LOCK1
- {
- DATA_ATTRIBUTES_NAME FOLDER_LOCK
- MODE d&!r
- }
- DATA_CRITERIA FOLDER_LOCK2
- {
- DATA_ATTRIBUTES_NAME FOLDER_LOCK
- MODE d&!x
- }
- DATA_ATTRIBUTES OPEN_NON_WRITABLE_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON DtdirBO
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- }
- DATA_ATTRIBUTES NON_WRITABLE_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON Dtdirnw
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- DESCRIPTION %|nls-4007-#This is#|
- TYPE_LABEL %|nls-31039-#NON_WRITABLE_FOLDER#|
- }
- DATA_CRITERIA NON_WRITABLE_FOLDER1
- {
- DATA_ATTRIBUTES_NAME NON_WRITABLE_FOLDER
- MODE d&!w
- }
- ACTION Open
- {
- LABEL %|nls-1-Open|
- ARG_TYPE FOLDER_LOCK
- TYPE MAP
- MAP_ACTION OpenFolder
- }
- ACTION Print
- {
- LABEL %|nls-2-Print|
- ARG_TYPE FOLDER_LOCK
- TYPE MAP
- MAP_ACTION PrintFolderList
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES OPEN_FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON DtdirBO
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- }
- DATA_ATTRIBUTES FOLDER
- {
- ACTIONS OpenInPlace,OpenNewView,Print
- ICON DtdirB
- MEDIA FILE_NAME
- MOVE_TO_ACTION FILESYSTEM_MOVE
- COPY_TO_ACTION FILESYSTEM_COPY
- LINK_TO_ACTION FILESYSTEM_LINK
- DESCRIPTION %|nls-4008-#This is#|
- TYPE_LABEL %|nls-31040-#FOLDER#|
- }
- DATA_CRITERIA FOLDER1
- {
- DATA_ATTRIBUTES_NAME FOLDER
- MODE d
- }
- ACTION Open
- {
- LABEL %|nls-1-Open|
- ARG_TYPE FOLDER
- TYPE MAP
- MAP_ACTION OpenFolder
- }
- ACTION Print
- {
- LABEL %|nls-2-Print|
- ARG_TYPE FOLDER
- TYPE MAP
- MAP_ACTION PrintFolderList
- }
- XCOMM ###########################################################
- XCOMM ###########################################################
- XCOMM
- %|nls-11-#HASH Data Attributes#|
- XCOMM
- XCOMM ###########################################################
- DATA_ATTRIBUTES RECURSIVE_LINK
- {
- ICON Dtinf
- DESCRIPTION %|nls-4009-#This icon....#|
- TYPE_LABEL %|nls-31041-#RECURSIVE_LINK#|
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES BROKEN_LINK
- {
- ICON Dtblink
- DESCRIPTION %|nls-4010-#This icon....#|
- TYPE_LABEL %|nls-31042-#BROKEN_LINK#|
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES DOT_FILE
- {
- ACTIONS Open,Print
- ICON Dtdata
- IS_TEXT true
- MIME_TYPE text/plain
- MEDIA C_STRING
- DESCRIPTION %|nls-4011-#This file's#|
- TYPE_LABEL %|nls-31043-#DOT_FILE#|
- }
- DATA_CRITERIA DOT_FILE1
- {
- DATA_ATTRIBUTES_NAME DOT_FILE
- MODE f
- NAME_PATTERN .*
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES EXECUTABLE
- {
- ACTIONS Run,Open
- ICON Dtexec
- IS_EXECUTABLE true
- COPY_TO_ACTION Execute
- MIME_TYPE application/octet-stream
- SUNV3_TYPE default-app
- MEDIA _DT_DATA
- DESCRIPTION %|nls-4012-#This file#|
- TYPE_LABEL %|nls-31044-#EXECUTABLE#|
- }
- DATA_CRITERIA EXECUTABLE1
- {
- DATA_ATTRIBUTES_NAME EXECUTABLE
- MODE f&x
- }
- ACTION Run
- {
- LABEL %|nls-3-#Run#|
- ARG_TYPE EXECUTABLE
- TYPE MAP
- MAP_ACTION Execute
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES UNKNOWN
- {
- ACTIONS Open,Print
- ICON Dtdata
- MIME_TYPE application/octet-stream
- MEDIA _DT_DATA
- DESCRIPTION %|nls-4013-#This file#|
- TYPE_LABEL %|nls-31045-#UNKNOWN#|
- }
- XCOMM ###########################################################
- DATA_ATTRIBUTES DATA
- {
- ACTIONS Open,Print
- ICON Dtdata
- MIME_TYPE text/plain
- MEDIA _DT_DATA
- DESCRIPTION %|nls-4014-#This file#|
- TYPE_LABEL %|nls-31046-#DATA#|
- }
- DATA_CRITERIA DATA1
- {
- DATA_ATTRIBUTES_NAME DATA
- MODE f&!x
- }
- XCOMM ###################################################################
- XCOMM ###################################################################
- XCOMM
- %|nls-4015-#HASH Actions provided#|
- XCOMM
- XCOMM ###################################################################
- ACTION DtfileHome
- {
- LABEL %|nls-4016-#File Manager Home#|
- ARG_COUNT 0
- ICON Fphome
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtHome_Show
- DESCRIPTION %|nls-4017-#The File Manager Home....#|
- }
- XCOMM #####
- ACTION Dtfile
- {
- LABEL %|nls-4018-#File Manager#|
- ICON Fphome
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION Edit
- TT_FILE %Arg_1"%|nls-4019-#Folder to open:#|"%
- TT_ARG0_MODE TT_INOUT
- TT_ARG0_VTYPE FILE_NAME
- DESCRIPTION %|nls-4020-#The File Manager...#|
- }
- XCOMM #####
- ACTION Dtappmgr
- {
- LABEL %|nls-4021-#Application Manager#|
- ICON Fpapps
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtTools_Show
- TT_FILE /var/dt/appconfig/appmanager/$DTUSERSESSION
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE -title
- TT_ARG0_REP_TYPE TT_REP_STRING
- TT_ARG0_VALUE %|nls-4022-#Application_Manager#|
- TT_ARG1_MODE TT_IN
- TT_ARG1_VTYPE -help_volume
- TT_ARG1_REP_TYPE TT_REP_STRING
- TT_ARG1_VALUE Appmanager
- DESCRIPTION %|nls-4023-#The Application Manager action....#|
- }
- XCOMM #####
- ACTION DtEmptyTrash
- {
- LABEL %|nls-31106-#Empty Trash Can#|
- ARG_COUNT 0
- ICON Dtshred
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtTrash_Empty
- DESCRIPTION %|nls-31107-#The Empty Trash....#|
- }
- ACTION Dttrash
- {
- LABEL %|nls-4027-#Trash Can#|
- ARG_COUNT 0
- ICON Dttrsh
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtTrash_Show
- DESCRIPTION %|nls-4028-#The Trash....#|
- }
- ACTION Dttrash
- {
- LABEL %|nls-4027-#Trash Can#|
- ARG_COUNT >0
- ICON Dttrsh
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtTrash_Remove
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE string
- TT_ARG1_MODE TT_IN
- TT_ARG1_VTYPE string
- TT_ARG1_REP_TYPE TT_REP_STRING
- TT_ARG1_VALUE %Arg_1%
- DESCRIPTION %|nls-4028-#The Trash....#|
- }
- ACTION DtUnlink
- {
- LABEL %|nls-4027-#Trash Can#|
- ARG_COUNT 2
- ICON Dttrsh
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtTrash_Remove
- TT_FILE %Arg_1%
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE string
- TT_ARG1_MODE TT_IN
- TT_ARG1_VTYPE string
- TT_ARG1_REP_TYPE TT_REP_STRING
- TT_ARG1_VALUE %Arg_2%
- DESCRIPTION %|nls-4028-#The Trash....#|
- }
- ACTION DtUnlink
- {
- LABEL %|nls-4027-#Trash Can#|
- ARG_COUNT >2
- ICON Dttrsh
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtTrash_Remove
- TT_FILE %Arg_1%
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE string
- TT_ARG0_REP_TYPE TT_REP_STRING
- TT_ARG0_VALUE %Args%
- DESCRIPTION %|nls-4028-#The Trash....#|
- }
- ACTION PutOnWorkspace
- {
- LABEL %|nls-30000-#Put On Workspace#|
- ICON Dtpodt
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtFile_PutOnWorkspace
- TT_FILE %Arg_3%
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE -workspace
- TT_ARG0_REP_TYPE TT_REP_STRING
- TT_ARG0_VALUE %Arg_2%
- TT_ARG2_MODE TT_IN
- TT_ARG2_VTYPE string
- TT_ARG2_REP_TYPE TT_REP_STRING
- TT_ARG2_VALUE %Arg_3%
- DESCRIPTION %|nls-30001-#Put On Workspace....#|
- }
- XCOMM #####
- ACTION FILESYSTEM_MOVE
- {
- LABEL Move To Directory
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtFile_Move
- TT_FILE %Arg_1%
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE string
- TT_ARG0_REP_TYPE TT_REP_STRING
- TT_ARG0_VALUE %Arg_1%
- TT_ARG1_MODE TT_IN
- TT_ARG1_VTYPE string
- TT_ARG1_REP_TYPE TT_REP_STRING
- TT_ARG1_VALUE %Args%
- DESCRIPTION The FILESYSTEM_MOVE action allows an Common\
- Desktop Environment compliant application \
- to run an action to which causes the File \
- Manager to preform a move on the file(s) \
- passed in. The format for this action is: \
- 'FILESYSTEM_MOVE <folder_name_to> <files>' \
- where files is a full path name list of files \
- separated by spaces.
- }
- XCOMM #####
- ACTION FILESYSTEM_COPY
- {
- LABEL Copy To Directory
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtFile_Copy
- TT_FILE %Arg_1%
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE string
- TT_ARG0_REP_TYPE TT_REP_STRING
- TT_ARG0_VALUE %Arg_1%
- TT_ARG1_MODE TT_IN
- TT_ARG1_VTYPE string
- TT_ARG1_REP_TYPE TT_REP_STRING
- TT_ARG1_VALUE %Args%
- DESCRIPTION The FILESYSTEM_COPY action allows an Common\
- Desktop Environment compliant application \
- to run an action to which causes the File \
- Manager to preform a copy on the file(s) \
- passed in. The format for this action is: \
- 'FILESYSTEM_COPY <folder_name_to> <files>' \
- where files is a full path name list of files \
- separated by spaces.
- }
- XCOMM #####
- ACTION FILESYSTEM_LINK
- {
- LABEL Link To Directory
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION DtFile_Link
- TT_FILE %Arg_1%
- TT_ARG0_MODE TT_IN
- TT_ARG0_VTYPE string
- TT_ARG0_REP_TYPE TT_REP_STRING
- TT_ARG0_VALUE %Arg_1%
- TT_ARG1_MODE TT_IN
- TT_ARG1_VTYPE string
- TT_ARG1_REP_TYPE TT_REP_STRING
- TT_ARG1_VALUE %Args%
- DESCRIPTION The FILESYSTEM_LINK action allows an Common\
- Desktop Environment compliant application \
- to run an action to which causes the File \
- Manager to preform a link on the file(s) \
- passed in. The format for this action is: \
- 'FILESYSTEM_LINK <folder_name_to> <files>' \
- where files is a full path name list of files \
- separated by spaces.
- }
- XCOMM #####
- ACTION OpenFolder
- {
- LABEL %|nls-1-#Open#|
- TYPE TT_MSG
- TT_CLASS TT_REQUEST
- TT_SCOPE TT_SESSION
- TT_OPERATION Edit
- TT_FILE %Arg_1"%|nls-4019-#Folder to open:#|"%
- TT_ARG0_MODE TT_INOUT
- TT_ARG0_VTYPE FILE_NAME
- DESCRIPTION %|nls-4029-#The Open New View action....#|
- }
- XCOMM #####
- ACTION OpenNewView
- {
- LABEL %|nls-9-#Open New View#|
- TYPE MAP
- MAP_ACTION Open
- }
- XCOMM #####
- ACTION OpenInPlace
- {
- LABEL %|nls-8-#Open In Place#|
- TYPE MAP
- MAP_ACTION Open
- }
- XCOMM #####
- ACTION PrintFolderList
- {
- LABEL %|nls-4030-#PrintFolderList#|
- TYPE COMMAND
- WINDOW_TYPE NO_STDIO
- EXEC_STRING sh -c ' \
- ls -aLlF "%(File)Arg_1%" | \
- /usr/dt/bin/dtlp -u "%(File)Arg_1%"'
- DESCRIPTION %|nls-4031-#The PrintFolderList action....#|
- }
- XCOMM ######################## EOF ############################################
|