dtcreate.ddf 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. !######################################################################
  2. !#
  3. !# dtcreate.ddf
  4. !#
  5. !# Dialog description file for the dtcreate client.
  6. !#
  7. !# Hewlett-Packard Visual User Environment
  8. !#
  9. !# Copyright (c) 1990 Hewlett-Packard Company
  10. !#
  11. !# $XConsortium: dtcreate.ddf /main/3 1995/11/01 16:12:22 rswiston $
  12. !#
  13. !######################################################################
  14. ! The dialogs defined in this file are used by dtcreate. To display
  15. ! the main Create Action dialog:
  16. ! 1) Open the General toolbox from the tools slide-up
  17. ! panel.
  18. ! 2) Open the Utilities container.
  19. ! 3) Double-click the CreateAction icon.
  20. !
  21. ! In this block, localize title and helpTitle. If the online help has
  22. ! been localized, the helpLocation resource may also require localization.
  23. !
  24. createAction.type: CustomFormDialog
  25. createAction.useApplicationShell: True
  26. createAction.title: %|nls-1-#Create Action#|
  27. createAction.helpTitle: %|nls-2-#Create Action - Help#|
  28. createAction.helpType: Topic
  29. createAction.helpVolume: Dtmisc
  30. createAction.helpLocation: ToUseMakeActionTA
  31. createAction.hasInitialFocus: name
  32. createAction.dialogButtons: apply,close,help
  33. createAction.subfields: \
  34. nameLabel,name,\
  35. commandLineLabel,commandLine,\
  36. commandType,\
  37. optLabel,sep1,sep2,\
  38. promptLabel,prompt,\
  39. largeIconLabel,largeIcon,\
  40. smallIconLabel,smallIcon,\
  41. descriptionLabel,description
  42. !
  43. ! In this block, localize label.
  44. !
  45. createAction.apply.label: %|nls-5-#Apply#|
  46. createAction.apply.isDefault: True
  47. createAction.apply.action: f.returnValues
  48. !
  49. ! In this block, localize label.
  50. !
  51. createAction.close.label: %|nls-6-#Close#|
  52. createAction.close.isDefault: False
  53. createAction.close.action: f.returnValues
  54. !
  55. ! In this block, localize label.
  56. !
  57. createAction.help.label: %|nls-7-#Help#|
  58. createAction.help.isDefault: False
  59. createAction.help.action: f.help
  60. !
  61. ! In this block, localize label.
  62. !
  63. createAction.nameLabel.type: LabelField
  64. createAction.nameLabel.topOffset: 20
  65. createAction.nameLabel.leftOffset: 20
  66. createAction.nameLabel.topAttachment: XmATTACH_FORM
  67. createAction.nameLabel.leftAttachment: XmATTACH_FORM
  68. createAction.nameLabel.label: %|nls-10-#Name:#|
  69. createAction.name.type: TextField
  70. createAction.name.crMovesToNextTextField: True
  71. createAction.name.topAttachment: XmATTACH_OPPOSITE_WIDGET
  72. createAction.name.topWidget: nameLabel
  73. createAction.name.topOffset: -7
  74. createAction.name.leftAttachment: XmATTACH_WIDGET
  75. createAction.name.leftWidget: nameLabel
  76. createAction.name.leftOffset: 10
  77. createAction.name.rightAttachment: XmATTACH_FORM
  78. createAction.name.rightOffset: 10
  79. !
  80. ! In this block, localize label.
  81. !
  82. createAction.commandLineLabel.type: LabelField
  83. createAction.commandLineLabel.topOffset: 20
  84. createAction.commandLineLabel.leftOffset: 20
  85. createAction.commandLineLabel.topAttachment: XmATTACH_WIDGET
  86. createAction.commandLineLabel.topWidget: nameLabel
  87. createAction.commandLineLabel.leftAttachment: XmATTACH_FORM
  88. createAction.commandLineLabel.label: %|nls-11-#Command Line:#|
  89. createAction.commandLine.type: TextField
  90. createAction.commandLine.crMovesToNextTextField: True
  91. createAction.commandLine.lines: 1
  92. createAction.commandLine.topAttachment: XmATTACH_WIDGET
  93. createAction.commandLine.topWidget: commandLineLabel
  94. createAction.commandLine.topOffset: 5
  95. createAction.commandLine.leftAttachment: XmATTACH_FORM
  96. createAction.commandLine.leftOffset: 40
  97. createAction.commandLine.rightAttachment: XmATTACH_FORM
  98. createAction.commandLine.rightOffset: 10
  99. !
  100. ! In this block, localize label, xWin.label, noOut.label,
  101. ! term.label, and termClose.label
  102. !
  103. createAction.commandType.type: OptionMenuField
  104. createAction.commandType.topAttachment: XmATTACH_WIDGET
  105. createAction.commandType.topWidget: commandLine
  106. createAction.commandType.topOffset: 20
  107. createAction.commandType.leftAttachment: XmATTACH_FORM
  108. createAction.commandType.leftOffset: 20
  109. createAction.commandType.rightAttachment: XmATTACH_FORM
  110. createAction.commandType.rightOffset: 10
  111. createAction.commandType.label: %|nls-12-#Window Type:#|
  112. createAction.commandType.options: xWin,noOut,term,termClose
  113. createAction.commandType.xWin.label: %|nls-13-#X Windows#|
  114. createAction.commandType.noOut.label: %|nls-14-#No Output#|
  115. createAction.commandType.term.label: %|nls-15-#Terminal#|
  116. createAction.commandType.termClose.label: %|nls-16-#Terminal (auto-close)#|
  117. createAction.commandType.active: term
  118. createAction.commandType.spacing: 35
  119. !
  120. ! In this block, localize label
  121. !
  122. createAction.optLabel.type: LabelField
  123. createAction.optLabel.topOffset: 30
  124. createAction.optLabel.leftOffset: 100
  125. createAction.optLabel.topAttachment: XmATTACH_WIDGET
  126. createAction.optLabel.topWidget: commandType
  127. createAction.optLabel.leftAttachment: XmATTACH_FORM
  128. createAction.optLabel.label: %|nls-17-#Optional Fields#|
  129. createAction.sep1.type: SeparatorField
  130. createAction.sep1.orientation: Horizontal
  131. createAction.sep1.separatorType: SHADOW_ETCHED_OUT
  132. createAction.sep1.topAttachment: XmATTACH_OPPOSITE_WIDGET
  133. createAction.sep1.topWidget: optLabel
  134. createAction.sep1.topOffset: 10
  135. createAction.sep1.leftAttachment: XmATTACH_FORM
  136. createAction.sep1.rightAttachment: XmATTACH_WIDGET
  137. createAction.sep1.rightWidget: optLabel
  138. createAction.sep1.rightOffset: 5
  139. createAction.sep2.type: SeparatorField
  140. createAction.sep2.orientation: Horizontal
  141. createAction.sep2.separatorType: SHADOW_ETCHED_OUT
  142. createAction.sep2.topAttachment: XmATTACH_OPPOSITE_WIDGET
  143. createAction.sep2.topWidget: optLabel
  144. createAction.sep2.topOffset: 10
  145. createAction.sep2.leftAttachment: XmATTACH_WIDGET
  146. createAction.sep2.leftWidget: optLabel
  147. createAction.sep2.leftOffset: 5
  148. createAction.sep2.rightAttachment: XmATTACH_FORM
  149. !
  150. ! In this block, localize label
  151. !
  152. createAction.promptLabel.type: LabelField
  153. createAction.promptLabel.topOffset: 20
  154. createAction.promptLabel.leftOffset: 20
  155. createAction.promptLabel.topAttachment: XmATTACH_WIDGET
  156. createAction.promptLabel.topWidget: optLabel
  157. createAction.promptLabel.leftAttachment: XmATTACH_FORM
  158. createAction.promptLabel.label: %|nls-18-#Filename Prompt:#|
  159. createAction.prompt.type: TextField
  160. createAction.prompt.crMovesToNextTextField: True
  161. createAction.prompt.lines: 1
  162. createAction.prompt.topAttachment: XmATTACH_WIDGET
  163. createAction.prompt.topWidget: promptLabel
  164. createAction.prompt.topOffset: 5
  165. createAction.prompt.leftAttachment: XmATTACH_FORM
  166. createAction.prompt.leftOffset: 40
  167. createAction.prompt.rightAttachment: XmATTACH_FORM
  168. createAction.prompt.rightOffset: 10
  169. !
  170. ! In this block, localize label
  171. !
  172. createAction.largeIconLabel.type: LabelField
  173. createAction.largeIconLabel.topOffset: 30
  174. createAction.largeIconLabel.leftOffset: 20
  175. createAction.largeIconLabel.topAttachment: XmATTACH_WIDGET
  176. createAction.largeIconLabel.topWidget: prompt
  177. createAction.largeIconLabel.leftAttachment: XmATTACH_FORM
  178. createAction.largeIconLabel.label: %|nls-19-#Large Icon:#|
  179. createAction.largeIcon.type: TextField
  180. createAction.largeIcon.crMovesToNextTextField: True
  181. createAction.largeIcon.topAttachment: XmATTACH_OPPOSITE_WIDGET
  182. createAction.largeIcon.topWidget: largeIconLabel
  183. createAction.largeIcon.topOffset: -7
  184. createAction.largeIcon.leftAttachment: XmATTACH_WIDGET
  185. createAction.largeIcon.leftWidget: largeIconLabel
  186. createAction.largeIcon.leftOffset: 20
  187. createAction.largeIcon.rightAttachment: XmATTACH_FORM
  188. createAction.largeIcon.rightOffset: 10
  189. !
  190. ! In this block, localize label
  191. !
  192. createAction.smallIconLabel.type: LabelField
  193. createAction.smallIconLabel.topOffset: 20
  194. createAction.smallIconLabel.leftOffset: 20
  195. createAction.smallIconLabel.topAttachment: XmATTACH_WIDGET
  196. createAction.smallIconLabel.topWidget: largeIconLabel
  197. createAction.smallIconLabel.leftAttachment: XmATTACH_FORM
  198. createAction.smallIconLabel.label: %|nls-20-#Small Icon:#|
  199. createAction.smallIcon.type: TextField
  200. createAction.smallIcon.topAttachment: XmATTACH_OPPOSITE_WIDGET
  201. createAction.smallIcon.topWidget: smallIconLabel
  202. createAction.smallIcon.topOffset: -7
  203. createAction.smallIcon.leftAttachment: XmATTACH_OPPOSITE_WIDGET
  204. createAction.smallIcon.leftWidget: largeIcon
  205. createAction.smallIcon.rightAttachment: XmATTACH_FORM
  206. createAction.smallIcon.rightOffset: 10
  207. !
  208. ! In this block, localize label
  209. !
  210. createAction.descriptionLabel.type: LabelField
  211. createAction.descriptionLabel.topOffset: 20
  212. createAction.descriptionLabel.leftOffset: 20
  213. createAction.descriptionLabel.topAttachment: XmATTACH_WIDGET
  214. createAction.descriptionLabel.topWidget: smallIconLabel
  215. createAction.descriptionLabel.leftAttachment: XmATTACH_FORM
  216. createAction.descriptionLabel.label: %|nls-21-#Description:#|
  217. createAction.description.type: TextField
  218. createAction.description.lines: 4
  219. createAction.description.topAttachment: XmATTACH_WIDGET
  220. createAction.description.topWidget: descriptionLabel
  221. createAction.description.topOffset: 5
  222. createAction.description.leftAttachment: XmATTACH_FORM
  223. createAction.description.leftOffset: 40
  224. createAction.description.rightAttachment: XmATTACH_FORM
  225. createAction.description.rightOffset: 10
  226. createAction.description.bottomAttachment: XmATTACH_FORM
  227. createAction.description.bottomOffset: 20
  228. !
  229. ! To display this dialog:
  230. ! 1. Run CreateAction
  231. ! 2. Type something in the 'Command Line:' field but not
  232. ! the 'Name:' field.
  233. ! 3. Press 'OK'
  234. !
  235. ! In this block, localize title, ok.label, and message.
  236. !
  237. noName.type: ErrorDialog
  238. noName.title: %|nls-3-#Create Action - Error#|
  239. noName.helpTitle: %|nls-2-#Create Action - Help#|
  240. noName.helpType: Topic
  241. noName.helpVolume: Dtmisc
  242. noName.helpLocation: ToUseMakeActionTA
  243. noName.dialogButtons: ok
  244. noName.ok.label: %|nls-8-#OK#|
  245. noName.ok.isDefault: True
  246. noName.ok.action: f.unpost
  247. noName.message: %|nls-22-#You must supply a name....#|
  248. !
  249. ! To display this dialog:
  250. ! 1. Run CreateAction
  251. ! 2. Type something in the 'Name:' field but not
  252. ! the 'Command Line:' field.
  253. ! 3. Press 'OK'
  254. !
  255. ! In this block, localize title, ok.label, and message.
  256. !
  257. noExecString.type: ErrorDialog
  258. noExecString.title: %|nls-3-#Create Action - Error#|
  259. noExecString.helpTitle: %|nls-2-#Create Action - Help#|
  260. noExecString.helpType: Topic
  261. noExecString.helpVolume: Dtmisc
  262. noExecString.helpLocation: ToUseMakeActionTA
  263. noExecString.dialogButtons: ok
  264. noExecString.ok.label: %|nls-8-#OK#|
  265. noExecString.ok.isDefault: True
  266. noExecString.ok.action: f.unpost
  267. noExecString.message: %|nls-23-#You must supply a command....#|
  268. !
  269. ! To display this dialog:
  270. ! 1. Run CreateAction
  271. ! 2. Do not type in anything
  272. ! 3. Press 'OK'
  273. !
  274. ! In this block, localize title, ok.label, and message.
  275. !
  276. noNameOrExec.type: ErrorDialog
  277. noNameOrExec.title: %|nls-3-#Create Action - Error#|
  278. noNameOrExec.helpTitle: %|nls-2-#Create Action - Help#|
  279. noNameOrExec.helpType: Topic
  280. noNameOrExec.helpVolume: Dtmisc
  281. noNameOrExec.helpLocation: ToUseMakeActionTA
  282. noNameOrExec.dialogButtons: ok
  283. noNameOrExec.ok.label: %|nls-8-#OK#|
  284. noNameOrExec.ok.isDefault: True
  285. noNameOrExec.ok.action: f.unpost
  286. noNameOrExec.message: \
  287. %|nls-24-#You must supply a name and....#|
  288. !
  289. ! To display this dialog:
  290. ! 1. Run CreateAction
  291. ! 2. Type something in the 'Name:' field that contains
  292. ! a blank
  293. ! 3. Press 'OK'
  294. !
  295. ! In this block, localize title, ok.label, and message.
  296. !
  297. foundBlank.type: ErrorDialog
  298. foundBlank.title: %|nls-3-#Create Action - Error#|
  299. foundBlank.helpTitle: %|nls-2-#Create Action - Help#|
  300. foundBlank.helpType: Topic
  301. foundBlank.helpVolume: Dtmisc
  302. foundBlank.helpLocation: ToUseMakeActionTA
  303. foundBlank.dialogButtons: ok
  304. foundBlank.ok.label: %|nls-8-#OK#|
  305. foundBlank.ok.isDefault: True
  306. foundBlank.ok.action: f.unpost
  307. foundBlank.message: %|nls-25-#The action name....#|
  308. !
  309. ! To display this dialog:
  310. ! 1. Run CreateAction
  311. ! 2. Type something longer than 11 characters in the 'Name:' field.
  312. ! 3. Type something in the 'Command Line:' field.
  313. ! 4. Press 'OK'
  314. !
  315. ! In this block, localize title, ok.label, cancel.label, and message.
  316. !
  317. longName.type: WarningDialog
  318. longName.title: %|nls-4-#Create Action - Warning#|
  319. longName.helpTitle: %|nls-2-#Create Action - Help#|
  320. longName.helpType: Topic
  321. longName.helpVolume: Dtmisc
  322. longName.helpLocation: ToUseMakeActionTA
  323. longName.dialogButtons: ok,cancel
  324. longName.ok.label: %|nls-8-#OK#|
  325. longName.ok.isDefault: True
  326. longName.ok.action: f.unpost
  327. longName.cancel.label: %|nls-9-#Cancel#|
  328. longName.cancel.action: f.unpost
  329. longName.message: \
  330. %|nls-26-#The following action name....#|
  331. !
  332. ! To display this dialog:
  333. ! 1. Run CreateAction
  334. ! 2. Fill out the 'Name:' field.
  335. ! 3. Type 'foo | bar' in the 'Command Line:' field.
  336. ! 4. Press 'OK'
  337. !
  338. ! In this block, localize title, ok.label, and message.
  339. !
  340. needShell.type: ErrorDialog
  341. needShell.title: %|nls-3-#Create Action - Error#|
  342. needShell.helpTitle: %|nls-2-#Create Action - Help#|
  343. needShell.helpType: Topic
  344. needShell.helpVolume: Dtmisc
  345. needShell.helpLocation: ToUseMakeActionTA
  346. needShell.dialogButtons: ok
  347. needShell.ok.label: %|nls-8-#OK#|
  348. needShell.ok.isDefault: True
  349. needShell.ok.action: f.unpost
  350. needShell.message: \
  351. %|nls-27-#The command line for your....#|
  352. !
  353. ! To display this dialog:
  354. ! 1. Run CreateAction
  355. ! 2. Fill out the 'Name:' field.
  356. ! 3. Type 'echo $*' in the 'Command Line:' field.
  357. ! 4. Type 'Quote "' in the 'Filename Prompt:' field.
  358. ! 5. Press 'OK'
  359. !
  360. ! In this block, localize title, ok.label, and message.
  361. !
  362. promptQuote.type: ErrorDialog
  363. promptQuote.title: %|nls-3-#Create Action - Error#|
  364. promptQuote.helpTitle: %|nls-2-#Create Action - Help#|
  365. promptQuote.helpType: Topic
  366. promptQuote.helpVolume: Dtmisc
  367. promptQuote.helpLocation: ToUseMakeActionTA
  368. promptQuote.dialogButtons: ok
  369. promptQuote.ok.label: %|nls-8-#OK#|
  370. promptQuote.ok.isDefault: True
  371. promptQuote.ok.action: f.unpost
  372. promptQuote.message: \
  373. %|nls-28-#The 'Filename Prompt:' field....#|
  374. !
  375. ! To display this dialog:
  376. ! 1. Run CreateAction
  377. ! 2. Fill out the 'Name:' field.
  378. ! 3. Type 'echo hi' in the 'Command Line:' field.
  379. ! 4. Type 'Filename:' in the 'Filename Prompt:' field.
  380. ! 5. Press 'OK'
  381. !
  382. ! In this block, localize title, ok.label, and message.
  383. !
  384. unusedPrompt.type: ErrorDialog
  385. unusedPrompt.title: %|nls-3-#Create Action - Error#|
  386. unusedPrompt.helpTitle: %|nls-2-#Create Action - Help#|
  387. unusedPrompt.helpType: Topic
  388. unusedPrompt.helpVolume: Dtmisc
  389. unusedPrompt.helpLocation: ToUseMakeActionTA
  390. unusedPrompt.dialogButtons: ok
  391. unusedPrompt.ok.label: %|nls-8-#OK#|
  392. unusedPrompt.ok.isDefault: True
  393. unusedPrompt.ok.action: f.unpost
  394. unusedPrompt.message: \
  395. %|nls-29-#The cmd line must use....#|
  396. !
  397. ! To display this dialog:
  398. ! 1. Touch $HOME/.dt/types/test.vf
  399. ! 2. chmod 444 $HOME/.dt/types/test.vf
  400. ! 3. Run CreateAction
  401. ! 4. Type 'test' in the 'Name:' field.
  402. ! 5. Type 'echo hi' in the 'Command Line:' field.
  403. ! 6. Press 'OK'
  404. !
  405. ! In this block, localize title, ok.label, and message
  406. !
  407. notWritable.type: ErrorDialog
  408. notWritable.title: %|nls-3-#Create Action - Error#|
  409. notWritable.helpTitle: %|nls-2-#Create Action - Help#|
  410. notWritable.helpType: Topic
  411. notWritable.helpVolume: Dtmisc
  412. notWritable.helpLocation: ToUseMakeActionTA
  413. notWritable.dialogButtons: ok
  414. notWritable.ok.label: %|nls-8-#OK#|
  415. notWritable.ok.isDefault: True
  416. notWritable.ok.action: f.unpost
  417. notWritable.message: \
  418. %|nls-30-#The following action definition....#|
  419. !
  420. ! To display this dialog:
  421. ! 1. rm $HOME/.dt/types/test.vf $HOME/.dt/types/tools/test
  422. ! 2. Run CreateAction
  423. ! 3. Type 'test' in the 'Name:' field.
  424. ! 4. Type 'echo hi' in the 'Command Line:' field.
  425. ! 5. Press 'OK'
  426. !
  427. ! In this block, localize title, ok.label, and message.
  428. !
  429. actionExists.type: InformationDialog
  430. actionExists.title: %|nls-1-#Create Action#|
  431. actionExists.helpTitle: %|nls-2-#Create Action - Help#|
  432. actionExists.helpType: Topic
  433. actionExists.helpVolume: Dtmisc
  434. actionExists.helpLocation: ToUseMakeActionTA
  435. actionExists.dialogButtons: ok
  436. actionExists.ok.label: %|nls-8-#OK#|
  437. actionExists.ok.isDefault: True
  438. actionExists.ok.action: f.unpost
  439. actionExists.message: \
  440. %|nls-32-#You have defined....#|\
  441. \n\
  442. %|nls-33-#If you are running....#|
  443. !
  444. ! To display this dialog:
  445. ! 1. rm $HOME/.dt/types/test.vf
  446. ! 2. touch $HOME/.dt/types/tools/test
  447. ! 3. chmod 444 $HOME/.dt/types/tools/test
  448. ! 4. Run CreateAction
  449. ! 5. Type 'test' in the 'Name:' field.
  450. ! 6. Type 'echo hi' in the 'Command Line:' field.
  451. ! 7. Press 'OK'
  452. !
  453. ! In this block, localize title, ok.label, and message
  454. !
  455. actionDoesntExist.type: InformationDialog
  456. actionDoesntExist.title: %|nls-1-#Create Action#|
  457. actionDoesntExist.helpTitle: %|nls-2-#Create Action - Help#|
  458. actionDoesntExist.helpType: Topic
  459. actionDoesntExist.helpVolume: Dtmisc
  460. actionDoesntExist.helpLocation: ToUseMakeActionTA
  461. actionDoesntExist.dialogButtons: ok
  462. actionDoesntExist.ok.label: %|nls-8-#OK#|
  463. actionDoesntExist.ok.isDefault: True
  464. actionDoesntExist.ok.action: f.unpost
  465. actionDoesntExist.message: \
  466. %|nls-32-#You have defined....#|\
  467. \n\
  468. %|nls-31-#An icon for this action....#|