X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4df086de7ad3e6084d47331de7e5045897a71b7e..2dc6356a02ebe2e5c0428cefc18e64882d85b4a6:/mac/mac_res.r diff --git a/mac/mac_res.r b/mac/mac_res.r index 62bcbf93..d0a4f786 100644 --- a/mac/mac_res.r +++ b/mac/mac_res.r @@ -1,6 +1,6 @@ -/* $Id: mac_res.r,v 1.1 2002/11/19 02:14:35 ben Exp $ */ +/* $Id: mac_res.r,v 1.8 2002/12/31 01:40:14 ben Exp $ */ /* - * Copyright (c) 1999 Ben Harris + * Copyright (c) 1999, 2002 Ben Harris * All rights reserved. * * Permission is hereby granted, free of charge, to any person @@ -27,9 +27,15 @@ /* PuTTY resources */ -#include "Types.r" -#include "Dialogs.r" -#include "Palettes.r" +/* + * The space after the # for system includes is to stop mkfiles.pl + * trying to chase them (Rez doesn't support the angle-bracket + * syntax). + */ + +# include "Types.r" +# include "Dialogs.r" +# include "Palettes.r" /* Get resource IDs we share with C code */ #include "macresid.h" @@ -193,17 +199,56 @@ resource 'icl8' (128, purgeable) { $"00FF2BF7F8F9FAFAFBFBFCFCFDFF000000000000000000000000000000000000" $"00FFFFFFFFFFFFFFFFFFFFFFFFFF" }; + resource 'ics#' (128, purgeable) { { /* array: 2 elements */ /* [1] */ - $"00FF 0081 00BD 00A5 00A5 00BD FF81 818D" - $"BD81 A57E A500 BD00 8100 8D00 8100 7E", + $"00FF 0081 008D 0035 00D5 0325 F441 822D" + $"B4C1 AB3E AC00 B100 8100 8D00 8100 7E", /* [2] */ - $"00FF 00FF 00FF 00FF 00FF 00FF FFFF FFFF" + $"00FF 00FF 00FF 00FF 00FF 03FF FFFF FFFF" $"FFFF FF7E FF00 FF00 FF00 FF00 FF00 7E" } }; +resource 'ics4' (128) { + $"00000000FFFFFFFF" + $"00000000FCCCCCCF" + $"00000000FCEEEECF" + $"00000000FCFFC0CF" + $"00000000FF1FC0CF" + $"000000FF11F000CF" + $"FFFFFF111FCCCCCF" + $"FCCCCCF111FCFFCF" + $"FCEEEF11FFCCCCCF" + $"FCECF1FF0FFFFFF0" + $"FCECFFCF00000000" + $"FCE000CF00000000" + $"FCCCCCCF00000000" + $"FCCCFFCF00000000" + $"FCCCCCCF00000000" + $"0FFFFFF0" +}; + +resource 'ics8' (128) { + $"0000000000000000FFFFFFFFFFFFFFFF" + $"0000000000000000FF2B2B2B2B2B2BFF" + $"0000000000000000FF2BFCFCFCFC2BFF" + $"0000000000000000FF2BFFFF2A002BFF" + $"0000000000000000FFFF05FF2A002BFF" + $"000000000000FFFF0505FF0000002BFF" + $"FFFFFFFFFFFF050505FF2B2B2B2B2BFF" + $"FF2B2B2B2B2BFF050505FF2BFFFF2BFF" + $"FF2BFCFCFCFF0505FFFF2B2B2B2B2BFF" + $"FF2BFC2AFF05FFFF00FFFFFFFFFFFF00" + $"FF2BFC2AFFFF2BFF0000000000000000" + $"FF2BFC0000002BFF0000000000000000" + $"FF2B2B2B2B2B2BFF0000000000000000" + $"FF2B2B2BFFFF2BFF0000000000000000" + $"FF2B2B2B2B2B2BFF0000000000000000" + $"00FFFFFFFFFFFF" +}; + /* Known hosts icon */ resource 'ICN#' (130, purgeable) { { /* array: 2 elements */ @@ -297,6 +342,53 @@ resource 'icl8' (130, purgeable) { $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" }; +resource 'vers' (1, purgeable) { + /* XXX This needs to be updated for each new version */ + 0x00, 0x53, +#ifdef RELEASE + beta, +#else + development, +#endif + 0, /* No prerelease version */ + 2, /* Region code 2 = UK */ +#ifdef RELEASESTR + RELEASESTR, + "Release " RELEASESTR, +#else +#ifdef SNAPSHOTSTR + SNAPSHOTSTR, + "Development snapshot " SNAPSHOTSTR, +#else + "unknown", + "Unidentified build, " $$Date " " $$Time, +#endif +#endif +}; + +resource 'vers' (2, purgeable) { + /* XXX This needs to be updated for each new version */ + 0x00, 0x53, +#ifdef RELEASE + beta, +#else + development, +#endif + 0, /* No prerelease version */ + 2, /* Region code 2 = UK */ +#ifdef RELEASESTR + RELEASESTR, + "PuTTY " RELEASESTR, +#else +#ifdef SNAPSHOTSTR + SNAPSHOTSTR, + "PuTTY snapshot " SNAPSHOTSTR, +#else + "unknown", + "PuTTY", +#endif +#endif +}; /* * Internal resources @@ -315,7 +407,7 @@ resource 'MENU' (mApple, preload) { enabled, apple, { - "About PuTTYƉ", noicon, nokey, nomark, plain, + "About PuTTY\0xc9", noicon, nokey, nomark, plain, "-", noicon, nokey, nomark, plain, } }; @@ -323,11 +415,12 @@ resource 'MENU' (mApple, preload) { resource 'MENU' (mFile, preload) { mFile, textMenuProc, - 0b11111111111111111111111111111011, + 0b11111111111111111111111111110111, enabled, - "File", + "Session", { - "New Session", noicon, "N", nomark, plain, + "New", noicon, "N", nomark, plain, + "Open\0xc9", noicon, "O", nomark, plain, "Close", noicon, "W", nomark, plain, "-", noicon, nokey, nomark, plain, "Quit", noicon, "Q", nomark, plain, @@ -401,6 +494,32 @@ resource 'CNTL' (cVScroll, "vscroll", purgeable) { scrollBarProc, 0, "" }; +/* Settings dialogue */ + +resource 'DLOG' (wSettings, "settings", purgeable) { + { 0, 0, 46, 240 }, + noGrowDocProc, + invisible, + goAway, + wSettings, + wSettings, + "Settings", + staggerParentWindowScreen +}; + +resource 'dlgx' (wSettings, "settings", purgeable) { + versionZero { + kDialogFlagsUseThemeBackground | kDialogFlagsUseThemeControls + } +}; + +resource 'DITL' (wSettings, "settings", purgeable) { + { + { 13, 13, 33, 227 }, + Button { enabled, "Open" }, + } +}; + /* "About" box */ resource 'DLOG' (wAbout, "about", purgeable) { @@ -435,7 +554,7 @@ resource 'DITL' (wAbout, "about", purgeable) { /* Licence box */ resource 'WIND' (wLicence, "licence", purgeable) { - { 0, 0, 300, 300 }, + { 0, 0, 250, 400 }, noGrowDocProc, visible, goAway, @@ -451,8 +570,8 @@ type 'TEXT' { resource 'TEXT' (wLicence, "licence", purgeable) { "PuTTY is copyright 1997-2001 Simon Tatham.\n" "\n" - "Portions copyright Robert de Bath, Joris van Rantwijk, Delian\n" - "Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry,\n" + "Portions copyright Robert de Bath, Joris van Rantwijk, Delian" + "Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry," "Justin Bradford, and CORE SDI S.A.\n" "\n" "Permission is hereby granted, free of charge, to any person " @@ -478,21 +597,3 @@ resource 'TEXT' (wLicence, "licence", purgeable) { }; read 'pTST' (128, "test data", purgeable) "fragment"; - -type 'pMAP' { - hex string; -}; - -resource 'pMAP' (128, "Latin-1 G1 -> Mac OS Roman") { - $"20 c1 a2 a3 db b4 00 a4 ac a9 bb c7 c2 00 a8 f8" - $"a1 b1 00 00 ab b5 a6 e1 fc 00 bc c8 00 00 00 c0" - $"cb e7 e5 cc 80 81 ae 82 e9 83 e6 e8 ed ea eb ec" - $"00 84 f1 ee ef cd 85 00 af f4 f2 f3 86 00 00 a7" - $"88 87 89 8b 8a 8c be 8d 8f 8e 90 91 93 92 94 95" - $"00 96 98 97 99 9b 9a d6 bf 9d 9c 9e 9f 00 00 D8" -}; - -resource 'pMAP' (129, "DEC line drawing -> Mac OS VT100") { - $"d7 bd 09 0c 0d 0a a1 b1 00 0b d2 d3 d4 d5 da e2" - $"e3 e4 f5 f6 f7 f8 f9 fa fb b2 b3 b9 ad a3 e1" -}; \ No newline at end of file