-/* $Id: mac_res.r,v 1.24 2003/01/27 23:46:03 ben Exp $ */
+/* $Id: mac_res.r,v 1.27 2003/02/12 23:53:15 ben Exp $ */
/*
* Copyright (c) 1999, 2002 Ben Harris
* All rights reserved.
/* 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
};
};
+/* 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",
+ }
+};
+
/* Icons, courtesy of DeRez */
/* Application icon */
$"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
*/
/* Menu bar */
resource 'MBAR' (MBAR_Main, preload) {
- { mApple, mFile, mEdit }
+ { mApple, mFile, mEdit, mWindow }
};
resource 'MENU' (mApple, 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) {
}
};
+/* 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) {