|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 NAME MATT |
|
21 |
|
22 #include <eikon.rh> |
|
23 #include <eikon.rsg> |
|
24 #include <avkon.rh> |
|
25 #include <avkon.rsg> |
|
26 #include <avkon.mbg> |
|
27 #include <CommonDialogs.hrh> |
|
28 #include <CommonDialogs.rh> |
|
29 #include <pathconfiguration.hrh> |
|
30 |
|
31 #include "perfmon.hrh" |
|
32 #include "perfmon_std.h" |
|
33 #include <data_caging_paths_strings.hrh> |
|
34 #include <appinfo.rh> |
|
35 |
|
36 |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 // Define the resource file signature |
|
40 // This resource should be empty. |
|
41 // |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 RESOURCE RSS_SIGNATURE { } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 // Default Document Name |
|
49 // |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 RESOURCE TBUF r_default_document_name { buf=""; } |
|
53 |
|
54 // --------------------------------------------------------- |
|
55 // |
|
56 // Define default menu and CBA key. |
|
57 // |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 RESOURCE EIK_APP_INFO |
|
61 { |
|
62 status_pane = r_perfmon_status_pane; |
|
63 //menubar = r_perfmon_menubar; |
|
64 //cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
65 } |
|
66 |
|
67 //---------------------------------------------------- |
|
68 // r_perfmon_status_pane |
|
69 //---------------------------------------------------- |
|
70 // |
|
71 RESOURCE STATUS_PANE_APP_MODEL r_perfmon_status_pane |
|
72 { |
|
73 panes= |
|
74 { |
|
75 SPANE_PANE |
|
76 { |
|
77 id = EEikStatusPaneUidNavi; |
|
78 type = EAknCtNaviPane; |
|
79 resource = r_perfmon_navi_decorator; |
|
80 } |
|
81 }; |
|
82 } |
|
83 |
|
84 //---------------------------------------------------- |
|
85 // r_perfmon_navi_decorator |
|
86 //---------------------------------------------------- |
|
87 // |
|
88 RESOURCE NAVI_DECORATOR r_perfmon_navi_decorator |
|
89 { |
|
90 type = ENaviDecoratorControlTabGroup; |
|
91 control = TAB_GROUP |
|
92 { |
|
93 tab_width = EAknTabWidthWithTwoTabs; |
|
94 active = 0; |
|
95 tabs = { |
|
96 TAB |
|
97 { |
|
98 id = ETabMainViewValues; |
|
99 txt = "Values"; |
|
100 }, |
|
101 TAB |
|
102 { |
|
103 id = ETabMainViewGraphs; |
|
104 txt = "Graphs"; |
|
105 } |
|
106 }; |
|
107 }; |
|
108 } |
|
109 |
|
110 //---------------------------------------------------- |
|
111 // |
|
112 // r_perfmon_hotkeys |
|
113 // |
|
114 //---------------------------------------------------- |
|
115 // |
|
116 RESOURCE HOTKEYS r_perfmon_hotkeys |
|
117 { |
|
118 control= |
|
119 { |
|
120 HOTKEY { command=EAknCmdExit; key='e'; } |
|
121 }; |
|
122 } |
|
123 |
|
124 |
|
125 //---------------------------------------------------- |
|
126 // r_perfmon_view_values |
|
127 //---------------------------------------------------- |
|
128 // |
|
129 RESOURCE AVKON_VIEW r_perfmon_view_values |
|
130 { |
|
131 hotkeys=r_perfmon_hotkeys; |
|
132 menubar=r_perfmon_menubar_view_values; |
|
133 cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
134 } |
|
135 |
|
136 //---------------------------------------------------- |
|
137 // r_perfmon_menubar_view_values |
|
138 //---------------------------------------------------- |
|
139 // |
|
140 RESOURCE MENU_BAR r_perfmon_menubar_view_values |
|
141 { |
|
142 titles= |
|
143 { |
|
144 MENU_TITLE { menu_pane=r_perfmon_app_menu; txt="App"; }, |
|
145 MENU_TITLE { menu_pane=r_perfmon_view_values_menu; txt="Values"; } |
|
146 }; |
|
147 } |
|
148 |
|
149 //---------------------------------------------------- |
|
150 // r_perfmon_view_values_menu |
|
151 //---------------------------------------------------- |
|
152 // |
|
153 |
|
154 RESOURCE MENU_PANE r_perfmon_view_values_menu |
|
155 { |
|
156 items= |
|
157 { |
|
158 }; |
|
159 } |
|
160 |
|
161 //---------------------------------------------------- |
|
162 // r_perfmon_view_graphs |
|
163 //---------------------------------------------------- |
|
164 // |
|
165 RESOURCE AVKON_VIEW r_perfmon_view_graphs |
|
166 { |
|
167 hotkeys=r_perfmon_hotkeys; |
|
168 menubar=r_perfmon_menubar_view_graphs; |
|
169 cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
170 } |
|
171 |
|
172 //---------------------------------------------------- |
|
173 // r_perfmon_menubar_view_graphs |
|
174 //---------------------------------------------------- |
|
175 // |
|
176 RESOURCE MENU_BAR r_perfmon_menubar_view_graphs |
|
177 { |
|
178 titles= |
|
179 { |
|
180 MENU_TITLE { menu_pane=r_perfmon_app_menu; txt="App"; }, |
|
181 MENU_TITLE { menu_pane=r_perfmon_view_graphs_menu; txt="graphs"; } |
|
182 }; |
|
183 } |
|
184 |
|
185 //---------------------------------------------------- |
|
186 // r_perfmon_view_graphs_menu |
|
187 //---------------------------------------------------- |
|
188 // |
|
189 |
|
190 RESOURCE MENU_PANE r_perfmon_view_graphs_menu |
|
191 { |
|
192 items= |
|
193 { |
|
194 }; |
|
195 } |
|
196 |
|
197 |
|
198 //---------------------------------------------------- |
|
199 // r_perfmon_app_menu |
|
200 //---------------------------------------------------- |
|
201 // |
|
202 RESOURCE MENU_PANE r_perfmon_app_menu |
|
203 { |
|
204 items= |
|
205 { |
|
206 MENU_ITEM { command=EPerfMonCmdEnableLogging; txt="Enable Logging"; }, |
|
207 MENU_ITEM { command=EPerfMonCmdDisableLogging; txt="Disable Logging"; }, |
|
208 MENU_ITEM { command=EPerfMonCmdSettings; txt="Settings"; }, |
|
209 MENU_ITEM { command=EPerfMonCmdAbout; txt="About"; }, |
|
210 MENU_ITEM { command=EAknCmdExit; txt="Exit"; } |
|
211 }; |
|
212 } |
|
213 |
|
214 //---------------------------------------------------- |
|
215 // r_perfmon_settings_dialog |
|
216 // Dialog for setting list |
|
217 //---------------------------------------------------- |
|
218 // |
|
219 RESOURCE DIALOG r_perfmon_settings_dialog |
|
220 { |
|
221 flags = |
|
222 EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | |
|
223 EEikDialogFlagButtonsRight | EEikDialogFlagCbaButtons | |
|
224 EEikDialogFlagWait | EEikDialogFlagNoTitleBar; |
|
225 buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
226 items = |
|
227 { |
|
228 DLG_LINE |
|
229 { |
|
230 type = EAknCtSettingListBox; |
|
231 id = EPerfMonSettingItemList; |
|
232 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; |
|
233 control = LISTBOX |
|
234 { |
|
235 flags = EAknListBoxSelectionList; |
|
236 }; |
|
237 } |
|
238 }; |
|
239 } |
|
240 |
|
241 //---------------------------------------------------- |
|
242 // r_perfmon_settings_menubar |
|
243 //---------------------------------------------------- |
|
244 // |
|
245 |
|
246 RESOURCE MENU_BAR r_perfmon_settings_menubar |
|
247 { |
|
248 titles = |
|
249 { |
|
250 MENU_TITLE |
|
251 { |
|
252 menu_pane = r_perfmon_settings_menupane; |
|
253 txt = " "; // dummy |
|
254 } |
|
255 }; |
|
256 } |
|
257 |
|
258 RESOURCE MENU_PANE r_perfmon_settings_menupane |
|
259 { |
|
260 items = |
|
261 { |
|
262 MENU_ITEM |
|
263 { |
|
264 command = EPerfMonCmdSettingsChange; |
|
265 txt = "Change"; |
|
266 }, |
|
267 MENU_ITEM |
|
268 { |
|
269 command = EPerfMonCmdSettingsExit; |
|
270 txt = "Exit"; |
|
271 } |
|
272 }; |
|
273 } |
|
274 |
|
275 |
|
276 //---------------------------------------------------- |
|
277 // |
|
278 // Setting item resources |
|
279 // |
|
280 //---------------------------------------------------- |
|
281 // |
|
282 |
|
283 // generic resources |
|
284 RESOURCE POPUP_SETTING_LIST r_popup_setting_list_editor |
|
285 { |
|
286 } |
|
287 RESOURCE AVKON_SETTING_PAGE r_binary_setting_page |
|
288 { |
|
289 number = EAknSettingPageNoOrdinalDisplayed; |
|
290 type = EAknCtPopupSettingList; |
|
291 editor_resource_id = r_popup_setting_list_editor; |
|
292 } |
|
293 RESOURCE AVKON_POPUP_SETTING_TEXTS r_yesno_binaryselection_texts |
|
294 { |
|
295 setting_texts_resource = r_yesno_binaryselection_text_array; |
|
296 } |
|
297 RESOURCE ARRAY r_yesno_binaryselection_text_array |
|
298 { |
|
299 items = |
|
300 { |
|
301 AVKON_ENUMERATED_TEXT { value=0; text = "No"; }, |
|
302 AVKON_ENUMERATED_TEXT { value=1; text = "Yes"; } |
|
303 }; |
|
304 } |
|
305 |
|
306 // |
|
307 // resources for heartbeat selection |
|
308 // |
|
309 RESOURCE TBUF r_heartbeat_setting_title |
|
310 { |
|
311 buf = "Heart beat (ms)"; |
|
312 } |
|
313 RESOURCE AVKON_SETTING_PAGE r_heartbeat_setting_page |
|
314 { |
|
315 type = EAknCtIntegerEdwin; |
|
316 editor_resource_id = r_heartbeat_integer_editor; |
|
317 } |
|
318 RESOURCE AVKON_INTEGER_EDWIN r_heartbeat_integer_editor |
|
319 { |
|
320 maxlength = 5; |
|
321 min = 1; |
|
322 max = 99999; |
|
323 } |
|
324 |
|
325 |
|
326 // |
|
327 // resources for maxsamples selection |
|
328 // |
|
329 RESOURCE TBUF r_maxsamples_setting_title |
|
330 { |
|
331 buf = "Max samples"; |
|
332 } |
|
333 RESOURCE AVKON_SETTING_PAGE r_maxsamples_setting_page |
|
334 { |
|
335 type = EAknCtIntegerEdwin; |
|
336 editor_resource_id = r_maxsamples_integer_editor; |
|
337 } |
|
338 RESOURCE AVKON_INTEGER_EDWIN r_maxsamples_integer_editor |
|
339 { |
|
340 maxlength = 4; |
|
341 min = 1; |
|
342 max = 9999; |
|
343 } |
|
344 |
|
345 |
|
346 // |
|
347 // resources for priority selection |
|
348 // |
|
349 RESOURCE TBUF r_priority_setting_title |
|
350 { |
|
351 buf = "Priority"; |
|
352 } |
|
353 RESOURCE AVKON_SETTING_PAGE r_priority_setting_page |
|
354 { |
|
355 number = EAknSettingPageNoOrdinalDisplayed; |
|
356 type = EAknCtPopupSettingList; |
|
357 editor_resource_id = r_popup_setting_list_editor; |
|
358 } |
|
359 RESOURCE AVKON_POPUP_SETTING_TEXTS r_priority_setting_texts |
|
360 { |
|
361 setting_texts_resource = r_priority_text_array; |
|
362 } |
|
363 RESOURCE ARRAY r_priority_text_array |
|
364 { |
|
365 items = |
|
366 { |
|
367 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeMuchLess; text = "Much less"; }, |
|
368 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeLess; text = "Less"; }, |
|
369 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeNormal; text = "Normal"; }, |
|
370 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeMore; text = "More"; }, |
|
371 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeMuchMore; text = "Much more"; }, |
|
372 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeRealTime; text = "Real time"; }, |
|
373 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeAbsoluteVeryLow; text = "Abs. very low"; }, |
|
374 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeAbsoluteLow; text = "Abs. low"; }, |
|
375 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeAbsoluteBackground; text = "Abs. background"; }, |
|
376 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeAbsoluteForeground; text = "Abs. foreground"; }, |
|
377 AVKON_ENUMERATED_TEXT { value=EThreadPriorityTypeAbsoluteHigh; text = "Abs. high"; } |
|
378 }; |
|
379 } |
|
380 |
|
381 |
|
382 // |
|
383 // resources for cpumode selection |
|
384 // |
|
385 RESOURCE TBUF r_cpumode_setting_title |
|
386 { |
|
387 buf = "CPU sampling mode"; |
|
388 } |
|
389 RESOURCE AVKON_SETTING_PAGE r_cpumode_setting_page |
|
390 { |
|
391 number = EAknSettingPageNoOrdinalDisplayed; |
|
392 type = EAknCtPopupSettingList; |
|
393 editor_resource_id = r_popup_setting_list_editor; |
|
394 } |
|
395 RESOURCE AVKON_POPUP_SETTING_TEXTS r_cpumode_setting_texts |
|
396 { |
|
397 setting_texts_resource = r_cpumode_text_array; |
|
398 } |
|
399 RESOURCE ARRAY r_cpumode_text_array |
|
400 { |
|
401 items = |
|
402 { |
|
403 AVKON_ENUMERATED_TEXT { value=ECPUModeCPUTime; text = "CPU Time"; }, |
|
404 AVKON_ENUMERATED_TEXT { value=ECPUModeNOPs; text = "NOPs"; } |
|
405 }; |
|
406 } |
|
407 |
|
408 |
|
409 // |
|
410 // resources for keepbacklighton selections |
|
411 // |
|
412 RESOURCE TBUF r_keepbacklighton_setting_title |
|
413 { |
|
414 buf = "Keep backlight on"; |
|
415 } |
|
416 |
|
417 |
|
418 // |
|
419 // resources for enablepowermonitoring selections |
|
420 // |
|
421 RESOURCE TBUF r_powermonitoringenabled_setting_title |
|
422 { |
|
423 buf = "Enable power monitoring"; |
|
424 } |
|
425 |
|
426 |
|
427 // |
|
428 // resources for datapopupvisibility selection |
|
429 // |
|
430 RESOURCE TBUF r_datapopupvisibility_setting_title |
|
431 { |
|
432 buf = "Visibility"; |
|
433 } |
|
434 RESOURCE AVKON_SETTING_PAGE r_datapopupvisibility_setting_page |
|
435 { |
|
436 number = EAknSettingPageNoOrdinalDisplayed; |
|
437 type = EAknCtPopupSettingList; |
|
438 editor_resource_id = r_popup_setting_list_editor; |
|
439 } |
|
440 RESOURCE AVKON_POPUP_SETTING_TEXTS r_datapopupvisibility_setting_texts |
|
441 { |
|
442 setting_texts_resource = r_datapopupvisibility_text_array; |
|
443 } |
|
444 RESOURCE ARRAY r_datapopupvisibility_text_array |
|
445 { |
|
446 items = |
|
447 { |
|
448 AVKON_ENUMERATED_TEXT { value=EDataPopupVisbilityAlwaysOn; text = "On"; }, |
|
449 AVKON_ENUMERATED_TEXT { value=EDataPopupVisbilityBackgroundOnly; text = "Backgr. only"; }, |
|
450 AVKON_ENUMERATED_TEXT { value=EDataPopupVisbilityAlwaysAlwaysOff; text = "Off"; } |
|
451 }; |
|
452 } |
|
453 |
|
454 // |
|
455 // resources for datapopuplocation selection |
|
456 // |
|
457 RESOURCE TBUF r_datapopuplocation_setting_title |
|
458 { |
|
459 buf = "Location"; |
|
460 } |
|
461 RESOURCE AVKON_SETTING_PAGE r_datapopuplocation_setting_page |
|
462 { |
|
463 number = EAknSettingPageNoOrdinalDisplayed; |
|
464 type = EAknCtPopupSettingList; |
|
465 editor_resource_id = r_popup_setting_list_editor; |
|
466 } |
|
467 RESOURCE AVKON_POPUP_SETTING_TEXTS r_datapopuplocation_setting_texts |
|
468 { |
|
469 setting_texts_resource = r_datapopuplocation_text_array; |
|
470 } |
|
471 RESOURCE ARRAY r_datapopuplocation_text_array |
|
472 { |
|
473 items = |
|
474 { |
|
475 AVKON_ENUMERATED_TEXT { value=EDataPopupLocationTopRight; text = "Top right"; }, |
|
476 AVKON_ENUMERATED_TEXT { value=EDataPopupLocationBottomMiddle; text = "Bottom middle"; } |
|
477 }; |
|
478 } |
|
479 |
|
480 // |
|
481 // resources for sources selection |
|
482 // |
|
483 RESOURCE TBUF r_sources_setting_title |
|
484 { |
|
485 buf = "Sources"; |
|
486 } |
|
487 RESOURCE AVKON_SETTING_PAGE r_sources_setting_page |
|
488 { |
|
489 type = EAknSetListBox; |
|
490 editor_resource_id = r_sources_items_listbox; |
|
491 label = "Sources"; |
|
492 } |
|
493 RESOURCE LISTBOX r_sources_items_listbox |
|
494 { |
|
495 flags = EAknListBoxMultipleSelection; |
|
496 } |
|
497 |
|
498 |
|
499 // |
|
500 // resources for graphsverticalbar selection |
|
501 // |
|
502 RESOURCE TBUF r_graphsverticalbar_setting_title |
|
503 { |
|
504 buf = "Vertical bar period (s)"; |
|
505 } |
|
506 RESOURCE AVKON_SETTING_PAGE r_graphsverticalbar_setting_page |
|
507 { |
|
508 type = EAknCtIntegerEdwin; |
|
509 editor_resource_id = r_graphsverticalbar_integer_editor; |
|
510 } |
|
511 RESOURCE AVKON_INTEGER_EDWIN r_graphsverticalbar_integer_editor |
|
512 { |
|
513 maxlength = 3; |
|
514 min = 0; |
|
515 max = 999; |
|
516 } |
|
517 |
|
518 |
|
519 // |
|
520 // resources for loggingmode selection |
|
521 // |
|
522 RESOURCE TBUF r_loggingmode_setting_title |
|
523 { |
|
524 buf = "Mode"; |
|
525 } |
|
526 RESOURCE AVKON_SETTING_PAGE r_loggingmode_setting_page |
|
527 { |
|
528 number = EAknSettingPageNoOrdinalDisplayed; |
|
529 type = EAknCtPopupSettingList; |
|
530 editor_resource_id = r_popup_setting_list_editor; |
|
531 } |
|
532 RESOURCE AVKON_POPUP_SETTING_TEXTS r_loggingmode_setting_texts |
|
533 { |
|
534 setting_texts_resource = r_loggingmode_text_array; |
|
535 } |
|
536 RESOURCE ARRAY r_loggingmode_text_array |
|
537 { |
|
538 items = |
|
539 { |
|
540 AVKON_ENUMERATED_TEXT { value=ELoggingModeRDebug; text = "RDebug"; }, |
|
541 AVKON_ENUMERATED_TEXT { value=ELoggingModeLogFile; text = "Log file"; }, |
|
542 AVKON_ENUMERATED_TEXT { value=ELoggingModeRDebugLogFile; text = "RDebug & log file"; } |
|
543 }; |
|
544 } |
|
545 |
|
546 |
|
547 // |
|
548 // resources for loggingfilepath selection |
|
549 // |
|
550 RESOURCE TBUF r_loggingfilepath_setting_title |
|
551 { |
|
552 buf = "Log file path"; |
|
553 } |
|
554 RESOURCE AVKON_SETTING_PAGE r_loggingfilepath_setting_page |
|
555 { |
|
556 type = EEikCtEdwin; |
|
557 editor_resource_id = r_loggingfilepath_text_editor; |
|
558 } |
|
559 |
|
560 RESOURCE EDWIN r_loggingfilepath_text_editor |
|
561 { |
|
562 lines = 0; // expanding to multiple rows |
|
563 maxlength = 63; |
|
564 flags = EEikEdwinNoLineOrParaBreaks; |
|
565 } |
|
566 |
|
567 |
|
568 // --------------------------------------------------------- |
|
569 // |
|
570 // r_perfmon_about_dialog |
|
571 // About dialog - show version and copyright info etc. |
|
572 // |
|
573 // --------------------------------------------------------- |
|
574 // |
|
575 RESOURCE DIALOG r_perfmon_about_dialog |
|
576 { |
|
577 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
578 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
579 items= |
|
580 { |
|
581 DLG_LINE |
|
582 { |
|
583 type = EAknCtPopupHeadingPane; |
|
584 id = EAknMessageQueryHeaderId; |
|
585 control = AVKON_HEADING |
|
586 { |
|
587 label = "About PerfMon"; |
|
588 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; |
|
589 }; |
|
590 }, |
|
591 DLG_LINE |
|
592 { |
|
593 type = EAknCtMessageQuery; |
|
594 id = EAknMessageQueryContentId; |
|
595 control = AVKON_MESSAGE_QUERY |
|
596 { |
|
597 message = "Version 1.2.0 - 26th August 2010. Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Licensed under Eclipse Public License v1.0."; |
|
598 }; |
|
599 } |
|
600 }; |
|
601 } |
|
602 |
|
603 // --------------------------------------------------------- |
|
604 // r_general_confirmation_query |
|
605 // --------------------------------------------------------- |
|
606 // |
|
607 |
|
608 RESOURCE DIALOG r_general_confirmation_query |
|
609 { |
|
610 flags = EGeneralQueryFlags; |
|
611 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
612 items = |
|
613 { |
|
614 DLG_LINE |
|
615 { |
|
616 type = EAknCtQuery; |
|
617 id = EGeneralQuery; |
|
618 control = AVKON_CONFIRMATION_QUERY |
|
619 { |
|
620 layout = EConfirmationQueryLayout; |
|
621 }; |
|
622 } |
|
623 }; |
|
624 } |
|
625 |
|
626 // --------------------------------------------------------- |
|
627 // r_general_text_query |
|
628 // --------------------------------------------------------- |
|
629 // |
|
630 RESOURCE DIALOG r_general_text_query |
|
631 { |
|
632 flags = EGeneralQueryFlags; |
|
633 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
634 items= |
|
635 { |
|
636 DLG_LINE |
|
637 { |
|
638 type = EAknCtQuery; |
|
639 id = EGeneralQuery; |
|
640 control = AVKON_DATA_QUERY |
|
641 { |
|
642 layout = EDataLayout; |
|
643 control = EDWIN |
|
644 { |
|
645 width = 256; |
|
646 lines = 3; |
|
647 maxlength = 256; |
|
648 }; |
|
649 }; |
|
650 } |
|
651 }; |
|
652 } |
|
653 |
|
654 // --------------------------------------------------------- |
|
655 // r_general_numeric_query |
|
656 // --------------------------------------------------------- |
|
657 // |
|
658 RESOURCE DIALOG r_general_numeric_query |
|
659 { |
|
660 flags = EGeneralQueryFlags; |
|
661 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
662 items = |
|
663 { |
|
664 DLG_LINE |
|
665 { |
|
666 type = EAknCtQuery; |
|
667 id = EGeneralQuery; |
|
668 control= AVKON_DATA_QUERY |
|
669 { |
|
670 layout = ENumberLayout; |
|
671 control = AVKON_INTEGER_EDWIN |
|
672 { |
|
673 min = -999999; |
|
674 max = 999999; |
|
675 }; |
|
676 }; |
|
677 } |
|
678 }; |
|
679 } |
|
680 |
|
681 |
|
682 // --------------------------------------------------------- |
|
683 // |
|
684 // RESOURCE LOCALISABLE_APP_INFO |
|
685 // |
|
686 // --------------------------------------------------------- |
|
687 // |
|
688 RESOURCE LOCALISABLE_APP_INFO r_perfmon_localisable_app_info |
|
689 { |
|
690 short_caption = "PerfMon"; |
|
691 caption_and_icon = |
|
692 CAPTION_AND_ICON_INFO |
|
693 { |
|
694 caption = "PerfMon"; |
|
695 |
|
696 number_of_icons = 1; |
|
697 |
|
698 // Note for ROM-based apps it is recommended to add the drive letter |
|
699 // icon_file = "z:"APP_BITMAP_DIR"\\myapp_aif.mif"; |
|
700 icon_file = APP_BITMAP_DIR"\\perfmon_aif.mif"; |
|
701 }; |
|
702 } |