|
1 /* |
|
2 * Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Private resource definitions for project AVKON. |
|
15 * |
|
16 */ |
|
17 |
|
18 NAME AKPV |
|
19 |
|
20 #include <uikon.rh> |
|
21 #include <eikon.rh> |
|
22 #include <AknPriv.rh> |
|
23 #include <avkon.hrh> |
|
24 #include <AknPriv.hrh> |
|
25 |
|
26 // note: e32keys.h happens to be the correct format for use in an RSS file. |
|
27 #include <e32keys.h> |
|
28 |
|
29 #include <avkon.loc> |
|
30 |
|
31 RESOURCE RSS_SIGNATURE { } |
|
32 |
|
33 |
|
34 // WSINI.INI overrides these layout configuration resources. |
|
35 // It is recommended that layout is configured in wsini.ini. |
|
36 // See Series60Extras\src\wsini.ini and hw_wsini.ini for examples. |
|
37 |
|
38 |
|
39 |
|
40 // ----------------------------------------------------------------------------------------- |
|
41 // HARDWARE CONFIGURATION SECTION STARTS. Emulator configuration section later in this file. |
|
42 |
|
43 RESOURCE AKNPRIV_HARDWARE_STATE_KEY_MAP r_aknpriv_hardware_state_key_map |
|
44 { |
|
45 // This resource is overridden by the use of the new wsini.ini keyword: |
|
46 // S60_HWSTATE_KEYCODEn <keycode> |
|
47 // for example, the first entry in this table can be replaced by adding |
|
48 // the following line to wsini.ini: |
|
49 // S60_HWSTATE_KEYCODE0 EKeyApplication9 |
|
50 key_state_map = |
|
51 { |
|
52 AKNPRIV_HARDWARE_STATE_KEY |
|
53 { |
|
54 keycode = EKeyApplication9; // Product needs to configure which key event activates state 0 etc. |
|
55 state = 0; |
|
56 }, |
|
57 AKNPRIV_HARDWARE_STATE_KEY |
|
58 { |
|
59 keycode = EKeyApplicationA; |
|
60 state = 1; |
|
61 } |
|
62 }; |
|
63 } |
|
64 |
|
65 RESOURCE AKNPRIV_HARDWARE_STATE_SCREEN_MAP r_aknpriv_hardware_state_screen_map |
|
66 { |
|
67 // This resource is overridden by the use of the new wsini.ini keywords: |
|
68 // S60_HWSTATE_SCREENMODEn <screenModeNumber> |
|
69 // S60_HWSTATE_ALT_SCREENMODEn <screenModeNumberForOtherOrientation> |
|
70 // For example, Series60Extras\src\hw_wsini.ini overrides the first entry |
|
71 // in this table with the following: |
|
72 // S60_HWSTATE_SCREENMODE0 1 |
|
73 // S60_HWSTATE_ALT_SCREENMODE0 2 |
|
74 state_screen_map = |
|
75 { |
|
76 AKNPRIV_HARDWARE_STATE_SCREEN |
|
77 { |
|
78 state = 0; |
|
79 screen_width = 352; |
|
80 screen_height = 416; |
|
81 screen_rotation = EAknPrivScreenRotationNormal; |
|
82 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
83 }, |
|
84 AKNPRIV_HARDWARE_STATE_SCREEN |
|
85 { |
|
86 state = 1; |
|
87 screen_width = 416; |
|
88 screen_height = 352; |
|
89 screen_rotation = EAknPrivScreenRotationRotated90; |
|
90 rotation_for_other_orientation = EAknPrivScreenRotationNormal; |
|
91 }, |
|
92 AKNPRIV_HARDWARE_STATE_SCREEN |
|
93 { |
|
94 state = 2; |
|
95 screen_width = 240; |
|
96 screen_height = 320; |
|
97 screen_rotation = EAknPrivScreenRotationNormal; |
|
98 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
99 }, |
|
100 AKNPRIV_HARDWARE_STATE_SCREEN |
|
101 { |
|
102 state = 3; |
|
103 screen_width = 320; |
|
104 screen_height = 240; |
|
105 screen_rotation = EAknPrivScreenRotationRotated90; |
|
106 rotation_for_other_orientation = EAknPrivScreenRotationNormal; |
|
107 }, |
|
108 AKNPRIV_HARDWARE_STATE_SCREEN |
|
109 { |
|
110 state = 4; |
|
111 screen_width = 176; |
|
112 screen_height = 208; |
|
113 screen_rotation = EAknPrivScreenRotationNormal; |
|
114 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
115 }, |
|
116 AKNPRIV_HARDWARE_STATE_SCREEN |
|
117 { |
|
118 state = 5; |
|
119 screen_width = 208; |
|
120 screen_height = 176; |
|
121 screen_rotation = EAknPrivScreenRotationRotated90; |
|
122 rotation_for_other_orientation = EAknPrivScreenRotationNormal; |
|
123 }, |
|
124 AKNPRIV_HARDWARE_STATE_SCREEN |
|
125 { |
|
126 state = 6; |
|
127 screen_width = 320; |
|
128 screen_height = 480; |
|
129 screen_rotation = EAknPrivScreenRotationNormal; |
|
130 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
131 }, |
|
132 AKNPRIV_HARDWARE_STATE_SCREEN |
|
133 { |
|
134 state = 7; |
|
135 screen_width = 480; |
|
136 screen_height = 320; |
|
137 screen_rotation = EAknPrivScreenRotationNormal; |
|
138 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
139 } |
|
140 }; |
|
141 default_portrait_rotation = EAknPrivScreenRotationNormal; |
|
142 default_landscape_rotation = EAknPrivScreenRotationRotated90; |
|
143 } |
|
144 |
|
145 RESOURCE AKNPRIV_HARDWARE_SOFTKEY_LOCATION r_aknpriv_softkey_location_landscape_rotated90 |
|
146 { |
|
147 // This resource is overridden by the use of the new wsini.ini keyword: |
|
148 // S60_SCR_SOFTKEY_LOCATIONn <location> |
|
149 // which associates softkey locations directly with screen modes. |
|
150 // For example, to say that screen mode 0 has softkeys on the left, use: |
|
151 // S60_SCR_SOFTKEY_LOCATION0 left |
|
152 location = EAknPrivSoftkeyLocationRight; |
|
153 } |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------------------- |
|
160 // EMULATOR CONFIGURATION SECTION STARTS |
|
161 |
|
162 RESOURCE AKNPRIV_HARDWARE_STATE_KEY_MAP r_aknpriv_hardware_state_key_map_emul |
|
163 { |
|
164 key_state_map = |
|
165 { |
|
166 // This resource is overridden by the use of the new wsini.ini keyword: |
|
167 // S60_HWSTATE_KEYCODEn <keycode> |
|
168 // for example, the first entry in this table can be replaced by adding |
|
169 // the following line to wsini.ini: |
|
170 // S60_HWSTATE_KEYCODE0 EKeyApplication9 |
|
171 AKNPRIV_HARDWARE_STATE_KEY |
|
172 { |
|
173 keycode = EKeyApplication9; |
|
174 state = 0; |
|
175 }, |
|
176 AKNPRIV_HARDWARE_STATE_KEY |
|
177 { |
|
178 keycode = EKeyApplicationA; |
|
179 state = 1; |
|
180 }, |
|
181 AKNPRIV_HARDWARE_STATE_KEY |
|
182 { |
|
183 keycode = EKeyApplicationB; |
|
184 state = 2; |
|
185 }, |
|
186 AKNPRIV_HARDWARE_STATE_KEY |
|
187 { |
|
188 keycode = EKeyDeviceE; |
|
189 state = 3; |
|
190 }, |
|
191 AKNPRIV_HARDWARE_STATE_KEY |
|
192 { |
|
193 keycode = EKeyDeviceF; // QWERTY |
|
194 state = 4; |
|
195 }, |
|
196 AKNPRIV_HARDWARE_STATE_KEY |
|
197 { |
|
198 keycode = EKeyApplicationE; |
|
199 state = 5; |
|
200 }, |
|
201 AKNPRIV_HARDWARE_STATE_KEY |
|
202 { |
|
203 keycode = EKeyApplicationD; |
|
204 state = 6; |
|
205 }, |
|
206 AKNPRIV_HARDWARE_STATE_KEY |
|
207 { |
|
208 keycode = EKeyApplicationC; |
|
209 state = 7; |
|
210 }, |
|
211 AKNPRIV_HARDWARE_STATE_KEY |
|
212 { |
|
213 keycode = EKeyDeviceD; |
|
214 state = 8; |
|
215 } |
|
216 }; |
|
217 } |
|
218 |
|
219 RESOURCE AKNPRIV_HARDWARE_STATE_SCREEN_MAP r_aknpriv_hardware_state_screen_map_emul |
|
220 { |
|
221 // This resource is overridden by the use of the new wsini.ini keywords: |
|
222 // S60_HWSTATE_SCREENMODEn <screenModeNumber> |
|
223 // S60_HWSTATE_ALT_SCREENMODEn <screenModeNumberForOtherOrientation> |
|
224 // For example, Series60Extras\src\wsini.ini overrides the first entry |
|
225 // in this table with the following: |
|
226 // S60_HWSTATE_SCREENMODE0 1 |
|
227 // S60_HWSTATE_ALT_SCREENMODE0 2 |
|
228 state_screen_map = |
|
229 { |
|
230 AKNPRIV_HARDWARE_STATE_SCREEN |
|
231 { |
|
232 state = 0; |
|
233 screen_width = 352; |
|
234 screen_height = 416; |
|
235 screen_rotation = EAknPrivScreenRotationNormal; |
|
236 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
237 }, |
|
238 AKNPRIV_HARDWARE_STATE_SCREEN |
|
239 { |
|
240 state = 1; |
|
241 screen_width = 176; |
|
242 screen_height = 208; |
|
243 screen_rotation = EAknPrivScreenRotationNormal; |
|
244 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
245 }, |
|
246 AKNPRIV_HARDWARE_STATE_SCREEN |
|
247 { |
|
248 state = 2; |
|
249 screen_width = 240; |
|
250 screen_height = 320; |
|
251 screen_rotation = EAknPrivScreenRotationNormal; |
|
252 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
253 }, |
|
254 AKNPRIV_HARDWARE_STATE_SCREEN |
|
255 { |
|
256 state = 3; |
|
257 screen_width = 320; |
|
258 screen_height = 480; |
|
259 screen_rotation = EAknPrivScreenRotationNormal; |
|
260 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
261 }, |
|
262 AKNPRIV_HARDWARE_STATE_SCREEN |
|
263 { |
|
264 state = 4; // Qwerty |
|
265 screen_width = 352; |
|
266 screen_height = 416; |
|
267 screen_rotation = EAknPrivScreenRotationNormal; |
|
268 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
269 }, |
|
270 AKNPRIV_HARDWARE_STATE_SCREEN |
|
271 { |
|
272 state = 5; |
|
273 screen_width = 416; |
|
274 screen_height = 352; |
|
275 screen_rotation = EAknPrivScreenRotationNormal; |
|
276 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
277 }, |
|
278 AKNPRIV_HARDWARE_STATE_SCREEN |
|
279 { |
|
280 state = 6; |
|
281 screen_width = 208; |
|
282 screen_height = 176; |
|
283 screen_rotation = EAknPrivScreenRotationNormal; |
|
284 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
285 }, |
|
286 AKNPRIV_HARDWARE_STATE_SCREEN |
|
287 { |
|
288 state = 7; |
|
289 screen_width = 320; |
|
290 screen_height = 240; |
|
291 screen_rotation = EAknPrivScreenRotationNormal; |
|
292 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
293 }, |
|
294 AKNPRIV_HARDWARE_STATE_SCREEN |
|
295 { |
|
296 state = 8; |
|
297 screen_width = 480; |
|
298 screen_height = 320; |
|
299 screen_rotation = EAknPrivScreenRotationNormal; |
|
300 rotation_for_other_orientation = EAknPrivScreenRotationRotated90; |
|
301 } |
|
302 }; |
|
303 default_portrait_rotation = EAknPrivScreenRotationNormal; |
|
304 default_landscape_rotation = EAknPrivScreenRotationRotated90; |
|
305 } |
|
306 |
|
307 RESOURCE AKNPRIV_HARDWARE_SOFTKEY_LOCATION r_aknpriv_softkey_location_landscape_rotated90_emul |
|
308 { |
|
309 // This resource is overridden by the use of the new wsini.ini keyword: |
|
310 // S60_SCR_SOFTKEY_LOCATIONn <location> |
|
311 // which associates softkey locations directly with screen modes. |
|
312 // For example, to say that screen mode 0 has softkeys on the left, use: |
|
313 // S60_SCR_SOFTKEY_LOCATION0 left |
|
314 location = EAknPrivSoftkeyLocationRight; |
|
315 } |
|
316 |
|
317 RESOURCE TBUF r_aknpriv_default_console_fontspec_typeface { buf="System One"; } |
|
318 RESOURCE INT16 r_aknpriv_default_console_fontspec_height { value=70; } |
|
319 |
|
320 |
|
321 // this is JUST an EXAMPLE of use (enhanced cba) |
|
322 RESOURCE CBA_PRIORITIES r_eik_cba_priorities |
|
323 { |
|
324 buttons = |
|
325 { |
|
326 BUTTON_PRIORITY // SK1 |
|
327 { |
|
328 priority_order = |
|
329 { |
|
330 EEikCommandTypePositiveAnswer, |
|
331 EEikCommandTypeMenu, |
|
332 EEikCommandTypeOpenItem |
|
333 }; |
|
334 }, |
|
335 BUTTON_PRIORITY // SK2 |
|
336 { |
|
337 priority_order = |
|
338 { |
|
339 EEikCommandTypeExitOrBack, |
|
340 EEikCommandTypeExitApplication, |
|
341 EEikCommandTypeNegativeAnswer, |
|
342 EEikCommandTypeAnyCommand |
|
343 }; |
|
344 }, |
|
345 BUTTON_PRIORITY // SK3 |
|
346 { |
|
347 priority_order = |
|
348 { |
|
349 EEikCommandTypeDeleteItem, |
|
350 EEikCommandTypeNegativeAnswer, |
|
351 EEikCommandTypeAnyCommand |
|
352 }; |
|
353 }, |
|
354 BUTTON_PRIORITY // SK4 |
|
355 { |
|
356 priority_order = |
|
357 { |
|
358 EEikCommandTypeAnyCommand, |
|
359 EEikCommandTypeCancel |
|
360 }; |
|
361 } |
|
362 }; |
|
363 } |
|
364 |
|
365 RESOURCE AKNPRIV_TOUCHPANE r_aknpriv_touchpane |
|
366 { |
|
367 flags = 0; |
|
368 items = |
|
369 { |
|
370 AKNPRIV_TOUCHPANE_ITEM |
|
371 { |
|
372 priority = 0; // Mandatory item. |
|
373 id = ETouchPaneElementAppsGrid; |
|
374 }, |
|
375 AKNPRIV_TOUCHPANE_ITEM |
|
376 { |
|
377 priority = 0; // Mandatory item. |
|
378 id = ETouchPaneElementDialler; |
|
379 }, |
|
380 AKNPRIV_TOUCHPANE_ITEM |
|
381 { |
|
382 priority = 1; // Optional item. |
|
383 id = ETouchPaneElementContacts; |
|
384 } |
|
385 }; |
|
386 } |
|
387 |
|
388 RESOURCE AVKON_TOOLBAR r_aknpriv_toolbar |
|
389 { |
|
390 flags = KAknToolbarFixed | KAknToolbarDefault; |
|
391 items = |
|
392 { |
|
393 TBAR_CTRL |
|
394 { |
|
395 type = EAknCtButton; |
|
396 id = 0; |
|
397 control = AVKON_BUTTON |
|
398 { |
|
399 flags = 0; |
|
400 states = |
|
401 { |
|
402 AVKON_BUTTON_STATE |
|
403 { |
|
404 txt = ""; |
|
405 helptxt = ""; |
|
406 } |
|
407 }; |
|
408 }; |
|
409 }, |
|
410 TBAR_CTRL |
|
411 { |
|
412 type = EAknCtButton; |
|
413 id = 1; |
|
414 control = AVKON_BUTTON |
|
415 { |
|
416 flags = 0; |
|
417 states = |
|
418 { |
|
419 AVKON_BUTTON_STATE |
|
420 { |
|
421 txt = ""; |
|
422 helptxt = ""; |
|
423 } |
|
424 }; |
|
425 }; |
|
426 }, |
|
427 TBAR_CTRL |
|
428 { |
|
429 type = EAknCtButton; |
|
430 id = 2; |
|
431 control = AVKON_BUTTON |
|
432 { |
|
433 flags = 0; |
|
434 states = |
|
435 { |
|
436 AVKON_BUTTON_STATE |
|
437 { |
|
438 txt = ""; |
|
439 helptxt = ""; |
|
440 } |
|
441 }; |
|
442 }; |
|
443 } |
|
444 |
|
445 }; |
|
446 } |