loadgen/ui/avkon/data/loadgen.rss
branchRCL_3
changeset 22 fad26422216a
parent 21 b3cee849fa46
child 23 f8280f3bfeb7
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
     1 /*
       
     2 * Copyright (c) 2010 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 <eikon.hrh>
       
    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 #include <data_caging_paths_strings.hrh>
       
    32 #include <appinfo.rh>
       
    33 
       
    34 #include "loadgen.hrh"
       
    35 #include "loadgen_std.h"
       
    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     //status_pane = r_loadgen_status_pane;
       
    64     //menubar = r_loadgen_menubar;
       
    65     //cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
       
    66     }
       
    67 
       
    68     
       
    69 //----------------------------------------------------
       
    70 //   
       
    71 //    r_loadgen_hotkeys
       
    72 //
       
    73 //----------------------------------------------------
       
    74 //
       
    75 RESOURCE HOTKEYS r_loadgen_hotkeys
       
    76     {
       
    77     control=
       
    78         {
       
    79         HOTKEY { command=EAknCmdExit; key='e'; }
       
    80         };
       
    81     }
       
    82 
       
    83 
       
    84 //----------------------------------------------------
       
    85 //    r_loadgen_view_main
       
    86 //----------------------------------------------------
       
    87 //
       
    88 RESOURCE AVKON_VIEW r_loadgen_view_main
       
    89     {
       
    90     hotkeys=r_loadgen_hotkeys;
       
    91     menubar=r_loadgen_menubar_view_main;  
       
    92     cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;    
       
    93     }
       
    94 
       
    95 //----------------------------------------------------
       
    96 //    r_loadgen_menubar_view_main
       
    97 //----------------------------------------------------
       
    98 //
       
    99 RESOURCE MENU_BAR r_loadgen_menubar_view_main
       
   100     {
       
   101     titles=
       
   102         {
       
   103         MENU_TITLE { menu_pane=r_loadgen_app_menu; txt="App"; },
       
   104         MENU_TITLE { menu_pane=r_loadgen_view_main_menu; txt="Main"; }
       
   105         };
       
   106     }
       
   107 
       
   108 //----------------------------------------------------
       
   109 //    r_loadgen_view_main_menu
       
   110 //----------------------------------------------------
       
   111 //
       
   112 
       
   113 RESOURCE MENU_PANE r_loadgen_view_main_menu
       
   114     {
       
   115     items=
       
   116         {
       
   117         };
       
   118     }
       
   119 
       
   120            
       
   121         
       
   122 //----------------------------------------------------
       
   123 //    r_loadgen_app_menu
       
   124 //----------------------------------------------------
       
   125 //
       
   126 RESOURCE MENU_PANE r_loadgen_app_menu
       
   127     {
       
   128     items=
       
   129         {
       
   130         MENU_ITEM { command=ELoadGenCmdNewLoad; txt="New load"; cascade=r_loadgen_newload_submenu; },
       
   131         MENU_ITEM { command=ELoadGenStopAll; txt="Stop all"; },
       
   132         MENU_ITEM { command=ELoadGenSuspendAll; txt="Suspend all"; },
       
   133         MENU_ITEM { command=ELoadGenResumeAll; txt="Resume all"; },
       
   134         MENU_ITEM { command=ELoadGenCmdLaunchPerfMon; txt="Launch PerfMon"; },
       
   135         MENU_ITEM { command=ELoadGenCmdAbout; txt="About"; },
       
   136         MENU_ITEM { command=EAknCmdExit; txt="Exit"; }
       
   137         };
       
   138     }
       
   139 
       
   140 RESOURCE MENU_PANE r_loadgen_newload_submenu
       
   141     {
       
   142     items = 
       
   143         {
       
   144         MENU_ITEM { command=ELoadGenCmdNewLoadCPULoad; txt="CPU load"; },
       
   145         MENU_ITEM { command=ELoadGenCmdNewLoadEatMemory; txt="Eat memory"; },
       
   146         MENU_ITEM { command=ELoadGenCmdNewLoadPhoneCall; txt="Phone calls"; },
       
   147         MENU_ITEM { command=ELoadGenCmdNewLoadMessages; txt="Messages"; },
       
   148         MENU_ITEM { command=ELoadGenCmdNewLoadNetConn; txt="Network conn."; },
       
   149         MENU_ITEM { command=ELoadGenCmdNewLoadKeyPress; txt="Key presses"; },        
       
   150         MENU_ITEM { command=ELoadGenCmdNewLoadApplications; txt="Applications"; },
       
   151         MENU_ITEM { command=ELoadGenCmdNewLoadPhotoCaptures; txt="Photo captures"; },
       
   152         MENU_ITEM { command=ELoadGenCmdNewLoadBluetooth; txt="Bluetooth actions"; },
       
   153         MENU_ITEM { command=ELoadGenCmdNewLoadPointerEvent; txt="Pointer events"; }
       
   154         };
       
   155     }
       
   156     
       
   157 //----------------------------------------------------
       
   158 //    r_loadgen_settings_dialog
       
   159 //    Dialog for setting list
       
   160 //----------------------------------------------------
       
   161 //
       
   162 RESOURCE DIALOG r_loadgen_settings_dialog
       
   163     {
       
   164     flags =
       
   165         EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
       
   166         EEikDialogFlagButtonsRight | EEikDialogFlagCbaButtons |
       
   167         EEikDialogFlagWait | EEikDialogFlagNoTitleBar;
       
   168     buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
   169     items =
       
   170         {
       
   171         DLG_LINE
       
   172             {
       
   173             type = EAknCtSettingListBox;
       
   174             id = ELoadGenSettingItemList;
       
   175             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   176             control = LISTBOX
       
   177                 {
       
   178                 flags = EAknListBoxSelectionList;
       
   179                 };
       
   180             }
       
   181         };
       
   182     }
       
   183 
       
   184 //----------------------------------------------------
       
   185 //    r_loadgen_settings_menubar
       
   186 //----------------------------------------------------
       
   187 //
       
   188 
       
   189 RESOURCE MENU_BAR r_loadgen_settings_menubar
       
   190     {
       
   191     titles =
       
   192         {
       
   193         MENU_TITLE
       
   194             {
       
   195             menu_pane = r_loadgen_settings_menupane;
       
   196             txt = " ";   // dummy
       
   197             }
       
   198         };
       
   199     }
       
   200 
       
   201 RESOURCE MENU_PANE r_loadgen_settings_menupane
       
   202     {
       
   203     items =
       
   204         {
       
   205         MENU_ITEM
       
   206             {
       
   207             command = ELoadGenCmdSettingsChange;
       
   208             txt = "Change";
       
   209             },
       
   210         MENU_ITEM
       
   211             {
       
   212             command = ELoadGenCmdSettingsExit;
       
   213             txt = "Exit";
       
   214             }
       
   215         };
       
   216     }
       
   217 
       
   218 
       
   219 
       
   220   
       
   221 // ---------------------------------------------------------
       
   222 //   
       
   223 //   r_loadgen_about_dialog
       
   224 //   About dialog - show version and copyright info etc.
       
   225 //
       
   226 // ---------------------------------------------------------
       
   227 //
       
   228 RESOURCE DIALOG r_loadgen_about_dialog
       
   229     {
       
   230     flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   231     buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   232     items=
       
   233         {
       
   234         DLG_LINE
       
   235             {
       
   236             type = EAknCtPopupHeadingPane;
       
   237             id = EAknMessageQueryHeaderId;
       
   238             control = AVKON_HEADING
       
   239                 {
       
   240                 label = "About LoadGen";
       
   241                 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE;
       
   242                 };
       
   243             },
       
   244         DLG_LINE
       
   245             {
       
   246             type = EAknCtMessageQuery;
       
   247             id = EAknMessageQueryContentId;
       
   248             control = AVKON_MESSAGE_QUERY
       
   249                 {
       
   250                 message = "Version 1.5.0 - 23rd April 2010. Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Licensed under Eclipse Public License v1.0.";
       
   251                 };
       
   252             }
       
   253         };
       
   254     }
       
   255 
       
   256 // ---------------------------------------------------------
       
   257 //   r_general_confirmation_query
       
   258 // ---------------------------------------------------------
       
   259 //
       
   260 
       
   261 RESOURCE DIALOG r_general_confirmation_query
       
   262     {
       
   263     flags = EGeneralQueryFlags;
       
   264     buttons = R_AVKON_SOFTKEYS_YES_NO;
       
   265     items =
       
   266         {
       
   267         DLG_LINE
       
   268             {
       
   269             type = EAknCtQuery;
       
   270             id = EGeneralQuery;
       
   271             control = AVKON_CONFIRMATION_QUERY
       
   272                 {
       
   273                 layout = EConfirmationQueryLayout;
       
   274                 };
       
   275             }
       
   276         };
       
   277     }
       
   278 
       
   279 // ---------------------------------------------------------
       
   280 //   r_general_text_query
       
   281 // ---------------------------------------------------------
       
   282 //
       
   283 RESOURCE DIALOG r_general_text_query
       
   284     {
       
   285     flags = EGeneralQueryFlags;
       
   286     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   287     items=
       
   288         {
       
   289         DLG_LINE
       
   290             {
       
   291             type = EAknCtQuery;
       
   292             id = EGeneralQuery;
       
   293             control = AVKON_DATA_QUERY
       
   294                 {
       
   295                 layout = EDataLayout;
       
   296                 control = EDWIN
       
   297                     {
       
   298                     width = 256;
       
   299                     lines = 3;
       
   300                     maxlength = 256;
       
   301                     };
       
   302                 };
       
   303             }
       
   304         };
       
   305     }
       
   306 
       
   307 // ---------------------------------------------------------
       
   308 //   r_general_text_query
       
   309 // ---------------------------------------------------------
       
   310 //
       
   311 RESOURCE DIALOG r_general_numeric_query
       
   312     {
       
   313     flags = EGeneralQueryFlags;
       
   314     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   315     items =
       
   316         {
       
   317         DLG_LINE
       
   318             {
       
   319             type = EAknCtQuery;
       
   320             id = EGeneralQuery;
       
   321             control= AVKON_DATA_QUERY
       
   322                 {
       
   323                 layout = ENumberLayout;
       
   324                 control = AVKON_INTEGER_EDWIN
       
   325                     {
       
   326                     min = -999999;
       
   327                     max = 999999;
       
   328                     };
       
   329                 };
       
   330             }
       
   331         };
       
   332     }
       
   333 
       
   334 
       
   335 // ---------------------------------------------------------
       
   336 //   r_item_action_query
       
   337 // ---------------------------------------------------------
       
   338 //
       
   339 RESOURCE DIALOG r_item_action_query
       
   340     {
       
   341     flags = EGeneralQueryFlags;
       
   342     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   343     items =
       
   344         {
       
   345         AVKON_LIST_QUERY_DLG_LINE
       
   346             {
       
   347             control= AVKON_LIST_QUERY_CONTROL
       
   348                 {
       
   349                 listtype = EAknCtSinglePopupMenuListBox;
       
   350                 listbox = AVKON_LIST_QUERY_LIST
       
   351                     {
       
   352                     array_id = r_item_action_query_array;
       
   353                     };
       
   354                 heading = "";
       
   355                 };
       
   356             }
       
   357         };
       
   358     }
       
   359 
       
   360 RESOURCE ARRAY r_item_action_query_array
       
   361     {
       
   362     items =
       
   363         {
       
   364         LBUF {txt = "Stop"; },
       
   365         LBUF {txt = "Resume/suspend"; },
       
   366         LBUF {txt = "Edit"; }
       
   367         };
       
   368     }     
       
   369 
       
   370 
       
   371 // ---------------------------------------------------------
       
   372 //   r_cpuload_form_dialog
       
   373 // ---------------------------------------------------------
       
   374 //
       
   375 RESOURCE DIALOG r_cpuload_form_dialog
       
   376     {
       
   377     flags = EAknDialogGenericFullScreen;
       
   378     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   379     form = r_cpuload_form;
       
   380     }
       
   381 
       
   382 RESOURCE FORM r_cpuload_form
       
   383     {
       
   384     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   385     items = 
       
   386         {
       
   387         DLG_LINE
       
   388             {
       
   389             type = EAknCtPopupFieldText;
       
   390             prompt = "Priority";
       
   391             id = ELoadGenCPULoadQueryPriority;
       
   392             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   393             control = POPUP_FIELD_TEXT
       
   394                 {
       
   395                 popupfield = POPUP_FIELD
       
   396                     {
       
   397                     width = 100;
       
   398                     };
       
   399                 textarray = r_thread_priority_textarray;
       
   400                 active = 0;    
       
   401                 };
       
   402             },
       
   403         DLG_LINE
       
   404             {
       
   405             type = EAknCtPopupFieldText;
       
   406             prompt = "Load mode";
       
   407             id = ELoadGenCPULoadQueryMode;
       
   408             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   409             control = POPUP_FIELD_TEXT
       
   410                 {
       
   411                 popupfield = POPUP_FIELD
       
   412                     {
       
   413                     width = 100;
       
   414                     };
       
   415                 textarray = r_cpuloadmode_textarray;
       
   416                 active = 0;    
       
   417                 };
       
   418             },
       
   419         DLG_LINE
       
   420             {
       
   421             type = EAknCtPopupFieldText;
       
   422             prompt = "Type";
       
   423             id = ELoadGenCPULoadQueryType;
       
   424             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   425             control = POPUP_FIELD_TEXT
       
   426                 {
       
   427                 popupfield = POPUP_FIELD
       
   428                     {
       
   429                     width = 100;
       
   430                     };
       
   431                 textarray = r_cpuloadtype_textarray;
       
   432                 active = 0;    
       
   433                 };
       
   434             }
       
   435         };
       
   436     }
       
   437 
       
   438 RESOURCE DLG_LINE r_cpuload_dlg_line_periodic_length
       
   439     {
       
   440     type = EEikCtNumberEditor;
       
   441     prompt = "Length (ms)";
       
   442     id = ELoadGenCPULoadQueryLength;
       
   443     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   444     control = NUMBER_EDITOR
       
   445         {
       
   446         min = 0;    
       
   447         max = 999999999;    
       
   448         };
       
   449     }
       
   450 
       
   451 RESOURCE DLG_LINE r_cpuload_dlg_line_periodic_idle
       
   452     {
       
   453     type = EEikCtNumberEditor;
       
   454     prompt = "Idle (ms)";
       
   455     id = ELoadGenCPULoadQueryIdle;
       
   456     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   457     control = NUMBER_EDITOR
       
   458         {
       
   459         min = 0;    
       
   460         max = 999999999;    
       
   461         };
       
   462     }
       
   463 
       
   464 RESOURCE DLG_LINE r_cpuload_dlg_line_periodic_variance
       
   465     {
       
   466     type = EEikCtNumberEditor;
       
   467     prompt = "Random variance (%)";
       
   468     id = ELoadGenCPULoadQueryVariance;
       
   469     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   470     control = NUMBER_EDITOR
       
   471         {
       
   472         min = 0;    
       
   473         max = 100;    
       
   474         };
       
   475     }
       
   476 
       
   477 RESOURCE DLG_LINE r_cpuload_dlg_line_cpu
       
   478     {
       
   479     type = EAknCtPopupFieldText;
       
   480     prompt = "CPU";
       
   481     id = ELoadGenCPULoadQueryCpu;
       
   482     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   483     control = POPUP_FIELD_TEXT
       
   484         {
       
   485         popupfield = POPUP_FIELD
       
   486             {
       
   487             width = 100;
       
   488             };
       
   489         textarray = r_cpuloadcpu_textarray;
       
   490         active = 0;    
       
   491         };
       
   492     }
       
   493 
       
   494                 
       
   495 // ---------------------------------------------------------
       
   496 //   r_memoryeat_form_dialog
       
   497 // ---------------------------------------------------------
       
   498 //
       
   499 RESOURCE DIALOG r_memoryeat_form_dialog
       
   500     {
       
   501     flags = EAknDialogGenericFullScreen;
       
   502     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   503     form = r_memoryeat_form;
       
   504     }
       
   505 
       
   506 RESOURCE FORM r_memoryeat_form
       
   507     {
       
   508     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   509     items = 
       
   510         {
       
   511         DLG_LINE
       
   512             {
       
   513             type = EAknCtPopupFieldText;
       
   514             prompt = "Priority";
       
   515             id = ELoadGenMemoryEatQueryPriority;
       
   516             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   517             control = POPUP_FIELD_TEXT
       
   518                 {
       
   519                 popupfield = POPUP_FIELD
       
   520                     {
       
   521                     width = 100;
       
   522                     };
       
   523                 textarray = r_thread_priority_textarray;
       
   524                 active = 0;    
       
   525                 };
       
   526             },
       
   527         DLG_LINE
       
   528             {
       
   529             type = EAknCtPopupFieldText;
       
   530             prompt = "Source";
       
   531             id = ELoadGenMemoryEatQuerySource;
       
   532             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   533             control = POPUP_FIELD_TEXT
       
   534                 {
       
   535                 popupfield = POPUP_FIELD
       
   536                     {
       
   537                     width = 100;
       
   538                     };
       
   539                 textarray = r_memoryeatsource_textarray;
       
   540                 active = 0;    
       
   541                 };
       
   542             },
       
   543         DLG_LINE
       
   544             {
       
   545             type = EAknCtPopupFieldText;
       
   546             prompt = "Type";
       
   547             id = ELoadGenMemoryEatQueryType;
       
   548             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   549             control = POPUP_FIELD_TEXT
       
   550                 {
       
   551                 popupfield = POPUP_FIELD
       
   552                     {
       
   553                     width = 100;
       
   554                     };
       
   555                 textarray = r_memoryeattype_textarray;
       
   556                 active = 0;    
       
   557                 };
       
   558             },
       
   559         DLG_LINE
       
   560             {
       
   561             type = EEikCtNumberEditor;
       
   562             prompt = "Buffer (B)";
       
   563             id = ELoadGenMemoryEatQueryBuffer;
       
   564             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   565             control = NUMBER_EDITOR
       
   566                 {
       
   567                 min = 0;    
       
   568                 max = 999999999;    
       
   569                 };
       
   570             },
       
   571         DLG_LINE
       
   572             {
       
   573             type = EEikCtNumberEditor;
       
   574             prompt = "Idle after buffer (ms)";
       
   575             id = ELoadGenMemoryEatQueryIdle;
       
   576             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   577             control = NUMBER_EDITOR
       
   578                 {
       
   579                 min = 0;    
       
   580                 max = 999999999;    
       
   581                 };
       
   582             },
       
   583         DLG_LINE
       
   584             {
       
   585             type = EEikCtNumberEditor;
       
   586             prompt = "Random variance (%)";
       
   587             id = ELoadGenMemoryEatQueryVariance;
       
   588             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   589             control = NUMBER_EDITOR
       
   590                 {
       
   591                 min = 0;    
       
   592                 max = 100;    
       
   593                 };
       
   594             }
       
   595         };
       
   596     }
       
   597 
       
   598 RESOURCE DLG_LINE r_memoryeat_dlg_line_amount
       
   599     {
       
   600     type = EEikCtEdwin;
       
   601     prompt = "Amount (B)";
       
   602     id = ELoadGenMemoryEatQueryAmount;
       
   603     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   604     control = EDWIN
       
   605         {
       
   606         flags = KMultiLineExpandingEditorFlags | EEikEdwinNoLineOrParaBreaks;
       
   607         maxlength = 14;    
       
   608         width = 6;
       
   609         default_input_mode = EAknEditorNumericInputMode;
       
   610         allowed_input_modes = EAknEditorNumericInputMode;    
       
   611         };
       
   612     }
       
   613     
       
   614 RESOURCE DLG_LINE r_memoryeat_dlg_line_random_min
       
   615     {
       
   616     type = EEikCtEdwin;
       
   617     prompt = "Min to be left (B)";
       
   618     id = ELoadGenMemoryEatQueryRandomMin;
       
   619     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   620     control = EDWIN
       
   621         {
       
   622         flags = KMultiLineExpandingEditorFlags | EEikEdwinNoLineOrParaBreaks;
       
   623         maxlength = 14;    
       
   624         width = 6;
       
   625         default_input_mode = EAknEditorNumericInputMode;
       
   626         allowed_input_modes = EAknEditorNumericInputMode;    
       
   627         };
       
   628     }
       
   629 
       
   630 RESOURCE DLG_LINE r_memoryeat_dlg_line_random_max
       
   631     {
       
   632     type = EEikCtEdwin;
       
   633     prompt = "Max to be left (B)";
       
   634     id = ELoadGenMemoryEatQueryRandomMax;
       
   635     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   636     control = EDWIN
       
   637         {
       
   638         flags = KMultiLineExpandingEditorFlags | EEikEdwinNoLineOrParaBreaks;
       
   639         maxlength = 14;    
       
   640         width = 6;
       
   641         default_input_mode = EAknEditorNumericInputMode;
       
   642         allowed_input_modes = EAknEditorNumericInputMode;    
       
   643         };
       
   644     }
       
   645 
       
   646 
       
   647 
       
   648 // ---------------------------------------------------------
       
   649 //   r_phonecall_form_dialog
       
   650 // ---------------------------------------------------------
       
   651 //
       
   652 RESOURCE DIALOG r_phonecall_form_dialog
       
   653     {
       
   654     flags = EAknDialogGenericFullScreen;
       
   655     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   656     form = r_phonecall_form;
       
   657     }
       
   658 
       
   659 RESOURCE FORM r_phonecall_form
       
   660     {
       
   661     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   662     items = 
       
   663         {
       
   664         DLG_LINE
       
   665             {
       
   666             type = EAknCtPopupFieldText;
       
   667             prompt = "Priority";
       
   668             id = ELoadGenPhoneCallQueryPriority;
       
   669             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   670             control = POPUP_FIELD_TEXT
       
   671                 {
       
   672                 popupfield = POPUP_FIELD
       
   673                     {
       
   674                     width = 100;
       
   675                     };
       
   676                 textarray = r_thread_priority_textarray;
       
   677                 active = 0;    
       
   678                 };
       
   679             },
       
   680         DLG_LINE
       
   681             {
       
   682             type = EEikCtEdwin;
       
   683             prompt = "Phone number";
       
   684             id = ELoadGenPhoneCallQueryDestination;
       
   685             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   686             control = EDWIN
       
   687                 {
       
   688                 width = 255;    
       
   689                 maxlength = 255;    
       
   690                 };
       
   691             },
       
   692         DLG_LINE
       
   693             {
       
   694             type = EEikCtNumberEditor;
       
   695             prompt = "Length (ms)";
       
   696             id = ELoadGenPhoneCallQueryLength;
       
   697             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   698             control = NUMBER_EDITOR
       
   699                 {
       
   700                 min = 0;    
       
   701                 max = 999999999;    
       
   702                 };
       
   703             },
       
   704         DLG_LINE
       
   705             {
       
   706             type = EEikCtNumberEditor;
       
   707             prompt = "Idle (ms)";
       
   708             id = ELoadGenPhoneCallQueryIdle;
       
   709             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   710             control = NUMBER_EDITOR
       
   711                 {
       
   712                 min = 0;    
       
   713                 max = 999999999;    
       
   714                 };
       
   715             },
       
   716         DLG_LINE
       
   717             {
       
   718             type = EEikCtNumberEditor;
       
   719             prompt = "Random variance (%)";
       
   720             id = ELoadGenPhoneCallQueryVariance;
       
   721             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   722             control = NUMBER_EDITOR
       
   723                 {
       
   724                 min = 0;    
       
   725                 max = 100;    
       
   726                 };
       
   727             }
       
   728         };
       
   729     }
       
   730 
       
   731 
       
   732 // ---------------------------------------------------------
       
   733 //   r_netconn_form_dialog
       
   734 // ---------------------------------------------------------
       
   735 //
       
   736 RESOURCE DIALOG r_netconn_form_dialog
       
   737     {
       
   738     flags = EAknDialogGenericFullScreen;
       
   739     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   740     form = r_netconn_form;
       
   741     }
       
   742 
       
   743 RESOURCE FORM r_netconn_form
       
   744     {
       
   745     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   746     items = 
       
   747         {
       
   748         DLG_LINE
       
   749             {
       
   750             type = EAknCtPopupFieldText;
       
   751             prompt = "Priority";
       
   752             id = ELoadGenNetConnQueryPriority;
       
   753             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   754             control = POPUP_FIELD_TEXT
       
   755                 {
       
   756                 popupfield = POPUP_FIELD
       
   757                     {
       
   758                     width = 100;
       
   759                     };
       
   760                 textarray = r_thread_priority_textarray;
       
   761                 active = 0;    
       
   762                 };
       
   763             },
       
   764         DLG_LINE
       
   765             {
       
   766             type = EEikCtEdwin;
       
   767             prompt = "Destination URL";
       
   768             id = ELoadGenNetConnQueryDestination;
       
   769             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   770             control = EDWIN
       
   771                 {
       
   772                 width = 255;    
       
   773                 maxlength = 255;    
       
   774                 };
       
   775             },
       
   776         DLG_LINE
       
   777             {
       
   778             type = EEikCtNumberEditor;
       
   779             prompt = "Idle (ms)";
       
   780             id = ELoadGenNetConnQueryIdle;
       
   781             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   782             control = NUMBER_EDITOR
       
   783                 {
       
   784                 min = 0;    
       
   785                 max = 999999999;    
       
   786                 };
       
   787             },
       
   788         DLG_LINE
       
   789             {
       
   790             type = EEikCtNumberEditor;
       
   791             prompt = "Random variance (%)";
       
   792             id = ELoadGenNetConnQueryVariance;
       
   793             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   794             control = NUMBER_EDITOR
       
   795                 {
       
   796                 min = 0;    
       
   797                 max = 100;    
       
   798                 };
       
   799             }
       
   800         };
       
   801     }
       
   802 
       
   803 
       
   804 // ---------------------------------------------------------
       
   805 //   r_keypress_form_dialog
       
   806 // ---------------------------------------------------------
       
   807 //
       
   808 RESOURCE DIALOG r_keypress_form_dialog
       
   809     {
       
   810     flags = EAknDialogGenericFullScreen;
       
   811     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   812     form = r_keypress_form;
       
   813     }
       
   814 
       
   815 RESOURCE FORM r_keypress_form
       
   816     {
       
   817     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   818     items = 
       
   819         {
       
   820         DLG_LINE
       
   821             {
       
   822             type = EAknCtPopupFieldText;
       
   823             prompt = "Priority";
       
   824             id = ELoadGenKeyPressQueryPriority;
       
   825             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   826             control = POPUP_FIELD_TEXT
       
   827                 {
       
   828                 popupfield = POPUP_FIELD
       
   829                     {
       
   830                     width = 100;
       
   831                     };
       
   832                 textarray = r_thread_priority_textarray;
       
   833                 active = 0;    
       
   834                 };
       
   835             },
       
   836         DLG_LINE
       
   837             {
       
   838             type = EEikCtNumberEditor;
       
   839             prompt = "Heartbeat (ms)";
       
   840             id = ELoadGenKeyPressQueryHeartBeat;
       
   841             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   842             control = NUMBER_EDITOR
       
   843                 {
       
   844                 min = 0;    
       
   845                 max = 999999999;    
       
   846                 };
       
   847             },
       
   848         DLG_LINE
       
   849             {
       
   850             type = EEikCtNumberEditor;
       
   851             prompt = "Random variance (%)";
       
   852             id = ELoadGenKeyPressQueryVariance;
       
   853             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   854             control = NUMBER_EDITOR
       
   855                 {
       
   856                 min = 0;    
       
   857                 max = 100;    
       
   858                 };
       
   859             }
       
   860         };
       
   861     }    
       
   862 
       
   863 // ---------------------------------------------------------
       
   864 //   r_pointerevent_form_dialog
       
   865 // ---------------------------------------------------------
       
   866 //
       
   867 RESOURCE DIALOG r_pointerevent_form_dialog
       
   868     {
       
   869     flags = EAknDialogGenericFullScreen;
       
   870     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   871     form = r_pointerevent_form;
       
   872     }
       
   873 
       
   874 RESOURCE FORM r_pointerevent_form
       
   875     {
       
   876     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   877     items = 
       
   878         {
       
   879         DLG_LINE
       
   880             {
       
   881             type = EAknCtPopupFieldText;
       
   882             prompt = "Priority";
       
   883             id = ELoadGenPointerEventQueryPriority;
       
   884             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   885             control = POPUP_FIELD_TEXT
       
   886                 {
       
   887                 popupfield = POPUP_FIELD
       
   888                     {
       
   889                     width = 100;
       
   890                     };
       
   891                 textarray = r_thread_priority_textarray;
       
   892                 active = 0;    
       
   893                 };
       
   894             },
       
   895         DLG_LINE
       
   896             {
       
   897             type = EEikCtNumberEditor;
       
   898             prompt = "Heartbeat (ms)";
       
   899             id = ELoadGenPointerEventQueryHeartBeat;
       
   900             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   901             control = NUMBER_EDITOR
       
   902                 {
       
   903                 min = 0;    
       
   904                 max = 999999999;    
       
   905                 };
       
   906             },
       
   907         DLG_LINE
       
   908             {
       
   909             type = EEikCtNumberEditor;
       
   910             prompt = "Random variance (%)";
       
   911             id = ELoadGenPointerEventQueryVariance;
       
   912             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   913             control = NUMBER_EDITOR
       
   914                 {
       
   915                 min = 0;    
       
   916                 max = 100;    
       
   917                 };
       
   918             }
       
   919         };
       
   920     }
       
   921 
       
   922 // ---------------------------------------------------------
       
   923 //   r_messages_form_dialog
       
   924 // ---------------------------------------------------------
       
   925 //
       
   926 RESOURCE DIALOG r_messages_form_dialog
       
   927     {
       
   928     flags = EAknDialogGenericFullScreen;
       
   929     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   930     form = r_messages_form;
       
   931     }
       
   932 
       
   933 RESOURCE FORM r_messages_form
       
   934     {
       
   935     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   936     items = 
       
   937         {
       
   938         DLG_LINE
       
   939             {
       
   940             type = EAknCtPopupFieldText;
       
   941             prompt = "Priority";
       
   942             id = ELoadGenMessagesQueryPriority;
       
   943             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   944             control = POPUP_FIELD_TEXT
       
   945                 {
       
   946                 popupfield = POPUP_FIELD
       
   947                     {
       
   948                     width = 100;
       
   949                     };
       
   950                 textarray = r_thread_priority_textarray;
       
   951                 active = 0;    
       
   952                 };
       
   953             },
       
   954             DLG_LINE
       
   955                 {
       
   956                 type = EAknCtPopupFieldText;
       
   957                 prompt = "Type";
       
   958                 id = ELoadGenMessagesQueryType;
       
   959                 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   960                 control = POPUP_FIELD_TEXT
       
   961                     {
       
   962                     popupfield = POPUP_FIELD
       
   963                         {
       
   964                         width = 100;
       
   965                         };
       
   966                     textarray = r_message_type_textarray;
       
   967                     active = 0;    
       
   968                     };
       
   969                 },            
       
   970         DLG_LINE
       
   971             {
       
   972             type = EEikCtEdwin;
       
   973             prompt = "Phone number";
       
   974             id = ELoadGenMessagesQueryDestination;
       
   975             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   976             control = EDWIN
       
   977                 {
       
   978                 width = 255;    
       
   979                 maxlength = 255;    
       
   980                 };
       
   981             },
       
   982         DLG_LINE
       
   983             {
       
   984             type = EEikCtNumberEditor;
       
   985             prompt = "Maximum amount of messages";
       
   986             id = ELoadGenMessagesQueryAmount;
       
   987             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   988             control = NUMBER_EDITOR
       
   989                 {
       
   990                 min = 0;    
       
   991                 max = 1000;    
       
   992                 };
       
   993             },            
       
   994         DLG_LINE
       
   995             {
       
   996             type = EEikCtNumberEditor;
       
   997             prompt = "Message length";
       
   998             id = ELoadGenMessagesQueryLength;
       
   999             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1000             control = NUMBER_EDITOR
       
  1001                 {
       
  1002                 min = 0;    
       
  1003                 max = 512;    
       
  1004                 };
       
  1005             },
       
  1006         DLG_LINE
       
  1007             {
       
  1008             type = EEikCtNumberEditor;
       
  1009             prompt = "Idle (ms)";
       
  1010             id = ELoadGenMessagesQueryIdle;
       
  1011             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1012             control = NUMBER_EDITOR
       
  1013                 {
       
  1014                 min = 0;    
       
  1015                 max = 999999999;    
       
  1016                 };
       
  1017             },
       
  1018         DLG_LINE
       
  1019             {
       
  1020             type = EEikCtNumberEditor;
       
  1021             prompt = "Random variance (%)";
       
  1022             id = ELoadGenMessagesQueryVariance;
       
  1023             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1024             control = NUMBER_EDITOR
       
  1025                 {
       
  1026                 min = 0;    
       
  1027                 max = 100;    
       
  1028                 };
       
  1029             }
       
  1030         };
       
  1031     }
       
  1032 
       
  1033 // ---------------------------------------------------------
       
  1034 //   r_applicatios_form_dialog
       
  1035 // ---------------------------------------------------------
       
  1036 //
       
  1037 RESOURCE DIALOG r_applications_form_dialog
       
  1038     {
       
  1039     flags = EAknDialogGenericFullScreen;
       
  1040     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
  1041     form = r_applications_form;
       
  1042     }
       
  1043 
       
  1044 RESOURCE FORM r_applications_form
       
  1045     {
       
  1046     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
  1047     items = 
       
  1048         {
       
  1049         DLG_LINE
       
  1050             {
       
  1051             type = EAknCtPopupFieldText;
       
  1052             prompt = "Priority";
       
  1053             id = ELoadGenApplicationsQueryPriority;
       
  1054             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1055             control = POPUP_FIELD_TEXT
       
  1056                 {
       
  1057                 popupfield = POPUP_FIELD
       
  1058                     {
       
  1059                     width = 100;
       
  1060                     };
       
  1061                 textarray = r_thread_priority_textarray;
       
  1062                 active = 0;    
       
  1063                 };
       
  1064             },            
       
  1065         DLG_LINE
       
  1066             {
       
  1067             type = EEikCtNumberEditor;
       
  1068             prompt = "Max parallel applications";
       
  1069             id = ELoadGenApplicationsMaxOpen;
       
  1070             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1071             control = NUMBER_EDITOR
       
  1072                 {
       
  1073                 min = 0;    
       
  1074                 max = 100;    
       
  1075                 };
       
  1076             },
       
  1077         DLG_LINE
       
  1078             {
       
  1079             type = EEikCtNumberEditor;
       
  1080             prompt = "Launching interval (ms)";
       
  1081             id = ELoadGenApplicationsLaunchingInterval;
       
  1082             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1083             control = NUMBER_EDITOR
       
  1084                 {
       
  1085                 min = 0;    
       
  1086                 max = 999999999;    
       
  1087                 };
       
  1088             },
       
  1089             
       
  1090         DLG_LINE
       
  1091             {
       
  1092             type = EAknCtPopupFieldText;
       
  1093             prompt = "Key press type";
       
  1094             id = ELoadGenApplicationsKeyPressType;
       
  1095             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1096             control = POPUP_FIELD_TEXT
       
  1097                 {
       
  1098                 popupfield = POPUP_FIELD
       
  1099                     {
       
  1100                     width = 100;
       
  1101                     };
       
  1102                 textarray = r_applications_keypress_type_textarray;
       
  1103                 active = 0;    
       
  1104                 };
       
  1105             },            
       
  1106         DLG_LINE
       
  1107             {
       
  1108             type = EEikCtNumberEditor;
       
  1109             prompt = "Key press interval (ms)";
       
  1110             id = ELoadGenApplicationsKeyPressQueryHeartBeat;
       
  1111             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1112             control = NUMBER_EDITOR
       
  1113                 {
       
  1114                 min = 0;    
       
  1115                 max = 999999999;    
       
  1116                 };
       
  1117             },
       
  1118         DLG_LINE
       
  1119             {
       
  1120             type = EEikCtNumberEditor;
       
  1121             prompt = "Random variance (%)";
       
  1122             id = ELoadGenApplicationsQueryVariance;
       
  1123             itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1124             control = NUMBER_EDITOR
       
  1125                 {
       
  1126                 min = 0;    
       
  1127                 max = 100;    
       
  1128                 };
       
  1129             }
       
  1130         };
       
  1131     }    
       
  1132 
       
  1133 // ---------------------------------------------------------
       
  1134 //   r_photocapture_form_dialog
       
  1135 // ---------------------------------------------------------
       
  1136 //
       
  1137 RESOURCE DIALOG r_photocapture_form_dialog
       
  1138     {
       
  1139     flags = EAknDialogGenericFullScreen;
       
  1140     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
  1141     form = r_photocapture_form;
       
  1142     }
       
  1143 
       
  1144 RESOURCE FORM r_photocapture_form
       
  1145     {
       
  1146     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
  1147     items = 
       
  1148         {
       
  1149                 DLG_LINE
       
  1150                     {
       
  1151                     type = EAknCtPopupFieldText;
       
  1152                     prompt = "Priority";
       
  1153                     id = ELoadGenPhotoCaptureQueryPriority;
       
  1154                     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1155                     control = POPUP_FIELD_TEXT
       
  1156                         {
       
  1157                         popupfield = POPUP_FIELD
       
  1158                             {
       
  1159                             width = 100;
       
  1160                             };
       
  1161                         textarray = r_thread_priority_textarray;
       
  1162                         active = 0;    
       
  1163                         };
       
  1164                     },
       
  1165                 DLG_LINE
       
  1166                     {
       
  1167                     type = EEikCtNumberEditor;
       
  1168                     prompt = "Idle (ms)";
       
  1169                     id = ELoadGenPhotoCaptureQueryIdle;
       
  1170                     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1171                     control = NUMBER_EDITOR
       
  1172                         {
       
  1173                         min = 0;    
       
  1174                         max = 999999999;    
       
  1175                         };
       
  1176                     },
       
  1177                 DLG_LINE
       
  1178                     {
       
  1179                     type = EEikCtNumberEditor;
       
  1180                     prompt = "Random variance (%)";
       
  1181                     id = ELoadGenPhotoCaptureQueryVariance;
       
  1182                     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1183                     control = NUMBER_EDITOR
       
  1184                         {
       
  1185                         min = 0;    
       
  1186                         max = 100;    
       
  1187                         };
       
  1188                     }
       
  1189         };
       
  1190     }
       
  1191 
       
  1192 /*RESOURCE DLG_LINE r_photocapture_dlg_line_periodic_idle
       
  1193     {
       
  1194     type = EEikCtNumberEditor;
       
  1195     prompt = "Idle (ms)";
       
  1196     id = ELoadGenPhotoCaptureQueryIdle;
       
  1197     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1198     control = NUMBER_EDITOR
       
  1199         {
       
  1200         min = 0;    
       
  1201         max = 999999999;    
       
  1202         };
       
  1203     }
       
  1204 
       
  1205 RESOURCE DLG_LINE r_photocapture_dlg_line_periodic_variance
       
  1206     {
       
  1207     type = EEikCtNumberEditor;
       
  1208     prompt = "Random variance (%)";
       
  1209     id = ELoadGenPhotoCaptureQueryVariance;
       
  1210     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1211     control = NUMBER_EDITOR
       
  1212         {
       
  1213         min = 0;    
       
  1214         max = 100;    
       
  1215         };
       
  1216     }*/
       
  1217 
       
  1218 RESOURCE DLG_LINE r_photocapture_dlg_line_device
       
  1219     {
       
  1220     type = EAknCtPopupFieldText;
       
  1221     prompt = "Device";
       
  1222     id = ELoadGenPhotoCaptureQueryDevice;
       
  1223     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1224     control = POPUP_FIELD_TEXT
       
  1225         {
       
  1226         popupfield = POPUP_FIELD
       
  1227             {
       
  1228             width = 100;
       
  1229             };
       
  1230         textarray = r_photocapturedevice_textarray;
       
  1231         active = 0;    
       
  1232         };
       
  1233     }
       
  1234 
       
  1235 // ---------------------------------------------------------
       
  1236 //   r_photocapture_form_dialog
       
  1237 // ---------------------------------------------------------
       
  1238 //
       
  1239 RESOURCE DIALOG r_bluetooth_form_dialog
       
  1240     {
       
  1241     flags = EAknDialogGenericFullScreen;
       
  1242     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
  1243     form = r_bluetooth_form;
       
  1244     }
       
  1245 
       
  1246 RESOURCE FORM r_bluetooth_form
       
  1247     {
       
  1248     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
  1249     items = 
       
  1250         {
       
  1251                 DLG_LINE
       
  1252                     {
       
  1253                     type = EAknCtPopupFieldText;
       
  1254                     prompt = "Priority";
       
  1255                     id = ELoadGenBluetoothQueryPriority;
       
  1256                     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1257                     control = POPUP_FIELD_TEXT
       
  1258                         {
       
  1259                         popupfield = POPUP_FIELD
       
  1260                             {
       
  1261                             width = 100;
       
  1262                             };
       
  1263                         textarray = r_thread_priority_textarray;
       
  1264                         active = 0;    
       
  1265                         };
       
  1266                     },
       
  1267                 DLG_LINE
       
  1268                     {
       
  1269                     type = EEikCtNumberEditor;
       
  1270                     prompt = "Idle (ms)";
       
  1271                     id = ELoadGenBluetoothQueryIdle;
       
  1272                     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1273                     control = NUMBER_EDITOR
       
  1274                         {
       
  1275                         min = 0;    
       
  1276                         max = 999999999;    
       
  1277                         };
       
  1278                     },
       
  1279                 DLG_LINE
       
  1280                     {
       
  1281                     type = EEikCtNumberEditor;
       
  1282                     prompt = "Random variance (%)";
       
  1283                     id = ELoadGenBluetoothQueryVariance;
       
  1284                     itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
  1285                     control = NUMBER_EDITOR
       
  1286                         {
       
  1287                         min = 0;    
       
  1288                         max = 100;    
       
  1289                         };
       
  1290                     }
       
  1291         };
       
  1292     }
       
  1293 
       
  1294 // ---------------------------------------------------------
       
  1295 // Arrays for forms:    
       
  1296     
       
  1297 RESOURCE ARRAY r_thread_priority_textarray
       
  1298     {
       
  1299     items =
       
  1300         {
       
  1301         LBUF { txt = "Much less (-20)"; },
       
  1302         LBUF { txt = "Less (-10)"; },
       
  1303         LBUF { txt = "Normal (0)"; },
       
  1304         LBUF { txt = "More (10)"; },
       
  1305         LBUF { txt = "Much more (20)"; },
       
  1306         LBUF { txt = "Real time (30)"; },
       
  1307         LBUF { txt = "Abs. very low (100)"; },
       
  1308         LBUF { txt = "Abs. low (200)"; },
       
  1309         LBUF { txt = "Abs. backgr. (300)"; },
       
  1310         LBUF { txt = "Abs. foregr. (400)"; },
       
  1311         LBUF { txt = "Abs. high (500)"; }
       
  1312         };
       
  1313     } 
       
  1314 
       
  1315 RESOURCE ARRAY r_cpuloadmode_textarray
       
  1316     {
       
  1317     items =
       
  1318         {
       
  1319         LBUF { txt = "Yielding"; },
       
  1320         LBUF { txt = "Blocking"; }
       
  1321         };
       
  1322     } 
       
  1323     
       
  1324 RESOURCE ARRAY r_cpuloadtype_textarray
       
  1325     {
       
  1326     items =
       
  1327         {
       
  1328         LBUF { txt = "Continuous"; },
       
  1329         LBUF { txt = "Periodic"; }
       
  1330         };
       
  1331     }       
       
  1332 
       
  1333 RESOURCE ARRAY r_cpuloadcpu_textarray
       
  1334     {
       
  1335     items =
       
  1336         {
       
  1337         LBUF { txt = "CPU0"; }
       
  1338         };
       
  1339     }       
       
  1340 
       
  1341 RESOURCE ARRAY r_memoryeatsource_textarray
       
  1342     {
       
  1343     items =
       
  1344         {
       
  1345         LBUF { txt = "RAM"; },
       
  1346         LBUF { txt = "C:"; },
       
  1347         LBUF { txt = "D:"; },
       
  1348         LBUF { txt = "E:"; },
       
  1349         LBUF { txt = "F:"; },
       
  1350         LBUF { txt = "G:"; },
       
  1351         LBUF { txt = "H:"; },
       
  1352         LBUF { txt = "I:"; },
       
  1353         LBUF { txt = "J:"; },
       
  1354         LBUF { txt = "K:"; },
       
  1355         LBUF { txt = "L:"; },
       
  1356         LBUF { txt = "M:"; },
       
  1357         LBUF { txt = "N:"; }
       
  1358         };
       
  1359     }
       
  1360     
       
  1361 RESOURCE ARRAY r_memoryeattype_textarray
       
  1362     {
       
  1363     items =
       
  1364         {
       
  1365         LBUF { txt = "Memory to eat"; },
       
  1366         LBUF { txt = "Memory to be left"; },
       
  1367         LBUF { txt = "Alternate min/max"; }
       
  1368         };
       
  1369     }
       
  1370     
       
  1371 RESOURCE ARRAY r_message_type_textarray
       
  1372     {
       
  1373     items =
       
  1374         {
       
  1375         LBUF { txt = "SMS"; },
       
  1376         LBUF { txt = "MMS"; }
       
  1377         };
       
  1378     } 
       
  1379 
       
  1380 RESOURCE ARRAY r_applications_keypress_type_textarray
       
  1381     {
       
  1382     items =
       
  1383         {
       
  1384         LBUF { txt = "None"; },
       
  1385         LBUF { txt = "Arrow keys"; }
       
  1386         };
       
  1387     } 
       
  1388 
       
  1389 RESOURCE ARRAY r_photocapturedevice_textarray
       
  1390     {
       
  1391     items =
       
  1392         {
       
  1393         LBUF { txt = "Camera 1"; }
       
  1394         };
       
  1395     } 
       
  1396 
       
  1397 
       
  1398 RESOURCE LOCALISABLE_APP_INFO r_loadgen_localisable_app_info
       
  1399     {
       
  1400     short_caption = "LoadGen";
       
  1401     caption_and_icon = 
       
  1402     CAPTION_AND_ICON_INFO
       
  1403         {
       
  1404         caption = "Load Gener.";
       
  1405 
       
  1406         number_of_icons = 1;
       
  1407 
       
  1408         // Note for ROM-based apps it is recommended to add the drive letter
       
  1409         // icon_file = "z:"APP_BITMAP_DIR"\\myapp_aif.mif";
       
  1410         icon_file = APP_BITMAP_DIR"\\loadgen_aif.mif";
       
  1411         };
       
  1412     }
       
  1413 
       
  1414 
       
  1415 
       
  1416 // ---------------------------------------------------------
       
  1417 //   
       
  1418 //    RESOURCE LOCALISABLE_APP_INFO
       
  1419 //
       
  1420 // ---------------------------------------------------------
       
  1421 //