X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/06c24bc0efd10e5d329d871be9112fb6ae0309e0..4dee460f19582a5707e42eb1aa2025f29c7b9d8c:/mac/mac_res.r diff --git a/mac/mac_res.r b/mac/mac_res.r index cdb21437..f30c72bb 100644 --- a/mac/mac_res.r +++ b/mac/mac_res.r @@ -1,6 +1,6 @@ -/* $Id: mac_res.r,v 1.27 2003/02/12 23:53:15 ben Exp $ */ +/* $Id: mac_res.r,v 1.40 2004/01/01 16:47:48 simon 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 @@ -57,10 +57,10 @@ resource 'pTTY' (0, purgeable) { resource 'SIZE' (-1) { reserved, - ignoreSuspendResumeEvents, + acceptSuspendResumeEvents, reserved, canBackground, - needsActivateOnFGSwitch, + doesActivateOnFGSwitch, backgroundAndForeground, dontGetFrontClicks, ignoreAppDiedEvents, @@ -72,8 +72,8 @@ resource 'SIZE' (-1) { reserved, reserved, reserved, + 2048 * 1024, /* Preferred size */ 1024 * 1024, /* Minimum size */ - 1024 * 1024, /* Preferred size */ }; #define FREF_APPL 128 @@ -162,6 +162,36 @@ resource 'kind' (129) { } }; +#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 */ @@ -941,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) { @@ -961,30 +1023,16 @@ resource 'CNTL' (cVScroll, "vscroll", purgeable) { /* Settings dialogue */ -resource 'DLOG' (wSettings, "settings", purgeable) { - { 0, 0, 46, 240 }, +resource 'WIND' (wSettings, "settings", purgeable) { + { 0, 0, 432, 626 }, noGrowDocProc, invisible, goAway, - wSettings, - wSettings, - "Settings", + 0x0, + "untitled", staggerParentWindowScreen }; -resource 'dlgx' (wSettings, "settings", purgeable) { - versionZero { - kDialogFlagsUseThemeBackground | kDialogFlagsUseThemeControls - } -}; - -resource 'DITL' (wSettings, "settings", purgeable) { - { - { 13, 13, 33, 227 }, - Button { enabled, "Open" }, - } -}; - /* Event log */ resource 'WIND' (wEventLog, "event log", purgeable) { { 0, 0, 200, 200 }, @@ -1044,7 +1092,7 @@ type 'TEXT' { }; resource 'TEXT' (wLicence, "licence", purgeable) { - "PuTTY is copyright 1997-2003 Simon Tatham.\n" + "PuTTY is copyright 1997-2004 Simon Tatham.\n" "\n" "Portions copyright Robert de Bath, Joris van Rantwijk, Delian" "Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry," @@ -1071,3 +1119,28 @@ resource 'TEXT' (wLicence, "licence", purgeable) { "CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE " "SOFTWARE." }; + +/* Custom xDEFs */ + +data 'CDEF' (CDEF_EditBox) { + $"4EF9 00000000" +}; +data 'CDEF' (CDEF_Default) { + $"4EF9 00000000" +}; +data 'CDEF' (CDEF_ListBox) { + $"4EF9 00000000" +}; + +/* List box template */ + +resource 'ldes' (ldes_Default) { + versionZero { + 0, /* rows */ + 1, /* cols */ + 0, 0, /* default cell size */ + hasVertScroll, noHorizScroll, + 0, /* LDEF number */ + noGrowSpace + } +}; \ No newline at end of file