1/* -*-C++-*-	$NetBSD: resource.h,v 1.12 2011/09/28 14:19:13 nonaka 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 *
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#define	_APS_NO_MFC                     1
33
34#define	IDI_ICON		1
35#define	IDD_TIMER		2
36#define	IDC_CMDBAR		3
37
38#define	BOOT_BUTTON_WIDTH				50
39#define	IDC_PROGRESSBAR		4
40#define	IDC_BOOTBUTTON		5
41#define	IDC_CANCELBUTTON	6
42// TabCtrl ID
43#define	IDC_BASE		7
44
45#define	TABCTRL_TAB_WIDTH				20
46#define	TABCTRL_TAB_HEIGHT				40
47#define	TABCTRL_PAD_WIDTH				2
48#define	TABCTRL_TAB_IMAGE_WIDTH						\
49		(TABCTRL_TAB_WIDTH - TABCTRL_PAD_WIDTH * 2)
50#define	TABCTRL_TAB_IMAGE_HEIGHT					\
51		(TABCTRL_TAB_HEIGHT - TABCTRL_PAD_WIDTH * 2)
52
53// Child Dialog ID
54#define	IDC_BASE_MAIN		0
55#define	IDC_BASE_OPTION		1
56#define	IDC_BASE_CONSOLE	2
57
58// Main Dialog ID
59#define	IDC_MAIN_ROOT_OPTION	100
60#define	IDC_MAIN_ROOT_		101
61#define	IDC_MAIN_ROOT_WD	101
62#define	IDC_MAIN_ROOT_SD	102
63#define	IDC_MAIN_ROOT_MD	103
64#define	IDC_MAIN_ROOT_NFS	104
65#define	IDC_MAIN_ROOT_DK	105
66#define	IDC_MAIN_ROOT_LD	106
67#define	IDC_MAIN_ROOT_MD_OPS	107
68
69#define	IDC_MAIN_OPTION_A	150
70#define	IDC_MAIN_OPTION_S	151
71#define	IDC_MAIN_OPTION_V	152
72#define	IDC_MAIN_OPTION_H	153
73#define	IDC_MAIN_OPTION_H_SPEED 154
74#define	IDC_MAIN_OPTION_D	155
75
76#define	IDC_MAIN_DIR		1001
77#define	IDC_MAIN_PLATFORM	1002
78#define	IDC_MAIN_KERNEL		1003
79
80
81// Option Dialog ID
82#define	IDC_OPT_AUTO		200
83#define	IDC_OPT_AUTO_INPUT	2000
84#define	IDC_OPT_AUTO_UPDOWN	2001
85#define	IDC_OPT_VIDEO		201
86#define	IDC_OPT_PAUSE		202
87#define	IDC_OPT_DEBUG		203
88#define	IDC_OPT_SAFETY		205
89#define	IDC_OPT_EXTKOPT		206
90
91// Console Dialog ID
92#define	IDC_CONS_CHK_		300
93#define	IDC_CONS_CHK0		300
94#define	IDC_CONS_CHK1		301
95#define	IDC_CONS_CHK2		302
96#define	IDC_CONS_CHK3		303
97#define	IDC_CONS_CHK4		304
98#define	IDC_CONS_CHK5		305
99#define	IDC_CONS_CHK6		306
100#define	IDC_CONS_CHK7		307
101#define	IDC_CONS_CHK_END	308
102#define	IDC_CONS_BTN_		310
103#define	IDC_CONS_BTN0		310
104#define	IDC_CONS_BTN1		311
105#define	IDC_CONS_BTN2		312
106#define	IDC_CONS_BTN3		313
107#define	IDC_CONS_EDIT		320
108#define	IDC_CONS_FILESAVE	321
109#define	IDC_CONS_FILENAME	322
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_FFS_SMC_ROOT1		10008
118#define	IDS_DIR_FAT_ROOT		10010
119#define	IDS_DIR_FAT_MY_DOCUMENTS	10012
120#define	IDS_DIR_CARD_EN			10014
121#define	IDS_DIR_CARD_EN1		10016
122#define	IDS_DIR_CARD_EN2		10018
123#define	IDS_DIR_CARD_JP			10020
124#define	IDS_DIR_CARD_JP1		10022
125#define	IDS_DIR_CARD_JP2		10024
126#define	IDS_DIR_CARD_MMCARD		10026
127#define	IDS_DIR_CARD_SDMMCARD		10028
128#define	IDS_DIR_CARD_MINISD_JP		10030
129#define	IDS_DIR_CARD_MICROSD_JP		10032
130#define	IDS_DIR_USER_DEFINED		10034
131
132
133#define	IDS_DIR_START			IDS_DIR_FFS_ROOT1
134#define	IDS_DIR_END			IDS_DIR_USER_DEFINED
135#define	IDS_DIR_SEQ(r)		(((r) - IDS_DIR_START) >> 1)
136#define	IDS_DIR_RES(n)		(((n) << 1) + IDS_DIR_START)
137#define	IDS_DIR_RES_VALID(n)						\
138	((n) >= IDS_DIR_START && (n) <= IDS_DIR_END)
139
140