resource.h revision 1.1 1 /* -*-C++-*- $NetBSD: resource.h,v 1.1 2001/02/09 18:35:12 uch Exp $ */
2
3 /*-
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by UCHIYAMA Yasushi.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #define _APS_NO_MFC 1
40
41 #define IDI_ICON 1
42 #define IDD_TIMER 2
43 #define IDC_CMDBAR 3
44
45 #define BOOT_BUTTON_WIDTH 50
46 #define IDC_PROGRESSBAR 4
47 #define IDC_BOOTBUTTON 5
48 #define IDC_CANCELBUTTON 6
49 // TabCtrl ID
50 #define IDC_BASE 7
51
52 #define TABCTRL_TAB_WIDTH 20
53 #define TABCTRL_TAB_HEIGHT 40
54 #define TABCTRL_PAD_WIDTH 2
55 #define TABCTRL_TAB_IMAGE_WIDTH \
56 (TABCTRL_TAB_WIDTH - TABCTRL_PAD_WIDTH * 2)
57 #define TABCTRL_TAB_IMAGE_HEIGHT \
58 (TABCTRL_TAB_HEIGHT - TABCTRL_PAD_WIDTH * 2)
59
60 // Child Dialog ID
61 #define IDC_BASE_MAIN 0
62 #define IDC_BASE_OPTION 1
63 #define IDC_BASE_CONSOLE 2
64
65 // Main Dialog ID
66 #define IDC_MAIN_ROOT_OPTION 100
67 #define IDC_MAIN_ROOT_ 101
68 #define IDC_MAIN_ROOT_WD 101
69 #define IDC_MAIN_ROOT_SD 102
70 #define IDC_MAIN_ROOT_MD 103
71 #define IDC_MAIN_ROOT_NFS 104
72 #define IDC_MAIN_ROOT_MD_OPS 105
73
74 #define IDC_MAIN_OPTION_A 150
75 #define IDC_MAIN_OPTION_S 151
76 #define IDC_MAIN_OPTION_V 152
77 #define IDC_MAIN_OPTION_H 153
78
79 #define IDC_MAIN_DIR 1001
80 #define IDC_MAIN_PLATFORM 1002
81 #define IDC_MAIN_KERNEL 1003
82
83
84 // Option Dialog ID
85 #define IDC_OPT_AUTO 200
86 #define IDC_OPT_AUTO_INPUT 2000
87 #define IDC_OPT_AUTO_UPDOWN 2001
88 #define IDC_OPT_VIDEO 201
89 #define IDC_OPT_PAUSE 202
90 #define IDC_OPT_DEBUG 203
91 #define IDC_OPT_SAFETY 205
92
93 // Console Dialog ID
94 #define IDC_CONS_CHK_ 300
95 #define IDC_CONS_CHK0 300
96 #define IDC_CONS_CHK1 301
97 #define IDC_CONS_CHK2 302
98 #define IDC_CONS_CHK3 303
99 #define IDC_CONS_CHK4 304
100 #define IDC_CONS_CHK5 305
101 #define IDC_CONS_CHK6 306
102 #define IDC_CONS_CHK7 307
103 #define IDC_CONS_CHK_END 308
104 #define IDC_CONS_BTN_ 310
105 #define IDC_CONS_BTN0 310
106 #define IDC_CONS_BTN1 311
107 #define IDC_CONS_BTN2 312
108 #define IDC_CONS_BTN3 313
109 #define IDC_CONS_EDIT 320
110
111 // String table.
112 #define IDS_APP_TITLE 10000
113 #define IDS_HPCMENU 10002
114
115 #define IDS_DIR_FFS_ROOT1 10004
116 #define IDS_DIR_FFS_ROOT2 10006
117 #define IDS_DIR_FAT_ROOT 10008
118 #define IDS_DIR_FAT_MY_DOCUMENTS 10010
119 #define IDS_DIR_CARD_EN 10012
120 #define IDS_DIR_CARD_EN1 10014
121 #define IDS_DIR_CARD_EN2 10016
122 #define IDS_DIR_CARD_JP 10018
123 #define IDS_DIR_CARD_JP1 10020
124 #define IDS_DIR_CARD_JP2 10022
125 #define IDS_DIR_USER_DEFINED 10024
126
127 #define IDS_DIR_START IDS_DIR_FFS_ROOT1
128 #define IDS_DIR_END IDS_DIR_USER_DEFINED
129 #define IDS_DIR_SEQ(r) (((r) - IDS_DIR_START) >> 1)
130 #define IDS_DIR_RES(n) (((n) << 1) + IDS_DIR_START)
131 #define IDS_DIR_RES_VALID(n) \
132 ((n) >= IDS_DIR_START && (n) <= IDS_DIR_END)
133
134