voiceui/voiceuivoicerecognition/data/vuivoicerecognition.rss
branchRCL_3
changeset 19 e36f3802f733
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2007 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 NAME RAPI
       
    20 
       
    21 #include <eikon.rh>
       
    22 #include <EIKCORE.rsg>
       
    23 #include <avkon.rsg>    
       
    24 #include <avkon.rh>
       
    25 #include <avkon.mbg>
       
    26 #include <avkon.loc>
       
    27 #include <badef.rh>
       
    28 #include <appinfo.rh>
       
    29 #include <AvkonIcons.hrh>
       
    30 #include <vuivoicerecognition.loc>
       
    31 #include <data_caging_paths_strings.hrh>
       
    32 
       
    33 #include "vuivoicerecognition.hrh"
       
    34 
       
    35 // CONSTANTS
       
    36 #define KVoiceStartSoundFile           "z:\\system\\sounds\\digital\\namediallerstarttone.wav"
       
    37 #define KVoiceConfirmationSoundFile    "z:\\system\\sounds\\digital\\namediallerconfirmtone.wav"
       
    38 #define KVoiceBTStartSoundFile         "z:\\system\\sounds\\digital\\btnamediallerstarttone.wav"
       
    39 
       
    40 RESOURCE RSS_SIGNATURE { }
       
    41 
       
    42 RESOURCE TBUF { buf = r_main_view_title; }
       
    43 
       
    44 RESOURCE EIK_APP_INFO
       
    45     {
       
    46     status_pane = r_main_status_pane;
       
    47     }
       
    48 
       
    49 //-----------------------------------------------------------------------------
       
    50 //   
       
    51 //    r_main_status_pane
       
    52 //    Status pane for main view.
       
    53 //
       
    54 //-----------------------------------------------------------------------------
       
    55 //
       
    56 RESOURCE STATUS_PANE_APP_MODEL r_main_status_pane
       
    57     {
       
    58     //Set status pane as empty to fix layouts
       
    59     layout = R_AVKON_STATUS_PANE_LAYOUT_EMPTY;
       
    60     panes =
       
    61         {
       
    62         SPANE_PANE
       
    63             {
       
    64             id = EEikStatusPaneUidTitle;
       
    65             type = EAknCtTitlePane;
       
    66             resource = r_main_view_title;
       
    67             }
       
    68         };
       
    69     }
       
    70 
       
    71 //-----------------------------------------------------------------------------
       
    72 //   
       
    73 //    r_localisable_app_info
       
    74 //    menu captions and application icon
       
    75 //
       
    76 //-----------------------------------------------------------------------------
       
    77 //
       
    78 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
       
    79     {
       
    80     short_caption = qtn_sivc_appl_grid;
       
    81     caption_and_icon = 
       
    82     CAPTION_AND_ICON_INFO
       
    83         {
       
    84         caption = qtn_sivc_appl_list;
       
    85         number_of_icons = 1;
       
    86         icon_file = APP_BITMAP_DIR"\\vuivoicerecognition_aif.mif";
       
    87         };
       
    88     }
       
    89 
       
    90 //-----------------------------------------------------------------------------
       
    91 //   
       
    92 //    r_main_view_title
       
    93 //    Main view's title.
       
    94 //
       
    95 //-----------------------------------------------------------------------------
       
    96 //
       
    97 RESOURCE TITLE_PANE r_main_view_title
       
    98     {
       
    99     txt = qtn_sivc_title;
       
   100     }
       
   101 
       
   102 //----------------------------------------------------
       
   103 //
       
   104 //      r_softkeys_select_quit__select
       
   105 //        N-Best list cba buttons
       
   106 //
       
   107 //----------------------------------------------------
       
   108 //
       
   109 RESOURCE CBA r_softkeys_select_quit__select
       
   110     {
       
   111     buttons =
       
   112         {
       
   113         CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=text_softkey_select; },
       
   114         CBA_BUTTON { id=EVoiceTagSoftKeyQuit;   txt=text_softkey_quit; },
       
   115         CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=qtn_msk_select; }
       
   116         };
       
   117     }
       
   118     
       
   119 //----------------------------------------------------
       
   120 //
       
   121 //      r_softkeys_select_quit__select
       
   122 //        N-Best list cba buttons
       
   123 //
       
   124 //----------------------------------------------------
       
   125 //
       
   126 RESOURCE CBA r_softkeys_options_quit__select
       
   127     {
       
   128     buttons =
       
   129         {
       
   130         CBA_BUTTON { id=EAknSoftkeyOptions;     txt=text_softkey_option; },
       
   131         CBA_BUTTON { id=EVoiceTagSoftKeyQuit;   txt=text_softkey_quit; },
       
   132         CBA_BUTTON { id=EVoiceTagSoftKeySelect; txt=qtn_msk_select; }
       
   133         };
       
   134     }
       
   135 
       
   136 //----------------------------------------------------
       
   137 //
       
   138 //      r_softkeys_next_cancel__next
       
   139 //        Tutorial message cba buttons
       
   140 //
       
   141 //----------------------------------------------------
       
   142 //
       
   143 RESOURCE CBA r_softkeys_next_cancel__next
       
   144     {
       
   145     buttons =
       
   146         {
       
   147         CBA_BUTTON { id=EVoiceInfoSoftKeyNext;    txt=qtn_vc_softkey_next; },
       
   148         CBA_BUTTON { id=EVoiceInfoSoftKeyCancel;  txt=text_softkey_cancel; },
       
   149         CBA_BUTTON { id=EVoiceInfoSoftKeyNext;    txt=qtn_vc_softkey_next; }
       
   150         };
       
   151     }
       
   152 
       
   153 //----------------------------------------------------
       
   154 //
       
   155 //      r_softkeys_activate_cancel__activate
       
   156 //        Tutorial message cba buttons
       
   157 //
       
   158 //----------------------------------------------------
       
   159 //
       
   160 RESOURCE CBA r_softkeys_activate_cancel__activate
       
   161     {
       
   162     buttons =
       
   163         {
       
   164         CBA_BUTTON { id=EVoiceInfoSoftKeyActivate; txt=qtn_vc_softkey_activate; },
       
   165         CBA_BUTTON { id=EVoiceInfoSoftKeyCancel;   txt=text_softkey_cancel; },
       
   166         CBA_BUTTON { id=EVoiceInfoSoftKeyActivate; txt=qtn_vc_softkey_activate; }
       
   167         };
       
   168     }
       
   169     
       
   170 //----------------------------------------------------
       
   171 //
       
   172 //      r_softkeys_ok_cancel__ok
       
   173 //        Verification query cba buttons
       
   174 //
       
   175 //----------------------------------------------------
       
   176 //
       
   177 RESOURCE CBA r_softkeys_ok_cancel__ok
       
   178     {
       
   179     buttons =
       
   180         {
       
   181         CBA_BUTTON { id=EVoiceTagSoftKeySelect;   txt=text_softkey_ok; },
       
   182         CBA_BUTTON { id=EVoiceTagSoftKeyCancel;   txt=text_softkey_cancel; },
       
   183         CBA_BUTTON { id=EVoiceTagSoftKeySelect;   txt=text_softkey_ok; }
       
   184         };
       
   185     }
       
   186 
       
   187 //----------------------------------------------------
       
   188 //
       
   189 //      r_progressnote
       
   190 //        Speak now progress dialog
       
   191 //
       
   192 //----------------------------------------------------
       
   193 //    
       
   194 RESOURCE DIALOG r_progressnote
       
   195     {
       
   196     flags = EAknProgressNoteFlags;
       
   197     buttons = R_AVKON_SOFTKEYS_QUIT;
       
   198     items =
       
   199         {
       
   200         DLG_LINE
       
   201             {
       
   202             type = EAknCtNote;
       
   203             id = EProgressDialogId;
       
   204             control = AVKON_NOTE
       
   205                 {
       
   206                 layout = EProgressLayout;
       
   207                 };
       
   208             }
       
   209         };
       
   210     }
       
   211     
       
   212 //----------------------------------------------------
       
   213 //
       
   214 //      r_message_query
       
   215 //        Tutorial message dialog
       
   216 //
       
   217 //----------------------------------------------------
       
   218 //
       
   219 RESOURCE DIALOG r_message_query
       
   220 {
       
   221    flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   222    buttons = r_softkeys_select_quit__select;
       
   223    items=
       
   224    {
       
   225       DLG_LINE 
       
   226       {
       
   227          type = EAknCtPopupHeadingPane;
       
   228          id = EAknMessageQueryHeaderId;
       
   229          itemflags = EEikDlgItemNonFocusing;
       
   230          control = AVKON_HEADING
       
   231          {
       
   232          };
       
   233       },
       
   234       DLG_LINE
       
   235       {
       
   236          type = EAknCtMessageQuery;
       
   237          id = EAknMessageQueryContentId;
       
   238          control = AVKON_MESSAGE_QUERY
       
   239          {
       
   240          };
       
   241       }
       
   242    };
       
   243 }
       
   244 
       
   245 // ---------------------------------------------------------
       
   246 //   
       
   247 //   r_nbest_options_menu
       
   248 //   Menu title definition
       
   249 //
       
   250 // ---------------------------------------------------------
       
   251 //
       
   252 RESOURCE MENU_BAR r_nbest_options_menu
       
   253     {
       
   254     titles =
       
   255         {
       
   256         MENU_TITLE 
       
   257             {
       
   258             menu_pane = r_nbest_menu_pane;
       
   259             }
       
   260         };
       
   261     }
       
   262     
       
   263 // ---------------------------------------------------------
       
   264 //   
       
   265 //   r_nbest_menu_pane
       
   266 //   Menu for "Options"
       
   267 //
       
   268 // ---------------------------------------------------------
       
   269 //
       
   270 RESOURCE MENU_PANE r_nbest_menu_pane
       
   271     {
       
   272     items = 
       
   273         {
       
   274         MENU_ITEM 
       
   275             {    
       
   276             command = EVoiceTagSoftKeySelect;  txt = qtn_vc_options_select;
       
   277             },
       
   278         MENU_ITEM 
       
   279             {
       
   280             command = EVoiceTagSoftKeyOpen;    txt = qtn_vc_nbest_options_open_contact;
       
   281             },
       
   282         MENU_ITEM 
       
   283             {
       
   284             command = EVoiceTagSoftKeyQuit;    txt = qtn_vc_nbest_options_quit;
       
   285             }
       
   286         };
       
   287     }
       
   288 
       
   289 //----------------------------------------------------
       
   290 //
       
   291 //      r_nbest_popup_list
       
   292 //        N-Best List query dialog
       
   293 //
       
   294 //----------------------------------------------------
       
   295 //
       
   296 RESOURCE AVKON_LIST_QUERY r_nbest_popup_list
       
   297     {
       
   298     flags = EGeneralQueryFlags;
       
   299     softkeys = r_softkeys_select_quit__select;
       
   300     items = 
       
   301         {
       
   302         AVKON_LIST_QUERY_DLG_LINE 
       
   303             {
       
   304             type = EAknCtListQueryControl;
       
   305             id = EListQueryControl;
       
   306             control = AVKON_LIST_QUERY_CONTROL
       
   307                 {
       
   308                 listtype = EAknCtDoubleGraphicPopupMenuListBox;
       
   309                 listbox = AVKON_LIST_QUERY_LIST;
       
   310                 heading = qtn_vc_nbest_list_header;
       
   311                 };            
       
   312             }
       
   313         };
       
   314     }
       
   315     
       
   316 RESOURCE ARRAY r_verification_query_item
       
   317     {
       
   318     items =
       
   319         {
       
   320         LBUF { txt = qtn_vc_verification_select; },
       
   321         LBUF { txt = qtn_vc_verification_other; },
       
   322         LBUF { txt = qtn_vc_verification_cancel; }
       
   323         };
       
   324     }
       
   325     
       
   326 //----------------------------------------------------
       
   327 //
       
   328 //      r_verification_query
       
   329 //        Verification query dialog
       
   330 //
       
   331 //----------------------------------------------------
       
   332 //
       
   333 RESOURCE AVKON_LIST_QUERY r_verification_query
       
   334     {
       
   335     flags = EGeneralQueryFlags;
       
   336     softkeys = r_softkeys_ok_cancel__ok;
       
   337     items = 
       
   338         {
       
   339         AVKON_LIST_QUERY_DLG_LINE 
       
   340             {
       
   341             control = AVKON_LIST_QUERY_CONTROL
       
   342                 {
       
   343                 listtype = EAknCtSinglePopupMenuListBox;
       
   344                 listbox = AVKON_LIST_QUERY_LIST
       
   345                     {
       
   346                     array_id = r_verification_query_item;
       
   347                     };
       
   348                 heading = " ";
       
   349                 };
       
   350             }
       
   351         };
       
   352     }
       
   353 
       
   354 
       
   355 //----------------------------------------------------
       
   356 //
       
   357 //      r_nbest_row_format
       
   358 //        Row format for N-Best List listbox
       
   359 //
       
   360 //----------------------------------------------------
       
   361 //
       
   362 RESOURCE TBUF r_nbest_row_format
       
   363     {
       
   364     buf = "%U\t%U\t";
       
   365     }
       
   366 
       
   367 
       
   368 //----------------------------------------------------
       
   369 //   
       
   370 //    r_voice_start_sound_path
       
   371 //    Path to a sound file to play when starting voice dialing
       
   372 //
       
   373 //----------------------------------------------------
       
   374 //
       
   375 RESOURCE TBUF r_voice_start_sound_path
       
   376     {
       
   377     buf = KVoiceStartSoundFile;
       
   378     }
       
   379 
       
   380 //----------------------------------------------------
       
   381 //   
       
   382 //    r_voice_bt_start_sound_path
       
   383 //    Path to a sound file to play when starting voice dialing from bluetooth accessory
       
   384 //
       
   385 //----------------------------------------------------
       
   386 //
       
   387 RESOURCE TBUF r_voice_bt_start_sound_path
       
   388     {
       
   389     buf = KVoiceBTStartSoundFile;
       
   390     }
       
   391     
       
   392 //----------------------------------------------------
       
   393 //   
       
   394 //    r_voice_confirmation_sound_path
       
   395 //    Path to a sound file to play when starting an application
       
   396 //
       
   397 //----------------------------------------------------
       
   398 //
       
   399 RESOURCE TBUF r_voice_confirmation_sound_path
       
   400     {
       
   401     buf = KVoiceConfirmationSoundFile;
       
   402     }
       
   403 
       
   404 RESOURCE TBUF   r_text_voice_system_error       { buf = text_voice_system_error; }
       
   405 RESOURCE TBUF   r_text_voice_no_matches         { buf = text_voice_no_matches; }
       
   406 RESOURCE TBUF   r_text_call_in_progress         { buf = text_call_in_progress; }
       
   407 RESOURCE TBUF   r_text_voice_no_tag             { buf = text_voice_no_tag; }
       
   408 
       
   409 RESOURCE TBUF   r_text_voice_speak_now          { buf = text_voice_speak_now; }      
       
   410 RESOURCE TBUF   r_qan_vc_tts_dialling           { buf = qan_vc_tts_dialling; }
       
   411 
       
   412 RESOURCE TBUF   r_qtn_vc_nbest_list_header      { buf = qtn_vc_nbest_list_header; }
       
   413 
       
   414 RESOURCE TBUF   r_qan_vc_verification_query     { buf = qan_vc_verification_query; }
       
   415 RESOURCE TBUF   r_qan_vc_verification_select    { buf = qan_vc_verification_select; }
       
   416 RESOURCE TBUF   r_qan_vc_verification_other     { buf = qan_vc_verification_other; }
       
   417 RESOURCE TBUF   r_qan_vc_verification_cancel    { buf = qan_vc_verification_cancel; }
       
   418 
       
   419 RESOURCE TBUF   r_qtn_vc_memory_low             { buf = qtn_err_eikon_mem; }
       
   420 
       
   421 // SIND Demo
       
   422 RESOURCE TBUF   r_text_sind_tutorial_page_intro_title        { buf = qtn_vc_tutorial_page1_title; }
       
   423 RESOURCE TBUF   r_text_sind_tutorial_page_intro_text_up      { buf = qtn_vc_tutorial_page1_text_up; }
       
   424 RESOURCE TBUF   r_text_sind_tutorial_page_intro_text_down    { buf = qtn_vc_tutorial_page1_text_down; }
       
   425 RESOURCE TBUF   r_text_sind_tutorial_page_command_title      { buf = qtn_vc_tutorial_page2_title; }
       
   426 RESOURCE TBUF   r_text_sind_tutorial_page_command_text_up    { buf = qtn_vc_tutorial_page2_text_up; }
       
   427 RESOURCE TBUF   r_text_sind_tutorial_page_command_text_down  { buf = qtn_vc_tutorial_page2_text_down; }
       
   428 RESOURCE TBUF   r_text_sind_tutorial_page_dial_title         { buf = qtn_vc_tutorial_page3_title; }
       
   429 RESOURCE TBUF   r_text_sind_tutorial_page_dial_text_up       { buf = qtn_vc_tutorial_page3_text_up; }
       
   430 RESOURCE TBUF   r_text_sind_tutorial_page_dial_text_down     { buf = qtn_vc_tutorial_page3_text_down; }
       
   431 RESOURCE TBUF   r_text_sind_tutorial_page_other_title        { buf = qtn_vc_tutorial_page4_title; }
       
   432 RESOURCE TBUF   r_text_sind_tutorial_page_other_text_up      { buf = qtn_vc_tutorial_page4_text_up; }
       
   433 RESOURCE TBUF   r_text_sind_tutorial_page_other_text_down    { buf = qtn_vc_tutorial_page4_text_down; }
       
   434 RESOURCE TBUF   r_text_sind_tutorial_page_try_title          { buf = qtn_vc_tutorial_page5_title; }
       
   435 RESOURCE TBUF   r_text_sind_tutorial_page_try_text_up        { buf = qtn_vc_tutorial_page5_text_up; }
       
   436 RESOURCE TBUF   r_text_sind_tutorial_page_try_text_down      { buf = qtn_vc_tutorial_page5_text_down; }
       
   437 RESOURCE TBUF   r_text_sind_tutorial_page_best_title         { buf = qtn_vc_tutorial_page_results_title; }
       
   438 RESOURCE TBUF   r_text_sind_tutorial_page_best_text_up       { buf = qtn_vc_tutorial_page6_text_up; }
       
   439 RESOURCE TBUF   r_text_sind_tutorial_page_best_text_down     { buf = qtn_vc_tutorial_page6_text_down; }
       
   440 RESOURCE TBUF   r_text_sind_tutorial_page_activation_title   { buf = qtn_vc_tutorial_page7_title; }
       
   441 RESOURCE TBUF   r_text_sind_tutorial_page_activation_text    { buf = qtn_vc_tutorial_page7_text; }
       
   442 RESOURCE TBUF   r_text_sind_tutorial_page_error_title        { buf = qtn_vc_tutorial_page_error_title; }
       
   443 RESOURCE TBUF   r_text_sind_tutorial_page_error_text_up      { buf = qtn_vc_tutorial_page_error_text_up; }
       
   444 RESOURCE TBUF   r_text_sind_tutorial_page_error_text_down    { buf = qtn_vc_tutorial_page_error_text_down; }
       
   445 RESOURCE TBUF   r_text_sind_tutorial_first_time_text_up      { buf = qtn_vc_tutorial_first_time1_text_up; }
       
   446 RESOURCE TBUF   r_text_sind_tutorial_first_time_text_down    { buf = qtn_vc_tutorial_first_time1_text_down; }
       
   447