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