|
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 |
|
21 NAME PIPR |
|
22 |
|
23 #include <eikon.rh> |
|
24 #include <eikon.rsg> |
|
25 #include <avkon.rh> |
|
26 #include <avkon.rsg> |
|
27 #include <avkon.mbg> |
|
28 #include <CommonDialogs.hrh> |
|
29 #include <CommonDialogs.rh> |
|
30 #include <pathconfiguration.hrh> |
|
31 |
|
32 #include "profiler_gui.hrh" |
|
33 #include "profiler_gui_std.h" |
|
34 #include <data_caging_paths_strings.hrh> |
|
35 #include <appinfo.rh> |
|
36 |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // |
|
40 // Define the resource file signature |
|
41 // This resource should be empty. |
|
42 // |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 RESOURCE RSS_SIGNATURE { } |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // |
|
49 // Default Document Name |
|
50 // |
|
51 // --------------------------------------------------------- |
|
52 // |
|
53 RESOURCE TBUF r_default_document_name { buf=""; } |
|
54 |
|
55 // --------------------------------------------------------- |
|
56 // |
|
57 // Define default menu and CBA key. |
|
58 // |
|
59 // --------------------------------------------------------- |
|
60 // |
|
61 RESOURCE EIK_APP_INFO { } |
|
62 |
|
63 //---------------------------------------------------- |
|
64 // |
|
65 // r_profiler_gui_hotkeys |
|
66 // |
|
67 //---------------------------------------------------- |
|
68 // |
|
69 RESOURCE HOTKEYS r_profiler_gui_hotkeys |
|
70 { |
|
71 control= |
|
72 { |
|
73 HOTKEY { command=EAknCmdExit; key='e'; } |
|
74 }; |
|
75 } |
|
76 |
|
77 |
|
78 //---------------------------------------------------- |
|
79 // r_profiler_gui_view_main |
|
80 //---------------------------------------------------- |
|
81 // |
|
82 RESOURCE AVKON_VIEW r_profiler_gui_view_main |
|
83 { |
|
84 hotkeys=r_profiler_gui_hotkeys; |
|
85 menubar=r_profiler_gui_menubar_view_main; |
|
86 cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
87 } |
|
88 |
|
89 //---------------------------------------------------- |
|
90 // r_profiler_gui_menubar_view_main |
|
91 //---------------------------------------------------- |
|
92 // |
|
93 RESOURCE MENU_BAR r_profiler_gui_menubar_view_main |
|
94 { |
|
95 titles= |
|
96 { |
|
97 MENU_TITLE { menu_pane=r_profiler_gui_app_menu; txt="App"; }, |
|
98 MENU_TITLE { menu_pane=r_profiler_gui_view_main_menu; txt="Main"; } |
|
99 }; |
|
100 } |
|
101 |
|
102 //---------------------------------------------------- |
|
103 // r_profiler_gui_view_main_menu |
|
104 //---------------------------------------------------- |
|
105 // |
|
106 |
|
107 RESOURCE MENU_PANE r_profiler_gui_view_main_menu |
|
108 { |
|
109 items= |
|
110 { |
|
111 }; |
|
112 } |
|
113 |
|
114 |
|
115 |
|
116 //---------------------------------------------------- |
|
117 // r_profiler_gui_app_menu |
|
118 //---------------------------------------------------- |
|
119 // |
|
120 RESOURCE MENU_PANE r_profiler_gui_app_menu |
|
121 { |
|
122 items= |
|
123 { |
|
124 MENU_ITEM { command=EProfilerGuiCmdStartAll;cascade = r_profiler_start_submenu; txt="Start"; }, |
|
125 MENU_ITEM { command=EProfilerGuiCmdStopAll; txt="Stop profiling"; }, |
|
126 MENU_ITEM { command=EProfilerGuiCmdSamplerControl; txt="Sampler control"; cascade=r_profiler_sampler_control_menu; }, |
|
127 MENU_ITEM { command=EProfilerGuiCmdSettings; txt="Settings"; }, |
|
128 MENU_ITEM { command=EProfilerGuiCmdAbout; txt="About"; }, |
|
129 MENU_ITEM { command=EAknCmdExit; txt="Exit"; } |
|
130 }; |
|
131 } |
|
132 |
|
133 //---------------------------------------------------- |
|
134 // r_profiler_start_submenu |
|
135 //---------------------------------------------------- |
|
136 // |
|
137 RESOURCE MENU_PANE r_profiler_start_submenu |
|
138 { |
|
139 items = |
|
140 { |
|
141 MENU_ITEM |
|
142 { |
|
143 command = EProfilerGuiCmdStartAll; |
|
144 txt = "Profiling"; |
|
145 } |
|
146 }; |
|
147 } |
|
148 |
|
149 //---------------------------------------------------- |
|
150 // r_profiler_sampler_control_menu |
|
151 //---------------------------------------------------- |
|
152 // |
|
153 RESOURCE MENU_PANE r_profiler_sampler_control_menu |
|
154 { |
|
155 items= |
|
156 { |
|
157 MENU_ITEM { command=EProfilerGuiCmdSamplerEnable; txt="Enable"; }, |
|
158 MENU_ITEM { command=EProfilerGuiCmdSamplerDisable; txt="Disable"; }, |
|
159 MENU_ITEM { command=EProfilerGuiCmdSamplerSettings; txt="Sampler settings"; }, |
|
160 MENU_ITEM { command=EProfilerGuiCmdSamplerInfo; txt="Sampler info"; } |
|
161 }; |
|
162 } |
|
163 |
|
164 |
|
165 //---------------------------------------------------- |
|
166 // r_profiler_gui_settings_dialog |
|
167 // Dialog for setting list |
|
168 //---------------------------------------------------- |
|
169 // |
|
170 RESOURCE DIALOG r_profiler_gui_settings_dialog |
|
171 { |
|
172 flags = |
|
173 EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | |
|
174 EEikDialogFlagButtonsRight | EEikDialogFlagCbaButtons | |
|
175 EEikDialogFlagWait | EEikDialogFlagNoTitleBar; |
|
176 buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
177 items = |
|
178 { |
|
179 DLG_LINE |
|
180 { |
|
181 type = EAknCtSettingListBox; |
|
182 id = EProfilerGuiSettingItemList; |
|
183 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; |
|
184 control = LISTBOX |
|
185 { |
|
186 flags = EAknListBoxSelectionList; |
|
187 }; |
|
188 } |
|
189 }; |
|
190 } |
|
191 |
|
192 // generic resources |
|
193 RESOURCE POPUP_SETTING_LIST r_popup_setting_list_editor |
|
194 { |
|
195 } |
|
196 RESOURCE AVKON_SETTING_PAGE r_binary_setting_page |
|
197 { |
|
198 number = EAknSettingPageNoOrdinalDisplayed; |
|
199 type = EAknCtPopupSettingList; |
|
200 editor_resource_id = r_popup_setting_list_editor; |
|
201 } |
|
202 RESOURCE AVKON_POPUP_SETTING_TEXTS r_yesno_binaryselection_texts |
|
203 { |
|
204 setting_texts_resource = r_yesno_binaryselection_text_array; |
|
205 } |
|
206 RESOURCE ARRAY r_yesno_binaryselection_text_array |
|
207 { |
|
208 items = |
|
209 { |
|
210 AVKON_ENUMERATED_TEXT { value=0; text = "No"; }, |
|
211 AVKON_ENUMERATED_TEXT { value=1; text = "Yes"; } |
|
212 }; |
|
213 } |
|
214 |
|
215 |
|
216 // |
|
217 // resources for plugin name mode selection |
|
218 // |
|
219 RESOURCE TBUF r_plugin_name_mode_setting_title |
|
220 { |
|
221 buf = "Sampler name length"; |
|
222 } |
|
223 RESOURCE AVKON_SETTING_PAGE r_plugin_name_mode_setting_page |
|
224 { |
|
225 number = EAknSettingPageNoOrdinalDisplayed; |
|
226 type = EAknCtPopupSettingList; |
|
227 editor_resource_id = r_popup_setting_list_editor; |
|
228 } |
|
229 RESOURCE AVKON_POPUP_SETTING_TEXTS r_plugin_name_mode_setting_texts |
|
230 { |
|
231 setting_texts_resource = r_plugin_name_mode_text_array; |
|
232 } |
|
233 RESOURCE ARRAY r_plugin_name_mode_text_array |
|
234 { |
|
235 items = |
|
236 { |
|
237 AVKON_ENUMERATED_TEXT { value=ESamplerNameShort; text = "Short"; }, |
|
238 AVKON_ENUMERATED_TEXT { value=ESamplerNameMedium; text = "Medium"; }, |
|
239 AVKON_ENUMERATED_TEXT { value=ESamplerNameLong; text = "Long"; } |
|
240 }; |
|
241 } |
|
242 |
|
243 |
|
244 // |
|
245 // resources for trace output selection |
|
246 // |
|
247 RESOURCE TBUF r_trace_output_setting_title |
|
248 { |
|
249 buf = "Output to"; |
|
250 } |
|
251 RESOURCE AVKON_SETTING_PAGE r_trace_output_setting_page |
|
252 { |
|
253 number = EAknSettingPageNoOrdinalDisplayed; |
|
254 type = EAknCtPopupSettingList; |
|
255 editor_resource_id = r_popup_setting_list_editor; |
|
256 } |
|
257 RESOURCE AVKON_POPUP_SETTING_TEXTS r_trace_output_setting_texts |
|
258 { |
|
259 setting_texts_resource = r_trace_output_text_array; |
|
260 } |
|
261 RESOURCE ARRAY r_trace_output_text_array |
|
262 { |
|
263 items = |
|
264 { |
|
265 AVKON_ENUMERATED_TEXT { value=EOutputToDebugPort; text = "Debug output"; }, |
|
266 AVKON_ENUMERATED_TEXT { value=EOutputToFileSystem; text = "File system"; } |
|
267 }; |
|
268 } |
|
269 |
|
270 |
|
271 // |
|
272 // resources for save_file_prefix selection |
|
273 // |
|
274 RESOURCE TBUF r_save_file_prefix_setting_title |
|
275 { |
|
276 buf = "File prefix"; |
|
277 } |
|
278 RESOURCE AVKON_SETTING_PAGE r_save_file_prefix_setting_page |
|
279 { |
|
280 type = EEikCtEdwin; |
|
281 editor_resource_id = r_save_file_prefix_text_editor; |
|
282 } |
|
283 |
|
284 RESOURCE EDWIN r_save_file_prefix_text_editor |
|
285 { |
|
286 lines = 0; // expanding to multiple rows |
|
287 maxlength = 63; |
|
288 flags = EEikEdwinNoLineOrParaBreaks; |
|
289 } |
|
290 |
|
291 // |
|
292 // resources for save file drive selection |
|
293 // |
|
294 RESOURCE TBUF r_save_file_drive_setting_title |
|
295 { |
|
296 buf = "Save file in"; |
|
297 } |
|
298 RESOURCE AVKON_SETTING_PAGE r_save_file_drive_setting_page |
|
299 { |
|
300 type = EEikCtEdwin; |
|
301 editor_resource_id = r_save_file_drive_text_editor; |
|
302 } |
|
303 |
|
304 RESOURCE EDWIN r_save_file_drive_text_editor |
|
305 { |
|
306 lines = 0; // expanding to multiple rows |
|
307 maxlength = 63; |
|
308 flags = EEikEdwinNoLineOrParaBreaks; |
|
309 } |
|
310 |
|
311 // |
|
312 // resources for trace mode selection |
|
313 // |
|
314 RESOURCE TBUF r_trace_mode_setting_title |
|
315 { |
|
316 buf = "Trace mode"; |
|
317 } |
|
318 RESOURCE AVKON_SETTING_PAGE r_trace_mode_setting_page |
|
319 { |
|
320 number = EAknSettingPageNoOrdinalDisplayed; |
|
321 type = EAknCtPopupSettingList; |
|
322 editor_resource_id = r_popup_setting_list_editor; |
|
323 } |
|
324 RESOURCE AVKON_POPUP_SETTING_TEXTS r_trace_mode_setting_texts |
|
325 { |
|
326 setting_texts_resource = r_trace_mode_text_array; |
|
327 } |
|
328 RESOURCE ARRAY r_trace_mode_text_array |
|
329 { |
|
330 items = |
|
331 { |
|
332 AVKON_ENUMERATED_TEXT { value=ETraceModeStream; text = "Stream"; }, |
|
333 AVKON_ENUMERATED_TEXT { value=ETraceModeBuffer; text = "Memory buffer"; } |
|
334 }; |
|
335 } |
|
336 |
|
337 // |
|
338 // resources for timed_sampling_period selection |
|
339 // |
|
340 RESOURCE TBUF r_timed_sampling_period_setting_title |
|
341 { |
|
342 buf = "Profiling period (sec.)"; |
|
343 } |
|
344 RESOURCE AVKON_SETTING_PAGE r_timed_sampling_period_setting_page |
|
345 { |
|
346 type = EAknCtIntegerEdwin; |
|
347 editor_resource_id = r_timed_sampling_period_integer_editor; |
|
348 } |
|
349 |
|
350 RESOURCE AVKON_INTEGER_EDWIN r_timed_sampling_period_integer_editor |
|
351 { |
|
352 maxlength = 6; |
|
353 min = 1; |
|
354 max = 999999; |
|
355 } |
|
356 |
|
357 |
|
358 //---------------------------------------------------- |
|
359 // r_profiler_gui_settings_menubar |
|
360 //---------------------------------------------------- |
|
361 // |
|
362 |
|
363 RESOURCE MENU_BAR r_profiler_gui_settings_menubar |
|
364 { |
|
365 titles = |
|
366 { |
|
367 MENU_TITLE |
|
368 { |
|
369 menu_pane = r_profiler_gui_settings_menupane; |
|
370 txt = " "; // dummy |
|
371 } |
|
372 }; |
|
373 } |
|
374 |
|
375 RESOURCE MENU_PANE r_profiler_gui_settings_menupane |
|
376 { |
|
377 items = |
|
378 { |
|
379 MENU_ITEM |
|
380 { |
|
381 command = EProfilerGuiCmdSettingsChange; |
|
382 txt = "Change"; |
|
383 }, |
|
384 MENU_ITEM |
|
385 { |
|
386 command = EProfilerGuiCmdSettingsExit; |
|
387 txt = "Exit"; |
|
388 } |
|
389 }; |
|
390 } |
|
391 |
|
392 //---------------------------------------------------- |
|
393 // r_profiler_gui_settings_dialog |
|
394 // Dialog for setting list |
|
395 //---------------------------------------------------- |
|
396 // |
|
397 RESOURCE DIALOG r_profiler_sampler_settings_dialog |
|
398 { |
|
399 flags = |
|
400 EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | |
|
401 EEikDialogFlagButtonsRight | EEikDialogFlagCbaButtons | |
|
402 EEikDialogFlagWait | EEikDialogFlagNoTitleBar; |
|
403 buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
404 items = |
|
405 { |
|
406 DLG_LINE |
|
407 { |
|
408 type = EAknCtSettingListBox; |
|
409 id = EProfilerSamplerSettingItemList; |
|
410 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; |
|
411 control = LISTBOX |
|
412 { |
|
413 flags = EAknListBoxSelectionList; |
|
414 }; |
|
415 } |
|
416 }; |
|
417 } |
|
418 |
|
419 //---------------------------------------------------- |
|
420 // r_profiler_sampler_settings_menubar |
|
421 //---------------------------------------------------- |
|
422 // |
|
423 |
|
424 RESOURCE MENU_BAR r_profiler_sampler_settings_menubar |
|
425 { |
|
426 titles = |
|
427 { |
|
428 MENU_TITLE |
|
429 { |
|
430 menu_pane = r_profiler_sampler_settings_menupane; |
|
431 txt = "Sampler settings"; |
|
432 } |
|
433 }; |
|
434 } |
|
435 |
|
436 RESOURCE MENU_PANE r_profiler_sampler_settings_menupane |
|
437 { |
|
438 items = |
|
439 { |
|
440 MENU_ITEM |
|
441 { |
|
442 command = EProfilerGuiCmdSettingsChange; |
|
443 txt = "Change"; |
|
444 }, |
|
445 MENU_ITEM |
|
446 { |
|
447 command = EProfilerGuiCmdSettingsExit; |
|
448 txt = "Exit"; |
|
449 } |
|
450 }; |
|
451 } |
|
452 |
|
453 |
|
454 // --------------------------------------------------------- |
|
455 // |
|
456 // r_profiler_gui_about_dialog |
|
457 // About dialog - show version and copyright info etc. |
|
458 // |
|
459 // --------------------------------------------------------- |
|
460 // |
|
461 RESOURCE DIALOG r_profiler_gui_about_dialog |
|
462 { |
|
463 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
464 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
465 items= |
|
466 { |
|
467 DLG_LINE |
|
468 { |
|
469 type = EAknCtPopupHeadingPane; |
|
470 id = EAknMessageQueryHeaderId; |
|
471 control = AVKON_HEADING |
|
472 { |
|
473 label = "About Profiler"; |
|
474 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; |
|
475 }; |
|
476 }, |
|
477 DLG_LINE |
|
478 { |
|
479 type = EAknCtMessageQuery; |
|
480 id = EAknMessageQueryContentId; |
|
481 control = AVKON_MESSAGE_QUERY |
|
482 { |
|
483 message = "Version 2.2.0.2 - 4th May 2010. Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved."; |
|
484 }; |
|
485 } |
|
486 }; |
|
487 } |
|
488 |
|
489 // --------------------------------------------------------- |
|
490 // r_sampler_rate_setting_page |
|
491 // --------------------------------------------------------- |
|
492 // |
|
493 RESOURCE AVKON_SETTING_PAGE r_sampler_rate_setting_page |
|
494 { |
|
495 type = EAknCtIntegerEdwin; |
|
496 editor_resource_id = r_sampler_rate_integer_editor; |
|
497 } |
|
498 RESOURCE AVKON_INTEGER_EDWIN r_sampler_rate_integer_editor |
|
499 { |
|
500 maxlength = 6; |
|
501 min = 250; |
|
502 max = 999999; |
|
503 } |
|
504 |
|
505 // --------------------------------------------------------- |
|
506 // r_cpu_sampler_rate_setting_page |
|
507 // --------------------------------------------------------- |
|
508 // |
|
509 RESOURCE AVKON_SETTING_PAGE r_cpu_sampler_rate_setting_page |
|
510 { |
|
511 type = EAknCtIntegerEdwin; |
|
512 editor_resource_id = r_cpu_sampler_rate_integer_editor; |
|
513 } |
|
514 RESOURCE AVKON_INTEGER_EDWIN r_cpu_sampler_rate_integer_editor |
|
515 { |
|
516 maxlength = 5; |
|
517 min = 1; |
|
518 max = 10000; |
|
519 } |
|
520 |
|
521 // --------------------------------------------------------- |
|
522 // |
|
523 // r_generic_sampler_dlg_line_sample_rate |
|
524 // Empty about dialog - show sampler plugin info in this |
|
525 // |
|
526 // --------------------------------------------------------- |
|
527 // |
|
528 RESOURCE DLG_LINE r_generic_sampler_dlg_line_sample_rate |
|
529 { |
|
530 type = EEikCtNumberEditor; |
|
531 prompt = "Sample rate (ms)"; |
|
532 id = EProfilerGuiGenericSamplerQuerySampleRate; |
|
533 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; |
|
534 control = NUMBER_EDITOR |
|
535 { |
|
536 min = 1000; |
|
537 max = 10000; |
|
538 }; |
|
539 } |
|
540 |
|
541 // --------------------------------------------------------- |
|
542 // |
|
543 // r_profiler_gui_empty_about_dialog |
|
544 // Empty about dialog - show sampler plugin info in this |
|
545 // |
|
546 // --------------------------------------------------------- |
|
547 // |
|
548 RESOURCE DIALOG r_profiler_gui_empty_about_dialog |
|
549 { |
|
550 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
551 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
552 items= |
|
553 { |
|
554 DLG_LINE |
|
555 { |
|
556 type = EAknCtPopupHeadingPane; |
|
557 id = EAknMessageQueryHeaderId; |
|
558 control = AVKON_HEADING |
|
559 { |
|
560 label = "About"; |
|
561 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; |
|
562 }; |
|
563 }, |
|
564 DLG_LINE |
|
565 { |
|
566 type = EAknCtMessageQuery; |
|
567 id = EAknMessageQueryContentId; |
|
568 control = AVKON_MESSAGE_QUERY |
|
569 { |
|
570 message = ""; |
|
571 }; |
|
572 } |
|
573 }; |
|
574 } |
|
575 |
|
576 |
|
577 RESOURCE TBUF r_dummy_setting_title |
|
578 { |
|
579 buf = ""; |
|
580 } |
|
581 |
|
582 RESOURCE TBUF r_sample_rate_setting_title |
|
583 { |
|
584 buf = "Sample rate (ms)"; |
|
585 } |
|
586 |
|
587 RESOURCE TBUF r_item1_setting_title |
|
588 { |
|
589 buf = "Item1"; |
|
590 } |
|
591 |
|
592 RESOURCE TBUF r_item2_setting_title |
|
593 { |
|
594 buf = "Item2"; |
|
595 } |
|
596 |
|
597 RESOURCE TBUF r_item3_setting_title |
|
598 { |
|
599 buf = "Item3"; |
|
600 } |
|
601 |
|
602 RESOURCE TBUF r_item4_setting_title |
|
603 { |
|
604 buf = "Item4"; |
|
605 } |
|
606 |
|
607 RESOURCE TBUF r_item5_setting_title |
|
608 { |
|
609 buf = "Item5"; |
|
610 } |
|
611 |
|
612 RESOURCE TBUF r_item6_setting_title |
|
613 { |
|
614 buf = "Item6"; |
|
615 } |
|
616 |
|
617 RESOURCE AVKON_SETTING_PAGE r_numeric_setting_page |
|
618 { |
|
619 type = EAknCtIntegerEdwin; |
|
620 editor_resource_id = r_numeric_integer_editor; |
|
621 } |
|
622 RESOURCE AVKON_INTEGER_EDWIN r_numeric_integer_editor |
|
623 { |
|
624 maxlength = 5; |
|
625 min = 0; |
|
626 max = 10000; |
|
627 } |
|
628 |
|
629 // |
|
630 // resources for text selection |
|
631 // |
|
632 RESOURCE AVKON_SETTING_PAGE r_generic_text_setting_page |
|
633 { |
|
634 type = EEikCtEdwin; |
|
635 editor_resource_id = r_generic_text_editor; |
|
636 } |
|
637 |
|
638 RESOURCE EDWIN r_generic_text_editor |
|
639 { |
|
640 lines = 0; // expanding to multiple rows |
|
641 maxlength = 63; |
|
642 flags = EEikEdwinNoLineOrParaBreaks; |
|
643 } |
|
644 |
|
645 |
|
646 // --------------------------------------------------------- |
|
647 // r_general_confirmation_query |
|
648 // --------------------------------------------------------- |
|
649 // |
|
650 |
|
651 RESOURCE DIALOG r_general_confirmation_query |
|
652 { |
|
653 flags = EGeneralQueryFlags; |
|
654 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
655 items = |
|
656 { |
|
657 DLG_LINE |
|
658 { |
|
659 type = EAknCtQuery; |
|
660 id = EGeneralQuery; |
|
661 control = AVKON_CONFIRMATION_QUERY |
|
662 { |
|
663 layout = EConfirmationQueryLayout; |
|
664 }; |
|
665 } |
|
666 }; |
|
667 } |
|
668 |
|
669 // --------------------------------------------------------- |
|
670 // r_general_text_query |
|
671 // --------------------------------------------------------- |
|
672 // |
|
673 RESOURCE DIALOG r_general_text_query |
|
674 { |
|
675 flags = EGeneralQueryFlags; |
|
676 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
677 items= |
|
678 { |
|
679 DLG_LINE |
|
680 { |
|
681 type = EAknCtQuery; |
|
682 id = EGeneralQuery; |
|
683 control = AVKON_DATA_QUERY |
|
684 { |
|
685 layout = EDataLayout; |
|
686 control = EDWIN |
|
687 { |
|
688 width = 256; |
|
689 lines = 3; |
|
690 maxlength = 256; |
|
691 }; |
|
692 }; |
|
693 } |
|
694 }; |
|
695 } |
|
696 |
|
697 // --------------------------------------------------------- |
|
698 // r_general_text_query |
|
699 // --------------------------------------------------------- |
|
700 // |
|
701 RESOURCE DIALOG r_general_numeric_query |
|
702 { |
|
703 flags = EGeneralQueryFlags; |
|
704 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
705 items = |
|
706 { |
|
707 DLG_LINE |
|
708 { |
|
709 type = EAknCtQuery; |
|
710 id = EGeneralQuery; |
|
711 control= AVKON_DATA_QUERY |
|
712 { |
|
713 layout = ENumberLayout; |
|
714 control = AVKON_INTEGER_EDWIN |
|
715 { |
|
716 min = -999999; |
|
717 max = 999999; |
|
718 }; |
|
719 }; |
|
720 } |
|
721 }; |
|
722 } |
|
723 |
|
724 |
|
725 // --------------------------------------------------------- |
|
726 // r_item_action_query |
|
727 // --------------------------------------------------------- |
|
728 // |
|
729 RESOURCE DIALOG r_item_action_query_enabled |
|
730 { |
|
731 flags = EGeneralQueryFlags; |
|
732 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
733 items = |
|
734 { |
|
735 AVKON_LIST_QUERY_DLG_LINE |
|
736 { |
|
737 control= AVKON_LIST_QUERY_CONTROL |
|
738 { |
|
739 listtype = EAknCtSinglePopupMenuListBox; |
|
740 listbox = AVKON_LIST_QUERY_LIST |
|
741 { |
|
742 array_id = r_item_action_query_array_enabled; |
|
743 }; |
|
744 heading = "Sampler controls"; |
|
745 }; |
|
746 } |
|
747 }; |
|
748 } |
|
749 |
|
750 RESOURCE DIALOG r_item_action_query_disabled |
|
751 { |
|
752 flags = EGeneralQueryFlags; |
|
753 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
754 items = |
|
755 { |
|
756 AVKON_LIST_QUERY_DLG_LINE |
|
757 { |
|
758 control= AVKON_LIST_QUERY_CONTROL |
|
759 { |
|
760 listtype = EAknCtSinglePopupMenuListBox; |
|
761 listbox = AVKON_LIST_QUERY_LIST |
|
762 { |
|
763 array_id = r_item_action_query_array_disabled; |
|
764 }; |
|
765 heading = "Sampler controls"; |
|
766 }; |
|
767 } |
|
768 }; |
|
769 } |
|
770 |
|
771 RESOURCE DIALOG r_item_action_query_hidden_settings_enabled |
|
772 { |
|
773 flags = EGeneralQueryFlags; |
|
774 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
775 items = |
|
776 { |
|
777 AVKON_LIST_QUERY_DLG_LINE |
|
778 { |
|
779 control= AVKON_LIST_QUERY_CONTROL |
|
780 { |
|
781 listtype = EAknCtSinglePopupMenuListBox; |
|
782 listbox = AVKON_LIST_QUERY_LIST |
|
783 { |
|
784 array_id = r_item_action_query_array_hidden_settings_enabled; |
|
785 }; |
|
786 heading = "Sampler controls"; |
|
787 }; |
|
788 } |
|
789 }; |
|
790 } |
|
791 |
|
792 RESOURCE DIALOG r_item_action_query_hidden_settings_disabled |
|
793 { |
|
794 flags = EGeneralQueryFlags; |
|
795 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
796 items = |
|
797 { |
|
798 AVKON_LIST_QUERY_DLG_LINE |
|
799 { |
|
800 control= AVKON_LIST_QUERY_CONTROL |
|
801 { |
|
802 listtype = EAknCtSinglePopupMenuListBox; |
|
803 listbox = AVKON_LIST_QUERY_LIST |
|
804 { |
|
805 array_id = r_item_action_query_array_hidden_settings_disabled; |
|
806 }; |
|
807 heading = "Sampler controls"; |
|
808 }; |
|
809 } |
|
810 }; |
|
811 } |
|
812 |
|
813 RESOURCE DIALOG r_item_action_query_hidden_start_stop |
|
814 { |
|
815 flags = EGeneralQueryFlags; |
|
816 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
817 items = |
|
818 { |
|
819 AVKON_LIST_QUERY_DLG_LINE |
|
820 { |
|
821 control= AVKON_LIST_QUERY_CONTROL |
|
822 { |
|
823 listtype = EAknCtSinglePopupMenuListBox; |
|
824 listbox = AVKON_LIST_QUERY_LIST |
|
825 { |
|
826 array_id = r_item_action_query_array_hidden_start_stop; |
|
827 }; |
|
828 heading = "Sampler controls"; |
|
829 }; |
|
830 } |
|
831 }; |
|
832 } |
|
833 |
|
834 RESOURCE ARRAY r_item_action_query_array_disabled |
|
835 { |
|
836 items = |
|
837 { |
|
838 LBUF {txt = "Enable"; }, |
|
839 LBUF {txt = "Sampler settings"; }, |
|
840 LBUF {txt = "Sampler info"; } |
|
841 }; |
|
842 } |
|
843 |
|
844 RESOURCE ARRAY r_item_action_query_array_enabled |
|
845 { |
|
846 items = |
|
847 { |
|
848 LBUF {txt = "Disable"; }, |
|
849 LBUF {txt = "Sampler settings"; }, |
|
850 LBUF {txt = "Sampler info"; } |
|
851 }; |
|
852 } |
|
853 |
|
854 RESOURCE ARRAY r_item_action_query_array_hidden_settings_disabled |
|
855 { |
|
856 items = |
|
857 { |
|
858 LBUF {txt = "Enable"; }, |
|
859 LBUF {txt = "Sampler info"; } |
|
860 }; |
|
861 } |
|
862 |
|
863 RESOURCE ARRAY r_item_action_query_array_hidden_settings_enabled |
|
864 { |
|
865 items = |
|
866 { |
|
867 LBUF {txt = "Disable"; }, |
|
868 LBUF {txt = "Sampler info"; } |
|
869 }; |
|
870 } |
|
871 |
|
872 RESOURCE ARRAY r_item_action_query_array_hidden_start_stop |
|
873 { |
|
874 items = |
|
875 { |
|
876 LBUF {txt = "Sampler settings"; }, |
|
877 LBUF {txt = "Sampler info"; } |
|
878 }; |
|
879 } |
|
880 |
|
881 RESOURCE STATUS_PANE_APP_MODEL r_profiler_gui_status_pane |
|
882 { |
|
883 panes = |
|
884 { |
|
885 SPANE_PANE |
|
886 { |
|
887 id = EEikStatusPaneUidTitle; |
|
888 type = EAknCtTitlePane; |
|
889 resource = r_profiler_gui_title_resource; |
|
890 }, |
|
891 SPANE_PANE |
|
892 { |
|
893 id = EEikStatusPaneUidNavi; |
|
894 type = EAknCtNaviPane; |
|
895 resource = r_profiler_gui_navi_text_idle; |
|
896 } |
|
897 }; |
|
898 } |
|
899 |
|
900 RESOURCE TITLE_PANE r_profiler_gui_title_resource |
|
901 { |
|
902 txt = "PI Profiler"; |
|
903 } |
|
904 |
|
905 RESOURCE TBUF r_profiler_gui_navi_text_idle |
|
906 { |
|
907 buf = "Idle"; |
|
908 } |
|
909 |
|
910 RESOURCE TBUF r_profiler_gui_navi_text_initializing |
|
911 { |
|
912 buf = "Initializing..."; |
|
913 } |
|
914 |
|
915 RESOURCE TBUF r_profiler_gui_navi_text_running |
|
916 { |
|
917 buf = "Profiling..."; |
|
918 } |
|
919 |
|
920 RESOURCE TBUF r_profiler_gui_navi_text_stopping |
|
921 { |
|
922 buf = "Stopping..."; |
|
923 } |
|
924 |
|
925 RESOURCE DIALOG r_profiler_gui_conf_query |
|
926 { |
|
927 flags = EAknGeneralQueryFlags; |
|
928 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
929 items = |
|
930 { |
|
931 DLG_LINE |
|
932 { |
|
933 type = EAknCtQuery; |
|
934 id = EProfilerGuiViewConfQuery; |
|
935 control = AVKON_CONFIRMATION_QUERY |
|
936 { |
|
937 layout = EConfirmationQueryLayout; |
|
938 label = "Leave profiling on?"; |
|
939 }; |
|
940 } |
|
941 }; |
|
942 } |
|
943 |
|
944 // |
|
945 // RESOURCE LOCALISABLE_APP_INFO |
|
946 // |
|
947 // --------------------------------------------------------- |
|
948 // |
|
949 RESOURCE LOCALISABLE_APP_INFO r_profiler_gui_localisable_app_info |
|
950 { |
|
951 short_caption = "PI Profiler"; |
|
952 caption_and_icon = |
|
953 CAPTION_AND_ICON_INFO |
|
954 { |
|
955 caption = "PI Profiler"; |
|
956 |
|
957 number_of_icons = 1; |
|
958 |
|
959 // Note for ROM-based apps it is recommended to add the drive letter |
|
960 icon_file = APP_BITMAP_DIR"\\piprofilerui_aif.mif"; |
|
961 }; |
|
962 } |