|
1 /* |
|
2 * Copyright (c) 2003 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: Screensaver resource file. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 NAME SCRE |
|
23 |
|
24 #include <eikon.rh> |
|
25 #include <avkon.rh> |
|
26 #include <avkon.mbg> |
|
27 #include <avkon.hrh> |
|
28 #include <avkon.rsg> |
|
29 #include <aknsconstants.hrh> |
|
30 |
|
31 #include "screensaver.hrh" |
|
32 |
|
33 RESOURCE RSS_SIGNATURE { } |
|
34 |
|
35 RESOURCE TBUF |
|
36 { |
|
37 buf= ""; |
|
38 } |
|
39 |
|
40 RESOURCE EIK_APP_INFO |
|
41 { |
|
42 status_pane = r_status_pane; |
|
43 } |
|
44 |
|
45 RESOURCE STATUS_PANE_APP_MODEL r_status_pane |
|
46 { |
|
47 layout= R_AVKON_STATUS_PANE_LAYOUT_EMPTY; |
|
48 } |
|
49 |
|
50 |
|
51 STRUCT SCREENSAVER_COLOR_MODEL |
|
52 { |
|
53 LONG color_depth; // Highest color model supported in partial mode. |
|
54 WORD colors[8]; // This array is for defining colors for 3-bit mode. |
|
55 LONG dark_gradient[6]; // Darker shades for gradient effect (in high color mode). |
|
56 LONG light_gradient[6]; // Lighter shades for gradient effect (in high color mode). |
|
57 } |
|
58 |
|
59 |
|
60 RESOURCE SCREENSAVER_COLOR_MODEL r_screensaver_color_model |
|
61 { |
|
62 color_depth = ESsColorModel3BitMode; |
|
63 colors = |
|
64 { |
|
65 210, |
|
66 35, |
|
67 23, |
|
68 185, |
|
69 105, |
|
70 95, |
|
71 159, |
|
72 221 |
|
73 }; |
|
74 dark_gradient = |
|
75 { |
|
76 0x993300, |
|
77 0x990033, |
|
78 0x680069, |
|
79 0x003bce, |
|
80 0x225904, |
|
81 0x090273 |
|
82 }; |
|
83 light_gradient = |
|
84 { |
|
85 0xfbb100, |
|
86 0xfd9597, |
|
87 0xfe00cb, |
|
88 0x00c8fe, |
|
89 0x33fa95, |
|
90 0xa843fd |
|
91 }; |
|
92 } |
|
93 |
|
94 |
|
95 // |
|
96 // This struct contains various rendering parameters for screensaver |
|
97 // indicator bar. Do not change the order of fields in this struct. |
|
98 // |
|
99 STRUCT SCREENSAVER_PARAMETERS_ARRAY |
|
100 { |
|
101 WORD KIndicatorMargin; // Minimum indicator distance to left and right border. |
|
102 WORD KIndicatorGap; // How many pixels between indicators. |
|
103 WORD KIndicatorTopMargin; // Distance from top border of indicator bar to top border of indicator icon. |
|
104 WORD KIndicatorTextLevel; |
|
105 LONG KBackGroundColor; // Background color in TRgb format. |
|
106 WORD KHeight; // Height of the indicator bar. |
|
107 } |
|
108 |
|
109 |
|
110 RESOURCE SCREENSAVER_PARAMETERS_ARRAY r_screensaver_parameters |
|
111 { |
|
112 KIndicatorMargin = 5; |
|
113 KIndicatorGap = 4; |
|
114 KIndicatorTopMargin = 2; |
|
115 KIndicatorTextLevel = 17; |
|
116 KBackGroundColor = 0x00c8c8c8; |
|
117 KHeight = 14; |
|
118 } |
|
119 |
|
120 |
|
121 // |
|
122 // Numeric indicator. Displays number over bitmap background. |
|
123 // there can be separate background bitmap for each number of digits |
|
124 // displayed. 'Icons' array has following format: |
|
125 // icons = |
|
126 // { |
|
127 // // Backround bitmap for one digit case |
|
128 // EMbmAvkonQgn_background_for_one_digit_case, |
|
129 // // Mask for one digit case. |
|
130 // EMbmAvkonQgn_mask_for_one_digit_case, |
|
131 // // X position of numeric value inside of bitmap (value is an example). |
|
132 // 23, |
|
133 // // Y position of numeric value inside of bitmap. |
|
134 // 17, |
|
135 // // Two digit case starts here... |
|
136 // EMbmAvkonQgn_background_for_two_digit_case, |
|
137 // EMbmAvkonQgn_mask_for_two_digit_case, |
|
138 // 22, |
|
139 // 15 |
|
140 // // ... and so on for each number of digits. |
|
141 // }; |
|
142 // This indicator type is not currently used in standard 2.x screensaver. |
|
143 // |
|
144 STRUCT SCRN_NUMERIC_INDICTOR |
|
145 { |
|
146 LONG type = ESsNumericIndicator; |
|
147 WORD id; |
|
148 WORD priority = ESsDrawTypeNotDrawn; |
|
149 WORD align; |
|
150 LONG icons[]; |
|
151 } |
|
152 |
|
153 |
|
154 // |
|
155 // Icon indicator. Displays bitmap and mask (if specified). |
|
156 // |
|
157 STRUCT SCRN_ICON_INDICATOR |
|
158 { |
|
159 LONG type = ESsIconIndicator; |
|
160 WORD id; |
|
161 WORD priority = ESsDrawTypeNotDrawn; |
|
162 WORD align; |
|
163 LONG icon[4]; // Bmp id, mask id, skinned bmp id, skinned bmp mask id |
|
164 } |
|
165 |
|
166 |
|
167 // |
|
168 // Text indicator. Displays text without background bitmap. |
|
169 // |
|
170 STRUCT SCRN_TEXT_INDICATOR |
|
171 { |
|
172 LONG type = ESsTextIndicator; |
|
173 WORD id; |
|
174 WORD priority = ESsDrawTypeNotDrawn; |
|
175 WORD align; |
|
176 LONG font_id = ELatinPlain12; |
|
177 } |
|
178 |
|
179 |
|
180 // |
|
181 // Number & Icon indicator. Displays numeric information with |
|
182 // icon. Number is displayed on left or right side of the |
|
183 // icon (depending on icon_align), not over the icon like with |
|
184 // numeric indicator. |
|
185 // |
|
186 STRUCT SCRN_NUMBER_AND_ICON_INDICATOR |
|
187 { |
|
188 LONG type = ESsNumberAndIconIndicator; |
|
189 WORD id; |
|
190 WORD priority = ESsDrawTypeNotDrawn; |
|
191 WORD align; |
|
192 LONG icon_align; |
|
193 LONG font_id = ELatinPlain12; |
|
194 LONG icon[4]; // Bmp id, mask id, skinned bmp id, skinned bmp mask id |
|
195 } |
|
196 |
|
197 |
|
198 // |
|
199 // The screensaver indicator array. Defines indicators for |
|
200 // indicator bar in default screensaver view. |
|
201 // The order of indicators in this array specifies the order |
|
202 // of indicators on screen. |
|
203 // |
|
204 RESOURCE ARRAY r_screensaver_indicator_array |
|
205 { |
|
206 items = |
|
207 { |
|
208 SCRN_ICON_INDICATOR // Voicemail indicator |
|
209 { |
|
210 id = ESsVoicemailInd; |
|
211 align = ESsAlignRight; |
|
212 priority = ESsDrawTypePrimary; |
|
213 icon = |
|
214 { |
|
215 EMbmAvkonQgn_stat_vm0_uni, |
|
216 EMbmAvkonQgn_stat_vm0_uni, |
|
217 EAknsMinorGenericQgnStatVm0Uni, |
|
218 EAknsMinorGenericQgnStatVm0Uni |
|
219 }; |
|
220 }, |
|
221 SCRN_ICON_INDICATOR // E-mail indicator |
|
222 { |
|
223 id = ESsMailInd; |
|
224 align = ESsAlignRight; |
|
225 priority = ESsDrawTypePrimary; |
|
226 icon = |
|
227 { |
|
228 EMbmAvkonQgn_stat_message_mail_uni, |
|
229 EMbmAvkonQgn_stat_message_mail_uni, |
|
230 EAknsMinorGenericQgnStatMessageMailUni, |
|
231 EAknsMinorGenericQgnStatMessageMailUni |
|
232 }; |
|
233 }, |
|
234 SCRN_ICON_INDICATOR // Instant messaging indicator. |
|
235 { |
|
236 id = ESsImInd; |
|
237 align = ESsAlignRight; |
|
238 priority = ESsDrawTypePrimary; |
|
239 icon = |
|
240 { |
|
241 EMbmAvkonQgn_stat_im_uni, |
|
242 EMbmAvkonQgn_stat_im_uni, |
|
243 EAknsMinorGenericQgnStatImUni, |
|
244 EAknsMinorGenericQgnStatImUni |
|
245 }; |
|
246 }, |
|
247 SCRN_NUMBER_AND_ICON_INDICATOR // Unread messages indicator. |
|
248 { |
|
249 id = ESsNewMessagesInd; |
|
250 align = ESsAlignRight; |
|
251 priority = ESsDrawTypePrimary; |
|
252 icon_align = ESsAlignRight; |
|
253 icon = |
|
254 { |
|
255 EMbmAvkonQgn_stat_message_ps, |
|
256 EMbmAvkonQgn_stat_message_ps, |
|
257 EAknsMinorGenericQgnStatMessagePs, |
|
258 EAknsMinorGenericQgnStatMessagePs |
|
259 }; |
|
260 }, |
|
261 SCRN_NUMBER_AND_ICON_INDICATOR // Missed calls indicator. |
|
262 { |
|
263 id = ESsMissedCallsInd; |
|
264 align = ESsAlignRight; |
|
265 priority = ESsDrawTypePrimary; |
|
266 icon_align = ESsAlignRight; |
|
267 icon = |
|
268 { |
|
269 EMbmAvkonQgn_stat_missed_call_ps, |
|
270 EMbmAvkonQgn_stat_missed_call_ps, |
|
271 EAknsMinorGenericQgnStatMissedCallPs, |
|
272 EAknsMinorGenericQgnStatMissedCallPs |
|
273 }; |
|
274 }, |
|
275 SCRN_TEXT_INDICATOR // Profile name indicator. |
|
276 { |
|
277 id = ESsProfileInd; |
|
278 align = ESsAlignLeft; |
|
279 priority = ESsDrawTypeSecondary; |
|
280 }, |
|
281 SCRN_ICON_INDICATOR // Keyguard indicator. |
|
282 { |
|
283 id = ESsKeyLockInd; |
|
284 align = ESsAlignLeft; |
|
285 priority = ESsDrawTypeSecondary; |
|
286 icon = |
|
287 { |
|
288 EMbmAvkonQgn_stat_keyguard, |
|
289 EMbmAvkonQgn_stat_keyguard, |
|
290 EAknsMinorGenericQgnStatKeyguard, |
|
291 EAknsMinorGenericQgnStatKeyguard |
|
292 }; |
|
293 } |
|
294 }; |
|
295 } |
|
296 |
|
297 |
|
298 // |
|
299 // The screensaver indicator array. Defines indicators for |
|
300 // indicator bar in default screensaver view. |
|
301 // The order of indicators in this array specifies the order |
|
302 // of indicators on screen. |
|
303 RESOURCE ARRAY r_screensaver_indicator_array_new_layout |
|
304 { |
|
305 items = |
|
306 { |
|
307 SCRN_TEXT_INDICATOR // Am/Pm indicator. |
|
308 { |
|
309 id = ESsAmPmInd; |
|
310 align = ESsAlignRight; |
|
311 priority = ESsDrawTypePrimary; |
|
312 }, |
|
313 SCRN_TEXT_INDICATOR // Profile name indicator. |
|
314 { |
|
315 id = ESsProfileInd; |
|
316 align = ESsAlignLeft; |
|
317 priority = ESsDrawTypeSecondary; |
|
318 }, |
|
319 SCRN_ICON_INDICATOR // Voicemail indicator |
|
320 { |
|
321 id = ESsVoicemailInd; |
|
322 align = ESsAlignLeft; |
|
323 priority = ESsDrawTypeSecondary; |
|
324 icon = |
|
325 { |
|
326 EMbmAvkonQgn_stat_vm0_uni, |
|
327 EMbmAvkonQgn_stat_vm0_uni, |
|
328 EAknsMinorGenericQgnStatVm0Uni, |
|
329 EAknsMinorGenericQgnStatVm0Uni |
|
330 }; |
|
331 }, |
|
332 SCRN_ICON_INDICATOR // E-mail indicator |
|
333 { |
|
334 id = ESsMailInd; |
|
335 align = ESsAlignLeft; |
|
336 priority = ESsDrawTypeSecondary; |
|
337 icon = |
|
338 { |
|
339 EMbmAvkonQgn_stat_message_mail_uni, |
|
340 EMbmAvkonQgn_stat_message_mail_uni, |
|
341 EAknsMinorGenericQgnStatMessageMailUni, |
|
342 EAknsMinorGenericQgnStatMessageMailUni |
|
343 }; |
|
344 }, |
|
345 SCRN_ICON_INDICATOR // Instant messaging indicator. |
|
346 { |
|
347 id = ESsImInd; |
|
348 align = ESsAlignLeft; |
|
349 priority = ESsDrawTypeSecondary; |
|
350 icon = |
|
351 { |
|
352 EMbmAvkonQgn_stat_im_uni, |
|
353 EMbmAvkonQgn_stat_im_uni, |
|
354 EAknsMinorGenericQgnStatImUni, |
|
355 EAknsMinorGenericQgnStatImUni |
|
356 }; |
|
357 }, |
|
358 SCRN_NUMBER_AND_ICON_INDICATOR // Unread messages indicator. |
|
359 { |
|
360 id = ESsNewMessagesInd; |
|
361 align = ESsAlignLeft; |
|
362 priority = ESsDrawTypePrimary; |
|
363 icon_align = ESsAlignRight; |
|
364 icon = |
|
365 { |
|
366 EMbmAvkonQgn_stat_message_uni, //ps, |
|
367 EMbmAvkonQgn_stat_message_uni, //ps, |
|
368 EAknsMinorGenericQgnStatMessageUni, |
|
369 EAknsMinorGenericQgnStatMessageUni |
|
370 }; |
|
371 }, |
|
372 SCRN_NUMBER_AND_ICON_INDICATOR // Missed calls indicator. |
|
373 { |
|
374 id = ESsMissedCallsInd; |
|
375 align = ESsAlignLeft; |
|
376 priority = ESsDrawTypePrimary; |
|
377 icon_align = ESsAlignRight; |
|
378 icon = |
|
379 { |
|
380 EMbmAvkonQgn_stat_missed_calls_uni, //_ps, |
|
381 EMbmAvkonQgn_stat_missed_calls_uni, //_ps, |
|
382 EAknsMinorGenericQgnStatMissedCallsUni, |
|
383 EAknsMinorGenericQgnStatMissedCallsUni |
|
384 }; |
|
385 }, |
|
386 SCRN_ICON_INDICATOR // Keyguard indicator. |
|
387 { |
|
388 id = ESsKeyLockInd; |
|
389 align = ESsAlignLeft; |
|
390 priority = ESsDrawTypePrimary; |
|
391 icon = |
|
392 { |
|
393 EMbmAvkonQgn_stat_keyguard, |
|
394 EMbmAvkonQgn_stat_keyguard, |
|
395 EAknsMinorGenericQgnStatKeyguard, |
|
396 EAknsMinorGenericQgnStatKeyguard |
|
397 }; |
|
398 } |
|
399 }; |
|
400 } |
|
401 |
|
402 // 01:20, 1:20, 13:05, 1:05 // separators are locale dependent |
|
403 RESOURCE TBUF r_screensaver_time_usual_without_ampm { buf = "%J%:1%T"; } |
|
404 |
|
405 // End of file. |