|
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 datapopupvisibility selection |
|
420 // |
|
421 RESOURCE TBUF r_datapopupvisibility_setting_title |
|
422 { |
|
423 buf = "Visibility"; |
|
424 } |
|
425 RESOURCE AVKON_SETTING_PAGE r_datapopupvisibility_setting_page |
|
426 { |
|
427 number = EAknSettingPageNoOrdinalDisplayed; |
|
428 type = EAknCtPopupSettingList; |
|
429 editor_resource_id = r_popup_setting_list_editor; |
|
430 } |
|
431 RESOURCE AVKON_POPUP_SETTING_TEXTS r_datapopupvisibility_setting_texts |
|
432 { |
|
433 setting_texts_resource = r_datapopupvisibility_text_array; |
|
434 } |
|
435 RESOURCE ARRAY r_datapopupvisibility_text_array |
|
436 { |
|
437 items = |
|
438 { |
|
439 AVKON_ENUMERATED_TEXT { value=EDataPopupVisbilityAlwaysOn; text = "On"; }, |
|
440 AVKON_ENUMERATED_TEXT { value=EDataPopupVisbilityBackgroundOnly; text = "Backgr. only"; }, |
|
441 AVKON_ENUMERATED_TEXT { value=EDataPopupVisbilityAlwaysAlwaysOff; text = "Off"; } |
|
442 }; |
|
443 } |
|
444 |
|
445 // |
|
446 // resources for datapopuplocation selection |
|
447 // |
|
448 RESOURCE TBUF r_datapopuplocation_setting_title |
|
449 { |
|
450 buf = "Location"; |
|
451 } |
|
452 RESOURCE AVKON_SETTING_PAGE r_datapopuplocation_setting_page |
|
453 { |
|
454 number = EAknSettingPageNoOrdinalDisplayed; |
|
455 type = EAknCtPopupSettingList; |
|
456 editor_resource_id = r_popup_setting_list_editor; |
|
457 } |
|
458 RESOURCE AVKON_POPUP_SETTING_TEXTS r_datapopuplocation_setting_texts |
|
459 { |
|
460 setting_texts_resource = r_datapopuplocation_text_array; |
|
461 } |
|
462 RESOURCE ARRAY r_datapopuplocation_text_array |
|
463 { |
|
464 items = |
|
465 { |
|
466 AVKON_ENUMERATED_TEXT { value=EDataPopupLocationTopRight; text = "Top right"; }, |
|
467 AVKON_ENUMERATED_TEXT { value=EDataPopupLocationBottomMiddle; text = "Bottom middle"; } |
|
468 }; |
|
469 } |
|
470 |
|
471 // |
|
472 // resources for sources selection |
|
473 // |
|
474 RESOURCE TBUF r_sources_setting_title |
|
475 { |
|
476 buf = "Sources"; |
|
477 } |
|
478 RESOURCE AVKON_SETTING_PAGE r_sources_setting_page |
|
479 { |
|
480 type = EAknSetListBox; |
|
481 editor_resource_id = r_sources_items_listbox; |
|
482 label = "Sources"; |
|
483 } |
|
484 RESOURCE LISTBOX r_sources_items_listbox |
|
485 { |
|
486 flags = EAknListBoxMultipleSelection; |
|
487 } |
|
488 |
|
489 |
|
490 // |
|
491 // resources for graphsverticalbar selection |
|
492 // |
|
493 RESOURCE TBUF r_graphsverticalbar_setting_title |
|
494 { |
|
495 buf = "Vertical bar period (s)"; |
|
496 } |
|
497 RESOURCE AVKON_SETTING_PAGE r_graphsverticalbar_setting_page |
|
498 { |
|
499 type = EAknCtIntegerEdwin; |
|
500 editor_resource_id = r_graphsverticalbar_integer_editor; |
|
501 } |
|
502 RESOURCE AVKON_INTEGER_EDWIN r_graphsverticalbar_integer_editor |
|
503 { |
|
504 maxlength = 3; |
|
505 min = 0; |
|
506 max = 999; |
|
507 } |
|
508 |
|
509 |
|
510 // |
|
511 // resources for loggingmode selection |
|
512 // |
|
513 RESOURCE TBUF r_loggingmode_setting_title |
|
514 { |
|
515 buf = "Mode"; |
|
516 } |
|
517 RESOURCE AVKON_SETTING_PAGE r_loggingmode_setting_page |
|
518 { |
|
519 number = EAknSettingPageNoOrdinalDisplayed; |
|
520 type = EAknCtPopupSettingList; |
|
521 editor_resource_id = r_popup_setting_list_editor; |
|
522 } |
|
523 RESOURCE AVKON_POPUP_SETTING_TEXTS r_loggingmode_setting_texts |
|
524 { |
|
525 setting_texts_resource = r_loggingmode_text_array; |
|
526 } |
|
527 RESOURCE ARRAY r_loggingmode_text_array |
|
528 { |
|
529 items = |
|
530 { |
|
531 AVKON_ENUMERATED_TEXT { value=ELoggingModeRDebug; text = "RDebug"; }, |
|
532 AVKON_ENUMERATED_TEXT { value=ELoggingModeLogFile; text = "Log file"; }, |
|
533 AVKON_ENUMERATED_TEXT { value=ELoggingModeRDebugLogFile; text = "RDebug & log file"; } |
|
534 }; |
|
535 } |
|
536 |
|
537 |
|
538 // |
|
539 // resources for loggingfilepath selection |
|
540 // |
|
541 RESOURCE TBUF r_loggingfilepath_setting_title |
|
542 { |
|
543 buf = "Log file path"; |
|
544 } |
|
545 RESOURCE AVKON_SETTING_PAGE r_loggingfilepath_setting_page |
|
546 { |
|
547 type = EEikCtEdwin; |
|
548 editor_resource_id = r_loggingfilepath_text_editor; |
|
549 } |
|
550 |
|
551 RESOURCE EDWIN r_loggingfilepath_text_editor |
|
552 { |
|
553 lines = 0; // expanding to multiple rows |
|
554 maxlength = 63; |
|
555 flags = EEikEdwinNoLineOrParaBreaks; |
|
556 } |
|
557 |
|
558 |
|
559 // --------------------------------------------------------- |
|
560 // |
|
561 // r_perfmon_about_dialog |
|
562 // About dialog - show version and copyright info etc. |
|
563 // |
|
564 // --------------------------------------------------------- |
|
565 // |
|
566 RESOURCE DIALOG r_perfmon_about_dialog |
|
567 { |
|
568 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
569 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
570 items= |
|
571 { |
|
572 DLG_LINE |
|
573 { |
|
574 type = EAknCtPopupHeadingPane; |
|
575 id = EAknMessageQueryHeaderId; |
|
576 control = AVKON_HEADING |
|
577 { |
|
578 label = "About PerfMon"; |
|
579 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; |
|
580 }; |
|
581 }, |
|
582 DLG_LINE |
|
583 { |
|
584 type = EAknCtMessageQuery; |
|
585 id = EAknMessageQueryContentId; |
|
586 control = AVKON_MESSAGE_QUERY |
|
587 { |
|
588 message = "Version 1.0.0 - 6th March 2008. Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Licensed under Eclipse Public License v1.0."; |
|
589 }; |
|
590 } |
|
591 }; |
|
592 } |
|
593 |
|
594 // --------------------------------------------------------- |
|
595 // r_general_confirmation_query |
|
596 // --------------------------------------------------------- |
|
597 // |
|
598 |
|
599 RESOURCE DIALOG r_general_confirmation_query |
|
600 { |
|
601 flags = EGeneralQueryFlags; |
|
602 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
603 items = |
|
604 { |
|
605 DLG_LINE |
|
606 { |
|
607 type = EAknCtQuery; |
|
608 id = EGeneralQuery; |
|
609 control = AVKON_CONFIRMATION_QUERY |
|
610 { |
|
611 layout = EConfirmationQueryLayout; |
|
612 }; |
|
613 } |
|
614 }; |
|
615 } |
|
616 |
|
617 // --------------------------------------------------------- |
|
618 // r_general_text_query |
|
619 // --------------------------------------------------------- |
|
620 // |
|
621 RESOURCE DIALOG r_general_text_query |
|
622 { |
|
623 flags = EGeneralQueryFlags; |
|
624 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
625 items= |
|
626 { |
|
627 DLG_LINE |
|
628 { |
|
629 type = EAknCtQuery; |
|
630 id = EGeneralQuery; |
|
631 control = AVKON_DATA_QUERY |
|
632 { |
|
633 layout = EDataLayout; |
|
634 control = EDWIN |
|
635 { |
|
636 width = 256; |
|
637 lines = 3; |
|
638 maxlength = 256; |
|
639 }; |
|
640 }; |
|
641 } |
|
642 }; |
|
643 } |
|
644 |
|
645 // --------------------------------------------------------- |
|
646 // r_general_numeric_query |
|
647 // --------------------------------------------------------- |
|
648 // |
|
649 RESOURCE DIALOG r_general_numeric_query |
|
650 { |
|
651 flags = EGeneralQueryFlags; |
|
652 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
653 items = |
|
654 { |
|
655 DLG_LINE |
|
656 { |
|
657 type = EAknCtQuery; |
|
658 id = EGeneralQuery; |
|
659 control= AVKON_DATA_QUERY |
|
660 { |
|
661 layout = ENumberLayout; |
|
662 control = AVKON_INTEGER_EDWIN |
|
663 { |
|
664 min = -999999; |
|
665 max = 999999; |
|
666 }; |
|
667 }; |
|
668 } |
|
669 }; |
|
670 } |
|
671 |
|
672 |
|
673 // --------------------------------------------------------- |
|
674 // |
|
675 // RESOURCE LOCALISABLE_APP_INFO |
|
676 // |
|
677 // --------------------------------------------------------- |
|
678 // |
|
679 RESOURCE LOCALISABLE_APP_INFO r_perfmon_localisable_app_info |
|
680 { |
|
681 short_caption = "PerfMon"; |
|
682 caption_and_icon = |
|
683 CAPTION_AND_ICON_INFO |
|
684 { |
|
685 caption = "PerfMon"; |
|
686 |
|
687 number_of_icons = 1; |
|
688 |
|
689 // Note for ROM-based apps it is recommended to add the drive letter |
|
690 // icon_file = "z:"APP_BITMAP_DIR"\\myapp_aif.mif"; |
|
691 icon_file = APP_BITMAP_DIR"\\perfmon_aif.mif"; |
|
692 }; |
|
693 } |