systemsettings/gssensorplugin/data/gssensorpluginrsc.rss
changeset 0 2e3d3ce01487
child 18 0818dd463d41
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Resource definitions for project gssensorplugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // 4 letter identifier, stands for SENsor Plugin
       
    20 NAME SENP
       
    21 
       
    22 #include    <avkon.loc> // Avkon localized strings
       
    23 #include    <avkon.mbg>
       
    24 #include    <avkon.rsg>
       
    25 #include    <EIKCORE.rsg>
       
    26 #include    <uikon.rh>
       
    27 #include    <eikon.rh>
       
    28 #include    <eikon.rsg>
       
    29 #include    <avkon.rh>
       
    30 #include    <GSApp.rsg>
       
    31 
       
    32 #include    <gs.loc> // Common localized GS strings
       
    33 #include    <gscommon.rh> // Common GS resource structures
       
    34 
       
    35 #include    <gssensorplugin.loc> // own loc file
       
    36 
       
    37 #include    "gssensorplugin.hrh"
       
    38 
       
    39 RESOURCE RSS_SIGNATURE
       
    40     {
       
    41     }
       
    42 
       
    43 RESOURCE TBUF { buf="SENP"; }
       
    44 
       
    45 //----------------------------------------------------
       
    46 //  r_gs_sensor_view_caption
       
    47 // 
       
    48 // Sensor view caption for plugin
       
    49 //----------------------------------------------------
       
    50 //
       
    51 RESOURCE TBUF r_gs_sensor_view_caption
       
    52     {
       
    53     buf = qtn_set_folder_sensor;
       
    54     }
       
    55 
       
    56 RESOURCE TBUF r_gs_mks_label_open
       
    57     {
       
    58     buf = qtn_set_options_open;
       
    59     }
       
    60 
       
    61 RESOURCE TBUF r_gs_mks_label_change
       
    62     {
       
    63     buf = qtn_set_options_change;
       
    64     }
       
    65 
       
    66 RESOURCE TBUF r_gs_mks_label_mark
       
    67     {
       
    68     buf = text_softkey_mark;
       
    69     }
       
    70 
       
    71 RESOURCE TBUF r_gs_mks_label_unmark
       
    72     {
       
    73     buf = text_softkey_unmark;
       
    74     }
       
    75 
       
    76 //----------------------------------------------------
       
    77 //   
       
    78 //    r_gs_sen_view
       
    79 //    Sensor view.
       
    80 //----------------------------------------------------
       
    81 //
       
    82 RESOURCE AVKON_VIEW r_gs_sen_view
       
    83     {
       
    84     menubar = r_gs_sen_menubar_open_exit;
       
    85     cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
    86     }
       
    87 
       
    88 //------------------------------------------------------------------------------
       
    89 //   r_gs_sen_information_note
       
    90 //------------------------------------------------------------------------------
       
    91 
       
    92 RESOURCE DIALOG r_gs_sen_information_note
       
    93     {
       
    94     flags = EEikDialogFlagNoDrag |
       
    95             EEikDialogFlagNoTitleBar |
       
    96             EEikDialogFlagCbaButtons |
       
    97             EEikDialogFlagWait;
       
    98 
       
    99 
       
   100     buttons = R_AVKON_SOFTKEYS_EMPTY;
       
   101     items =
       
   102         {
       
   103         DLG_LINE
       
   104             {
       
   105             type = EAknCtNote;
       
   106             id = EGeneralNote;
       
   107             control = AVKON_NOTE 
       
   108                 { 
       
   109                 layout = EGeneralLayout;
       
   110                 singular_label = qtn_sensor_setting_switch_off_note;
       
   111                 animation = R_QGN_NOTE_INFO_ANIM;
       
   112                 };
       
   113             }
       
   114         };
       
   115 
       
   116     }
       
   117 
       
   118 //----------------------------------------------------------
       
   119 //    r_gs_sen_confirm_yes_no_query
       
   120 //----------------------------------------------------------
       
   121 //
       
   122 RESOURCE DIALOG r_gs_sen_confirm_yes_no_query
       
   123     {
       
   124     flags = EGeneralQueryFlags;
       
   125     buttons = R_AVKON_SOFTKEYS_YES_NO;
       
   126     items =
       
   127         {
       
   128         DLG_LINE
       
   129             {
       
   130             type = EAknCtQuery;
       
   131             id = EGeneralQuery;
       
   132             control = AVKON_CONFIRMATION_QUERY 
       
   133                 {
       
   134                 layout = EConfirmationLayout;
       
   135                 label = qtn_sensor_setting_switch_on_query;
       
   136                 animation = R_QGN_NOTE_QUERY_ANIM;
       
   137                 };
       
   138             }
       
   139         };
       
   140     }
       
   141     
       
   142 //----------------------------------------------------
       
   143 //   
       
   144 //    r_gs_sen_view_title
       
   145 //    Sensor view's title.
       
   146 //
       
   147 //----------------------------------------------------
       
   148 //
       
   149 RESOURCE TITLE_PANE r_gs_sen_view_title
       
   150     {
       
   151     txt = qtn_set_title_settings_sensor;
       
   152     }
       
   153 
       
   154 
       
   155 //----------------------------------------------------
       
   156 //   
       
   157 //    r_gs_menubar_open_exit
       
   158 //    Options menu with 'Open' and 'Exit'
       
   159 //
       
   160 //----------------------------------------------------
       
   161 //
       
   162 RESOURCE MENU_BAR r_gs_sen_menubar_open_exit
       
   163     {
       
   164     titles =
       
   165         {
       
   166         MENU_TITLE 
       
   167             { 
       
   168             menu_pane = r_gs_sen_menu_item_exit;
       
   169             },
       
   170         MENU_TITLE 
       
   171             {
       
   172             menu_pane = r_gs_sen_menu_item_open;
       
   173             }
       
   174         };
       
   175     }
       
   176 
       
   177 // -----------------------------------------------------------------------------
       
   178 // r_gs_sen_menubar_change_exit
       
   179 // Menu bar.
       
   180 // -----------------------------------------------------------------------------
       
   181 //
       
   182 RESOURCE MENU_BAR r_gs_sen_menubar_change_exit
       
   183     {
       
   184     titles =
       
   185         {
       
   186         MENU_TITLE
       
   187             {
       
   188             menu_pane = r_gs_sen_menu_item_exit;
       
   189             },
       
   190         MENU_TITLE
       
   191             {
       
   192             menu_pane = r_gs_sen_menu_item_change;
       
   193             }
       
   194         };
       
   195     }
       
   196 
       
   197 // -----------------------------------------------------------------------------
       
   198 // r_gs_sen__menu_item_change
       
   199 // Change item.
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 RESOURCE MENU_PANE r_gs_sen_menu_item_change
       
   203     {
       
   204     items =
       
   205         {
       
   206         MENU_ITEM
       
   207             {
       
   208             command = EGSSenMskGeneral;
       
   209             txt = qtn_set_options_change;
       
   210             flags = EEikMenuItemAction; // action command
       
   211             }
       
   212         };
       
   213     }
       
   214 
       
   215 #ifdef __SERIES60_HELP
       
   216 
       
   217     // -----------------------------------------------------------------------------
       
   218     //
       
   219     // r_gs_sen_menu_item_exit
       
   220     // Options menu items 'Help' and 'Exit'. Used instead of plain 'Exit' when help
       
   221     // is wanted to be shown in UI.
       
   222     //
       
   223     // -----------------------------------------------------------------------------
       
   224     //
       
   225     RESOURCE MENU_PANE r_gs_sen_menu_item_exit
       
   226         {
       
   227         items =
       
   228             {
       
   229             MENU_ITEM
       
   230                 {
       
   231                 command = EAknCmdHelp;
       
   232                 txt = qtn_options_help;
       
   233                 },
       
   234             MENU_ITEM
       
   235                 {
       
   236                 command = EGSSenMenuExit;
       
   237                 txt = qtn_options_exit;
       
   238                 }
       
   239             };
       
   240         }
       
   241 
       
   242 #else // if __SERIES60_HELP not defined
       
   243 
       
   244     // -----------------------------------------------------------------------------
       
   245     //
       
   246     // r_gs_sen_menu_item_exit
       
   247     // Exit item.
       
   248     //
       
   249     // -----------------------------------------------------------------------------
       
   250     //
       
   251     RESOURCE MENU_PANE r_gs_sen_menu_item_exit
       
   252         {
       
   253         items =
       
   254             {
       
   255             MENU_ITEM
       
   256                 {
       
   257                 command = EGSSenMenuExit;
       
   258                 txt = qtn_options_exit;
       
   259                 }
       
   260             };
       
   261         }
       
   262 #endif // __SERIES60_HELP
       
   263 
       
   264 //----------------------------------------------------
       
   265 //
       
   266 // r_gs_sen_menu_item_open
       
   267 // Open item.
       
   268 //
       
   269 //----------------------------------------------------
       
   270 
       
   271 RESOURCE MENU_PANE r_gs_sen_menu_item_open
       
   272     {
       
   273     items =
       
   274         {
       
   275         MENU_ITEM
       
   276             {
       
   277             command = EGSSenMenuOpen;
       
   278             txt = qtn_set_options_open;
       
   279 	    flags = EEikMenuItemAction;
       
   280             },
       
   281         MENU_ITEM
       
   282             {
       
   283             command = EGSSenMenuChange;
       
   284             txt = qtn_set_options_change;
       
   285 	    flags = EEikMenuItemAction;
       
   286             }
       
   287         };
       
   288     }
       
   289 
       
   290 //----------------------------------------------------
       
   291 //    
       
   292 //    r_gs_sen_double_lbx
       
   293 //    Sensors view's listbox.
       
   294 //		" \tFirstLabel\tSecondLabel\t0\t0"
       
   295 //----------------------------------------------------
       
   296 //
       
   297 RESOURCE GS_FEATURE_ARRAY r_gs_sen_double_lbx
       
   298     {
       
   299     items =
       
   300         {
       
   301         GS_FEATURE
       
   302             {
       
   303             txt = " \t"qtn_set_sensor_sensors"\t\t";
       
   304             item = EGSSensorsListItemId;
       
   305             },
       
   306         GS_FEATURE
       
   307             {
       
   308             txt = " \t"qtn_set_sensor_tapping_control"\t\t";
       
   309 	    
       
   310             item = EGSTapCtrlListItemId;
       
   311             },
       
   312         GS_FEATURE
       
   313             {
       
   314             txt = " \t"qtn_set_sensor_turning_control"\t\t";
       
   315             item = EGSTurnCtrlListItemId;
       
   316             }
       
   317 
       
   318 // Commented out because orientation is not supported yet
       
   319 //        GS_FEATURE
       
   320 //            {
       
   321 //            txt = " \t"qtn_set_sensor_orientation"\t\t";
       
   322 //            item = EGSOrientationListItemId;
       
   323 //            }
       
   324         };
       
   325     }
       
   326 
       
   327 //----------------------------------------------------
       
   328 //    
       
   329 //    r_gs_sen_double_lbx_text
       
   330 //    Sensors view's listbox.
       
   331 //		" \tFirstLabel\tSecondLabel\t0\t0"
       
   332 //----------------------------------------------------
       
   333 //
       
   334 RESOURCE ARRAY r_gs_sen_double_lbx_text
       
   335     {
       
   336     items =
       
   337         {
       
   338         LBUF
       
   339             {
       
   340             txt = qtn_set_sensor_sensors;
       
   341             },
       
   342         LBUF
       
   343             {
       
   344             txt = qtn_set_sensor_tapping_control;
       
   345             },
       
   346         LBUF
       
   347             {
       
   348             txt = qtn_set_sensor_turning_control;
       
   349             }
       
   350 
       
   351 // Commented out because orientation is not supported yet
       
   352 //        LBUF
       
   353 //            {
       
   354 //            txt = qtn_set_sensor_orientation;
       
   355 //            }
       
   356         };
       
   357     }
       
   358 
       
   359 //----------------------------------------------------
       
   360 // r_gs_sensor_setting_listbox
       
   361 // Common listbox editor resource for setting pages.
       
   362 //----------------------------------------------------
       
   363 //
       
   364 RESOURCE LISTBOX r_gs_sensor_setting_listbox
       
   365     {
       
   366     flags=EEikListBoxMultipleSelection;
       
   367     }  
       
   368 
       
   369 //----------------------------------------------------
       
   370 //   
       
   371 //    r_gs_sen_softkeys_ok_back__change
       
   372 //    Text association with MSK ( CHANGE )
       
   373 //
       
   374 //----------------------------------------------------
       
   375 //
       
   376 RESOURCE CBA r_gs_sen_softkeys_ok_back__change
       
   377     {
       
   378     buttons =
       
   379         {
       
   380         CBA_BUTTON 
       
   381             {
       
   382             id=EGSCmdOk; 
       
   383             txt = text_softkey_ok;
       
   384             },
       
   385         CBA_BUTTON 
       
   386             {
       
   387             id=EAknSoftkeyBack; 
       
   388             txt = text_softkey_back; 
       
   389             },
       
   390         CBA_BUTTON 
       
   391             {
       
   392             id=EGSSenMskGeneral; 
       
   393             txt = "";
       
   394             }
       
   395         };
       
   396     }
       
   397 
       
   398 //----------------------------------------------------
       
   399 //   
       
   400 //    r_gs_checkbox_view
       
   401 //    General for multiselection views.
       
   402 //
       
   403 //----------------------------------------------------
       
   404 //
       
   405 RESOURCE AVKON_VIEW r_gs_checkbox_view
       
   406     {
       
   407     cba = r_gs_sen_softkeys_ok_back__change;
       
   408     }
       
   409 
       
   410 // ***   SENSOR ACTIVE STATUS  ***
       
   411 
       
   412 //----------------------------------------------------
       
   413 //   
       
   414 //    r_gs_sensors_view_title
       
   415 //    Sensors view's title.
       
   416 //
       
   417 //----------------------------------------------------
       
   418 //
       
   419 RESOURCE TITLE_PANE r_gs_sensors_view_title
       
   420     {
       
   421     txt = qtn_set_title_settings_sensors;        
       
   422     }
       
   423 
       
   424 //----------------------------------------------------
       
   425 //   
       
   426 //    r_gs_sensors_view
       
   427 //    Sensors activation view.
       
   428 //
       
   429 //----------------------------------------------------
       
   430 //
       
   431 RESOURCE AVKON_VIEW r_gs_sensors_view
       
   432     {
       
   433     menubar = r_gs_sen_menubar_change_exit;
       
   434     cba = R_GS_SOFTKEYS_OPTIONS_BACK_CHANGE;
       
   435     }
       
   436 
       
   437 //----------------------------------------------------
       
   438 //    
       
   439 //    r_gs_sensor_active_status_setting_page
       
   440 //    Sensors active status setting page.
       
   441 //
       
   442 //----------------------------------------------------
       
   443 //
       
   444 RESOURCE AVKON_SETTING_PAGE r_gs_sensor_active_status_setting_page
       
   445     {
       
   446     number = EAknSettingPageNoOrdinalDisplayed; 
       
   447     label = qtn_set_sensor_sensors;
       
   448     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   449     type =  EAknSetListBox;
       
   450     editor_resource_id = r_gs_sensor_setting_listbox;
       
   451     }
       
   452 
       
   453 //----------------------------------------------------
       
   454 //    
       
   455 //    r_gs_sensors_status_lbx
       
   456 //    Sensors status view's listbox.
       
   457 //
       
   458 //----------------------------------------------------
       
   459 //
       
   460 RESOURCE GS_FEATURE_ARRAY r_gs_sensors_status_lbx
       
   461     {
       
   462     items =
       
   463         {
       
   464         GS_FEATURE
       
   465             {
       
   466             txt =  " \t"qtn_set_sensor_sensors"\t\t";
       
   467             item = KGSSenorsActive;
       
   468             }
       
   469         };
       
   470     }
       
   471 
       
   472 //----------------------------------------------------
       
   473 //
       
   474 // r_gs_sensor_active_status
       
   475 // On / Off
       
   476 //
       
   477 //----------------------------------------------------
       
   478 RESOURCE ARRAY r_gs_sensor_active_status
       
   479     {
       
   480     items =
       
   481         {
       
   482         LBUF
       
   483             {
       
   484             // OFF
       
   485             txt = qtn_sensor_active_status_off;
       
   486             },
       
   487         LBUF
       
   488             {
       
   489             // ON
       
   490             txt = qtn_sensor_active_status_on;
       
   491             }
       
   492         };
       
   493     }
       
   494     
       
   495 // ***   TAPPING CONTROL SETTINGS  ***
       
   496 
       
   497 //----------------------------------------------------
       
   498 //   
       
   499 //    r_gs_tapctrl_view_title
       
   500 //    Tapping control view's title.
       
   501 //
       
   502 //----------------------------------------------------
       
   503 //
       
   504 RESOURCE TITLE_PANE r_gs_tapctrl_view_title
       
   505     {
       
   506     txt = qtn_set_title_settings_tapctrl;        
       
   507     }
       
   508 
       
   509 //----------------------------------------------------
       
   510 //    
       
   511 //    r_gs_tapping_control_lbx
       
   512 //    Tapping control view's listbox.
       
   513 //
       
   514 //----------------------------------------------------
       
   515 //
       
   516 RESOURCE GS_FEATURE_ARRAY r_gs_tapping_control_lbx
       
   517     {
       
   518     items =
       
   519         {
       
   520         GS_FEATURE
       
   521             {
       
   522             txt =  " \t"qtn_sensor_silencing_calls"\t\t";
       
   523             item = KGSTapCtrlSC;
       
   524             },
       
   525         GS_FEATURE
       
   526             {
       
   527             txt =  " \t"qtn_sensor_silencing_alarm"\t\t";
       
   528             item = KGSTapCtrlSA;
       
   529             }
       
   530 
       
   531 // Commented out because these are not supported yet
       
   532 //        GS_FEATURE
       
   533 //            {
       
   534 //            txt =  " \t"qtn_sensor_message"\t\t";
       
   535 //            item = KGSTapCtrlMes;
       
   536 //            },
       
   537 //        GS_FEATURE
       
   538 //            {
       
   539 //            txt =  " \t"qtn_sensor_music_player"\t\t";
       
   540 //            item = KGSTapCtrlMP;
       
   541 //            }
       
   542         };    
       
   543     }
       
   544 
       
   545 //----------------------------------------------------
       
   546 //
       
   547 // r_gs_tapping_control_ms
       
   548 // Multiselection list box values
       
   549 //
       
   550 //----------------------------------------------------
       
   551 RESOURCE ARRAY r_gs_tapping_control_ms
       
   552     {
       
   553     items =
       
   554         {
       
   555         LBUF
       
   556             {
       
   557             txt = "1\t"qtn_sensor_silencing_calls"\t";
       
   558             },
       
   559         LBUF
       
   560             {
       
   561             txt = "1\t"qtn_sensor_silencing_alarm"\t";
       
   562             }
       
   563 
       
   564 // Commented out because these are not supported yet
       
   565 //        LBUF
       
   566 //            {
       
   567 //            txt = "1\t"qtn_sensor_message"\t";
       
   568 //            },
       
   569 //        LBUF
       
   570 //            {
       
   571 //            txt = "1\t"qtn_sensor_music_player"\t";
       
   572 //            }
       
   573         };
       
   574     }
       
   575 
       
   576 // ***   TURN CONTROL SETTINGS  ***
       
   577 
       
   578 //----------------------------------------------------
       
   579 //   
       
   580 //    r_gs_turnctrl_view_title
       
   581 //    Turn control view's title.
       
   582 //
       
   583 //----------------------------------------------------
       
   584 //
       
   585 RESOURCE TITLE_PANE r_gs_turnctrl_view_title
       
   586     {
       
   587     txt = qtn_set_title_settings_turnctrl;        
       
   588     }
       
   589 
       
   590 //----------------------------------------------------
       
   591 //    
       
   592 //    r_gs_turning_control_lbx
       
   593 //    Turning control view's listbox.
       
   594 //
       
   595 //----------------------------------------------------
       
   596 //
       
   597 RESOURCE GS_FEATURE_ARRAY r_gs_turning_control_lbx
       
   598     {
       
   599     items =
       
   600         {
       
   601         GS_FEATURE
       
   602             {
       
   603             txt =  " \t"qtn_sensor_silencing_calls"\t\t";
       
   604             item = KGSTurnCtrlSC;
       
   605             },
       
   606         GS_FEATURE
       
   607             {
       
   608             txt =  " \t"qtn_sensor_silencing_alarm"\t\t";
       
   609             item = KGSTurnCtrlSA;
       
   610             },
       
   611 	GS_FEATURE
       
   612             {
       
   613             txt = " \t"qtn_set_sensor_auto_orientation"\t\t";
       
   614             item = KGSDisplayOrientation;
       
   615             }
       
   616         };    
       
   617     }
       
   618 
       
   619 //----------------------------------------------------
       
   620 //
       
   621 // r_gs_turning_control_ms
       
   622 // Multiselection list box values
       
   623 //
       
   624 //----------------------------------------------------
       
   625 RESOURCE ARRAY r_gs_turning_control_ms
       
   626     {
       
   627     items =
       
   628         {
       
   629         LBUF
       
   630             {
       
   631             txt = "1\t"qtn_sensor_silencing_calls"\t";
       
   632             },
       
   633         LBUF
       
   634             {
       
   635             txt = "1\t"qtn_sensor_silencing_alarm"\t";
       
   636             },
       
   637 	LBUF
       
   638             {
       
   639             txt = "1\t"qtn_set_sensor_auto_orientation"\t";
       
   640             }
       
   641         };
       
   642     }
       
   643 
       
   644 // ***   ORIENTATION SETTINGS  ***
       
   645 
       
   646 //----------------------------------------------------
       
   647 //   
       
   648 //    r_gs_orientation_view_title
       
   649 //    Turn control view's title.
       
   650 //
       
   651 //----------------------------------------------------
       
   652 //
       
   653 RESOURCE TITLE_PANE r_gs_orientation_view_title
       
   654     {
       
   655     txt = qtn_set_title_settings_orientation;        
       
   656     }
       
   657 
       
   658 //----------------------------------------------------
       
   659 //    
       
   660 //    r_gs_orientation_lbx
       
   661 //    Orientation view's listbox.
       
   662 //
       
   663 //----------------------------------------------------
       
   664 //
       
   665 RESOURCE GS_FEATURE_ARRAY r_gs_orientation_lbx
       
   666     {
       
   667     items =
       
   668         {
       
   669         GS_FEATURE
       
   670             {
       
   671             txt =  " \t"qtn_sensor_camera"\t\t";
       
   672             item = KGSOrientationCam;
       
   673             },
       
   674         GS_FEATURE
       
   675             {
       
   676             txt =  " \t"qtn_sensor_phone_display"\t\t";
       
   677             item = KGSOrientationPD;
       
   678             }
       
   679         };    
       
   680     }
       
   681 
       
   682 //----------------------------------------------------
       
   683 //
       
   684 // r_gs_orientation_ms
       
   685 // Multiselection list box values
       
   686 //
       
   687 //----------------------------------------------------
       
   688 RESOURCE ARRAY r_gs_orientation_ms
       
   689     {
       
   690     items =
       
   691         {
       
   692         LBUF
       
   693             {
       
   694             txt = "1\t"qtn_sensor_camera"\t";
       
   695             },
       
   696         LBUF
       
   697             {
       
   698             txt = "1\t"qtn_sensor_phone_display"\t";
       
   699             }
       
   700         };
       
   701     }