dt.dt.src 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. XCOMM ##########################################################################
  2. XCOMM
  3. XCOMM dt.dt
  4. XCOMM
  5. XCOMM Action and DataType definitions for the Common Desktop Environment
  6. XCOMM (CDE) DT components.
  7. XCOMM
  8. XCOMM (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
  9. XCOMM (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
  10. XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
  11. XCOMM (c) Copyright 1993, 1994, 1995 Novell, Inc.
  12. XCOMM
  13. XCOMM $TOG: dt.dt.src /main/13 1998/12/18 18:16:14 mgreess $
  14. XCOMM
  15. XCOMM ##########################################################################
  16. #define HASH #
  17. set DtDbVersion=1.0
  18. XCOMM ##########################################################################
  19. XCOMM
  20. %|nls-10-#HASH WARNING:...#|
  21. XCOMM
  22. XCOMM ##########################################################################
  23. XCOMM ##################################################################
  24. XCOMM
  25. %|nls-11-#HASH Data Attributes#|
  26. XCOMM
  27. XCOMM ##################################################################
  28. DATA_ATTRIBUTES DT
  29. {
  30. ACTIONS Open,ReloadActions,Print
  31. ICON Dtdt
  32. IS_TEXT true
  33. NAME_TEMPLATE %s.dt
  34. MIME_TYPE text/plain
  35. DESCRIPTION %|nls-2001-#A#|
  36. TYPE_LABEL %|nls-31023-#DT#|
  37. }
  38. DATA_CRITERIA DT1
  39. {
  40. DATA_ATTRIBUTES_NAME DT
  41. MODE f
  42. NAME_PATTERN *.dt
  43. }
  44. ACTION ReloadActionsNotice
  45. {
  46. LABEL Reload Notification
  47. TYPE TT_MSG
  48. TT_CLASS TT_NOTICE
  49. TT_SCOPE TT_SESSION
  50. TT_OPERATION DtTypes_Reloaded
  51. DESCRIPTION The ReloadActionsNotice action notifies \
  52. applications of a rebuilt cache file database.
  53. }
  54. ACTION BuildDataBaseRequest
  55. {
  56. LABEL Rebuild Request
  57. TYPE TT_MSG
  58. TT_CLASS TT_REQUEST
  59. TT_SCOPE TT_SESSION
  60. TT_OPERATION DtDtsCache
  61. DESCRIPTION The BuildDataBaseRequest action rebuilds the \
  62. cache file database \
  63. of action, data type and front panel definitions.
  64. }
  65. ACTION ReloadActions
  66. {
  67. LABEL %|nls-2002-#Reload Actions#|
  68. TYPE COMMAND
  69. WINDOW_TYPE NO_STDIO
  70. EXEC_STRING sh -c 'dtaction BuildDataBaseRequest ;\
  71. dtaction ReloadActionsNotice'
  72. DESCRIPTION %|nls-2003-#The#|
  73. }
  74. XCOMM ######################################################
  75. DATA_ATTRIBUTES FP
  76. {
  77. ACTIONS Open,Print
  78. ICON Dtfpcfg
  79. IS_TEXT true
  80. NAME_TEMPLATE %s.fp
  81. MIME_TYPE text/plain
  82. DESCRIPTION %|nls-2004-#A#|
  83. TYPE_LABEL %|nls-31024-#FP#|
  84. }
  85. DATA_CRITERIA FP1
  86. {
  87. DATA_ATTRIBUTES_NAME FP
  88. MODE f
  89. NAME_PATTERN *.fp
  90. }
  91. XCOMM ######################################################
  92. DATA_ATTRIBUTES DTFILE_FILE
  93. {
  94. PROPERTIES invisible
  95. ACTIONS Open,Print
  96. IS_TEXT true
  97. MIME_TYPE text/plain
  98. DESCRIPTION %|nls-2005-#A DTFILE_FILE#|
  99. TYPE_LABEL %|nls-31025-#DTFILE_FILE#|
  100. }
  101. DATA_CRITERIA DTFILE_FILE1
  102. {
  103. DATA_ATTRIBUTES_NAME DTFILE_FILE
  104. MODE f
  105. NAME_PATTERN .\!*
  106. }
  107. XCOMM ######################################################
  108. DATA_ATTRIBUTES DTKSH_SCRIPT
  109. {
  110. ACTIONS Run,Open,Print
  111. ICON Dtdtksh
  112. IS_EXECUTABLE true
  113. COPY_TO_ACTION Execute
  114. NAME_TEMPLATE %s.ds
  115. MIME_TYPE text/plain
  116. DESCRIPTION %|nls-2006-#A DTKSH_SCRIPT#|
  117. TYPE_LABEL %|nls-31026-#DTKSH_SCRIPT#|
  118. }
  119. DATA_CRITERIA DTKSH_SCRIPT1
  120. {
  121. DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
  122. MODE f&x
  123. NAME_PATTERN *.ds
  124. }
  125. DATA_CRITERIA DTKSH_SCRIPT2
  126. {
  127. DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
  128. MODE f&x
  129. CONTENT 0 string #!DTKORNSHELL
  130. }
  131. DATA_CRITERIA DTKSH_SCRIPT3
  132. {
  133. DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
  134. MODE f&x
  135. CONTENT 0 string #! DTKORNSHELL
  136. }
  137. ACTION Run
  138. {
  139. LABEL %|nls-3-Run|
  140. ARG_TYPE DTKSH_SCRIPT
  141. TYPE MAP
  142. MAP_ACTION Execute
  143. }
  144. XCOMM ######################################################
  145. DATA_ATTRIBUTES DTKSH_CONV
  146. {
  147. ACTIONS Open,Print
  148. ICON Dtdtksh
  149. NAME_TEMPLATE %s.dtsh
  150. MIME_TYPE text/plain
  151. DESCRIPTION %|nls-2007-#A DTKSH_CONV#|
  152. TYPE_LABEL %|nls-31027-#DTKSH_CONV#|
  153. }
  154. DATA_CRITERIA DTKSH_CONV1
  155. {
  156. DATA_ATTRIBUTES_NAME DTKSH_CONV
  157. MODE f
  158. NAME_PATTERN *.dtsh
  159. }
  160. XCOMM ##################################################################
  161. XCOMM ##################################################################
  162. XCOMM
  163. %|nls-12-#HASH Actions#|
  164. XCOMM
  165. XCOMM ##################################################################
  166. ACTION Dtstyle
  167. {
  168. LABEL %|nls-2008-#Style Manager#|
  169. ARG_COUNT 0
  170. ICON Fpstyle
  171. TYPE COMMAND
  172. WINDOW_TYPE NO_STDIO
  173. EXEC_STRING CDE_INSTALLATION_TOP/bin/dtstyle
  174. DESCRIPTION %|nls-2009-#The#|
  175. }
  176. XCOMM ######
  177. ACTION OpenDtIntro
  178. {
  179. LABEL %|nls-2012-#OpenDtIntro#|
  180. ARG_COUNT 0
  181. TYPE COMMAND
  182. WINDOW_TYPE NO_STDIO
  183. EXEC_STRING CDE_INSTALLATION_TOP/bin/dthelpview -helpVolume Intromgr
  184. DESCRIPTION %|nls-2013-#The#|
  185. }
  186. XCOMM ######
  187. ACTION FPHelp
  188. {
  189. LABEL %|nls-2014-#FPHelp#|
  190. ARG_COUNT 0
  191. TYPE COMMAND
  192. WINDOW_TYPE NO_STDIO
  193. EXEC_STRING CDE_INSTALLATION_TOP/bin/dthelpview -helpVolume FPanel
  194. DESCRIPTION %|nls-2015-#The#|
  195. }
  196. XCOMM ######
  197. ACTION LockDisplay
  198. {
  199. LABEL %|nls-2016-#LockDisplay#|
  200. TYPE TT_MSG
  201. TT_CLASS TT_REQUEST
  202. TT_SCOPE TT_SESSION
  203. TT_OPERATION Display_Lock
  204. DESCRIPTION %|nls-2017-#The#|
  205. }
  206. XCOMM ######
  207. ACTION ExitSession
  208. {
  209. LABEL %|nls-2018-#ExitSession#|
  210. ARG_COUNT 0
  211. TYPE TT_MSG
  212. TT_CLASS TT_REQUEST
  213. TT_SCOPE TT_SESSION
  214. TT_OPERATION XSession_Exit
  215. DESCRIPTION %|nls-2019-#The#|
  216. }
  217. XCOMM ######
  218. XCOMM ######
  219. ACTION SaveSession
  220. {
  221. LABEL %|nls-2051-#Save Session#|
  222. TYPE TT_MSG
  223. TT_CLASS TT_REQUEST
  224. TT_SCOPE TT_SESSION
  225. TT_OPERATION Save_Session
  226. HASH
  227. HASH The legal values for save_type are: Local, Global and Both
  228. HASH
  229. TT_ARG0_MODE TT_IN
  230. TT_ARG0_VTYPE save_type
  231. TT_ARG0_REP_TYPE TT_REP_STRING
  232. TT_ARG0_VALUE Local
  233. HASH
  234. HASH The legal values for shutdown are: True and False
  235. HASH
  236. TT_ARG1_MODE TT_IN
  237. TT_ARG1_VTYPE shutdown
  238. TT_ARG1_REP_TYPE TT_REP_STRING
  239. TT_ARG1_VALUE False
  240. HASH
  241. HASH The legal values for interact_style are: None, Errors and Any
  242. HASH
  243. TT_ARG2_MODE TT_IN
  244. TT_ARG2_VTYPE interact_style
  245. TT_ARG2_REP_TYPE TT_REP_STRING
  246. TT_ARG2_VALUE None
  247. HASH
  248. HASH The legal values for fast are: True and False
  249. HASH
  250. TT_ARG3_MODE TT_IN
  251. TT_ARG3_VTYPE fast
  252. TT_ARG3_REP_TYPE TT_REP_STRING
  253. TT_ARG3_VALUE True
  254. HASH
  255. HASH The legal values for global are: True and False
  256. HASH
  257. TT_ARG4_MODE TT_IN
  258. TT_ARG4_VTYPE global
  259. TT_ARG4_REP_TYPE TT_REP_STRING
  260. TT_ARG4_VALUE True
  261. HASH
  262. HASH The num_sessions_backedup field can be any positive
  263. HASH number. If it is 0, the default number of sessions
  264. HASH will be backedup.
  265. HASH
  266. TT_ARG5_MODE TT_IN
  267. TT_ARG5_VTYPE num_sessions_backedup
  268. TT_ARG5_REP_TYPE TT_REP_STRING
  269. TT_ARG5_VALUE 0
  270. DESCRIPTION %|nls-2052-#The#|
  271. }
  272. XCOMM ######
  273. ACTION ReloadResources
  274. {
  275. LABEL %|nls-12028-#Reload Resources#|
  276. ARG_COUNT 0
  277. TYPE TT_MSG
  278. TT_CLASS TT_REQUEST
  279. TT_SCOPE TT_SESSION
  280. TT_OPERATION Resources_Reload
  281. DESCRIPTION %|nls-12029-#The#|
  282. }
  283. XCOMM ######
  284. ACTION ReloadApps
  285. {
  286. LABEL %|nls-2020-#Reload Applications#|
  287. ARG_COUNT 0
  288. TYPE COMMAND
  289. WINDOW_TYPE NO_STDIO
  290. EXEC_STRING /bin/sh -c '/usr/dt/bin/dtaction ReloadActions; \
  291. /usr/dt/bin/dtappgather -r; \
  292. /usr/dt/bin/dthelpgen -dir $HOME/.dt/help '
  293. DESCRIPTION %|nls-2021-#The#|
  294. }
  295. XCOMM ######
  296. ACTION Dtcreate
  297. {
  298. LABEL %|nls-2022-#Create Action#|
  299. ICON Dtrunpn
  300. TYPE COMMAND
  301. WINDOW_TYPE NO_STDIO
  302. EXEC_STRING CDE_INSTALLATION_TOP/bin/dtcreate "%Arg_1%"
  303. DESCRIPTION %|nls-2023-#The#|
  304. }
  305. XCOMM ######
  306. ACTION DtwmrcEdit
  307. {
  308. LABEL %|nls-2024-#Edit Dtwmrc#|
  309. ICON Fppenpd
  310. TYPE COMMAND
  311. WINDOW_TYPE NO_STDIO
  312. EXEC_STRING sh -c 'if [ ! -f $HOME/.dt/dtwmrc ] ; then \
  313. if [ ! -f /etc/dt/config/sys.dtwmrc ] ; then \
  314. cp /usr/dt/config/$LANG/sys.dtwmrc \
  315. $HOME/.dt/dtwmrc; \
  316. else \
  317. cp /etc/dt/config/sys.dtwmrc \
  318. $HOME/.dt/dtwmrc; \
  319. fi; \
  320. chmod u+w $HOME/.dt/dtwmrc; \
  321. fi; \
  322. /usr/dt/bin/dtaction Open $HOME/.dt/dtwmrc'
  323. DESCRIPTION %|nls-2025-#The#|
  324. }
  325. XCOMM ######
  326. ACTION RestorePanel
  327. {
  328. LABEL %|nls-2049-#Restore Front Panel#|
  329. TYPE TT_MSG
  330. TT_CLASS TT_REQUEST
  331. TT_SCOPE TT_SESSION
  332. TT_OPERATION DtPanel_Restore
  333. DESCRIPTION %|nls-2050-#The#|
  334. }
  335. XCOMM ######
  336. ACTION Dtmail
  337. {
  338. LABEL %|nls-2026-#Mailer#|
  339. ICON DtMail
  340. TYPE TT_MSG
  341. TT_CLASS TT_REQUEST
  342. TT_SCOPE TT_SESSION
  343. TT_OPERATION Display
  344. TT_ARG0_MODE TT_IN
  345. TT_ARG0_VTYPE RFC_822_MESSAGE
  346. TT_ARG0_VALUE DTMAIL_INBOX
  347. DESCRIPTION %|nls-2027-#The#|
  348. }
  349. XCOMM ######
  350. ACTION Dtcalc
  351. {
  352. LABEL %|nls-2028-#Calculator#|
  353. ICON Dtcalc
  354. ARG_COUNT 0
  355. TYPE COMMAND
  356. WINDOW_TYPE NO_STDIO
  357. EXEC_STRING CDE_INSTALLATION_TOP/bin/dtcalc
  358. DESCRIPTION %|nls-2029-#The#|
  359. }
  360. XCOMM ######
  361. ACTION Dtterm
  362. {
  363. LABEL %|nls-2030-#Terminal#|
  364. ARG_COUNT 0
  365. ICON Dtterm
  366. TYPE COMMAND
  367. WINDOW_TYPE NO_STDIO
  368. EXEC_STRING CDE_INSTALLATION_TOP/bin/dtterm
  369. DESCRIPTION %|nls-2031-#The#|
  370. }
  371. XCOMM
  372. XCOMM The following action is used to start a terminal emulator
  373. XCOMM via the desktop's messaging system. If a terminal emumaltor
  374. XCOMM server is not running when this action is invoked, a server
  375. XCOMM will be started. Once the server is started, subsequent
  376. XCOMM invocations of this action will not start a new process but
  377. XCOMM instead, a message will be sent to the server and a new
  378. XCOMM terminal emulator window will be mapped.
  379. XCOMM
  380. XCOMM Note that all shells started via the server will run on the
  381. XCOMM server's host, regardless of the host where the action is
  382. XCOMM invoked.
  383. ACTION DttermServer
  384. {
  385. LABEL %|nls-2030-#Terminal#|
  386. ARG_COUNT 0
  387. ICON Dtterm
  388. TYPE TT_MSG
  389. TT_CLASS TT_REQUEST
  390. TT_SCOPE TT_SESSION
  391. TT_OPERATION DtTerminal_New
  392. TT_ARG0_MODE TT_IN
  393. TT_ARG0_VTYPE -display
  394. TT_ARG0_REP_TYPE TT_REP_STRING
  395. TT_ARG0_VALUE $DISPLAY
  396. TT_ARG1_MODE TT_IN
  397. TT_ARG1_VTYPE -display
  398. TT_ARG1_REP_TYPE TT_REP_STRING
  399. TT_ARG1_VALUE $DISPLAY
  400. DESCRIPTION %|nls-2031-#The#|
  401. }
  402. XCOMM ######
  403. ACTION Dticon
  404. {
  405. LABEL %|nls-2032-#Icon Editor#|
  406. ICON Dtpaint
  407. ARG_COUNT 0
  408. TYPE COMMAND
  409. WINDOW_TYPE NO_STDIO
  410. EXEC_STRING CDE_INSTALLATION_TOP/bin/dticon
  411. DESCRIPTION %|nls-2034-#The#|
  412. }
  413. ACTION Dticon
  414. {
  415. LABEL %|nls-2032-#Icon Editor#|
  416. ICON Dtpaint
  417. TYPE COMMAND
  418. WINDOW_TYPE NO_STDIO
  419. EXEC_STRING CDE_INSTALLATION_TOP/bin/dticon -file \
  420. "%(File)Arg_1"%|nls-2033-#"Icon#|"%"
  421. DESCRIPTION %|nls-2034-#The#|
  422. }
  423. XCOMM ######
  424. ACTION (None)
  425. {
  426. LABEL %|nls-4-#(None)#|
  427. TYPE COMMAND
  428. WINDOW_TYPE NO_STDIO
  429. EXEC_STRING CDE_INSTALLATION_TOP/bin/dterror.ds \
  430. "%|nls-2035-#There#|" \
  431. "%|nls-2036-#(None)#|" \
  432. "%|nls-6-#OK#|"
  433. DESCRIPTION %|nls-2037-#The#|
  434. }
  435. XCOMM ######
  436. ACTION DttermErrorlog
  437. {
  438. LABEL %|nls-2039-#Watch Errors#|
  439. ARG_COUNT 0
  440. TYPE COMMAND
  441. WINDOW_TYPE NO_STDIO
  442. EXEC_STRING /bin/sh -c 'if [ ! -f $HOME/.dt/errorlog ] ; then \
  443. /bin/touch $HOME/.dt/errorlog; \
  444. fi; \
  445. /usr/dt/bin/dtterm -map -title \
  446. "%|nls-2039-#Watch#|" \
  447. -e tail -f $HOME/.dt/errorlog'
  448. DESCRIPTION %|nls-2040-#The#|
  449. }
  450. XCOMM ######
  451. ACTION Dttypes
  452. {
  453. LABEL %|nls-2041-#Types and Actions List#|
  454. ARG_COUNT 0
  455. TYPE COMMAND
  456. WINDOW_TYPE PERM_TERMINAL
  457. EXEC_STRING sh -c ' \
  458. /usr/dt/bin/dttypes | \${PAGER:-more}; \
  459. echo "%|nls-7-#Select#|"'
  460. DESCRIPTION %|nls-2042-#The#|
  461. }
  462. ACTION Dttypes
  463. {
  464. LABEL %|nls-2041-#Types and Actions List#|
  465. TYPE COMMAND
  466. WINDOW_TYPE PERM_TERMINAL
  467. EXEC_STRING sh -c '/usr/dt/bin/dttypes -type "%(File)Arg_1%"; \
  468. echo "%|nls-7-#Select#|"'
  469. DESCRIPTION %|nls-2042-#The#|
  470. }
  471. XCOMM #########################################################################
  472. XCOMM
  473. %|nls-2043-#HASH This is ...#|
  474. XCOMM
  475. XCOMM #########################################################################
  476. ACTION NoPrint
  477. {
  478. LABEL %|nls-2044-#NoPrint#|
  479. TYPE COMMAND
  480. WINDOW_TYPE NO_STDIO
  481. EXEC_STRING CDE_INSTALLATION_TOP/bin/dterror.ds \
  482. "%|nls-2045-#There#|" \
  483. "%|nls-2046-#(None)#|" \
  484. "%|nls-6-#OK#|"
  485. DESCRIPTION %|nls-2047-#The#|
  486. }
  487. XCOMM #########################################################################
  488. XCOMM
  489. %|nls-2048-#HASH This is ...#|
  490. XCOMM
  491. XCOMM #########################################################################
  492. ACTION Open
  493. {
  494. LABEL %|nls-1-Open|
  495. TYPE MAP
  496. MAP_ACTION TextEditor
  497. }
  498. XCOMM #########################################################################
  499. XCOMM
  500. XCOMM
  501. XCOMM #########################################################################
  502. ACTION DtTTMediaOpen
  503. {
  504. ARG_COUNT 0
  505. ICON Fppenpd
  506. TYPE TT_MSG
  507. TT_CLASS TT_REQUEST
  508. TT_SCOPE TT_SESSION
  509. TT_OPERATION Instantiate
  510. TT_ARG0_MODE TT_IN
  511. TT_ARG0_VTYPE C_STRING
  512. TT_ARG0_REP_TYPE TT_REP_STRING
  513. }
  514. ACTION DtTTMediaOpen
  515. {
  516. ARG_CLASS BUFFER
  517. ARG_MODE w
  518. ARG_COUNT >0
  519. ICON Fppenpd
  520. TYPE TT_MSG
  521. TT_CLASS TT_REQUEST
  522. TT_SCOPE TT_SESSION
  523. TT_OPERATION Edit
  524. TT_ARG0_MODE TT_INOUT
  525. TT_ARG0_VTYPE %Arg_1%
  526. TT_ARG0_VALUE %Arg_1%
  527. TT_ARG0_REP_TYPE TT_REP_BUFFER
  528. }
  529. ACTION DtTTMediaOpen
  530. {
  531. ARG_CLASS BUFFER
  532. ARG_MODE !w
  533. ARG_COUNT >0
  534. ICON Fppenpd
  535. TYPE TT_MSG
  536. TT_CLASS TT_REQUEST
  537. TT_SCOPE TT_SESSION
  538. TT_OPERATION Display
  539. TT_ARG0_MODE TT_IN
  540. TT_ARG0_VTYPE %Arg_1%
  541. TT_ARG0_VALUE %Arg_1%
  542. TT_ARG0_REP_TYPE TT_REP_BUFFER
  543. }
  544. ACTION DtTTMediaOpen
  545. {
  546. ARG_CLASS FILE
  547. ARG_COUNT >0
  548. ICON Fppenpd
  549. TYPE TT_MSG
  550. TT_CLASS TT_REQUEST
  551. TT_SCOPE TT_SESSION
  552. TT_OPERATION Edit
  553. TT_FILE %Arg_1%
  554. TT_ARG0_MODE TT_INOUT
  555. TT_ARG0_VTYPE %Arg_1%
  556. TT_ARG0_REP_TYPE TT_REP_STRING
  557. }
  558. XCOMM ######################## EOF ############################################