|
1 /* |
|
2 * Copyright (c) 2002 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: Resource file for Calculator. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // RESOURCE IDENTIFIER |
|
20 NAME CALC |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <eikon.rh> |
|
25 #include <eikon.rsg> |
|
26 #include <avkon.rh> |
|
27 #include <avkon.hrh> |
|
28 #include <avkon.rsg> |
|
29 #include <fontids.hrh> |
|
30 #include <apcaptionfile.rh> |
|
31 #include <avkon.loc> |
|
32 #include <AiwCommon.rh> |
|
33 |
|
34 #include "calc.hrh" |
|
35 #include <calc.loc> |
|
36 #include "CalcDrawingConst.laf" |
|
37 #include <appinfo.rh> |
|
38 #include <data_caging_paths_strings.hrh> |
|
39 // RESOURCE DEFINITIONS |
|
40 |
|
41 // --------------------------------------------------------- |
|
42 // |
|
43 // Define the resource file signature |
|
44 // This resource should be empty. |
|
45 // |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 RESOURCE RSS_SIGNATURE { } |
|
49 |
|
50 |
|
51 // --------------------------------------------------------- |
|
52 // |
|
53 // Default Document FileName |
|
54 // |
|
55 // --------------------------------------------------------- |
|
56 // |
|
57 RESOURCE TBUF32 |
|
58 { |
|
59 buf = "C:\\system\\data\\Calcsoft"; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------- |
|
63 // |
|
64 // Define UI's menu, CBA-key, and status pane. |
|
65 // |
|
66 // --------------------------------------------------------- |
|
67 // |
|
68 RESOURCE EIK_APP_INFO |
|
69 { |
|
70 status_pane = r_calc_status_pane; |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------- |
|
74 // |
|
75 // r_calc_status_pane |
|
76 // Define status pane of Calculator. |
|
77 // |
|
78 // --------------------------------------------------------- |
|
79 // |
|
80 RESOURCE STATUS_PANE_APP_MODEL r_calc_status_pane |
|
81 { |
|
82 // layout = R_AVKON_STATUS_PANE_LAYOUT_EMPTY; |
|
83 } |
|
84 |
|
85 // --------------------------------------------------------- |
|
86 // |
|
87 // r_calc_view_info |
|
88 // Define menubar and cba key of Calculator |
|
89 // |
|
90 // --------------------------------------------------------- |
|
91 // |
|
92 RESOURCE CBA r_calc_cba_center_softkey |
|
93 { |
|
94 buttons = |
|
95 { |
|
96 CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
97 CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; }, |
|
98 CBA_BUTTON {id=EAknSoftkeySelect; txt = text_softkey_select;} |
|
99 }; |
|
100 } |
|
101 RESOURCE AVKON_VIEW r_calc_view_info |
|
102 { |
|
103 menubar = r_calc_menubar; // menubar |
|
104 cba = r_calc_cba_center_softkey;//R_AVKON_SOFTKEYS_OPTIONS_EXIT; // CBA |
|
105 } |
|
106 |
|
107 |
|
108 // --------------------------------------------------------- |
|
109 // |
|
110 // r_calc_menubar |
|
111 // Menubar for Calculator |
|
112 // |
|
113 // --------------------------------------------------------- |
|
114 // |
|
115 RESOURCE MENU_BAR r_calc_menubar |
|
116 { |
|
117 titles = |
|
118 { |
|
119 MENU_TITLE |
|
120 { |
|
121 menu_pane = r_calc_popupmenu; |
|
122 } |
|
123 }; |
|
124 } |
|
125 |
|
126 // --------------------------------------------------------- |
|
127 // |
|
128 // r_calc_popupmenu |
|
129 // Menu for "Options" |
|
130 // |
|
131 // --------------------------------------------------------- |
|
132 // |
|
133 RESOURCE MENU_PANE r_calc_popupmenu |
|
134 { |
|
135 items = |
|
136 { |
|
137 MENU_ITEM |
|
138 { |
|
139 command = ECalcCmdLastResult; |
|
140 txt = qtn_calc_om_last_result; |
|
141 }, |
|
142 MENU_ITEM |
|
143 { |
|
144 command = ECalcCmdMemory; |
|
145 txt = qtn_calc_om_sub_mem; |
|
146 cascade = r_calc_memory_menu; |
|
147 }, |
|
148 MENU_ITEM |
|
149 { |
|
150 command = ECalcCmdClearCalcAndHistory; |
|
151 txt = qtn_calc_clear_sheet; |
|
152 }, |
|
153 |
|
154 MENU_ITEM |
|
155 { |
|
156 command = ECalcCmdHelp; |
|
157 txt = qtn_options_help; |
|
158 }, |
|
159 MENU_ITEM |
|
160 { |
|
161 command=ECmdAiwPlaceHolder; |
|
162 txt = "Place Holder"; |
|
163 cascade = AIW_INTELLIGENT_CASCADE_ID; |
|
164 }, |
|
165 |
|
166 MENU_ITEM |
|
167 { |
|
168 command = EAknCmdExit; |
|
169 txt = qtn_options_exit; |
|
170 } |
|
171 }; |
|
172 } |
|
173 // --------------------------------------------------------- |
|
174 // |
|
175 // r_calc_popupmenu_aiw |
|
176 // Menu for "Options" |
|
177 // |
|
178 // --------------------------------------------------------- |
|
179 // |
|
180 |
|
181 RESOURCE MENU_PANE r_help_submenu |
|
182 { |
|
183 items= |
|
184 { |
|
185 MENU_ITEM { command = ECmdAiwPlaceHolderShowHelp; txt = ""; } |
|
186 }; |
|
187 } |
|
188 |
|
189 |
|
190 // To let know what are the services that are provided |
|
191 |
|
192 RESOURCE AIW_INTEREST r_aiwhelpapp_interest |
|
193 |
|
194 { |
|
195 |
|
196 items = |
|
197 |
|
198 { |
|
199 AIW_CRITERIA_ITEM |
|
200 |
|
201 { |
|
202 id = ECmdAiwPlaceHolder; |
|
203 // Show help content |
|
204 serviceCmd = KAiwCmdHelp; //from aiwcommon.hrh |
|
205 serviceClass = KAiwClassMenu; //from aiwcommon.hrh |
|
206 contentType = "*"; |
|
207 // Here, the dll's implementation uid is being used instead of the dll uid. |
|
208 // Also the maxProviders can be removed as the dll will be loaded automatically if |
|
209 // it is provided. |
|
210 defaultProvider = 0x10207465; //AiwHelpProvider.dll uid |
|
211 //maxProviders =1; |
|
212 |
|
213 } |
|
214 |
|
215 |
|
216 }; |
|
217 |
|
218 |
|
219 } |
|
220 |
|
221 |
|
222 //---------------------------------------------------- |
|
223 // |
|
224 // r_calc_memory_menu |
|
225 // Define menu about memory |
|
226 // |
|
227 //---------------------------------------------------- |
|
228 // |
|
229 RESOURCE MENU_PANE r_calc_memory_menu |
|
230 { |
|
231 items = |
|
232 { |
|
233 MENU_ITEM |
|
234 { |
|
235 command = ECalcCmdMemorySave; |
|
236 txt = qtn_calc_om_mem_save; |
|
237 }, |
|
238 MENU_ITEM |
|
239 { |
|
240 command = ECalcCmdMemoryRecall; |
|
241 txt = qtn_calc_om_mem_recall; |
|
242 }, |
|
243 MENU_ITEM |
|
244 { |
|
245 command = ECalcCmdMemoryClear; |
|
246 txt = qtn_calc_om_mem_clear; |
|
247 } |
|
248 }; |
|
249 } |
|
250 |
|
251 |
|
252 // --------------------------------------------------------- |
|
253 // |
|
254 // r_calc_error_outofrange |
|
255 // Error message for overflow |
|
256 // |
|
257 // --------------------------------------------------------- |
|
258 // |
|
259 //Localisation of scalable UI. |
|
260 //RESOURCE TBUF256 r_calc_error_outofrange |
|
261 RESOURCE TBUF r_calc_error_outofrange |
|
262 { |
|
263 buf = text_out_of_range; |
|
264 } |
|
265 |
|
266 |
|
267 // --------------------------------------------------------- |
|
268 // |
|
269 // r_calc_error_divisionbyzero |
|
270 // Error message for division by zero |
|
271 // |
|
272 // --------------------------------------------------------- |
|
273 ////Localisation of scalable UI. |
|
274 //RESOURCE TBUF256 r_calc_error_divisionbyzero |
|
275 RESOURCE TBUF r_calc_error_divisionbyzero |
|
276 { |
|
277 buf = text_calc_division_by_zero; |
|
278 } |
|
279 |
|
280 |
|
281 // --------------------------------------------------------- |
|
282 // |
|
283 // r_calc_error_negativevaluesqrt |
|
284 // Error message for negative value for square root |
|
285 // |
|
286 // --------------------------------------------------------- |
|
287 ////Localisation of scalable UI. |
|
288 //RESOURCE TBUF256 r_calc_error_negativevaluesqrt |
|
289 RESOURCE TBUF r_calc_error_negativevaluesqrt |
|
290 { |
|
291 buf = text_calc_negative_value_for_sqrt; |
|
292 } |
|
293 |
|
294 |
|
295 // --------------------------------------------------------- |
|
296 // |
|
297 // r_calc_outsheet_operator_array |
|
298 // Operator array for OutputSheet. |
|
299 // |
|
300 // --------------------------------------------------------- |
|
301 // |
|
302 RESOURCE ARRAY r_calc_outsheet_operator_array |
|
303 { |
|
304 items= |
|
305 { |
|
306 INT16 |
|
307 { |
|
308 value = '+'; |
|
309 }, |
|
310 INT16 |
|
311 { |
|
312 value = 0x2212; |
|
313 }, |
|
314 INT16 |
|
315 { |
|
316 value = 0xD7; |
|
317 }, |
|
318 INT16 |
|
319 { |
|
320 value = 0xF7; |
|
321 }, |
|
322 INT16 |
|
323 { |
|
324 value = '='; |
|
325 }, |
|
326 INT16 |
|
327 { |
|
328 value = 0x221A; |
|
329 }, |
|
330 INT16 |
|
331 { |
|
332 value = '%'; |
|
333 }, |
|
334 INT16 |
|
335 { |
|
336 value = ' '; |
|
337 }, |
|
338 INT16 |
|
339 { |
|
340 value = '*'; |
|
341 }, |
|
342 INT16 |
|
343 { |
|
344 value = '/'; |
|
345 } |
|
346 }; |
|
347 } |
|
348 |
|
349 |
|
350 // --------------------------------------------------------- |
|
351 // |
|
352 // r_calc_editor_operator_array |
|
353 // Operator array for editor. |
|
354 // |
|
355 // --------------------------------------------------------- |
|
356 // |
|
357 RESOURCE ARRAY r_calc_editor_operator_array |
|
358 { |
|
359 items= |
|
360 { |
|
361 INT16 |
|
362 { |
|
363 value = '+'; |
|
364 }, |
|
365 INT16 |
|
366 { |
|
367 value = 0x2212; |
|
368 }, |
|
369 INT16 |
|
370 { |
|
371 value = 0xD7; |
|
372 }, |
|
373 INT16 |
|
374 { |
|
375 value = 0xF7; |
|
376 }, |
|
377 INT16 |
|
378 { |
|
379 value = '='; |
|
380 }, |
|
381 INT16 |
|
382 { |
|
383 value = 0x221A; |
|
384 }, |
|
385 INT16 |
|
386 { |
|
387 value = '%'; |
|
388 }, |
|
389 INT16 |
|
390 { |
|
391 value = ' '; |
|
392 }, |
|
393 INT16 |
|
394 { |
|
395 value = '*'; |
|
396 }, |
|
397 INT16 |
|
398 { |
|
399 value = '/'; |
|
400 } |
|
401 }; |
|
402 } |
|
403 |
|
404 |
|
405 // --------------------------------------------------------- |
|
406 // |
|
407 // r_calc_sttus_saved_to_mem |
|
408 // indicator for memory saved status |
|
409 // |
|
410 // --------------------------------------------------------- |
|
411 // |
|
412 RESOURCE TBUF r_calc_sttus_saved_to_mem |
|
413 { |
|
414 buf = qtn_calc_sttus_saved_to_mem; |
|
415 } |
|
416 |
|
417 // --------------------------------------------------------- |
|
418 // |
|
419 // r_calc_sttus_saved_to_mem_sha |
|
420 // indicator of shadow for memory saved status |
|
421 // |
|
422 // --------------------------------------------------------- |
|
423 // |
|
424 RESOURCE TBUF r_calc_sttus_saved_to_mem_sha |
|
425 { |
|
426 buf = qtn_calc_sttus_saved_to_mem_sha; |
|
427 } |
|
428 |
|
429 // --------------------------------------------------------- |
|
430 // |
|
431 // r_calc_minus_indicator |
|
432 // Minus indicator, e.g "-" |
|
433 // |
|
434 // --------------------------------------------------------- |
|
435 // |
|
436 RESOURCE TBUF r_calc_minus_indicator |
|
437 { |
|
438 buf = "-"; |
|
439 } |
|
440 |
|
441 //---------------------------------------------------- |
|
442 // |
|
443 // r_calc_editor_numberentry_shadow_fontid |
|
444 // Define font id for editor number shadow. |
|
445 // |
|
446 //---------------------------------------------------- |
|
447 // |
|
448 RESOURCE FONT r_calc_editor_numberentry_shadow_fontid |
|
449 { |
|
450 fontid = CALC_DRAWCONST_EDITOR_NUMBER_SHADOW_FONTID; |
|
451 } |
|
452 |
|
453 |
|
454 //---------------------------------------------------- |
|
455 // |
|
456 // r_calc_editor_numberentry_fontid |
|
457 // Define font id for editor number. |
|
458 // |
|
459 //---------------------------------------------------- |
|
460 // |
|
461 RESOURCE FONT r_calc_editor_numberentry_fontid |
|
462 { |
|
463 fontid = CALC_DRAWCONST_EDITOR_NUMBER_FONTID; |
|
464 } |
|
465 |
|
466 //---------------------------------------------------- |
|
467 // |
|
468 // r_calc_editor_operator_shadow_fontid |
|
469 // Define font id for editor operator shadow. |
|
470 // |
|
471 //---------------------------------------------------- |
|
472 // |
|
473 RESOURCE FONT r_calc_editor_operator_shadow_fontid |
|
474 { |
|
475 fontid = CALC_DRAWCONST_EDITOR_OPERATOR_SHADOW_FONTID; |
|
476 } |
|
477 |
|
478 //---------------------------------------------------- |
|
479 // |
|
480 // r_calc_editor_operator_fontid |
|
481 // Define font id for editor operator. |
|
482 // |
|
483 //---------------------------------------------------- |
|
484 // |
|
485 RESOURCE FONT r_calc_editor_operator_fontid |
|
486 { |
|
487 fontid = CALC_DRAWCONST_EDITOR_OPERATOR_FONTID; |
|
488 } |
|
489 |
|
490 //---------------------------------------------------- |
|
491 // |
|
492 // r_calc_outsheet_operator_fontid |
|
493 // Define font id for outputsheet operator. |
|
494 // |
|
495 //---------------------------------------------------- |
|
496 // |
|
497 RESOURCE FONT r_calc_outsheet_operator_fontid |
|
498 { |
|
499 fontid = CALC_DRAWCONST_OSHEET_OPERATOR_FONTID; |
|
500 } |
|
501 |
|
502 RESOURCE LOCALISABLE_APP_INFO r_calcsoft_localisable_app_info |
|
503 { |
|
504 short_caption = qtn_apps_calculator_grid; //qtn_my_app_short_caption; |
|
505 caption_and_icon = |
|
506 CAPTION_AND_ICON_INFO |
|
507 { |
|
508 caption = qtn_apps_calculator_list; //qtn_my_app_caption; |
|
509 #ifdef __SCALABLE_ICONS |
|
510 number_of_icons = 1; |
|
511 icon_file = APP_BITMAP_DIR"\\Calcsoft_aif.mif"; |
|
512 #else |
|
513 number_of_icons = 2; |
|
514 icon_file = APP_BITMAP_DIR"\\Calcsoft_aif.mbm"; |
|
515 #endif |
|
516 }; |
|
517 |
|
518 } |
|
519 // End of File |