1 /* -*-C++-*- $NetBSD: resource.h,v 1.9 2008/04/28 20:23:20 martin Exp $ */
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
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.
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.
38 #define BOOT_BUTTON_WIDTH 50
39 #define IDC_PROGRESSBAR 4
40 #define IDC_BOOTBUTTON 5
41 #define IDC_CANCELBUTTON 6
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)
54 #define IDC_BASE_MAIN 0
55 #define IDC_BASE_OPTION 1
56 #define IDC_BASE_CONSOLE 2
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_MD_OPS 105
67 #define IDC_MAIN_OPTION_A 150
68 #define IDC_MAIN_OPTION_S 151
69 #define IDC_MAIN_OPTION_V 152
70 #define IDC_MAIN_OPTION_H 153
71 #define IDC_MAIN_OPTION_H_SPEED 154
72 #define IDC_MAIN_OPTION_D 155
74 #define IDC_MAIN_DIR 1001
75 #define IDC_MAIN_PLATFORM 1002
76 #define IDC_MAIN_KERNEL 1003
80 #define IDC_OPT_AUTO 200
81 #define IDC_OPT_AUTO_INPUT 2000
82 #define IDC_OPT_AUTO_UPDOWN 2001
83 #define IDC_OPT_VIDEO 201
84 #define IDC_OPT_PAUSE 202
85 #define IDC_OPT_DEBUG 203
86 #define IDC_OPT_SAFETY 205
87 #define IDC_OPT_EXTKOPT 206
90 #define IDC_CONS_CHK_ 300
91 #define IDC_CONS_CHK0 300
92 #define IDC_CONS_CHK1 301
93 #define IDC_CONS_CHK2 302
94 #define IDC_CONS_CHK3 303
95 #define IDC_CONS_CHK4 304
96 #define IDC_CONS_CHK5 305
97 #define IDC_CONS_CHK6 306
98 #define IDC_CONS_CHK7 307
99 #define IDC_CONS_CHK_END 308
100 #define IDC_CONS_BTN_ 310
101 #define IDC_CONS_BTN0 310
102 #define IDC_CONS_BTN1 311
103 #define IDC_CONS_BTN2 312
104 #define IDC_CONS_BTN3 313
105 #define IDC_CONS_EDIT 320
106 #define IDC_CONS_FILESAVE 321
107 #define IDC_CONS_FILENAME 322
110 #define IDS_APP_TITLE 10000
111 #define IDS_HPCMENU 10002
113 #define IDS_DIR_FFS_ROOT1 10004
114 #define IDS_DIR_FFS_ROOT2 10006
115 #define IDS_DIR_FAT_ROOT 10008
116 #define IDS_DIR_FAT_MY_DOCUMENTS 10010
117 #define IDS_DIR_CARD_EN 10012
118 #define IDS_DIR_CARD_EN1 10014
119 #define IDS_DIR_CARD_EN2 10016
120 #define IDS_DIR_CARD_JP 10018
121 #define IDS_DIR_CARD_JP1 10020
122 #define IDS_DIR_CARD_JP2 10022
123 #define IDS_DIR_CARD_MMCARD 10024
124 #define IDS_DIR_CARD_MINISD_JP 10026
125 #define IDS_DIR_CARD_MICROSD_JP 10028
126 #define IDS_DIR_USER_DEFINED 10030
129 #define IDS_DIR_START IDS_DIR_FFS_ROOT1
130 #define IDS_DIR_END IDS_DIR_USER_DEFINED
131 #define IDS_DIR_SEQ(r) (((r) - IDS_DIR_START) >> 1)
132 #define IDS_DIR_RES(n) (((n) << 1) + IDS_DIR_START)
133 #define IDS_DIR_RES_VALID(n) \
134 ((n) >= IDS_DIR_START && (n) <= IDS_DIR_END)