From af76d9655f3579949a9a0643bcb16118334a5dea Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 6 Mar 2003 23:46:06 +0000 Subject: [PATCH] Alert box to support host-key checking. git-svn-id: svn://svn.tartarus.org/sgt/putty@2920 cda61777-01e9-0310-a592-d414129be87e --- mac/mac_res.r | 34 +++++++++++++++++++++++++++++++++- mac/macresid.h | 3 ++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/mac/mac_res.r b/mac/mac_res.r index 78071c72..6e7ce4a1 100644 --- a/mac/mac_res.r +++ b/mac/mac_res.r @@ -1,4 +1,4 @@ -/* $Id: mac_res.r,v 1.29 2003/02/27 23:21:23 ben Exp $ */ +/* $Id: mac_res.r,v 1.30 2003/03/06 23:46:06 ben Exp $ */ /* * Copyright (c) 1999, 2002, 2003 Ben Harris * All rights reserved. @@ -971,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) { diff --git a/mac/macresid.h b/mac/macresid.h index ebb9f0de..108f47f5 100644 --- a/mac/macresid.h +++ b/mac/macresid.h @@ -1,4 +1,4 @@ -/* $Id: macresid.h,v 1.9 2003/02/07 01:38:12 ben Exp $ */ +/* $Id: macresid.h,v 1.10 2003/03/06 23:46:06 ben Exp $ */ /* * macresid.h -- Mac resource IDs @@ -54,6 +54,7 @@ #define wSettings 132 #define wiSettingsOpen 1 #define wEventLog 133 +#define wQuestion 134 /* Controls */ #define cVScroll 128 -- 2.11.0