X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e9afc24a707704302bf3913b11f4c1bcf0548c1b..817e14a8aa634f6b7b10ef63a3d06715fed73748:/mac/mac_res.r diff --git a/mac/mac_res.r b/mac/mac_res.r index 8f1beafa..0aef8b2c 100644 --- a/mac/mac_res.r +++ b/mac/mac_res.r @@ -1,6 +1,6 @@ -/* $Id: mac_res.r,v 1.24 2003/01/27 23:46:03 ben Exp $ */ +/* $Id: mac_res.r,v 1.31 2003/03/11 22:35:07 ben Exp $ */ /* - * Copyright (c) 1999, 2002 Ben Harris + * Copyright (c) 1999, 2002, 2003 Ben Harris * All rights reserved. * * Permission is hereby granted, free of charge, to any person @@ -41,11 +41,7 @@ /* Get resource IDs we share with C code */ #include "macresid.h" -/* - * Current PuTTY version number. Minor is in BCD - */ -#define VERSION_MAJOR 0x00 -#define VERSION_MINOR 0x53 +#include "version.r" /* * Finder-related resources @@ -61,10 +57,10 @@ resource 'pTTY' (0, purgeable) { resource 'SIZE' (-1) { reserved, - ignoreSuspendResumeEvents, + acceptSuspendResumeEvents, reserved, canBackground, - needsActivateOnFGSwitch, + doesActivateOnFGSwitch, backgroundAndForeground, dontGetFrontClicks, ignoreAppDiedEvents, @@ -77,7 +73,7 @@ resource 'SIZE' (-1) { reserved, reserved, 1024 * 1024, /* Minimum size */ - 1024 * 1024, /* Preferred size */ + 2048 * 1024, /* Preferred size */ }; #define FREF_APPL 128 @@ -142,6 +138,60 @@ resource 'BNDL' (129, purgeable) { }; }; +/* Open resource, for the Translation Manager and Navigation Services */ +resource 'open' (open_pTTY) { + 'pTTY', + { 'Sess' } +}; + +/* Kind resources, for Navigation services etc. */ +resource 'kind' (128) { + 'pTTY', + verBritain, + { + 'Sess', "PuTTY saved session", + } +}; + +resource 'kind' (129) { + 'pTTI', + verBritain, + { + 'HKey', "PuTTY host key database", + 'Seed', "PuTTY random number seed", + } +}; + +#if TARGET_API_MAC_CARBON +/* + * Mac OS X Info.plist. + * See Tech Note TN2013 for details. + * We don't bother with things that Mac OS X seems to be able to get from + * other resources. + */ +type 'plst' as 'TEXT'; + +resource 'plst' (0) { + "\n" + "\n" + "\n" + " \n" + " CFBundleInfoDictionaryVersion 6.0\n" + " CFBundleIdentifier\n" + " org.tartarus.projects.putty.putty\n" + " CFBundleName PuTTY\n" + " CFBundlePackageType APPL\n" + " CFBundleSignature pTTY\n" + " \n" + "\n" +}; + +/* Mac OS X doesn't use this, but Mac OS 9 does. */ +type 'carb' as 'TEXT'; +resource 'carb' (0) { "" }; +#endif + /* Icons, courtesy of DeRez */ /* Application icon */ @@ -790,54 +840,6 @@ resource 'ics8' (FREF_Seed) { $"00FFFFFFFFFFFFFFFFFFFFFFFFFF" }; -resource 'vers' (1, purgeable) { -#ifdef RELEASE - VERSION_MAJOR, VERSION_MINOR, - beta, -#else - VERSION_MAJOR, VERSION_MINOR + 1, - development, -#endif - 0, /* No prerelease version */ - verBritain, -#ifdef RELEASESTR - RELEASESTR, - "Release " RELEASESTR, -#else -#ifdef SNAPSHOTSTR - SNAPSHOTSTR, - "Development snapshot " SNAPSHOTSTR, -#else - "unknown", - "Unidentified build, " $$Date " " $$Time, -#endif -#endif -}; - -resource 'vers' (2, purgeable) { -#ifdef RELEASE - VERSION_MAJOR, VERSION_MINOR, - beta, -#else - VERSION_MAJOR, VERSION_MINOR + 1, - development, -#endif - 0, /* No prerelease version */ - verBritain, -#ifdef RELEASESTR - RELEASESTR, - "PuTTY " RELEASESTR, -#else -#ifdef SNAPSHOTSTR - SNAPSHOTSTR, - "PuTTY snapshot " SNAPSHOTSTR, -#else - "unknown", - "PuTTY", -#endif -#endif -}; - /* * Resources to copy into created files */ @@ -875,7 +877,7 @@ resource 'TMPL' (TMPL_Int, "Int ", purgeable) { /* Menu bar */ resource 'MBAR' (MBAR_Main, preload) { - { mApple, mFile, mEdit } + { mApple, mFile, mEdit, mWindow } }; resource 'MENU' (mApple, preload) { @@ -926,6 +928,17 @@ resource 'MENU' (mEdit, preload) { } }; +resource 'MENU' (mWindow, preload) { + mWindow, + textMenuProc, + 0b11111111111111111111111111111111, + enabled, + "Window", + { + "Show Event Log", noicon, nokey, nomark, plain, + } +}; + /* Fatal error box. Stolen from the Finder. */ resource 'ALRT' (wFatal, "fatalbox", purgeable) { @@ -958,6 +971,38 @@ resource 'DITL' (wFatal, "fatalbox", purgeable) { } }; +/* Caution box. Stolen from the Finder. */ + +resource 'ALRT' (wQuestion, "questionbox", purgeable) { + {54, 67, 152, 435}, + wQuestion, + beepStages, + alertPositionMainScreen +}; + +resource 'DITL' (wQuestion, "fatalbox", purgeable) { + { /* array DITLarray: 3 elements */ + /* [1] */ + {68, 299, 88, 358}, + Button { + enabled, + "OK" + }, + /* [2] */ + {68, 227, 88, 286}, + Button { + enabled, + "Cancel" + }, + /* [3] */ + {7, 74, 55, 358}, + StaticText { + disabled, + "^0" + } + } +}; + /* Terminal window */ resource 'WIND' (wTerminal, "terminal", purgeable) { @@ -1002,6 +1047,17 @@ resource 'DITL' (wSettings, "settings", purgeable) { } }; +/* Event log */ +resource 'WIND' (wEventLog, "event log", purgeable) { + { 0, 0, 200, 200 }, + zoomDocProc, + invisible, + goAway, + 0x0, + "PuTTY Event Log", + staggerParentWindowScreen +}; + /* "About" box */ resource 'DLOG' (wAbout, "about", purgeable) {