mac_res.r 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. /* $Id: mac_res.r,v 1.1.2.18 1999/09/01 22:16:15 ben Exp $ */
  2. /*
  3. * Copyright (c) 1999 Ben Harris
  4. * All rights reserved.
  5. *
  6. * Permission is hereby granted, free of charge, to any person
  7. * obtaining a copy of this software and associated documentation
  8. * files (the "Software"), to deal in the Software without
  9. * restriction, including without limitation the rights to use,
  10. * copy, modify, merge, publish, distribute, sublicense, and/or
  11. * sell copies of the Software, and to permit persons to whom the
  12. * Software is furnished to do so, subject to the following
  13. * conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be
  16. * included in all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
  22. * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  23. * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  24. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  25. * SOFTWARE.
  26. */
  27. /* PuTTY resources */
  28. #include "Types.r"
  29. #include "Dialogs.r"
  30. #include "Palettes.r"
  31. /* Get resource IDs we share with C code */
  32. #include "macresid.h"
  33. /*
  34. * Finder-related resources
  35. */
  36. /* 'pTTY' is now registered with Apple as PuTTY's signature */
  37. type 'pTTY' as 'STR ';
  38. resource 'pTTY' (0, purgeable) {
  39. "PuTTY experimental Mac port"
  40. };
  41. resource 'SIZE' (-1) {
  42. reserved,
  43. ignoreSuspendResumeEvents,
  44. reserved,
  45. cannotBackground,
  46. needsActivateOnFGSwitch,
  47. backgroundAndForeground,
  48. dontGetFrontClicks,
  49. ignoreAppDiedEvents,
  50. is32BitCompatible,
  51. notHighLevelEventAware,
  52. onlyLocalHLEvents,
  53. notStationeryAware,
  54. useTextEditServices,
  55. reserved,
  56. reserved,
  57. reserved,
  58. 1024 * 1024, /* Minimum size */
  59. 1024 * 1024, /* Preferred size */
  60. };
  61. resource 'FREF' (128, purgeable) {
  62. /* The application itself */
  63. 'APPL', 128, ""
  64. };
  65. resource 'FREF' (129, purgeable) {
  66. /* Saved session */
  67. 'Sess', 129, ""
  68. };
  69. resource 'FREF' (130, purgeable) {
  70. /* SSH host keys database */
  71. 'HKey', 130, ""
  72. };
  73. resource 'BNDL' (128, purgeable) {
  74. 'pTTY', 0,
  75. {
  76. 'ICN#', {
  77. 128, 128,
  78. 129, 129,
  79. 130, 130
  80. },
  81. 'FREF', {
  82. 128, 128,
  83. 129, 129,
  84. 130, 130
  85. };
  86. };
  87. };
  88. /* Icons, courtesy of DeRez */
  89. /* Application icon */
  90. resource 'ICN#' (128, purgeable) {
  91. { /* array: 2 elements */
  92. /* [1] */
  93. $"00003FFE 00004001 00004FF9 00005005"
  94. $"00005355 00004505 00005A05 00002405"
  95. $"00004A85 00019005 000223F9 00047C01"
  96. $"00180201 7FA00C7D 801F1001 9FE22001"
  97. $"A00CDFFE AA892002 A0123FFE A82C0000"
  98. $"A0520000 AA6A0000 A00A0000 9FF20000"
  99. $"80020000 80020000 90FA0000 80020000"
  100. $"80020000 7FFC0000 40040000 7FFC",
  101. /* [2] */
  102. $"00003FFE 00007FFF 00007FFF 00007FFF"
  103. $"00007FFF 00007FFF 00007FFF 00007FFF"
  104. $"00007FFF 0001FFFF 0003FFFF 0007FFFF"
  105. $"001FFFFF 7FFFFFFF FFFFFFFF FFFFFFFF"
  106. $"FFFFFFFE FFFF3FFE FFFE3FFE FFFE0000"
  107. $"FFFE0000 FFFE0000 FFFE0000 FFFE0000"
  108. $"FFFE0000 FFFE0000 FFFE0000 FFFE0000"
  109. $"FFFE0000 7FFC0000 7FFC0000 7FFC"
  110. }
  111. };
  112. resource 'icl4' (128, purgeable) {
  113. $"000000000000000000FFFFFFFFFFFFF0"
  114. $"00000000000000000FCCCCCCCCCCCCCF"
  115. $"00000000000000000FCEEEEEEEEEEECF"
  116. $"00000000000000000FCE0D0D0D0D0CCF"
  117. $"00000000000000000FCED0FFD0D0D0CF"
  118. $"00000000000000000FCE0F1F0D0D0CCF"
  119. $"00000000000000000FCFF1F0D0D0D0CF"
  120. $"00000000000000000FF11F0D0D0D0CCF"
  121. $"00000000000000000F11F0D0D0D0D0CF"
  122. $"000000000000000FF11F0D0D0D0D0CCF"
  123. $"00000000000000F111FEC0C0C0C0C0CF"
  124. $"0000000000000F111FFFFFCCCCCCCCCF"
  125. $"00000000000FF111111111FCCCCCCCCF"
  126. $"0FFFFFFFFFF111111111FFCCCFFFFFCF"
  127. $"FCCCCCCCCCCFFFFF111F3CCCCCCCCCCF"
  128. $"FCEEEEEEEEEEECF111FCCCCCCCCCCCCF"
  129. $"FCE0D0D0D0D0FF11FFFFFFFFFFFFFFF0"
  130. $"FCED0D0D0D0DF11F00FCCCDDDEEEEAF0"
  131. $"FCE0D0D0D0DF11F000FFFFFFFFFFFFF0"
  132. $"FCED0D0D0DF1FFF00000000000000000"
  133. $"FCE0D0D0DF1FCCF00000000000000000"
  134. $"FCED0D0D0FFD0CF00000000000000000"
  135. $"FCE0D0D0D0D0CCF00000000000000000"
  136. $"FCEC0C0C0C0C0CF00000000000000000"
  137. $"FCCCCCCCCCCCCCF00000000000000000"
  138. $"FCCCCCCCCCCCCCF00000000000000000"
  139. $"FC88CCCCFFFFFCF00000000000000000"
  140. $"FC33CCCCCCCCCCF00000000000000000"
  141. $"FCCCCCCCCCCCCCF00000000000000000"
  142. $"0FFFFFFFFFFFFF000000000000000000"
  143. $"0FCCCDDDEEEEAF000000000000000000"
  144. $"0FFFFFFFFFFFFF"
  145. };
  146. resource 'icl8' (128, purgeable) {
  147. $"000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFF00"
  148. $"0000000000000000000000000000000000FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF"
  149. $"0000000000000000000000000000000000FF2BFCFCFCFCFCFCFCFCFCFCFC2BFF"
  150. $"0000000000000000000000000000000000FF2BFC2A2A2A2A2A2A2A2A2A002BFF"
  151. $"0000000000000000000000000000000000FF2BFC2A2AFFFF2A2A2A2A2A002BFF"
  152. $"0000000000000000000000000000000000FF2BFC2AFF05FF2A2A2A2A2A002BFF"
  153. $"0000000000000000000000000000000000FF2BFFFF05FF2A2A2A2A2A2A002BFF"
  154. $"0000000000000000000000000000000000FFFF0505FF2A2A2A2A2A2A2A002BFF"
  155. $"0000000000000000000000000000000000FF0505FF2A2A2A2A2A2A2A2A002BFF"
  156. $"000000000000000000000000000000FFFF0505FF2A2A2A2A2A2A2A2A2A002BFF"
  157. $"0000000000000000000000000000FF050505FFFC000000000000000000002BFF"
  158. $"00000000000000000000000000FF050505FFFFFFFFFF2B2B2B2B2B2B2B2B2BFF"
  159. $"0000000000000000000000FFFF050505050505050505FF2B2B2B2B2B2B2B2BFF"
  160. $"00FFFFFFFFFFFFFFFFFFFF050505050505050505FFFF2B2B2BFFFFFFFFFF2BFF"
  161. $"FF2B2B2B2B2B2B2B2B2B2BFFFFFFFFFF050505FFD82B2B2B2B2B2B2B2B2B2BFF"
  162. $"FF2BFCFCFCFCFCFCFCFCFCFCFC2BFF050505FF2B2B2B2B2B2B2B2B2B2B2B2BFF"
  163. $"FF2BFC2A2A2A2A2A2A2A2A2AFFFF0505FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00"
  164. $"FF2BFC2A2A2A2A2A2A2A2A2AFF0505FF0000FF2BF7F8F9FAFAFBFBFCFCFDFF00"
  165. $"FF2BFC2A2A2A2A2A2A2A2AFF0505FF000000FFFFFFFFFFFFFFFFFFFFFFFFFF00"
  166. $"FF2BFC2A2A2A2A2A2A2AFF05FFFFFF0000000000000000000000000000000000"
  167. $"FF2BFC2A2A2A2A2A2AFF05FF002BFF0000000000000000000000000000000000"
  168. $"FF2BFC2A2A2A2A2A2AFFFF2A002BFF0000000000000000000000000000000000"
  169. $"FF2BFC2A2A2A2A2A2A2A2A2A002BFF0000000000000000000000000000000000"
  170. $"FF2BFC000000000000000000002BFF0000000000000000000000000000000000"
  171. $"FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
  172. $"FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
  173. $"FF2BE3E32B2B2B2BFFFFFFFFFF2BFF0000000000000000000000000000000000"
  174. $"FF2BD8D82B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
  175. $"FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
  176. $"00FFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000"
  177. $"00FF2BF7F8F9FAFAFBFBFCFCFDFF000000000000000000000000000000000000"
  178. $"00FFFFFFFFFFFFFFFFFFFFFFFFFF"
  179. };
  180. resource 'ics#' (128, purgeable) {
  181. { /* array: 2 elements */
  182. /* [1] */
  183. $"00FF 0081 00BD 00A5 00A5 00BD FF81 818D"
  184. $"BD81 A57E A500 BD00 8100 8D00 8100 7E",
  185. /* [2] */
  186. $"00FF 00FF 00FF 00FF 00FF 00FF FFFF FFFF"
  187. $"FFFF FF7E FF00 FF00 FF00 FF00 FF00 7E"
  188. }
  189. };
  190. /* Known hosts icon */
  191. resource 'ICN#' (130, purgeable) {
  192. { /* array: 2 elements */
  193. /* [1] */
  194. $"1FFFFC00 10000600 10000500 1FFFFC80"
  195. $"10000440 10000420 1FFFFFF0 10000010"
  196. $"13FC0F90 1C03F0F0 15FA8090 150A8090"
  197. $"1D0B80F0 150A8050 15FA8050 1C038070"
  198. $"143A8050 14028050 1FFFABF0 12048110"
  199. $"13FCFF10 1AAAAAB0 10000010 17FFFFD0"
  200. $"14000050 15252250 15555550 15252250"
  201. $"14000050 17FFFFD0 10000010 1FFFFFF0",
  202. /* [2] */
  203. $"1FFFFC00 1FFFFE00 1FFFFF00 1FFFFF80"
  204. $"1FFFFFC0 1FFFFFE0 1FFFFFF0 1FFFFFF0"
  205. $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
  206. $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
  207. $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
  208. $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
  209. $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
  210. $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
  211. }
  212. };
  213. resource 'icl4' (130, purgeable) {
  214. $"000FFFFFFFFFFFFFFFFFFF0000000000"
  215. $"000F00000000000000000FF000000000"
  216. $"000F00000000000000000FCF00000000"
  217. $"000FFFFFFFFFFFFFFFFFFFCCF0000000"
  218. $"000F00000000000000000FCCCF000000"
  219. $"000F00000000000000000FCCCCF00000"
  220. $"000FFFFFFFFFFFFFFFFFFFFFFFFF0000"
  221. $"000F00000000000000000000000F0000"
  222. $"000F00FFFFFFFF000000FFFFF00F0000"
  223. $"000FFFCCCCCCCCFFFFFFCCCCFFFF0000"
  224. $"000F0FCEEEEECCF0FCCCCCCCF00F0000"
  225. $"000F0FCE0D0D0CF0FCCCCCCCF00F0000"
  226. $"000FFFCED0D0CCFFFCCCCCCCFFFF0000"
  227. $"000F0FCE0D0D0CF0FCCCCCCCCF0F0000"
  228. $"000F0FCCC0C0CCF0FCCCCCCCCF0F0000"
  229. $"000FFFCCCCCCCCFFFCCCCCCCCFFF0000"
  230. $"000F0FCCCCFFFCF0FCCCCCCCCF0F0000"
  231. $"000F0FCCCCCCCCF0FCCCCCCCCF0F0000"
  232. $"000FFFFFFFFFFFFFFDDDDDDFFFFF0000"
  233. $"000F00FCCDDEEF00FDDDDDDF000F0000"
  234. $"000F00FFFFFFFF00FFFFFFFF000F0000"
  235. $"000F0C0C0C0C0C0C0C0C0C0C0C0F0000"
  236. $"000FC0C0C0C0C0C0C0C0C0C0C0CF0000"
  237. $"000F0FFFFFFFFFFFFFFFFFFFFF0F0000"
  238. $"000FCF0000000000000000000FCF0000"
  239. $"000F0F0F00F00F0F00F000F00F0F0000"
  240. $"000FCF0F0F0F0F0F0F0F0F0F0FCF0000"
  241. $"000F0F0F00F00F0F00F000F00F0F0000"
  242. $"000FCF0000000000000000000FCF0000"
  243. $"000F0FFFFFFFFFFFFFFFFFFFFF0F0000"
  244. $"000FC0C0C0C0C0C0C0C0C0C0C0CF0000"
  245. $"000FFFFFFFFFFFFFFFFFFFFFFFFF"
  246. };
  247. resource 'icl8' (130, purgeable) {
  248. $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000"
  249. $"000000FF0000000000000000000000000000000000FFFF000000000000000000"
  250. $"000000FF0000000000000000000000000000000000FFF6FF0000000000000000"
  251. $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6F6FF00000000000000"
  252. $"000000FF0000000000000000000000000000000000FFF6F6F6FF000000000000"
  253. $"000000FF0000000000000000000000000000000000FFF6F6F6F6FF0000000000"
  254. $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000"
  255. $"000000FF0000000000000000000000000000000000000000000000FF00000000"
  256. $"000000FF0000FFFFFFFFFFFFFFFF000000000000FFFFFFFFFF0000FF00000000"
  257. $"000000FFFFFF2B2B2B2B2B2B2B2BFFFFFFFFFFFF2B2B2B2BFFFFFFFF00000000"
  258. $"000000FF00FF2BFCFCFCFCFCF82BFF00FF2B2B2B2B2B2B2BFF0000FF00000000"
  259. $"000000FF00FF2BFC2A2A2A2A002BFF00FF2B2B2B2B2B2B2BFF0000FF00000000"
  260. $"000000FFFFFF2BFC2A2A2A2A002BFFFFFF2B2B2B2B2B2B2BFFFFFFFF00000000"
  261. $"000000FF00FF2BFC2A2A2A2A002BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
  262. $"000000FF00FF2BF800000000002BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
  263. $"000000FFFFFF2B2B2B2B2B2B2B2BFFFFFF2B2B2B2B2B2B2B2BFFFFFF00000000"
  264. $"000000FF00FF2B2B2B2BFFFFFF2BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
  265. $"000000FF00FF2B2B2B2B2B2B2B2BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
  266. $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F9F9F9F9F9FFFFFFFFFF00000000"
  267. $"000000FF0000FFF7F8F9FAFBFCFF0000FFF9F9F9F9F9F9FF000000FF00000000"
  268. $"000000FF0000FFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFF000000FF00000000"
  269. $"000000FFF5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5FF00000000"
  270. $"000000FFF5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5FF00000000"
  271. $"000000FFF5FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5FF00000000"
  272. $"000000FFF5FF00000000000000000000000000000000000000FFF5FF00000000"
  273. $"000000FFF5FF00FF0000FF0000FF00FF0000FF000000FF0000FFF5FF00000000"
  274. $"000000FFF5FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FFF5FF00000000"
  275. $"000000FFF5FF00FF0000FF0000FF00FF0000FF000000FF0000FFF5FF00000000"
  276. $"000000FFF5FF00000000000000000000000000000000000000FFF5FF00000000"
  277. $"000000FFF5FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5FF00000000"
  278. $"000000FFF5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5FF00000000"
  279. $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
  280. };
  281. /*
  282. * Internal resources
  283. */
  284. /* Menu bar */
  285. resource 'MBAR' (MBAR_Main, preload) {
  286. { mApple, mFile, mEdit }
  287. };
  288. resource 'MENU' (mApple, preload) {
  289. mApple,
  290. textMenuProc,
  291. 0b11111111111111111111111111111101,
  292. enabled,
  293. apple,
  294. {
  295. "About PuTTYÉ", noicon, nokey, nomark, plain,
  296. "-", noicon, nokey, nomark, plain,
  297. }
  298. };
  299. resource 'MENU' (mFile, preload) {
  300. mFile,
  301. textMenuProc,
  302. 0b11111111111111111111111111111011,
  303. enabled,
  304. "File",
  305. {
  306. "New Session", noicon, "N", nomark, plain,
  307. "Close", noicon, "W", nomark, plain,
  308. "-", noicon, nokey, nomark, plain,
  309. "Quit", noicon, "Q", nomark, plain,
  310. }
  311. };
  312. resource 'MENU' (mEdit, preload) {
  313. mEdit,
  314. textMenuProc,
  315. 0b11111111111111111111111111111101,
  316. enabled,
  317. "Edit",
  318. {
  319. "Undo", noicon, "Z", nomark, plain,
  320. "-", noicon, nokey, nomark, plain,
  321. "Cut", noicon, "X", nomark, plain,
  322. "Copy", noicon, "C", nomark, plain,
  323. "Paste", noicon, "V", nomark, plain,
  324. "Clear", noicon, nokey, nomark, plain,
  325. "Select All", noicon, "A", nomark, plain,
  326. }
  327. };
  328. /* Fatal error box. Stolen from the Finder. */
  329. resource 'ALRT' (wFatal, "fatalbox", purgeable) {
  330. {54, 67, 152, 435},
  331. wFatal,
  332. beepStages,
  333. alertPositionMainScreen
  334. };
  335. resource 'DITL' (wFatal, "fatalbox", purgeable) {
  336. { /* array DITLarray: 3 elements */
  337. /* [1] */
  338. {68, 299, 88, 358},
  339. Button {
  340. enabled,
  341. "OK"
  342. },
  343. /* [2] */
  344. {68, 227, 88, 286},
  345. StaticText {
  346. disabled,
  347. ""
  348. },
  349. /* [3] */
  350. {7, 74, 55, 358},
  351. StaticText {
  352. disabled,
  353. "^0"
  354. }
  355. }
  356. };
  357. /* Terminal window */
  358. resource 'WIND' (wTerminal, "terminal", purgeable) {
  359. { 0, 0, 200, 200 },
  360. zoomDocProc,
  361. invisible,
  362. goAway,
  363. 0x0,
  364. "untitled",
  365. staggerParentWindowScreen
  366. };
  367. resource 'CNTL' (cVScroll, "vscroll", purgeable) {
  368. { 0, 0, 48, 16 },
  369. 0, invisible, 0, 0,
  370. scrollBarProc, 0, ""
  371. };
  372. /* "About" box */
  373. resource 'DLOG' (wAbout, "about", purgeable) {
  374. { 0, 0, 120, 240 },
  375. noGrowDocProc,
  376. invisible,
  377. goAway,
  378. wAbout, /* RefCon -- identifies the window to PuTTY */
  379. wAbout, /* DITL ID */
  380. "About PuTTY",
  381. alertPositionMainScreen
  382. };
  383. resource 'dlgx' (wAbout, "about", purgeable) {
  384. versionZero {
  385. kDialogFlagsUseThemeBackground | kDialogFlagsUseThemeControls
  386. }
  387. };
  388. resource 'DITL' (wAbout, "about", purgeable) {
  389. {
  390. { 87, 13, 107, 227 },
  391. Button { enabled, "View Licence" },
  392. { 13, 13, 29, 227 },
  393. StaticText { disabled, "PuTTY"},
  394. { 42, 13, 74, 227 },
  395. StaticText { disabled, "Some version or other\n"
  396. "Copyright © 1997-9 Simon Tatham"},
  397. }
  398. };
  399. /* Licence box */
  400. resource 'WIND' (wLicence, "licence", purgeable) {
  401. { 0, 0, 300, 300 },
  402. noGrowDocProc,
  403. visible,
  404. goAway,
  405. wLicence,
  406. "PuTTY Licence",
  407. alertPositionParentWindowScreen
  408. };
  409. type 'TEXT' {
  410. string;
  411. };
  412. resource 'TEXT' (wLicence, "licence", purgeable) {
  413. "Copyright © 1997-9 Simon Tatham\n"
  414. "Portions copyright © 1999 Ben Harris\n"
  415. "Portions copyright © 1993 Eric Young\n"
  416. "Portions copyright © 1986 Gary S. Brown\n"
  417. "\n"
  418. "Permission is hereby granted, free of charge, to any person "
  419. "obtaining a copy of this software and associated documentation "
  420. "files (the \"Software\"), to deal in the Software without "
  421. "restriction, including without limitation the rights to use, "
  422. "copy, modify, merge, publish, distribute, sublicense, and/or "
  423. "sell copies of the Software, and to permit persons to whom the "
  424. "Software is furnished to do so, subject to the following "
  425. "conditions:\n\n"
  426. "The above copyright notice and this permission notice shall be "
  427. "included in all copies or substantial portions of the Software.\n\n"
  428. "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, "
  429. "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF "
  430. "MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND "
  431. "NONINFRINGEMENT. IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR "
  432. "ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF "
  433. "CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN "
  434. "CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE "
  435. "SOFTWARE."
  436. };
  437. /* Default Preferences */
  438. type PREF_wordness_type {
  439. wide array [256] {
  440. integer;
  441. };
  442. };
  443. /*
  444. * This resource collects together the various short settings we need.
  445. * Each area of the system gets its own longword for flags, and then
  446. * we have the other settings. Strings are stored as two shorts --
  447. * the id of a STR# or STR resource, and the index if it's a STR# (0
  448. * for STR).
  449. */
  450. type 'pSET' {
  451. /* Basic boolean options */
  452. boolean dont_close_on_exit, close_on_exit;
  453. align long;
  454. /* SSH options */
  455. boolean use_pty, no_pty;
  456. align long;
  457. /* Telnet options */
  458. boolean bsd_environ, rfc_environ;
  459. align long;
  460. /* Keyboard options */
  461. boolean backspace, delete;
  462. boolean std_home_end, rxvt_home_end;
  463. boolean std_funkeys, linux_funkeys;
  464. boolean normal_cursor, app_cursor;
  465. boolean normal_keypad, app_keypad;
  466. align long;
  467. /* Terminal options */
  468. boolean no_dec_om, dec_om;
  469. boolean no_auto_wrap, auto_wrap;
  470. boolean no_auto_cr, auto_cr;
  471. boolean use_icon_name, win_name_always;
  472. align long;
  473. /* Colour options */
  474. boolean bold_font, bold_colour;
  475. align long;
  476. /* Selection options */
  477. boolean no_implicit_copy, implicit_copy;
  478. align long;
  479. /* Non-boolean options */
  480. integer; integer; /* host */
  481. longint; /* port */
  482. longint prot_telnet = 0, prot_ssh = 1; /* protocol */
  483. integer; integer; /* termtype */
  484. integer; integer; /* termspeed */
  485. integer; integer; /* environmt */
  486. integer; integer; /* username */
  487. longint; /* width */
  488. longint; /* height */
  489. longint; /* save_lines */
  490. integer; unsigned integer; /* font */
  491. longint; /* font_height */
  492. integer; /* 'pltt' for colours */
  493. integer; /* 'wORD' for wordness */
  494. integer; /* meta modifiers */
  495. };
  496. resource 'pSET' (PREF_settings, "settings", purgeable) {
  497. close_on_exit,
  498. use_pty,
  499. rfc_environ,
  500. delete,
  501. std_home_end,
  502. std_funkeys,
  503. normal_cursor,
  504. normal_keypad,
  505. no_dec_om,
  506. auto_wrap,
  507. no_auto_cr,
  508. use_icon_name,
  509. bold_font,
  510. no_implicit_copy,
  511. #define PREF_strings 1024
  512. PREF_strings, 1, /* host 'STR#' */
  513. 7, prot_telnet, /* port, protocol */
  514. PREF_strings, 2, /* termtype 'STR#' */
  515. PREF_strings, 3, /* termspeed 'STR#' */
  516. PREF_strings, 4, /* environmt 'STR#' */
  517. PREF_strings, 5, /* username */
  518. 80, 24, 200, /* width, height, save_lines */
  519. PREF_strings, 6, /* font 'STR#' */
  520. 9, /* font_height */
  521. #define PREF_pltt 1024
  522. PREF_pltt, /* colours 'pltt' */
  523. #define PREF_wordness 1024
  524. PREF_wordness, /* wordness 'wORD */
  525. 0x900, /* meta modifiers (cmd+option) */
  526. };
  527. resource 'STR#' (PREF_strings, "strings", purgeable) {
  528. {
  529. "172.17.11.11",
  530. "xterm",
  531. "38400,38400",
  532. "\000",
  533. "",
  534. "Monaco",
  535. }
  536. };
  537. resource PREF_wordness_type (PREF_wordness, "wordness", purgeable) {
  538. {
  539. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  540. 0,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,
  541. 1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,
  542. 1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,
  543. 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  544. 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  545. 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,
  546. 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2
  547. }
  548. };
  549. /*
  550. * and _why_ isn't this provided for us?
  551. */
  552. type 'TMPL' {
  553. array {
  554. pstring; /* Item name */
  555. literal longint; /* Item type */
  556. };
  557. };
  558. resource 'TMPL' (128, "pSET") {
  559. {
  560. "Close on exit", 'BBIT',
  561. "", 'BBIT', /* Must pad to a multiple of 8 */
  562. "", 'BBIT',
  563. "", 'BBIT',
  564. "", 'BBIT',
  565. "", 'BBIT',
  566. "", 'BBIT',
  567. "", 'BBIT',
  568. "", 'ALNG',
  569. "No PTY", 'BBIT',
  570. "", 'BBIT',
  571. "", 'BBIT',
  572. "", 'BBIT',
  573. "", 'BBIT',
  574. "", 'BBIT',
  575. "", 'BBIT',
  576. "", 'BBIT',
  577. "", 'ALNG',
  578. "RFC OLD-ENVIRON", 'BBIT',
  579. "", 'BBIT',
  580. "", 'BBIT',
  581. "", 'BBIT',
  582. "", 'BBIT',
  583. "", 'BBIT',
  584. "", 'BBIT',
  585. "", 'BBIT',
  586. "", 'ALNG',
  587. "Delete key sends delete", 'BBIT',
  588. "rxvt home/end", 'BBIT',
  589. "Linux function keys", 'BBIT',
  590. "Application cursor keys", 'BBIT',
  591. "Application keypad", 'BBIT',
  592. "", 'BBIT',
  593. "", 'BBIT',
  594. "", 'BBIT',
  595. "", 'ALNG',
  596. "Use colour for bold", 'BBIT',
  597. "", 'BBIT',
  598. "", 'BBIT',
  599. "", 'BBIT',
  600. "", 'BBIT',
  601. "", 'BBIT',
  602. "", 'BBIT',
  603. "", 'BBIT',
  604. "", 'ALNG',
  605. "Implicit copy", 'BBIT',
  606. "", 'BBIT',
  607. "", 'BBIT',
  608. "", 'BBIT',
  609. "", 'BBIT',
  610. "", 'BBIT',
  611. "", 'BBIT',
  612. "", 'BBIT',
  613. "", 'ALNG',
  614. "Host STR# ID", 'DWRD',
  615. "Host STR# index", 'DWRD',
  616. "Port", 'DLNG',
  617. "Protocol", 'DLNG',
  618. "Termtype STR# ID", 'DWRD',
  619. "Termtype STR# index", 'DWRD',
  620. "Termspeed STR# ID", 'DWRD',
  621. "Termspeed STR# index", 'DWRD',
  622. "Environ STR# ID", 'DWRD',
  623. "Environ STR# index", 'DWRD',
  624. "Username STR# ID", 'DWRD',
  625. "Username STR# index", 'DWRD',
  626. "Terminal width", 'DLNG',
  627. "Terminal height", 'DLNG',
  628. "Save lines", 'DLNG',
  629. "Font STR# ID", 'DWRD',
  630. "Font STR# index", 'DWRD',
  631. "Font size", 'DLNG',
  632. "pltt ID", 'DWRD',
  633. "wORD ID", 'DWRD',
  634. "meta modifiers", 'HWRD',
  635. };
  636. };
  637. /*
  638. * *mutter* It might be nice if Apple could actually put all the flags in
  639. * Palettes.r.
  640. */
  641. #define pmCourteous 0x0000
  642. #define pmDithered 0x0001
  643. #define pmTolerant 0x0002
  644. #define pmAnimated 0x0004
  645. #define pmExplicit 0x0008
  646. #define pmWhite 0x0010
  647. #define pmBlack 0x0020
  648. #define pmInhibitG2 0x0100
  649. #define pmInhibitC2 0x0200
  650. #define pmInhibitG4 0x0400
  651. #define pmInhibitC4 0x0800
  652. #define pmInhibitG8 0x1000
  653. #define pmInhibitC8 0x2000
  654. #define PM_BASIC (pmTolerant | pmInhibitG4 | pmInhibitG8)
  655. #define PM_NORMAL (PM_BASIC | pmInhibitG2 | pmInhibitC2)
  656. resource 'pltt' (PREF_pltt, purgeable) {
  657. {
  658. 0x0000, 0x0000, 0x0000, PM_NORMAL, 0x2000, /* black */
  659. 0x5555, 0x5555, 0x5555, PM_NORMAL, 0x2000, /* bright black */
  660. 0xbbbb, 0x0000, 0x0000, PM_NORMAL, 0x2000, /* red */
  661. 0xffff, 0x5555, 0x5555, PM_NORMAL, 0x2000, /* bright red */
  662. 0x0000, 0xbbbb, 0x0000, PM_NORMAL, 0x2000, /* green */
  663. 0x5555, 0xffff, 0x5555, PM_NORMAL, 0x2000, /* bright green */
  664. 0xbbbb, 0xbbbb, 0x0000, PM_NORMAL, 0x2000, /* yellow */
  665. 0xffff, 0xffff, 0x0000, PM_NORMAL, 0x2000, /* bright yellow */
  666. 0x0000, 0x0000, 0xbbbb, PM_NORMAL, 0x2000, /* blue */
  667. 0x5555, 0x5555, 0xffff, PM_NORMAL, 0x2000, /* bright blue */
  668. 0xbbbb, 0x0000, 0xbbbb, PM_NORMAL, 0x2000, /* magenta */
  669. 0xffff, 0x5555, 0xffff, PM_NORMAL, 0x2000, /* bright magenta */
  670. 0x0000, 0xbbbb, 0xbbbb, PM_NORMAL, 0x2000, /* cyan */
  671. 0x5555, 0xffff, 0xffff, PM_NORMAL, 0x2000, /* bright cyan */
  672. 0xbbbb, 0xbbbb, 0xbbbb, PM_NORMAL, 0x2000, /* white */
  673. 0xffff, 0xffff, 0xffff, PM_NORMAL, 0x2000, /* bright white */
  674. 0xbbbb, 0xbbbb, 0xbbbb, PM_BASIC, 0x2000, /* default fg */
  675. 0xffff, 0xffff, 0xffff, PM_BASIC, 0x2000, /* default bold fg */
  676. 0x0000, 0x0000, 0x0000, PM_BASIC, 0x2000, /* default bg */
  677. 0x5555, 0x5555, 0x5555, PM_NORMAL, 0x2000, /* default bold bg */
  678. 0x0000, 0x0000, 0x0000, PM_NORMAL, 0x2000, /* cursor bg */
  679. 0x0000, 0x0000, 0x0000, PM_NORMAL, 0x2000, /* bold cursor bg */
  680. 0x0000, 0xffff, 0x0000, PM_BASIC, 0x2000, /* cursor fg */
  681. 0x0000, 0xffff, 0x0000, PM_NORMAL, 0x2000, /* bold cursor fg */
  682. }
  683. };
  684. read 'pTST' (128, "test data", purgeable) "fragment";
  685. type 'pMAP' {
  686. hex string;
  687. };
  688. resource 'pMAP' (128, "Latin-1 G1 -> Mac OS Roman") {
  689. $"20 c1 a2 a3 db b4 00 a4 ac a9 bb c7 c2 00 a8 f8"
  690. $"a1 b1 00 00 ab b5 a6 e1 fc 00 bc c8 00 00 00 c0"
  691. $"cb e7 e5 cc 80 81 ae 82 e9 83 e6 e8 ed ea eb ec"
  692. $"00 84 f1 ee ef cd 85 00 af f4 f2 f3 86 00 00 a7"
  693. $"88 87 89 8b 8a 8c be 8d 8f 8e 90 91 93 92 94 95"
  694. $"00 96 98 97 99 9b 9a d6 bf 9d 9c 9e 9f 00 00 D8"
  695. };
  696. resource 'pMAP' (129, "DEC line drawing -> Mac OS VT100") {
  697. $"d7 bd 09 0c 0d 0a a1 b1 00 0b d2 d3 d4 d5 da e2"
  698. $"e3 e4 f5 f6 f7 f8 f9 fa fb b2 b3 b9 ad a3 e1"
  699. };