userdict/data/UserDict.rss
branchRCL_3
changeset 13 261ff9819be3
parent 0 9a3a17bfeb67
equal deleted inserted replaced
12:e9f0e1110077 13:261ff9819be3
       
     1 /*
       
     2 * Copyright (c) 2002 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:     Resources for Japanese user dictionary.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 //  RESOURCE IDENTIFIER
       
    24 NAME    UDIC
       
    25 
       
    26 //  INCLUDES
       
    27 #include "UserDict.hrh"
       
    28 #include <userdict.loc>
       
    29 #include <eikon.rh>
       
    30 #include <avkon.loc>
       
    31 #include <avkon.rsg>
       
    32 #include <avkon.hrh>
       
    33 #include <avkon.rh>
       
    34 #include <avkon.mbg>
       
    35 #include <appinfo.rh>
       
    36 #include <data_caging_paths_strings.hrh>
       
    37 
       
    38 //  CONSTANTS
       
    39 
       
    40 //  RESOURCE DEFINITIONS
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 //    RSS_SIGNATURE
       
    44 //    Standard resource signature.
       
    45 //
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 RESOURCE RSS_SIGNATURE
       
    49     {
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 //    TBUF
       
    55 //    Application caption and default filename.
       
    56 //
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 RESOURCE TBUF
       
    60     {
       
    61     buf = "";
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 //    EIK_APP_INFO
       
    67 //    Application info.
       
    68 //
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 RESOURCE EIK_APP_INFO
       
    72     {
       
    73     }
       
    74 
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 //    LOCALISABLE_APP_INFO
       
    79 //    Application info.
       
    80 //
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 RESOURCE LOCALISABLE_APP_INFO r_udict_localisable_app_info
       
    84     {
       
    85     short_caption = qtn_apps_udict_grid;
       
    86     caption_and_icon =
       
    87     CAPTION_AND_ICON_INFO
       
    88         {
       
    89         caption = qtn_apps_udict_list;
       
    90 #ifdef __SCALABLE_ICONS
       
    91         number_of_icons = 1;
       
    92         icon_file = APP_BITMAP_DIR"\\userdict_aif.mif";
       
    93 #else // !__SCALABLE_ICONS
       
    94         number_of_icons = 2;
       
    95         icon_file = APP_BITMAP_DIR"\\userdict_aif.mbm";
       
    96 #endif // __SCALABLE_ICONS
       
    97         };
       
    98     }
       
    99 
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 //    r_udict_view_cba_softkey_open
       
   104 //    View's softkey resources. MSK is "open" command.
       
   105 //
       
   106 // -----------------------------------------------------------------------------
       
   107 //
       
   108 RESOURCE CBA r_udict_view_cba_softkey_open
       
   109     {
       
   110     buttons =
       
   111         {
       
   112         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   113         CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; },
       
   114         CBA_BUTTON {id=EUserDictCmdOpen; txt = qtn_msk_open;}
       
   115         };
       
   116     }
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 //
       
   120 //    r_udict_view_cba_softkey_newword
       
   121 //    View's softkey resources. MSK is "New word" command.
       
   122 //
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 RESOURCE CBA r_udict_view_cba_softkey_newword
       
   126     {
       
   127     buttons =
       
   128         {
       
   129         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   130         CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; },
       
   131         CBA_BUTTON {id=EUserDictCmdNewWord; txt = qtn_msk_newword;}
       
   132         };
       
   133     }
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 //
       
   137 //    r_udict_view_cba_softkey_contextoptions
       
   138 //    View's softkey resources. MSK is "context options" command.
       
   139 //
       
   140 // -----------------------------------------------------------------------------
       
   141 //
       
   142 RESOURCE CBA r_udict_view_cba_softkey_contextoptions
       
   143     {
       
   144     buttons =
       
   145         {
       
   146         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   147         CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; },
       
   148         CBA_BUTTON {id=EAknSoftkeyContextOptions; txt = text_softkey_option;}
       
   149         };
       
   150     }
       
   151 
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 //    r_udict_view_cba_softkey_empty
       
   155 //    View's softkey resources. All softkeys are empty.
       
   156 //
       
   157 // -----------------------------------------------------------------------------
       
   158 //
       
   159 RESOURCE CBA r_udict_view_cba_softkey_empty
       
   160     {
       
   161     buttons =
       
   162         {
       
   163         CBA_BUTTON {id=EAknSoftkeyEmpty; txt=text_softkey_empty;},
       
   164         CBA_BUTTON {txt=text_softkey_empty;},
       
   165         CBA_BUTTON {id=EAknSoftkeyEmpty; txt=text_softkey_empty;}
       
   166         };
       
   167     }
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 //
       
   172 //    r_udict_view
       
   173 //    View's main resources.
       
   174 //
       
   175 // -----------------------------------------------------------------------------
       
   176 //
       
   177 RESOURCE AVKON_VIEW r_udict_view
       
   178     {
       
   179     menubar = r_udict_menubar_view;
       
   180     cba = r_udict_view_cba_softkey_empty;
       
   181     }
       
   182 
       
   183 // -----------------------------------------------------------------------------
       
   184 //
       
   185 //    r_udict_menubar_view
       
   186 //    View's default menu bar.
       
   187 //
       
   188 // -----------------------------------------------------------------------------
       
   189 //
       
   190 RESOURCE MENU_BAR r_udict_menubar_view
       
   191     {
       
   192     titles=
       
   193         {
       
   194         MENU_TITLE
       
   195             {
       
   196             menu_pane = r_udict_base_menu;
       
   197             txt = "";
       
   198             },
       
   199         MENU_TITLE
       
   200             {
       
   201             menu_pane =
       
   202                 R_AVKON_MENUPANE_MARKABLE_LIST_EDIT_LIST_IMPLEMENTATION;
       
   203             txt = "";
       
   204             },
       
   205         MENU_TITLE
       
   206             {
       
   207              menu_pane = r_udict_app_menu;
       
   208              txt = "";
       
   209             }
       
   210         };
       
   211     }
       
   212 
       
   213 // -----------------------------------------------------------------------------
       
   214 //
       
   215 //    r_udict_base_menu
       
   216 //    Application basic menu.
       
   217 //
       
   218 // -----------------------------------------------------------------------------
       
   219 //
       
   220 RESOURCE MENU_PANE r_udict_base_menu
       
   221     {
       
   222     items=
       
   223         {
       
   224         MENU_ITEM
       
   225             {
       
   226             command = EAknCmdHelp;
       
   227             txt = qtn_options_help;
       
   228             },
       
   229         MENU_ITEM
       
   230             {
       
   231             command = EAknCmdExit;
       
   232             txt = qtn_options_exit;
       
   233             }
       
   234         };
       
   235     }
       
   236 
       
   237 // -----------------------------------------------------------------------------
       
   238 //
       
   239 //    r_udict_app_menu
       
   240 //    Japanese user dictionary default menu.
       
   241 //
       
   242 // -----------------------------------------------------------------------------
       
   243 //
       
   244 RESOURCE MENU_PANE r_udict_app_menu
       
   245     {
       
   246     items=
       
   247         {
       
   248         MENU_ITEM
       
   249             {
       
   250             command = EUserDictCmdOpen;
       
   251             txt = qtn_udict_options_open;
       
   252             },
       
   253         MENU_ITEM
       
   254             {
       
   255             command = EUserDictCmdNewWord;
       
   256             txt = qtn_udict_options_new;
       
   257             },
       
   258         MENU_ITEM
       
   259             {
       
   260             command = EUserDictCmdDelete;
       
   261             txt = qtn_udict_options_delete;
       
   262             }
       
   263         };
       
   264     }
       
   265 
       
   266 // -----------------------------------------------------------------------------
       
   267 //
       
   268 //    r_udict_menubar_view_context
       
   269 //    View's context sensitive menu bar.
       
   270 //
       
   271 // -----------------------------------------------------------------------------
       
   272 //
       
   273 RESOURCE MENU_BAR r_udict_menubar_view_context
       
   274     {
       
   275     titles=
       
   276         {
       
   277 
       
   278         MENU_TITLE
       
   279             {
       
   280             menu_pane =
       
   281                 R_AVKON_MENUPANE_MARKABLE_LIST_EDIT_LIST_IMPLEMENTATION;
       
   282             txt = "";
       
   283             },
       
   284         MENU_TITLE
       
   285             {
       
   286             menu_pane = r_udict_app_menu_context;
       
   287             txt = "";
       
   288             }
       
   289         };
       
   290     }
       
   291 
       
   292 // -----------------------------------------------------------------------------
       
   293 //
       
   294 //    r_udict_app_menu_context
       
   295 //    Context sensitive menu.
       
   296 //
       
   297 // -----------------------------------------------------------------------------
       
   298 //
       
   299 RESOURCE MENU_PANE r_udict_app_menu_context
       
   300     {
       
   301     items=
       
   302         {
       
   303         MENU_ITEM
       
   304             {
       
   305             command = EUserDictCmdNewWord;
       
   306             txt = qtn_udict_options_new;
       
   307             },
       
   308         MENU_ITEM
       
   309             {
       
   310             command = EUserDictCmdDelete;
       
   311             txt = qtn_udict_options_delete;
       
   312             }
       
   313         };
       
   314     }
       
   315 
       
   316 // -----------------------------------------------------------------------------
       
   317 //
       
   318 //    r_udict_softkeys_done_cancel_done
       
   319 //    softkey definition of Japanese user dictionary editor for MSK.
       
   320 //
       
   321 // -----------------------------------------------------------------------------
       
   322 //
       
   323 RESOURCE CBA r_udict_softkeys_done_cancel_done
       
   324     {
       
   325     buttons =
       
   326         {
       
   327         CBA_BUTTON { id=EAknSoftkeyDone; txt=text_softkey_done; },
       
   328         CBA_BUTTON { id=EAknSoftkeyCancel; txt=text_softkey_cancel; },
       
   329         CBA_BUTTON { id=EAknSoftkeyDone; txt=text_softkey_done; }
       
   330         };
       
   331     }
       
   332 
       
   333 // -----------------------------------------------------------------------------
       
   334 //
       
   335 //    r_udict_softkeys_empty_cancel_empty
       
   336 //    softkey definition of Japanese user dictionary editor for MSK.
       
   337 //
       
   338 // -----------------------------------------------------------------------------
       
   339 //
       
   340 RESOURCE CBA r_udict_softkeys_empty_cancel_empty
       
   341     {
       
   342     buttons =
       
   343         {
       
   344         CBA_BUTTON { id=EAknSoftkeyEmpty; txt=text_softkey_empty;},
       
   345         CBA_BUTTON { id=EAknSoftkeyCancel; txt=text_softkey_cancel;},
       
   346         CBA_BUTTON { id=EAknSoftkeyEmpty; txt=text_softkey_empty;}
       
   347         };
       
   348     }
       
   349 
       
   350 // -----------------------------------------------------------------------------
       
   351 //
       
   352 //    r_udict_dialog_edit
       
   353 //    Japanese user dictionary editor.
       
   354 //
       
   355 // -----------------------------------------------------------------------------
       
   356 //
       
   357 RESOURCE DIALOG r_udict_dialog_edit
       
   358     {
       
   359     flags =
       
   360         EEikDialogFlagWait | EEikDialogFlagNoBorder |
       
   361         EEikDialogFlagNoDrag  | EEikDialogFlagNoTitleBar |
       
   362         EEikDialogFlagFillAppClientRect | EEikDialogFlagCbaButtons;
       
   363     buttons = r_udict_softkeys_done_cancel_done;
       
   364     form = r_udict_form;
       
   365     }
       
   366 
       
   367 // -----------------------------------------------------------------------------
       
   368 //
       
   369 //    r_udict_form
       
   370 //    Form resource of Japanese user dictionary editor.
       
   371 //
       
   372 // -----------------------------------------------------------------------------
       
   373 //
       
   374 RESOURCE FORM r_udict_form
       
   375     {
       
   376     flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
       
   377     items =
       
   378         {
       
   379         DLG_LINE
       
   380             {
       
   381             type = EEikCtEdwin;
       
   382             prompt = qtn_udict_lbl_word ;
       
   383             id = EUserDictWordEdwin;
       
   384             itemflags = EEikDlgItemSeparatorBefore | EEikDlgItemTakesEnterKey;
       
   385             control = EDWIN
       
   386                 {
       
   387                 flags = KMultiLineExpandingEditorFlags
       
   388                        | EEikEdwinNoAutoSelection | EEikEdwinJustAutoCurEnd
       
   389                        | EEikEdwinNoLineOrParaBreaks;
       
   390                 maxlength = EUseDictWordBuffer;
       
   391                 width = 6;
       
   392                 default_input_mode = EAknEditorHiraganaKanjiInputMode;
       
   393                 avkon_flags = EAknEditorFlagEnablePictographInput;
       
   394                 base_line_delta = 21;
       
   395                 };
       
   396             tooltip="";
       
   397             },
       
   398         DLG_LINE
       
   399             {
       
   400             type = EEikCtEdwin;
       
   401             prompt = qtn_udict_lbl_reading;
       
   402             id = EUserDictReadingEdwin;
       
   403             itemflags = EEikDlgItemSeparatorBefore | EEikDlgItemTakesEnterKey;
       
   404             control = EDWIN
       
   405                 {
       
   406                 flags = KMultiLineExpandingEditorFlags
       
   407                        | EEikEdwinNoAutoSelection | EEikEdwinJustAutoCurEnd
       
   408                        | EEikEdwinNoLineOrParaBreaks;
       
   409                 maxlength = EUseDictReadingBuffer;
       
   410                 width = 6;
       
   411                 allowed_input_modes = EAknEditorHiraganaInputMode;
       
   412                 default_input_mode = EAknEditorHiraganaInputMode;
       
   413                 base_line_delta = 21;
       
   414                 };
       
   415             tooltip = "";
       
   416             }
       
   417         };
       
   418     }
       
   419 
       
   420 // -----------------------------------------------------------------------------
       
   421 //
       
   422 //    r_udict_delete_query
       
   423 //    Deletion confirmation query.
       
   424 //
       
   425 // -----------------------------------------------------------------------------
       
   426 //
       
   427 RESOURCE DIALOG r_udict_delete_query
       
   428     {
       
   429     flags = EGeneralQueryFlags;
       
   430     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   431     items =
       
   432         {
       
   433         DLG_LINE
       
   434             {
       
   435             type = EAknCtQuery;
       
   436             id = EUserDictDeleteQuery;
       
   437             control= AVKON_CONFIRMATION_QUERY
       
   438                 {
       
   439                 layout = EConfirmationQueryLayout;
       
   440                 label = qtn_udict_note_delete_word;
       
   441                 };
       
   442             }
       
   443         };
       
   444     }
       
   445 
       
   446 // -----------------------------------------------------------------------------
       
   447 //
       
   448 //    r_udict_wait_note
       
   449 //    Wait note for Deleting words.
       
   450 //
       
   451 // -----------------------------------------------------------------------------
       
   452 //
       
   453 RESOURCE DIALOG r_udict_wait_note
       
   454     {
       
   455     flags = EAknWaitNoteFlags;
       
   456     buttons = R_AVKON_SOFTKEYS_EMPTY;
       
   457     items=
       
   458         {
       
   459         DLG_LINE
       
   460             {
       
   461             type = EAknCtNote;
       
   462             id = EUserDictDeleteWaitNote;
       
   463             control= AVKON_NOTE
       
   464                 {
       
   465                 layout = EWaitLayout;
       
   466                 singular_label = qtn_fldr_deleting_wait_note;
       
   467                 imagefile = AVKON_BITMAP_FILE;
       
   468                 imageid = EMbmAvkonQgn_note_voice;
       
   469                 imagemask = EMbmAvkonQgn_note_voice_mask;
       
   470                 animation =R_QGN_GRAF_WAIT_BAR_ANIM;
       
   471                 };
       
   472             }
       
   473         };
       
   474     }
       
   475 
       
   476 // -----------------------------------------------------------------------------
       
   477 //
       
   478 //    r_udict_delete_query_message
       
   479 //    Prompt text for the deleting words query.
       
   480 //
       
   481 // -----------------------------------------------------------------------------
       
   482 //
       
   483 RESOURCE TBUF r_udict_delete_query_message
       
   484     {
       
   485     buf = qtn_udict_note_delete_words;
       
   486     }
       
   487 
       
   488 // -----------------------------------------------------------------------------
       
   489 //
       
   490 //    r_udict_already_reg_message
       
   491 //    Information message for "the word is alredy registered."
       
   492 //
       
   493 // -----------------------------------------------------------------------------
       
   494 //
       
   495 RESOURCE TBUF64 r_udict_already_reg_message
       
   496     {
       
   497     buf = qtn_udict_info_already_registd;
       
   498     }
       
   499 
       
   500 // -----------------------------------------------------------------------------
       
   501 //
       
   502 //    r_udict_invalid_1stchar_message
       
   503 //    Information message for "the first character is invalid."
       
   504 //
       
   505 // -----------------------------------------------------------------------------
       
   506 //
       
   507 RESOURCE TBUF64 r_udict_invalid_1stchar_message
       
   508     {
       
   509     buf = qtn_udict_info_invalid_1stchar;
       
   510     }
       
   511 
       
   512 // -----------------------------------------------------------------------------
       
   513 //
       
   514 //    r_udict_info_memory_full_message
       
   515 //    Information message for "the User dictionary has no space to register."
       
   516 //
       
   517 // -----------------------------------------------------------------------------
       
   518 //
       
   519 RESOURCE TBUF64 r_udict_info_memory_full_message
       
   520     {
       
   521     buf = qtn_udict_info_memory_full;
       
   522     }
       
   523 
       
   524 // End of File
       
   525 
       
   526