1/*
2 *Copyright (C) 2002-2004 Harold L Hunt II All Rights Reserved.
3 *Copyright (C) 2008 Yaakov Selkowitz All Rights Reserved
4 *
5 *Permission is hereby granted, free of charge, to any person obtaining
6 * a copy of this software and associated documentation files (the
7 *"Software"), to deal in the Software without restriction, including
8 *without limitation the rights to use, copy, modify, merge, publish,
9 *distribute, sublicense, and/or sell copies of the Software, and to
10 *permit persons to whom the Software is furnished to do so, subject to
11 *the following conditions:
12 *
13 *The above copyright notice and this permission notice shall be
14 *included in all copies or substantial portions of the Software.
15 *
16 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 *NONINFRINGEMENT. IN NO EVENT SHALL HAROLD L HUNT II BE LIABLE FOR
20 *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21 *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 *
24 *Except as contained in this notice, the names of the authors
25 *shall not be used in advertising or otherwise to promote the sale, use
26 *or other dealings in this Software without prior written authorization
27 *from the authors.
28 *
29 * Authors:	Harold L Hunt II, Yaakov Selkowitz
30 */
31
32#include <windows.h>
33#include "winresource.h"
34#include "xwin-config.h"
35#include "version-config.h"
36
37/*
38 * Dialogs
39 */
40
41/* About */
42ABOUT_BOX DIALOGEX 32, 32, 260, 105
43STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_TABSTOP  | DS_CENTERMOUSE
44CAPTION "About " XVENDORNAMESHORT
45FONT 8, "MS Shell Dlg 2"
46BEGIN
47  CONTROL				IDI_XWIN, IDC_STATIC, "Static", SS_ICON, 8, 8, 32, 32
48  LTEXT			XVENDORNAMESHORT " X Server ", IDC_STATIC, 36, 8, 220, 8
49  LTEXT			VENDOR_MAN_VERSION, IDC_STATIC, 36, 18, 220, 8
50  LTEXT			BUILDERSTRING, IDC_STATIC, 36, 28, 220, 8
51  LTEXT			"This software is licensed under the terms of the MIT/X11 License.", IDC_STATIC, 36, 48, 220, 20
52  CONTROL               __VENDORDWEBSUPPORT__, ID_ABOUT_WEBSITE, "Button",
53                        BS_OWNERDRAW | WS_TABSTOP, 36, 68, 220, 8
54  DEFPUSHBUTTON		"&OK", IDOK, 105, 85, 50, 15
55END
56
57
58/* Depth change */
59
60DEPTH_CHANGE_BOX DIALOGEX 32, 32, 180, 100
61STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | DS_CENTERMOUSE
62FONT 8, "MS Shell Dlg 2"
63CAPTION XVENDORNAMESHORT
64BEGIN
65  DEFPUSHBUTTON		"Dismiss", IDOK, 66, 80, 50, 14
66  CTEXT			XVENDORNAMESHORT, IDC_STATIC, 40, 12, 100, 8
67  CTEXT			"Disruptive screen configuration change.", IDC_STATIC, 7, 40, 166, 8
68  CTEXT			"Restore previous resolution to use " XVENDORNAMESHORT ".", IDC_STATIC, 7, 52, 166, 8
69END
70
71
72/* Exit */
73
74EXIT_DIALOG DIALOGEX 32, 32, 180, 78
75STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_TABSTOP | DS_CENTERMOUSE
76FONT 8, "MS Shell Dlg 2"
77CAPTION "Exit " XVENDORNAMESHORT "?"
78BEGIN
79  PUSHBUTTON "E&xit", IDOK, 55, 56, 30, 14
80  DEFPUSHBUTTON "&Cancel", IDCANCEL, 95, 56, 30, 14
81  CTEXT "E&xiting will close all screens running on this display.", IDC_STATIC, 7, 12, 166, 8
82  CTEXT "No information about connected clients available.", IDC_CLIENTS_CONNECTED, 7, 24, 166, 8
83  CTEXT "Proceed with shutdown of this display/server?", IDC_STATIC, 7, 36, 166, 8
84END
85
86
87/*
88 * Menus
89 */
90
91IDM_TRAYICON_MENU MENU
92BEGIN
93	POPUP "TRAYICON_MENU"
94	BEGIN
95		MENUITEM "&Hide Root Window", ID_APP_HIDE_ROOT
96		MENUITEM "Clipboard may use &PRIMARY selection", ID_APP_MONITOR_PRIMARY
97		MENUITEM "&About...", ID_APP_ABOUT
98		MENUITEM SEPARATOR
99		MENUITEM "E&xit...", ID_APP_EXIT
100	END
101END
102
103
104/*
105 * Icons
106 */
107
108IDI_XWIN		ICON	"X.ico"
109CREATEPROCESS_MANIFEST_RESOURCE_ID	RT_MANIFEST	"XWin.exe.manifest"
110