mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-20 05:45:27 -05:00

I'm tired of remembering all those fiddly magic numbers and copying them back and forth between the .rc file and the source code. I'm even more tired of having to remember that in the long string of numbers after a dialog item definition, the first one of them _isn't_ one of the position and size coordinates. I've given them all symbolic names, like they should have had all along. I think I originally didn't bother because this was such a small GUI compared to the much larger one in PuTTY proper. But it's growing!
92 lines
3.1 KiB
Plaintext
92 lines
3.1 KiB
Plaintext
/*
|
|
* Windows resources for Pageant.
|
|
*/
|
|
|
|
#include "rcstuff.h"
|
|
|
|
#define APPNAME "Pageant"
|
|
#define APPDESC "PuTTY SSH authentication agent"
|
|
|
|
#include "pageant-rc.h"
|
|
|
|
#include "winhelp.rc2"
|
|
|
|
IDI_MAINICON ICON "pageant.ico"
|
|
IDI_TRAYICON ICON "pageants.ico"
|
|
|
|
IDD_LOAD_PASSPHRASE DIALOG DISCARDABLE 0, 0, 140, 60
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Pageant: Loading Encrypted Key"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
CTEXT "Enter passphrase to load key", IDC_PASSPHRASE_STATIC1, 10, 6, 120, 8
|
|
CTEXT "", IDC_PASSPHRASE_FINGERPRINT, 10, 16, 120, 8
|
|
EDITTEXT IDC_PASSPHRASE_EDITBOX, 10, 26, 120, 12,
|
|
ES_PASSWORD | ES_AUTOHSCROLL
|
|
DEFPUSHBUTTON "O&K", IDOK, 20, 42, 40, 14
|
|
PUSHBUTTON "&Cancel", IDCANCEL, 80, 42, 40, 14
|
|
END
|
|
|
|
IDD_ONDEMAND_PASSPHRASE DIALOG DISCARDABLE 0, 0, 250, 70
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Pageant: Decrypting Stored Key"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
CTEXT "A client of Pageant wants to use the following encrypted key:",
|
|
IDC_PASSPHRASE_STATIC1, 10, 6, 230, 8
|
|
CTEXT "", IDC_PASSPHRASE_FINGERPRINT, 10, 16, 230, 8
|
|
CTEXT "If you intended this, enter the passphrase to decrypt the key.",
|
|
IDC_PASSPHRASE_STATIC2, 10, 26, 230, 8
|
|
EDITTEXT IDC_PASSPHRASE_EDITBOX, 10, 36, 230, 12,
|
|
ES_PASSWORD | ES_AUTOHSCROLL
|
|
DEFPUSHBUTTON "O&K", IDOK, 75, 52, 40, 14
|
|
PUSHBUTTON "&Cancel", IDCANCEL, 135, 52, 40, 14
|
|
END
|
|
|
|
IDD_KEYLIST DIALOG DISCARDABLE 0, 0, 450, 211
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Pageant Key List"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LISTBOX 100, 10, 10, 420, 155,
|
|
LBS_EXTENDEDSEL | LBS_HASSTRINGS | LBS_USETABSTOPS | WS_VSCROLL | WS_TABSTOP
|
|
PUSHBUTTON "&Add Key", IDC_KEYLIST_ADDKEY, 75, 187, 60, 14
|
|
PUSHBUTTON "Add Key (&encrypted)", IDC_KEYLIST_ADDKEY_ENC, 150, 187, 100, 14
|
|
PUSHBUTTON "&Remove Key", IDC_KEYLIST_REMOVE, 315, 187, 60, 14
|
|
PUSHBUTTON "&Help", IDC_KEYLIST_HELP, 10, 187, 50, 14
|
|
DEFPUSHBUTTON "&Close", IDOK, 390, 187, 50, 14
|
|
LTEXT "&Fingerprint type:", IDC_KEYLIST_FPTYPE_STATIC, 10, 172, 60, 8
|
|
COMBOBOX IDC_KEYLIST_FPTYPE, 70, 170, 60, 12, CBS_DROPDOWNLIST
|
|
END
|
|
|
|
/* Accelerators used: cl */
|
|
IDD_ABOUT DIALOG DISCARDABLE 140, 40, 270, 136
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "About Pageant"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
DEFPUSHBUTTON "&Close", IDOK, 216, 118, 48, 14
|
|
PUSHBUTTON "View &Licence", IDC_ABOUT_LICENCE, 6, 118, 70, 14
|
|
PUSHBUTTON "Visit &Web Site", IDC_ABOUT_WEBSITE, 140, 118, 70, 14
|
|
EDITTEXT IDC_ABOUT_TEXTBOX, 10, 6, 250, 110,
|
|
ES_READONLY | ES_MULTILINE | ES_CENTER, WS_EX_STATICEDGE
|
|
END
|
|
|
|
/* No accelerators used */
|
|
IDD_LICENCE DIALOG DISCARDABLE 50, 50, 326, 239
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "PuTTY Licence"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
DEFPUSHBUTTON "OK", IDOK, 148, 219, 44, 14
|
|
|
|
EDITTEXT IDC_LICENCE_TEXTBOX, 10, 10, 306, 200,
|
|
ES_READONLY | ES_MULTILINE | ES_LEFT, WS_EX_STATICEDGE
|
|
END
|
|
|
|
#include "version.rc2"
|
|
|
|
#ifndef NO_MANIFESTS
|
|
1 RT_MANIFEST "pageant.mft"
|
|
#endif /* NO_MANIFESTS */
|