summaryrefslogtreecommitdiff
path: root/xW/xW.rc
blob: 2c8fce3d5ec08e8eed786dff790889049f67cf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include <windows.h>
#include "xW-resources.h"

// https://devblogs.microsoft.com/oldnewthing/20190607-00/?p=102569
// For UTF-8 literals to work in both MinGW and Microsoft resource compilers,
// the pragma needs to be in this file, and before they're included.
#pragma code_page(65001)
#include "config.h"

// Beware of this madness https://gitlab.kitware.com/cmake/cmake/-/issues/23066
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "xW.manifest"

IDI_ICON ICON "xW.ico"
IDI_HIGHLIGHTED ICON "xW-highlighted.ico"

IDA_ACCELERATORS ACCELERATORS
BEGIN
	"^p",     ID_PREVIOUS_BUFFER
	"^n",     ID_NEXT_BUFFER
	VK_F5,    ID_PREVIOUS_BUFFER,             VIRTKEY
	VK_F6,    ID_NEXT_BUFFER,                 VIRTKEY
	VK_PRIOR, ID_PREVIOUS_BUFFER,    CONTROL, VIRTKEY
	VK_NEXT,  ID_NEXT_BUFFER,        CONTROL, VIRTKEY
	VK_TAB,   ID_SWITCH_BUFFER,      CONTROL, VIRTKEY
	// These are proper, but llvm-rc won't accept them (GitHub #64002).
#ifndef __clang__
	"!",      ID_GOTO_HIGHLIGHT,     ALT
	"a",      ID_GOTO_ACTIVITY,      ALT
	"H",      ID_TOGGLE_UNIMPORTANT, ALT
	"h",      ID_DISPLAY_FULL_LOG,   ALT
#endif
END

// https://devblogs.microsoft.com/oldnewthing/20050204-00/?p=36523
// https://devblogs.microsoft.com/oldnewthing/20050207-00/?p=36513
//
// Note that this is still not the right font to use in newest Windows,
// that would be 9pt Segoe UI, as described in:
// https://learn.microsoft.com/en-us/windows/win32/uxguide/vis-fonts
// or even better yet, NONCLIENTMETRICS::lfMessageFont.
IDD_CONNECT DIALOGEX 0, 0, 150, 64
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CENTER \
	| WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Connect to Relay"
FONT 8, "MS Shell Dlg", 400 /*FW_NORMAL*/, 0 /*FALSE*/, 0x1 /*DEFAULT_CHARSET*/
BEGIN
	LTEXT         "&Host:",   IDC_STATIC, 7, 10,  18,  8
	EDITTEXT                  IDC_HOST,  39,  7, 104, 14, ES_AUTOHSCROLL
	LTEXT         "&Port:",   IDC_STATIC, 7, 28,  18,  8
	EDITTEXT                  IDC_PORT,  39, 25, 104, 14, ES_AUTOHSCROLL
	DEFPUSHBUTTON "&Connect", IDOK,      39, 43,  50, 14
	PUSHBUTTON    "E&xit",    IDCANCEL,  93, 43,  50, 14
END

VS_VERSION_INFO VERSIONINFO
FILEVERSION     PROJECT_MAJOR, PROJECT_MINOR, PROJECT_PATCH, PROJECT_TWEAK
PRODUCTVERSION  PROJECT_MAJOR, PROJECT_MINOR, PROJECT_PATCH, PROJECT_TWEAK
FILETYPE        VFT_APP
BEGIN
	BLOCK "StringFileInfo"
	BEGIN
		BLOCK "040904B0"
		BEGIN
			VALUE "CompanyName",      PROJECT_AUTHOR
			VALUE "FileDescription",  PROJECT_DESCRIPTION
			VALUE "FileVersion",      PROJECT_VERSION
			VALUE "InternalName",     PROJECT_NAME
			VALUE "LegalCopyright",   PROJECT_AUTHOR
			VALUE "OriginalFilename", PROJECT_NAME ".exe"
			VALUE "ProductName",      PROJECT_NAME
			VALUE "ProductVersion",   PROJECT_VERSION
		END
	END

	BLOCK "VarFileInfo"
	BEGIN
		VALUE "Translation", 0x409, 1200
	END
END