xclients.dt.src 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. XCOMM ##########################################################################
  2. XCOMM
  3. XCOMM xclients.dt
  4. XCOMM
  5. XCOMM Actions and DataTypes for integrating X clients into the Common
  6. XCOMM Desktop Environment (CDE).
  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 $XConsortium: xclients.dt.src /main/5 1996/04/23 20:26:44 drk $
  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 XWD
  29. {
  30. ACTIONS Open,Print
  31. ICON Dtxwd
  32. NAME_TEMPLATE %s.xwd
  33. MIME_TYPE application/octet-stream
  34. SUNV3_TYPE xwd-file
  35. DESCRIPTION %|nls-12001-#An XWD#|
  36. TYPE_LABEL %|nls-31098-#XWD#|
  37. }
  38. DATA_CRITERIA XWD1
  39. {
  40. DATA_ATTRIBUTES_NAME XWD
  41. MODE f
  42. NAME_PATTERN *.xwd
  43. }
  44. DATA_CRITERIA XWD2
  45. {
  46. DATA_ATTRIBUTES_NAME XWD
  47. MODE f
  48. NAME_PATTERN *.wd
  49. }
  50. ACTION Open
  51. {
  52. LABEL %|nls-1-Open|
  53. ARG_TYPE XWD
  54. TYPE MAP
  55. MAP_ACTION Xwud
  56. }
  57. ACTION Print
  58. {
  59. LABEL %|nls-2-Print|
  60. ARG_TYPE XWD
  61. TYPE MAP
  62. MAP_ACTION NoPrint
  63. }
  64. ACTION Xwud
  65. {
  66. LABEL %|nls-12002-#Xwd Display#|
  67. TYPE COMMAND
  68. WINDOW_TYPE NO_STDIO
  69. EXEC_STRING xwud -noclick -in \
  70. "%(File)Arg_1"%|nls-12003-#Xwd File To Display:#|"%"
  71. DESCRIPTION %|nls-12004-#The#|
  72. }
  73. XCOMM ##########################################################################
  74. XCOMM
  75. %|nls-12-#HASH Actions#|
  76. XCOMM
  77. XCOMM ##########################################################################
  78. ACTION Xrefresh
  79. {
  80. LABEL %|nls-12005-#Refresh Display#|
  81. ARG_COUNT 0
  82. TYPE COMMAND
  83. WINDOW_TYPE NO_STDIO
  84. EXEC_STRING xrefresh
  85. DESCRIPTION %|nls-12006-#The#|
  86. }
  87. XCOMM ######
  88. ACTION Bitmap
  89. {
  90. LABEL %|nls-12007-#Edit Bitmap#|
  91. TYPE COMMAND
  92. WINDOW_TYPE NO_STDIO
  93. EXEC_STRING bitmap \
  94. "%(File)Arg_1"%|nls-12008-#File To Open:#|"%"
  95. DESCRIPTION %|nls-12011-#The Edit Bitmap#|
  96. }
  97. ACTION Bitmap
  98. {
  99. LABEL %|nls-12007-#Edit Bitmap#|
  100. ARG_COUNT 0
  101. TYPE COMMAND
  102. WINDOW_TYPE NO_STDIO
  103. EXEC_STRING bitmap \
  104. -size %"%|nls-12009-#Width:#|"%x%"%|nls-12010-#Height:#|"% \
  105. "%(File)Arg_1"%|nls-12008-#File To Open:#|"%"
  106. DESCRIPTION %|nls-12011-#The Edit Bitmap#|
  107. }
  108. XCOMM ######
  109. ACTION DttermConsole
  110. {
  111. LABEL %|nls-12012-#Terminal Console#|
  112. ICON Dtterm
  113. ARG_COUNT 0
  114. TYPE COMMAND
  115. WINDOW_TYPE NO_STDIO
  116. EXEC_STRING CDE_INSTALLATION_TOP/bin/dtterm -C -ls -name %|nls-12056-#Console#| -title %|nls-12056-#Console#|
  117. DESCRIPTION %|nls-12013-#The#|
  118. }
  119. XCOMM ######
  120. ACTION Xterm
  121. {
  122. LABEL %|nls-12014-#Xterm#|
  123. ICON Dtterm
  124. ARG_COUNT 0
  125. TYPE COMMAND
  126. WINDOW_TYPE NO_STDIO
  127. EXEC_STRING xterm
  128. DESCRIPTION %|nls-12015-#The#|
  129. }
  130. XCOMM ######
  131. ACTION DttermDtspcd
  132. {
  133. LABEL %|nls-12016-#Terminal Remote#|
  134. ICON Dtterm
  135. ARG_COUNT 0
  136. TYPE COMMAND
  137. WINDOW_TYPE NO_STDIO
  138. EXEC_HOST %"%|nls-12017-#Hostname:#|"%
  139. EXEC_STRING CDE_INSTALLATION_TOP/bin/dtterm
  140. DESCRIPTION %|nls-12018-#The#|
  141. }
  142. XCOMM ######
  143. ACTION XtermDtspcd
  144. {
  145. LABEL %|nls-12019-#Xterm Remote#|
  146. ICON Dtterm
  147. ARG_COUNT 0
  148. TYPE COMMAND
  149. WINDOW_TYPE NO_STDIO
  150. EXEC_HOST %"%|nls-12017-#Hostname:#|"%
  151. EXEC_STRING xterm
  152. DESCRIPTION %|nls-12020-#The#|
  153. }
  154. XCOMM ######
  155. ACTION DttermRlogin
  156. {
  157. LABEL %|nls-12021-#Terminal Rlogin#|
  158. ICON Dtterm
  159. ARG_COUNT 0
  160. TYPE COMMAND
  161. WINDOW_TYPE NO_STDIO
  162. EXEC_STRING KORNSHELL -c 'export _title="%"%|nls-12017-#Hostname:#|"%"; \
  163. /usr/dt/bin/dtterm -title "%|nls-12022-#\$_title#|" -e KORNSHELL -c \
  164. "echo %|nls-12023-#Trying to#|; \
  165. rlogin \$_title; sleep 5;";'
  166. DESCRIPTION %|nls-12024-#The#|
  167. }
  168. XCOMM ######
  169. ACTION XtermRlogin
  170. {
  171. LABEL %|nls-12025-#Xterm Rlogin#|
  172. ICON Dtterm
  173. ARG_COUNT 0
  174. TYPE COMMAND
  175. WINDOW_TYPE NO_STDIO
  176. EXEC_STRING KORNSHELL -c 'export _title="%"%|nls-12017-#Hostname:#|"%"; \
  177. xterm -title "%|nls-12026-#\$_title#|" -e KORNSHELL -c \
  178. "echo %|nls-12023-#Trying to#|; \
  179. rlogin \$_title; sleep 5;";'
  180. DESCRIPTION %|nls-12027-#The#|
  181. }
  182. XCOMM ######
  183. #ifdef __aix
  184. ACTION XclockDig
  185. {
  186. LABEL %|nls-12030-#Digital Clock#|
  187. ARG_COUNT 0
  188. ICON Dtdgclk
  189. TYPE COMMAND
  190. WINDOW_TYPE NO_STDIO
  191. EXEC_STRING xclock -digital -update 1
  192. DESCRIPTION %|nls-12031-#The#|
  193. }
  194. #else
  195. ACTION XclockDig
  196. {
  197. LABEL %|nls-12030-#Digital Clock#|
  198. ARG_COUNT 0
  199. ICON Dtdgclk
  200. TYPE COMMAND
  201. WINDOW_TYPE NO_STDIO
  202. EXEC_STRING xclock -name "%|nls-12030-#Digital Clock#|" \
  203. -digital -update 1
  204. DESCRIPTION %|nls-12031-#The#|
  205. }
  206. #endif
  207. XCOMM ######
  208. ACTION Xload
  209. {
  210. LABEL %|nls-12032-#System Load#|
  211. ARG_COUNT 0
  212. ICON Dtload
  213. TYPE COMMAND
  214. WINDOW_TYPE NO_STDIO
  215. EXEC_STRING xload -name "%|nls-12055-#System Load|" \
  216. -geometry 250x150 -xrm '*primaryColorSetId: 5'
  217. DESCRIPTION %|nls-12033-#The#|
  218. }
  219. XCOMM ######
  220. ACTION Xwd
  221. {
  222. LABEL %|nls-12034-#Xwd Capture#|
  223. ARG_COUNT 0
  224. TYPE COMMAND
  225. WINDOW_TYPE NO_STDIO
  226. EXEC_STRING xwd -out \
  227. %(File)"%|nls-12035-#Output File (<name>.xwd):#|"%
  228. DESCRIPTION %|nls-12036-#The#|
  229. }
  230. XCOMM ######
  231. ACTION Xclipboard
  232. {
  233. LABEL %|nls-12037-#Clipboard Contents#|
  234. TYPE COMMAND
  235. WINDOW_TYPE NO_STDIO
  236. EXEC_STRING xclipboard
  237. DESCRIPTION %|nls-12038-#The#|
  238. }
  239. XCOMM ######
  240. ACTION Xfd
  241. {
  242. LABEL %|nls-12039-#Font Preview#|
  243. TYPE COMMAND
  244. WINDOW_TYPE NO_STDIO
  245. EXEC_STRING sh -c 'xfd -fn \
  246. "%(String)Arg_1"%|nls-12040-#Font#|"%"; \
  247. if [ \$? -eq 1 ] ; then \
  248. /usr/dt/bin/dterror.ds \
  249. "%|nls-12041-#The font#|" \
  250. "%|nls-12042-#Font Name#|" \
  251. "%|nls-6-#OK#|" ; \
  252. fi'
  253. DESCRIPTION %|nls-12043-#The#|
  254. }
  255. XCOMM ######
  256. %|nls-12044-#The ListWinInfo ...#|
  257. ACTION Xwininfo
  258. {
  259. LABEL %|nls-12045-#Window Information#|
  260. ARG_COUNT 0
  261. TYPE COMMAND
  262. WINDOW_TYPE PERM_TERMINAL
  263. EXEC_STRING sh -c 'xwininfo; \
  264. echo "%|nls-7-#Select#|"'
  265. DESCRIPTION %|nls-12046-#The#|
  266. }
  267. XCOMM ######
  268. ACTION Xprop
  269. {
  270. LABEL %|nls-12047-#Window Properties#|
  271. ARG_COUNT 0
  272. TYPE COMMAND
  273. WINDOW_TYPE PERM_TERMINAL
  274. EXEC_STRING sh -c ' \
  275. echo "%|nls-12048-#[When#|"; \
  276. xprop | \${PAGER:-more}; \
  277. echo "%|nls-7-#Select#|"'
  278. DESCRIPTION %|nls-12049-#The#|
  279. }
  280. XCOMM ######
  281. ACTION Xdpyinfo
  282. {
  283. LABEL %|nls-12050-#X Server...#|
  284. ARG_COUNT 0
  285. TYPE COMMAND
  286. WINDOW_TYPE PERM_TERMINAL
  287. EXEC_STRING \
  288. sh -c ' \
  289. xdpyinfo | \${PAGER:-more}; \
  290. echo "%|nls-7-#Select#|"'
  291. DESCRIPTION %|nls-12051-#The#|
  292. }
  293. XCOMM ######
  294. ACTION Xlsfonts
  295. {
  296. LABEL %|nls-12052-#Font List#|
  297. ARG_COUNT 0
  298. TYPE COMMAND
  299. WINDOW_TYPE PERM_TERMINAL
  300. EXEC_STRING sh -c ' \
  301. echo "%|nls-12053-#[Looking for Fonts..#|"; \
  302. xlsfonts | \${PAGER:-more}; \
  303. echo "%|nls-7-#Select#|"'
  304. DESCRIPTION %|nls-12054-#The#|
  305. }
  306. XCOMM ######################## EOF ############################################