notepad/notepad1/LibData/NpdLib.rss
changeset 0 f979ecb2b13e
child 12 38571fd2a704
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     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 of Notepad Library.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //  RESOURCE IDENTIFIER
       
    20 NAME    NPDL // 4 letter ID
       
    21 
       
    22 //  INCLUDES
       
    23 #include <eikon.rh>
       
    24 #include <avkon.rh>
       
    25 #include <avkon.mbg>
       
    26 #include <avkon.loc>
       
    27 #include <uikon.hrh>
       
    28 #include <finditem.hrh>
       
    29 #include <AvkonIcons.hrh>
       
    30 #include <npdlib.mbg>
       
    31 #include "NpdLib.hrh"
       
    32 #include "NpdLib.rh"
       
    33 #include <npdlib.loc>
       
    34 #include <npdtemp.loc>
       
    35 #include <data_caging_paths_strings.hrh>
       
    36 #include <AiwCommon.rh>
       
    37 #include <AknFep.rsg>
       
    38 
       
    39 //  CONSTANTS  
       
    40 #define NOTEPAD_DATABASE "c:Notepad.dat"
       
    41 #define TEMPLATE_DATABASE "c:Template.nsc"
       
    42 #define NPDLIB_MBM_FILE  APP_BITMAP_DIR"\\npdlib.mif"
       
    43 
       
    44 // Constants
       
    45 #define NOTEPAD_MARGINS_LEFT 2
       
    46 #define NOTEPAD_MARGINS_RIGHT 3
       
    47 #define NOTEPAD_EDITOR_LINES 10
       
    48 #define NOTEPAD_VIEWER_LINES 7
       
    49 #define NOTEPAD_CURSOR_COLOR 210
       
    50 
       
    51 //  RESOURCE DEFINITIONS 
       
    52 // -----------------------------------------------------------------------------
       
    53 //   
       
    54 // Signature of this resource.
       
    55 //
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 RESOURCE RSS_SIGNATURE
       
    59     {
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 // r_notepad_datafile_name
       
    65 // Name of a data file of memos.
       
    66 //
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 RESOURCE TBUF r_notepad_datafile_name
       
    70     {
       
    71     buf = NOTEPAD_DATABASE;
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 // r_notepad_template_datafile_name
       
    77 // Name of a data file of templates.
       
    78 //
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 RESOURCE TBUF r_notepad_template_datafile_name
       
    82     {
       
    83     buf = TEMPLATE_DATABASE;
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 //   
       
    88 // r_notepad_model
       
    89 // Model of Notepad application.
       
    90 //
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 RESOURCE NOTEPAD_MODEL r_notepad_model
       
    94     {
       
    95     data_file = r_notepad_datafile_name;
       
    96     listing_style = ENotepadListingStyleNP;
       
    97     date_format = R_QTN_DATE_SHORT_WITH_ZERO;
       
    98     time_format = R_QTN_TIME_USUAL_WITH_ZERO;
       
    99     }
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 //   
       
   103 // r_notepad_list_dialog
       
   104 // List Dialog of Notepad application.
       
   105 //
       
   106 // -----------------------------------------------------------------------------
       
   107 //    iFindItemMenu = CFindItemMenu::NewL(EXample4CmdFindItemMenu);
       
   108 
       
   109 RESOURCE NOTEPAD_LIST_DIALOG r_notepad_list_dialog
       
   110     {
       
   111     menubar = r_notepad_list_menubar;
       
   112     dialog = r_notepad_list_dialog_org;
       
   113     model = r_notepad_model;
       
   114     editor_dialog = r_notepad_editor_dialog;
       
   115     title = qtn_nmake_title_notepad;
       
   116     }
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 //   
       
   120 // r_notepad_softkeys_options_open_exit
       
   121 // CBA Keys. 
       
   122 //
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 
       
   126 RESOURCE CBA R_NOTEPAD_SOFTKEYS_OPTIONS_OPEN_EXIT
       
   127     {
       
   128     flags = 0;
       
   129     buttons = 
       
   130         {
       
   131         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   132         CBA_BUTTON {id=EAknSoftkeyExit; txt=text_softkey_exit;},
       
   133 	CBA_BUTTON {id=ENotepadCmdOpen; txt= qtn_msk_open;}
       
   134         };
       
   135     }
       
   136 
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 //   
       
   140 // r_notepad_softkeys_options_open_back
       
   141 // CBA Keys. 
       
   142 //
       
   143 // -----------------------------------------------------------------------------
       
   144 //
       
   145 
       
   146 RESOURCE CBA R_NOTEPAD_SOFTKEYS_OPTIONS_OPEN_BACK
       
   147     {
       
   148     flags = 0;
       
   149     buttons = 
       
   150         {
       
   151         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   152         CBA_BUTTON {id=EAknSoftkeyBack; txt=text_softkey_back;},
       
   153 	    CBA_BUTTON {id=ENotepadCmdOpen; txt= qtn_msk_open;}
       
   154         };
       
   155     }
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 //   
       
   159 // r_notepad_softkeys_options_exit_contextoptions
       
   160 // CBA Keys.
       
   161 //
       
   162 // -----------------------------------------------------------------------------
       
   163 //
       
   164 RESOURCE CBA R_NOTEPAD_SOFTKEYS_OPTIONS_EXIT_CONTEXTOPTIONS
       
   165     {
       
   166     flags = 0;
       
   167     buttons = 
       
   168         {
       
   169         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   170         CBA_BUTTON {id=EAknSoftkeyExit; txt=text_softkey_exit;},
       
   171 	CBA_BUTTON {id=EAknSoftkeyContextOptions; txt = text_softkey_option;}
       
   172         };
       
   173     }
       
   174  
       
   175 // -----------------------------------------------------------------------------
       
   176 //   
       
   177 // r_notepad_softkeys_options_done_contextoptions
       
   178 // CBA Keys.
       
   179 //
       
   180 // -----------------------------------------------------------------------------
       
   181 //   
       
   182 RESOURCE CBA R_NOTEPAD_SOFTKEYS_OPTIONS_DONE_CONTEXTOPTIONS
       
   183     {
       
   184     flags = 0;
       
   185     buttons = 
       
   186         {
       
   187         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   188         CBA_BUTTON {id=EAknSoftkeyDone; txt= text_softkey_done;},
       
   189 	CBA_BUTTON {id=EAknSoftkeyContextOptions; txt = text_softkey_option;}
       
   190         };
       
   191     }
       
   192 
       
   193 // -----------------------------------------------------------------------------
       
   194 //   
       
   195 // r_notepad_softkeys_options_back_contextoptions
       
   196 // CBA Keys.
       
   197 //
       
   198 // -----------------------------------------------------------------------------
       
   199 //
       
   200 RESOURCE CBA R_NOTEPAD_SOFTKEYS_OPTIONS_BACK_CONTEXTOPTIONS
       
   201     {
       
   202     flags = 0;
       
   203     buttons = 
       
   204         {
       
   205         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   206         CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;},
       
   207 	CBA_BUTTON {id=EAknSoftkeyContextOptions; txt = text_softkey_option;}
       
   208         };
       
   209     }    
       
   210     
       
   211 // -----------------------------------------------------------------------------
       
   212 //   
       
   213 // r_notepad_softkeys_options_exit_newnote
       
   214 // CBA Keys.
       
   215 //
       
   216 // -----------------------------------------------------------------------------
       
   217 //
       
   218 RESOURCE CBA R_NOTEPAD_SOFTKEYS_OPTIONS_EXIT_NEW
       
   219     {
       
   220     flags = 0;
       
   221     buttons = 
       
   222         {
       
   223         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   224         CBA_BUTTON {id=EAknSoftkeyExit; txt= text_softkey_exit;},
       
   225 	    CBA_BUTTON {id=ENotepadCmdAdd; txt = qtn_msk_new;}
       
   226         };
       
   227     }      
       
   228 
       
   229 // -----------------------------------------------------------------------------
       
   230 //   
       
   231 // r_notepad_softkeys_options_back_new
       
   232 // CBA Keys.
       
   233 //
       
   234 // -----------------------------------------------------------------------------
       
   235 //
       
   236 RESOURCE CBA R_NOTEPAD_SOFTKEYS_OPTIONS_BACK_NEW
       
   237     {
       
   238     flags = 0;
       
   239     buttons = 
       
   240         {
       
   241         CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
       
   242         CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;},
       
   243 	    CBA_BUTTON {id=ENotepadCmdAdd; txt = qtn_msk_new;}
       
   244         };
       
   245     }
       
   246     
       
   247 // -----------------------------------------------------------------------------
       
   248 //
       
   249 // r_notepad_list_dialog_org
       
   250 // CEikDialog resource of 'list of memos'.
       
   251 // 
       
   252 // -----------------------------------------------------------------------------
       
   253 //
       
   254 RESOURCE DIALOG r_notepad_list_dialog_org
       
   255     {
       
   256     flags = EEikDialogFlagNoDrag 
       
   257         | EEikDialogFlagModeless
       
   258         | EEikDialogFlagNoTitleBar 
       
   259         | EEikDialogFlagFillAppClientRect
       
   260         | EEikDialogFlagCbaButtons 
       
   261         | EEikDialogFlagDontEatUpDownEvents
       
   262         ; 
       
   263     pages = 0;
       
   264   buttons = R_NOTEPAD_SOFTKEYS_OPTIONS_EXIT_CONTEXTOPTIONS ;
       
   265     items =
       
   266         {
       
   267         DLG_LINE
       
   268             {
       
   269             type = ENotepadCtListBox;
       
   270             id = ENotepadIdListBox;
       
   271             itemflags = EEikDlgItemTakesEnterKey 
       
   272                 | EEikDlgItemOfferAllHotKeys
       
   273                 ;
       
   274             control= LISTBOX
       
   275                 {
       
   276                 flags = EAknListBoxStylusMarkableList; //EAknListBoxMarkableList;
       
   277                 };   
       
   278             }
       
   279         };
       
   280     }
       
   281 
       
   282 // -----------------------------------------------------------------------------
       
   283 //
       
   284 // r_notepad_editor_dialog
       
   285 // Editor dialog of Notepad application
       
   286 //
       
   287 // -----------------------------------------------------------------------------
       
   288 //
       
   289 RESOURCE NOTEPAD_EDITOR_DIALOG r_notepad_editor_dialog
       
   290     {
       
   291     menubar = r_notepad_editor_menubar;
       
   292     dialog = r_notepad_editor_dialog_org;
       
   293     title = qtn_nmake_title_notepad;
       
   294     }
       
   295 
       
   296 // -----------------------------------------------------------------------------
       
   297 //
       
   298 // r_notepad_editor_dialog_org
       
   299 // CEikDialog resource of memo editor
       
   300 //
       
   301 // -----------------------------------------------------------------------------
       
   302 //
       
   303 RESOURCE DIALOG r_notepad_editor_dialog_org
       
   304     {
       
   305     flags = EEikDialogFlagNoDrag 
       
   306         | EEikDialogFlagModeless
       
   307         | EEikDialogFlagNoTitleBar 
       
   308         | EEikDialogFlagFillAppClientRect 
       
   309         | EEikDialogFlagCbaButtons
       
   310         ;
       
   311    buttons = R_NOTEPAD_SOFTKEYS_OPTIONS_DONE_CONTEXTOPTIONS ;
       
   312     items =
       
   313         {
       
   314         DLG_LINE
       
   315             {
       
   316             type = ENotepadCtEdwin;
       
   317             id = ENotepadIdEdwin;
       
   318             itemflags = EEikDlgItemTakesEnterKey 
       
   319                 | EEikDlgItemOfferAllHotKeys |EEikDlgItemCtlRefusesStrecth
       
   320                 ;
       
   321             control= EDWIN
       
   322                 {
       
   323                 flags =
       
   324                     EEikEdwinOwnsWindow
       
   325                     | EEikEdwinInclusiveSizeFixed
       
   326                     | EEikEdwinNoAutoSelection 
       
   327                     ;
       
   328                 lines = NOTEPAD_EDITOR_LINES; // indispensable
       
   329                 avkon_flags = EAknEditorFlagEnableScrollBars
       
   330 				| EAknEditorFlagAllowEntersWithScrollDown 
       
   331 				| EAknEditorFlagUseSCTNumericCharmap
       
   332 				| EAknEditorFlagEnablePictographInput  
       
   333                     ;
       
   334                 };
       
   335             },
       
   336         DLG_LINE
       
   337             {
       
   338             type = ENotepadCtEdwinLines;
       
   339             id = ENotepadIdEdwinLines;
       
   340             itemflags = EEikDlgItemNonFocusing| EEikDlgItemCtlRefusesStrecth;
       
   341             control= NOTEPAD_EDWIN_LINES_CONTROL
       
   342                 {
       
   343                 };
       
   344             }
       
   345         };
       
   346     }
       
   347 
       
   348 // -----------------------------------------------------------------------------
       
   349 //
       
   350 // r_notepad_list_menubar
       
   351 // Menu bar of Notepad list mode.
       
   352 //
       
   353 // -----------------------------------------------------------------------------
       
   354 //
       
   355 RESOURCE MENU_BAR r_notepad_list_menubar
       
   356     {
       
   357     titles =
       
   358         {
       
   359         MENU_TITLE
       
   360             {
       
   361             menu_pane = r_notepad_list_menu_second;
       
   362             txt = "";
       
   363             },
       
   364         MENU_TITLE
       
   365             {
       
   366             menu_pane=R_AVKON_MENUPANE_MARKABLE_LIST_EDIT_LIST_IMPLEMENTATION;
       
   367             txt = "";
       
   368             },
       
   369         MENU_TITLE
       
   370             {
       
   371             menu_pane = r_notepad_list_menu_first;
       
   372             txt = "";
       
   373             }
       
   374         };
       
   375     }
       
   376 
       
   377 // -----------------------------------------------------------------------------
       
   378 //
       
   379 // r_notepad_list_menu_first
       
   380 // 1st menu pane of Notepad list mode menu.
       
   381 //
       
   382 // -----------------------------------------------------------------------------
       
   383 //
       
   384 RESOURCE MENU_PANE r_notepad_list_menu_first
       
   385     {
       
   386     items =
       
   387         {
       
   388         MENU_ITEM
       
   389             {
       
   390             command = ENotepadCmdOpen;
       
   391             txt = qtn_nmake_om_open_memo;
       
   392             flags = EEikMenuItemAction;
       
   393             },
       
   394         // 'Send' is added by SendUi.
       
   395         MENU_ITEM
       
   396             {
       
   397             command = ENotepadCmdAdd;
       
   398             txt = qtn_nmake_om_add_new;
       
   399             },
       
   400         MENU_ITEM
       
   401             {
       
   402             command = ENotepadCmdDelete;
       
   403             txt = qtn_nmake_om_delete_memo;
       
   404             flags = EEikMenuItemSpecific;
       
   405             }
       
   406         // START CSW change
       
   407         ,MENU_ITEM
       
   408             {
       
   409             command = ENotepadCmdPrint; // Same ID as in interest. 
       
   410             txt = ""; // AIW plugin will set the text.
       
   411             cascade = AIW_INTELLIGENT_CASCADE_ID; // No submenu if only one item in it
       
   412             }
       
   413         // END CSW change
       
   414         };
       
   415     }
       
   416 
       
   417 // START CSW change
       
   418 //-----------------------------------------------------------------------------
       
   419 //   
       
   420 //    r_ps_aiw_interest
       
   421 //    AIW Interest
       
   422 //
       
   423 //-----------------------------------------------------------------------------
       
   424 //
       
   425 RESOURCE AIW_INTEREST r_ps_aiw_interest
       
   426     {
       
   427     items =
       
   428         {
       
   429         // This application is interested in calling from menu.
       
   430         AIW_CRITERIA_ITEM      
       
   431             {
       
   432             id = ENotepadCmdPrint; 
       
   433             serviceCmd = KAiwCmdPrint;
       
   434             serviceClass = KAiwClassMenu;
       
   435             contentType = "text/*";
       
   436             }
       
   437         };
       
   438     }
       
   439 // END CSW change
       
   440 
       
   441 // -----------------------------------------------------------------------------
       
   442 //
       
   443 // r_notepad_list_menu_second
       
   444 // Second menu pane of Notepad list mode menu.
       
   445 //
       
   446 // -----------------------------------------------------------------------------
       
   447 //
       
   448 RESOURCE MENU_PANE r_notepad_list_menu_second
       
   449     {
       
   450     items =
       
   451         {
       
   452         MENU_ITEM
       
   453 			{
       
   454 			command = ECmdAiwPlaceholder;
       
   455 			txt = "";
       
   456 			cascade = AIW_CASCADE_ID;
       
   457 			},
       
   458         MENU_ITEM
       
   459             {
       
   460             command = EAknCmdHelp; 
       
   461             txt = qtn_options_help; 
       
   462             },
       
   463         MENU_ITEM 
       
   464             {
       
   465             command = EAknCmdExit;
       
   466             txt = qtn_options_exit;
       
   467             }
       
   468         };
       
   469     }
       
   470 
       
   471 // -----------------------------------------------------------------------------
       
   472 //
       
   473 // r_notepad_editor_menubar
       
   474 // Menu bar of Notepad editor mode.
       
   475 //
       
   476 // -----------------------------------------------------------------------------
       
   477 //
       
   478 RESOURCE MENU_BAR r_notepad_editor_menubar
       
   479     {
       
   480     titles =
       
   481         {
       
   482         MENU_TITLE
       
   483             {
       
   484             menu_pane = r_notepad_editor_menu;
       
   485             txt = "";
       
   486             }
       
   487         };
       
   488     }
       
   489 
       
   490 // -----------------------------------------------------------------------------
       
   491 //
       
   492 // r_notepad_editor_menu
       
   493 // Menu pane of Notepad editor mode menu.
       
   494 //
       
   495 // -----------------------------------------------------------------------------
       
   496 //
       
   497 RESOURCE MENU_PANE r_notepad_editor_menu
       
   498     {
       
   499     items =
       
   500         {
       
   501         // 'Send' is added by SendUi.
       
   502         MENU_ITEM
       
   503             {
       
   504             command = ENotepadCmdAdd; 
       
   505             txt = qtn_nmake_om_add_new; 
       
   506             },
       
   507       
       
   508         MENU_ITEM 
       
   509             { 
       
   510             command = ENotepadCmdDelete; 
       
   511             txt = qtn_nmake_om_delete_memo; 
       
   512             },
       
   513         MENU_ITEM
       
   514             {
       
   515             command = ENotepadCmdNextMemo;
       
   516             txt = qtn_nmake_om_next_memo;
       
   517             },
       
   518         MENU_ITEM
       
   519             { 
       
   520             command = ENotepadCmdPreviousMemo; 
       
   521             txt = qtn_nmake_om_previous_memo; 
       
   522             },
       
   523        MENU_ITEM 
       
   524             { 
       
   525            command = EAknCmdInputMethod ; 
       
   526            txt = qtn_chi_pup_option_input_method;
       
   527 	       cascade = R_AVKON_INPUT_MODE_SUB_MENU; 
       
   528            },
       
   529         MENU_ITEM 
       
   530             { 
       
   531             command = EAknCmdInputLanguage; 
       
   532             txt = text_pup_option_input_language; 
       
   533             },
       
   534        MENU_ITEM 
       
   535             { 
       
   536             command = EAknCmdEditTextMenu; 
       
   537             cascade = R_AKNFEP_EDIT_SUBMENU;
       
   538             txt = qtn_options_edit; 
       
   539             },      
       
   540         // START CSW change
       
   541         MENU_ITEM
       
   542             {
       
   543             command = ENotepadCmdPrint; // Same ID as in interest. 
       
   544             txt = ""; // AIW plugin will set the text.
       
   545             cascade = AIW_INTELLIGENT_CASCADE_ID; // No submenu if only one item in it
       
   546             },
       
   547         // END CSW change
       
   548         MENU_ITEM 
       
   549             { 
       
   550             command = EAknCmdHelp; 
       
   551             txt = qtn_options_help; 
       
   552             },
       
   553         MENU_ITEM 
       
   554             { 
       
   555             command = EAknCmdExit; 
       
   556             txt = qtn_options_exit;
       
   557             }
       
   558         };
       
   559     }
       
   560 
       
   561 
       
   562 
       
   563 
       
   564 
       
   565 // -----------------------------------------------------------------------------
       
   566 //
       
   567 // r_notepad_save_memo
       
   568 // Model resource for SaveAsMemo API.
       
   569 //
       
   570 // -----------------------------------------------------------------------------
       
   571 //
       
   572 RESOURCE NOTEPAD_MODEL r_notepad_save_memo
       
   573     {
       
   574     data_file = r_notepad_datafile_name;
       
   575     listing_style = ENotepadListingStyleNone;
       
   576     }
       
   577 
       
   578 // -----------------------------------------------------------------------------
       
   579 //
       
   580 // r_notepad_fetch_memo_model
       
   581 // Model resource for FetchMemo API.
       
   582 //
       
   583 // -----------------------------------------------------------------------------
       
   584 //
       
   585 RESOURCE NOTEPAD_MODEL r_notepad_fetch_memo_model
       
   586     {
       
   587     data_file = r_notepad_datafile_name;
       
   588     listing_style = ENotepadListingStyleFetch;
       
   589     }
       
   590 
       
   591 // -----------------------------------------------------------------------------
       
   592 //
       
   593 // r_notepad_viewer
       
   594 // Viewer dialog of NpdViewer application.
       
   595 //
       
   596 // -----------------------------------------------------------------------------
       
   597 //
       
   598 RESOURCE NOTEPAD_VIEWER_DIALOG r_notepad_viewer
       
   599     {
       
   600     menubar = r_notepad_viewer_menubar;
       
   601     dialog = r_notepad_viewer_dialog_org;
       
   602     }
       
   603 
       
   604 // -----------------------------------------------------------------------------
       
   605 //
       
   606 // r_notepad_delete_progress_note
       
   607 // Resource of progress dialog.
       
   608 // Refer to Notes spec.
       
   609 //
       
   610 // -----------------------------------------------------------------------------
       
   611 //
       
   612 RESOURCE DIALOG r_notepad_delete_progress_note
       
   613     {
       
   614     flags = EAknProgressNoteFlags;
       
   615     buttons = R_AVKON_SOFTKEYS_CANCEL;
       
   616     items =
       
   617         {
       
   618         DLG_LINE
       
   619             {
       
   620             type = EAknCtNote;
       
   621             id = ENotepadIdProgressNote;
       
   622             control = AVKON_NOTE 
       
   623                 { 
       
   624                 layout = EProgressLayout;
       
   625                 singular_label = qtn_nmake_delete_prog_note;
       
   626                 imagefile = AVKON_ICON_FILE;
       
   627                 imageid = EMbmAvkonQgn_note_erased;
       
   628                 imagemask = EMbmAvkonQgn_note_erased_mask;
       
   629                 };
       
   630             }
       
   631         };
       
   632     }
       
   633 
       
   634 // -----------------------------------------------------------------------------
       
   635 //
       
   636 // r_notepad_viewer_menubar
       
   637 // Menu bar of NpdViewer.
       
   638 //
       
   639 // -----------------------------------------------------------------------------
       
   640 //
       
   641 RESOURCE MENU_BAR r_notepad_viewer_menubar
       
   642     {
       
   643     titles =
       
   644         {
       
   645         MENU_TITLE
       
   646             {
       
   647             menu_pane = r_notepad_viewer_menu;
       
   648             txt = "";
       
   649             }
       
   650         };
       
   651     }
       
   652 
       
   653 // -----------------------------------------------------------------------------
       
   654 //
       
   655 // r_notepad_viewer_menu
       
   656 // Menu pane of NpdViewer.
       
   657 //
       
   658 // -----------------------------------------------------------------------------
       
   659 //
       
   660 RESOURCE MENU_PANE r_notepad_viewer_menu
       
   661     {
       
   662     items=
       
   663         {
       
   664         MENU_ITEM 
       
   665             {
       
   666             command = ENotepadCmdViewerEdit;
       
   667             txt = qtn_nmake_opt_edit;
       
   668             },	
       
   669         MENU_ITEM 
       
   670             {
       
   671             command = ENotepadCmdViewerDelete;
       
   672             txt = qtn_nmake_om_delete_memo;
       
   673             },	
       
   674         MENU_ITEM 
       
   675             {
       
   676             command = ENotepadCmdViewerSave; 
       
   677             txt = qtn_nmake_save_mail_atta;
       
   678             },	
       
   679 		MENU_ITEM
       
   680 			{
       
   681 			command = EFindItemMenuPlaceHolder;
       
   682 			txt = "Automatic HL";
       
   683 			},
       
   684         MENU_ITEM 
       
   685             { 
       
   686             command = EAknCmdHelp; 
       
   687             txt = qtn_options_help; 
       
   688             },
       
   689         MENU_ITEM 
       
   690             {
       
   691             command = EAknCmdExit; 
       
   692             txt = qtn_options_exit; 
       
   693             }
       
   694         };
       
   695     }
       
   696 
       
   697 // -----------------------------------------------------------------------------
       
   698 //
       
   699 // r_notepad_viewer_dialog_org
       
   700 // CEikDialog resource of NpdViewer.
       
   701 //
       
   702 // -----------------------------------------------------------------------------
       
   703 //
       
   704 RESOURCE DIALOG r_notepad_viewer_dialog_org
       
   705     {
       
   706     flags = EEikDialogFlagNoDrag 
       
   707         | EEikDialogFlagModeless
       
   708         | EEikDialogFlagNoTitleBar 
       
   709         | EEikDialogFlagFillAppClientRect 
       
   710         | EEikDialogFlagCbaButtons
       
   711         ;
       
   712      buttons =  R_NOTEPAD_SOFTKEYS_OPTIONS_BACK_CONTEXTOPTIONS;
       
   713     items =
       
   714         {
       
   715         DLG_LINE
       
   716             {
       
   717             type = ENotepadCtRichTextEditor;
       
   718             id = ENotepadIdRichTextEditor;
       
   719             itemflags = EEikDlgItemTakesEnterKey
       
   720                 | EEikDlgItemOfferAllHotKeys | EEikDlgItemCtlRefusesStrecth
       
   721                 ;
       
   722             control = RTXTED
       
   723                 {
       
   724                 flags = EEikEdwinOwnsWindow 
       
   725                     | EEikEdwinInclusiveSizeFixed
       
   726                     | EEikEdwinReadOnly
       
   727                     | EEikEdwinAvkonDisableCursor
       
   728                     | EEikEdwinNoAutoSelection 
       
   729                     | EEikEdwinDisplayOnly
       
   730                     ;
       
   731                 numlines = NOTEPAD_VIEWER_LINES; // indispensable
       
   732                 avkon_flags = EAknEditorFlagEnableScrollBars;
       
   733                 };
       
   734             }
       
   735         };
       
   736     }
       
   737 
       
   738 // -----------------------------------------------------------------------------
       
   739 //
       
   740 // r_notepad_template_model
       
   741 // Model resource for ExecTemplates (list of templates) API 
       
   742 //
       
   743 // -----------------------------------------------------------------------------
       
   744 //
       
   745 RESOURCE NOTEPAD_MODEL r_notepad_template_model
       
   746     {
       
   747     data_file = r_notepad_template_datafile_name;
       
   748     listing_style = ENotepadListingStyleMC;
       
   749     }
       
   750 
       
   751 // -----------------------------------------------------------------------------
       
   752 //
       
   753 // r_notepad_template_list_dialog
       
   754 // List dialog for 'list of templates'
       
   755 //
       
   756 // -----------------------------------------------------------------------------
       
   757 //
       
   758 RESOURCE NOTEPAD_LIST_DIALOG r_notepad_template_list_dialog
       
   759     {
       
   760     menubar = r_notepad_template_list_menubar;
       
   761     dialog = r_notepad_template_list_dialog_org;
       
   762     model = r_notepad_template_model;
       
   763     editor_dialog = r_notepad_template_editor_dialog;
       
   764     title = qtn_mce_title_temp;
       
   765     }
       
   766 
       
   767 // -----------------------------------------------------------------------------
       
   768 //
       
   769 // r_notepad_template_list_dialog_org
       
   770 // CEikDialog resource for template list.
       
   771 //
       
   772 // -----------------------------------------------------------------------------
       
   773 //
       
   774 RESOURCE DIALOG r_notepad_template_list_dialog_org
       
   775     {
       
   776     flags = EEikDialogFlagNoDrag  
       
   777         | EEikDialogFlagNoTitleBar 
       
   778         | EEikDialogFlagFillAppClientRect 
       
   779         | EEikDialogFlagCbaButtons 
       
   780         | EEikDialogFlagDontEatUpDownEvents
       
   781         | EEikDialogFlagWait
       
   782         ;
       
   783     buttons =  R_NOTEPAD_SOFTKEYS_OPTIONS_BACK_CONTEXTOPTIONS;
       
   784     items =
       
   785         {
       
   786         DLG_LINE
       
   787             {
       
   788             type = ENotepadCtTemplateListBox;
       
   789             id = ENotepadIdListBox;
       
   790             itemflags = EEikDlgItemTakesEnterKey 
       
   791                 | EEikDlgItemOfferAllHotKeys
       
   792                 ;
       
   793             control= LISTBOX
       
   794                 {
       
   795                 flags = EAknListBoxStylusMarkableList;//EAknListBoxMarkableList
       
   796                 };
       
   797             }
       
   798         };
       
   799     }
       
   800 
       
   801 // -----------------------------------------------------------------------------
       
   802 //
       
   803 // r_notepad_template_editor_dialog
       
   804 // Template Editor resource.
       
   805 //
       
   806 // -----------------------------------------------------------------------------
       
   807 //
       
   808 RESOURCE NOTEPAD_EDITOR_DIALOG r_notepad_template_editor_dialog
       
   809     {
       
   810     menubar = r_notepad_template_editor_menubar;
       
   811     dialog = r_notepad_template_editor_dialog_org;
       
   812     title = qtn_nmake_title_template;
       
   813     }
       
   814 
       
   815 // -----------------------------------------------------------------------------
       
   816 //
       
   817 // r_notepad_template_editor_dialog_org
       
   818 // CEikDialog resource for template editor.
       
   819 //
       
   820 // -----------------------------------------------------------------------------
       
   821 //
       
   822 RESOURCE DIALOG r_notepad_template_editor_dialog_org
       
   823     {
       
   824     flags = EEikDialogFlagNoDrag  
       
   825         | EEikDialogFlagNoTitleBar 
       
   826         | EEikDialogFlagFillAppClientRect 
       
   827         | EEikDialogFlagCbaButtons 
       
   828         | EEikDialogFlagNotifyEsc
       
   829         ;
       
   830     pages = 0;
       
   831    buttons =  R_NOTEPAD_SOFTKEYS_OPTIONS_DONE_CONTEXTOPTIONS;
       
   832     items =
       
   833         {
       
   834         DLG_LINE
       
   835             {
       
   836             type = ENotepadCtEdwin;
       
   837             id = ENotepadIdEdwin;
       
   838             itemflags = EEikDlgItemTakesEnterKey 
       
   839                 | EEikDlgItemOfferAllHotKeys
       
   840                 ;
       
   841             control = EDWIN
       
   842                 {
       
   843                 flags = 
       
   844                     EEikEdwinOwnsWindow
       
   845                     | EEikEdwinInclusiveSizeFixed
       
   846                     | EEikEdwinNoAutoSelection
       
   847                     ;
       
   848                 lines = NOTEPAD_EDITOR_LINES; // indispensable
       
   849                 avkon_flags = EAknEditorFlagEnableScrollBars
       
   850                 	| EAknEditorFlagUseSCTNumericCharmap
       
   851 			| EAknEditorFlagAllowEntersWithScrollDown 
       
   852 			| EAknEditorFlagEnablePictographInput  
       
   853                     ;
       
   854                 };
       
   855             },
       
   856         DLG_LINE
       
   857             {
       
   858             type = ENotepadCtEdwinLines;
       
   859             id = ENotepadIdEdwinLines;
       
   860             itemflags = EEikDlgItemNonFocusing;
       
   861             control= NOTEPAD_EDWIN_LINES_CONTROL
       
   862                 {
       
   863                 };
       
   864             }
       
   865         };
       
   866     }
       
   867 
       
   868 // -----------------------------------------------------------------------------
       
   869 //
       
   870 // r_notepad_template_list_menubar
       
   871 // Menu bar of template list.
       
   872 //
       
   873 // -----------------------------------------------------------------------------
       
   874 //
       
   875 RESOURCE MENU_BAR r_notepad_template_list_menubar
       
   876     {
       
   877     titles =
       
   878         {
       
   879         MENU_TITLE
       
   880             {
       
   881             menu_pane = r_notepad_template_list_menu_second;
       
   882             txt = "";
       
   883             },
       
   884         MENU_TITLE
       
   885             {
       
   886             menu_pane=R_AVKON_MENUPANE_MARKABLE_LIST_EDIT_LIST_IMPLEMENTATION;
       
   887             txt = "";
       
   888             },
       
   889         MENU_TITLE
       
   890             {
       
   891             menu_pane = r_notepad_template_list_menu_first;
       
   892             txt = "";
       
   893             }
       
   894         };
       
   895     }
       
   896 
       
   897 // -----------------------------------------------------------------------------
       
   898 //
       
   899 // r_notepad_template_list_menu_first
       
   900 // First menu pane of template list.
       
   901 //
       
   902 // -----------------------------------------------------------------------------
       
   903 //
       
   904 RESOURCE MENU_PANE r_notepad_template_list_menu_first
       
   905     {
       
   906     items =
       
   907         {
       
   908         MENU_ITEM
       
   909             {
       
   910             command = ENotepadCmdOpen;
       
   911             txt = qtn_mce_open;
       
   912             flags = EEikMenuItemAction;
       
   913             },
       
   914         // 'Send' item is added by SendUi API
       
   915         MENU_ITEM
       
   916             {
       
   917             command = ENotepadCmdAdd;
       
   918             txt = qtn_mce_org_new;
       
   919             },
       
   920         MENU_ITEM
       
   921             {
       
   922             command = ENotepadCmdDelete;
       
   923             txt = qtn_mce_delete;
       
   924             flags = EEikMenuItemSpecific;
       
   925             }
       
   926         };
       
   927     }
       
   928 
       
   929 // -----------------------------------------------------------------------------
       
   930 //
       
   931 // r_notepad_template_list_menu_second
       
   932 // Second menu pane for template list
       
   933 //
       
   934 // -----------------------------------------------------------------------------
       
   935 //
       
   936 RESOURCE MENU_PANE r_notepad_template_list_menu_second
       
   937     {
       
   938     items =
       
   939         {
       
   940         MENU_ITEM
       
   941             {
       
   942             command = EAknCmdHelp;
       
   943             txt = qtn_options_help;
       
   944             },
       
   945         MENU_ITEM
       
   946             {
       
   947             command = EAknCmdExit;
       
   948             txt = qtn_options_exit;
       
   949             }
       
   950         };
       
   951     }
       
   952 
       
   953 // -----------------------------------------------------------------------------
       
   954 //
       
   955 // r_notepad_template_editor_menubar
       
   956 // Menu bar of Template Editor.
       
   957 //
       
   958 // -----------------------------------------------------------------------------
       
   959 //
       
   960 RESOURCE MENU_BAR r_notepad_template_editor_menubar
       
   961     {
       
   962     titles =
       
   963         {
       
   964         MENU_TITLE
       
   965             {
       
   966             menu_pane = r_notepad_template_editor_menu;
       
   967             txt = "";
       
   968             }
       
   969         };
       
   970     }
       
   971 
       
   972 // -----------------------------------------------------------------------------
       
   973 //
       
   974 // r_notepad_template_editor_menu
       
   975 // Menu pane of Template Editor.
       
   976 //
       
   977 // -----------------------------------------------------------------------------
       
   978 //
       
   979 RESOURCE MENU_PANE r_notepad_template_editor_menu
       
   980     {
       
   981     items =
       
   982         {
       
   983         MENU_ITEM
       
   984             {
       
   985             command = ENotepadCmdDelete; 
       
   986             txt = qtn_nmake_delete_template; 
       
   987             },
       
   988         MENU_ITEM
       
   989             {
       
   990             command = EAknCmdHelp;
       
   991             txt = qtn_options_help; 
       
   992             },
       
   993         MENU_ITEM
       
   994             {
       
   995             command = EAknCmdExit;
       
   996             txt = qtn_options_exit;
       
   997             }
       
   998         };
       
   999     }
       
  1000 
       
  1001 // -----------------------------------------------------------------------------
       
  1002 //
       
  1003 // r_notepad_fetch_template_model
       
  1004 // Model resource for FetchTemplate API.
       
  1005 //
       
  1006 // -----------------------------------------------------------------------------
       
  1007 //
       
  1008 RESOURCE NOTEPAD_MODEL r_notepad_fetch_template_model
       
  1009     {
       
  1010     data_file = r_notepad_template_datafile_name;
       
  1011     listing_style = ENotepadListingStyleFetchMC;
       
  1012     }
       
  1013 
       
  1014 // -----------------------------------------------------------------------------
       
  1015 //
       
  1016 // r_notepad_mce_empty_list
       
  1017 // "No templates"
       
  1018 //
       
  1019 // -----------------------------------------------------------------------------
       
  1020 //
       
  1021 RESOURCE TBUF r_notepad_mce_empty_list
       
  1022     {
       
  1023     buf = qtn_mce_no_templates;
       
  1024     }
       
  1025 
       
  1026 // -----------------------------------------------------------------------------
       
  1027 //
       
  1028 // r_notepad_icon_array
       
  1029 // Icon array for Notepad listbox.
       
  1030 //
       
  1031 // -----------------------------------------------------------------------------
       
  1032 //
       
  1033 RESOURCE AKN_ICON_ARRAY r_notepad_icon_array
       
  1034     {
       
  1035     bmpfile = AVKON_ICON_FILE;
       
  1036     icons = 
       
  1037         {
       
  1038         AKN_ICON
       
  1039             {
       
  1040             iconId = EMbmAvkonQgn_indi_marked_add;
       
  1041             maskId = EMbmAvkonQgn_indi_marked_add_mask;
       
  1042             }
       
  1043         };
       
  1044     }
       
  1045 
       
  1046 // -----------------------------------------------------------------------------
       
  1047 //
       
  1048 // r_notepad_template_icon_array
       
  1049 // Icon array for Templates listbox.
       
  1050 //
       
  1051 // -----------------------------------------------------------------------------
       
  1052 //
       
  1053 RESOURCE AKN_ICON_ARRAY r_notepad_template_icon_array
       
  1054     {
       
  1055     bmpfile = NPDLIB_MBM_FILE;
       
  1056     icons = 
       
  1057         {
       
  1058         AKN_ICON
       
  1059             {
       
  1060             iconId = EMbmNpdlibQgn_prop_mce_template;
       
  1061             maskId = EMbmNpdlibQgn_prop_mce_template_mask;
       
  1062             }
       
  1063         };
       
  1064     }
       
  1065 
       
  1066 // -----------------------------------------------------------------------------
       
  1067 //
       
  1068 // r_notepad_viewer_waiting
       
  1069 // Viewer Dialog of NpdViewer.
       
  1070 //
       
  1071 // -----------------------------------------------------------------------------
       
  1072 //
       
  1073 RESOURCE NOTEPAD_VIEWER_DIALOG r_notepad_viewer_waiting
       
  1074     {
       
  1075     menubar = r_notepad_viewer_menubar;
       
  1076     dialog = r_notepad_viewer_waiting_dialog_org;
       
  1077     }
       
  1078 
       
  1079 // -----------------------------------------------------------------------------
       
  1080 //
       
  1081 // r_notepad_viewer_waiting_dialog_org
       
  1082 // CEikDialog resource of NpdViewer.
       
  1083 //
       
  1084 // -----------------------------------------------------------------------------
       
  1085 //
       
  1086 RESOURCE DIALOG r_notepad_viewer_waiting_dialog_org
       
  1087     {
       
  1088     flags = EEikDialogFlagNoDrag 
       
  1089         | EEikDialogFlagNoTitleBar 
       
  1090         | EEikDialogFlagFillAppClientRect 
       
  1091         | EEikDialogFlagCbaButtons
       
  1092         | EEikDialogFlagWait
       
  1093         ;
       
  1094     buttons =  R_NOTEPAD_SOFTKEYS_OPTIONS_BACK_CONTEXTOPTIONS;
       
  1095     items =
       
  1096         {
       
  1097         DLG_LINE
       
  1098             {
       
  1099             type = ENotepadCtRichTextEditor;
       
  1100             id = ENotepadIdRichTextEditor;
       
  1101             itemflags = EEikDlgItemTakesEnterKey
       
  1102                 | EEikDlgItemOfferAllHotKeys
       
  1103                 ;
       
  1104             control = RTXTED
       
  1105                 {
       
  1106                 flags = EEikEdwinOwnsWindow 
       
  1107                     | EEikEdwinInclusiveSizeFixed
       
  1108                     | EEikEdwinReadOnly
       
  1109                     | EEikEdwinDisplayOnly
       
  1110                     | EEikEdwinAvkonDisableCursor
       
  1111                     | EEikEdwinNoAutoSelection 
       
  1112                     ;
       
  1113                 numlines = NOTEPAD_VIEWER_LINES; // indispensable
       
  1114                 avkon_flags = EAknEditorFlagEnableScrollBars;
       
  1115                 };
       
  1116             }
       
  1117         };
       
  1118     }
       
  1119 
       
  1120 // -----------------------------------------------------------------------------
       
  1121 //
       
  1122 // r_notepad_query_delete_memo
       
  1123 // Delete confirmation query in deleting one memo.
       
  1124 //
       
  1125 // -----------------------------------------------------------------------------
       
  1126 //
       
  1127 RESOURCE TBUF  r_notepad_query_delete_memo
       
  1128     {
       
  1129     buf = qtn_nmake_note_delete_memo;
       
  1130     }
       
  1131 
       
  1132 // -----------------------------------------------------------------------------
       
  1133 //
       
  1134 // r_notepad_query_delete_template
       
  1135 // Delete confirmation query in deleting one template in Template Editor.
       
  1136 //
       
  1137 // -----------------------------------------------------------------------------
       
  1138 //
       
  1139 RESOURCE TBUF r_notepad_query_delete_template
       
  1140     {
       
  1141     buf = qtn_nmake_note_del_template;
       
  1142     }
       
  1143 
       
  1144 // -----------------------------------------------------------------------------
       
  1145 //
       
  1146 // r_notepad_query_delete_te
       
  1147 // Delete confirmation query in deleting one template in list of templates.
       
  1148 //
       
  1149 // -----------------------------------------------------------------------------
       
  1150 //
       
  1151 RESOURCE TBUF r_notepad_query_delete_te
       
  1152     {
       
  1153     buf = qtn_query_common_conf_delete_te;
       
  1154     }
       
  1155 
       
  1156 // -----------------------------------------------------------------------------
       
  1157 //
       
  1158 // r_notepad_query_delete_memos
       
  1159 // Delete confirmation query in deleting multiple memos.
       
  1160 // added 09/Mar/2001
       
  1161 //
       
  1162 // -----------------------------------------------------------------------------
       
  1163 //
       
  1164 RESOURCE TBUF r_notepad_query_delete_memos 
       
  1165     {
       
  1166     buf = qtn_nmake_note_delete_memos;
       
  1167     }
       
  1168 
       
  1169 // -----------------------------------------------------------------------------
       
  1170 //
       
  1171 // r_notepad_query_delete_templates
       
  1172 // Delete confirmation query in deleting multiple templates.
       
  1173 //
       
  1174 // -----------------------------------------------------------------------------
       
  1175 //
       
  1176 RESOURCE TBUF r_notepad_query_delete_templates
       
  1177     {
       
  1178     buf = qtn_query_common_conf_delete_ts;
       
  1179     }
       
  1180 
       
  1181 // -----------------------------------------------------------------------------
       
  1182 //
       
  1183 // r_notepad_fetch_memo_prmpt
       
  1184 // Prompt text of FetchMemo popup list.
       
  1185 //
       
  1186 // -----------------------------------------------------------------------------
       
  1187 //
       
  1188 RESOURCE TBUF r_notepad_fetch_memo_prmpt
       
  1189     {
       
  1190     buf = qtn_nmake_fetch_memo_prmpt;
       
  1191     }
       
  1192 
       
  1193 // -----------------------------------------------------------------------------
       
  1194 //
       
  1195 // r_notepad_margins
       
  1196 // Margins of 1st column of Notepad listbox.
       
  1197 //
       
  1198 // -----------------------------------------------------------------------------
       
  1199 //
       
  1200 RESOURCE NOTEPAD_MARGINS r_notepad_margins
       
  1201     {
       
  1202     left = NOTEPAD_MARGINS_LEFT; // 1;
       
  1203     right = NOTEPAD_MARGINS_RIGHT; // 1;
       
  1204     }
       
  1205 
       
  1206 // -----------------------------------------------------------------------------
       
  1207 //
       
  1208 // r_notepad_cursor_color
       
  1209 // Cursor color of Notepad Editor.
       
  1210 //
       
  1211 // -----------------------------------------------------------------------------
       
  1212 //
       
  1213 RESOURCE NUMBER_INT16 r_notepad_cursor_color
       
  1214     {
       
  1215     value = NOTEPAD_CURSOR_COLOR; // 210
       
  1216     }
       
  1217 
       
  1218 // -----------------------------------------------------------------------------
       
  1219 //
       
  1220 // r_notepad_memo_atta_saved
       
  1221 // Text of information note after file was saved as memo in NpdViewer.
       
  1222 // "Attachment saved"
       
  1223 //
       
  1224 // -----------------------------------------------------------------------------
       
  1225 //
       
  1226 RESOURCE TBUF r_notepad_memo_atta_saved
       
  1227     {
       
  1228     buf = qtn_nmake_memo_atta_saved;
       
  1229     }
       
  1230 
       
  1231 // -----------------------------------------------------------------------------
       
  1232 //
       
  1233 // r_notepad_memo_atta_saved
       
  1234 // An information note text shown when all content of a previous 
       
  1235 // created memo are erased in editor and Done.
       
  1236 //
       
  1237 // -----------------------------------------------------------------------------
       
  1238 //
       
  1239 RESOURCE TBUF r_notepad_text_deleted_empty_memo
       
  1240     {
       
  1241     buf = qtn_nmake_deleted_empty_memo;
       
  1242     }
       
  1243 
       
  1244 // -----------------------------------------------------------------------------
       
  1245 //
       
  1246 // r_notepad_text_deleted_empty_template
       
  1247 // An information note text shown when all content of a previous 
       
  1248 // created template are erased in editor and Done.
       
  1249 //
       
  1250 // -----------------------------------------------------------------------------
       
  1251 //
       
  1252 RESOURCE TBUF r_notepad_text_deleted_empty_template
       
  1253     {
       
  1254     buf = qtn_nmake_deleted_empty_template;
       
  1255     }
       
  1256 
       
  1257 // -----------------------------------------------------------------------------
       
  1258 //
       
  1259 // r_notepad_mce_wait_note_delete_template
       
  1260 // Text for Progress Note in deleting a template.
       
  1261 //
       
  1262 // -----------------------------------------------------------------------------
       
  1263 //
       
  1264 RESOURCE TBUF r_notepad_mce_wait_note_delete_template
       
  1265     {
       
  1266     buf = qtn_mce_wait_delete_temp;
       
  1267     }
       
  1268 
       
  1269 // -----------------------------------------------------------------------------
       
  1270 //
       
  1271 // r_notepad_mce_wait_note_delete_templates
       
  1272 // Text for Progress Note in deleting multiple templates.
       
  1273 //
       
  1274 // -----------------------------------------------------------------------------
       
  1275 //
       
  1276 RESOURCE TBUF r_notepad_mce_wait_note_delete_templates
       
  1277     {
       
  1278     buf = qtn_mce_wait_delete_templates;
       
  1279     }
       
  1280 
       
  1281 // -----------------------------------------------------------------------------
       
  1282 //
       
  1283 // r_notepad_editor_decoration
       
  1284 // Icon array for Notepad Editor decoration bitmaps.
       
  1285 //
       
  1286 // -----------------------------------------------------------------------------
       
  1287 //
       
  1288 RESOURCE AKN_ICON_ARRAY r_notepad_editor_decoration
       
  1289     {
       
  1290     bmpfile = NPDLIB_MBM_FILE;
       
  1291     icons = 
       
  1292         {
       
  1293         AKN_ICON
       
  1294             {
       
  1295             iconId = EMbmNpdlibQsn_fr_notepad_side_t;
       
  1296             maskId = EMbmNpdlibQsn_fr_notepad_side_t_mask ;
       
  1297             },
       
  1298         AKN_ICON
       
  1299             {
       
  1300             iconId = EMbmNpdlibQsn_fr_notepad_cont_side_t;
       
  1301             maskId = EMbmNpdlibQsn_fr_notepad_cont_side_t_mask ;
       
  1302             }
       
  1303         };
       
  1304     }
       
  1305 
       
  1306 // -----------------------------------------------------------------------------
       
  1307 //
       
  1308 // r_notepad_fetch_template_prmpt
       
  1309 // Prompt text of FetchTemplate popup list.
       
  1310 //
       
  1311 // -----------------------------------------------------------------------------
       
  1312 //
       
  1313 RESOURCE TBUF r_notepad_fetch_template_prmpt
       
  1314     {
       
  1315     buf = qtn_sms_select_template;
       
  1316     }
       
  1317 
       
  1318 // -----------------------------------------------------------------------------
       
  1319 //
       
  1320 // r_qtn_memlo_database_corrupted
       
  1321 // Message used when the corrupted database is reconstructed.
       
  1322 // Defined in "Low memory and error handling" draft 2.8 section 1.9.
       
  1323 //
       
  1324 // -----------------------------------------------------------------------------
       
  1325 //
       
  1326 RESOURCE TBUF r_notepad_qtn_memlo_database_corrupted
       
  1327     {
       
  1328     buf = qtn_memlo_database_corrupted;
       
  1329     }
       
  1330 
       
  1331 // -----------------------------------------------------------------------------
       
  1332 //
       
  1333 // r_notepad_default_document_name
       
  1334 //
       
  1335 // -----------------------------------------------------------------------------
       
  1336 //
       
  1337 RESOURCE TBUF r_notepad_default_document_name
       
  1338     {
       
  1339     buf = qtn_dochui_default_docname; // temporary
       
  1340     }
       
  1341 
       
  1342 // -----------------------------------------------------------------------------
       
  1343 //
       
  1344 // r_notepad_qtn_file_corrupted
       
  1345 //
       
  1346 // -----------------------------------------------------------------------------
       
  1347 //
       
  1348 RESOURCE TBUF r_notepad_qtn_file_corrupted
       
  1349     {
       
  1350     buf = qtn_mail_info_atta_encrypted;
       
  1351     }
       
  1352 
       
  1353 // -----------------------------------------------------------------------------
       
  1354 //
       
  1355 // r_notepad_editor_dialog
       
  1356 // Editor dialog of Notepad application
       
  1357 //
       
  1358 // -----------------------------------------------------------------------------
       
  1359 //
       
  1360 RESOURCE NOTEPAD_EDITOR_DIALOG r_notepad_text_editor
       
  1361     {
       
  1362     menubar = r_notepad_text_editor_menubar;
       
  1363     dialog = r_notepad_text_dialog;
       
  1364     title = qtn_nmake_title_notepad;
       
  1365     }
       
  1366 
       
  1367 
       
  1368 
       
  1369 // -----------------------------------------------------------------------------
       
  1370 //
       
  1371 // r_notepad_editor_dialog_org
       
  1372 // CEikDialog resource of memo editor
       
  1373 //
       
  1374 // -----------------------------------------------------------------------------
       
  1375 //
       
  1376 RESOURCE DIALOG r_notepad_text_dialog
       
  1377     {
       
  1378     flags = EEikDialogFlagNoDrag 
       
  1379         | EEikDialogFlagWait 
       
  1380         | EEikDialogFlagNoTitleBar 
       
  1381         | EEikDialogFlagFillAppClientRect 
       
  1382         | EEikDialogFlagCbaButtons
       
  1383         ;
       
  1384    buttons =  R_NOTEPAD_SOFTKEYS_OPTIONS_DONE_CONTEXTOPTIONS;
       
  1385     items =
       
  1386         {
       
  1387         DLG_LINE
       
  1388             {
       
  1389             type = ENotepadCtEdwin;
       
  1390             id = ENotepadIdEdwin;
       
  1391             itemflags = EEikDlgItemTakesEnterKey 
       
  1392                 | EEikDlgItemOfferAllHotKeys
       
  1393                 ;
       
  1394             control= EDWIN
       
  1395                 {
       
  1396                 flags =
       
  1397                     EEikEdwinOwnsWindow
       
  1398                     | EEikEdwinInclusiveSizeFixed
       
  1399                     | EEikEdwinNoAutoSelection
       
  1400                     ;
       
  1401                 lines = NOTEPAD_EDITOR_LINES; // indispensable
       
  1402                 avkon_flags = EAknEditorFlagEnableScrollBars
       
  1403                     	| EAknEditorFlagUseSCTNumericCharmap
       
  1404 			| EAknEditorFlagAllowEntersWithScrollDown 
       
  1405 			| EAknEditorFlagEnablePictographInput  
       
  1406                     ;
       
  1407                 };
       
  1408             },
       
  1409         DLG_LINE
       
  1410             {
       
  1411             type = ENotepadCtEdwinLines;
       
  1412             id = ENotepadIdEdwinLines;
       
  1413             itemflags = EEikDlgItemNonFocusing;
       
  1414             control= NOTEPAD_EDWIN_LINES_CONTROL
       
  1415                 {
       
  1416                 };
       
  1417             }
       
  1418         };
       
  1419     }
       
  1420 
       
  1421 // -----------------------------------------------------------------------------
       
  1422 //
       
  1423 // r_notepad_text_editor_menubar
       
  1424 // Menu bar of Notepad editor mode.
       
  1425 //
       
  1426 // -----------------------------------------------------------------------------
       
  1427 //
       
  1428 RESOURCE MENU_BAR r_notepad_text_editor_menubar
       
  1429     {
       
  1430     titles =
       
  1431         {
       
  1432         MENU_TITLE
       
  1433             {
       
  1434             menu_pane = r_notepad_text_editor_menu;
       
  1435             txt = "";
       
  1436             }
       
  1437         };
       
  1438     }
       
  1439 
       
  1440 // -----------------------------------------------------------------------------
       
  1441 //
       
  1442 // r_notepad_editor_menu
       
  1443 // Menu pane of Notepad editor mode menu.
       
  1444 //
       
  1445 // -----------------------------------------------------------------------------
       
  1446 //
       
  1447 RESOURCE MENU_PANE r_notepad_text_editor_menu
       
  1448     {
       
  1449     items =
       
  1450         {
       
  1451         MENU_ITEM 
       
  1452             { 
       
  1453             command = ENotepadCmdDelete; 
       
  1454             txt = qtn_nmake_om_delete_memo; 
       
  1455             },
       
  1456         MENU_ITEM 
       
  1457             { 
       
  1458             command = EAknCmdHelp; 
       
  1459             txt = qtn_options_help; 
       
  1460             },
       
  1461         MENU_ITEM 
       
  1462             { 
       
  1463             command = EAknCmdExit; 
       
  1464             txt = qtn_options_exit;
       
  1465             }
       
  1466         };
       
  1467     }
       
  1468 
       
  1469 // ---------------------------------------------------------
       
  1470 //   
       
  1471 //    For AIW: r_notepad_app_interest
       
  1472 //
       
  1473 // ---------------------------------------------------------
       
  1474 //
       
  1475 RESOURCE AIW_INTEREST r_notepad_app_interest
       
  1476     {
       
  1477     items=
       
  1478         {
       
  1479         // This application is interested in calling from menu.
       
  1480         AIW_CRITERIA_ITEM      
       
  1481             {
       
  1482             id              = ECmdAiwPlaceholder; 
       
  1483             serviceCmd      = KAiwCmdSynchronize;
       
  1484             serviceClass    = KAiwClassMenu;
       
  1485             contentType     = "*";
       
  1486             defaultProvider = 0x101F871F;
       
  1487             maxProviders    = 1;
       
  1488             }
       
  1489         };
       
  1490     }    
       
  1491 
       
  1492 // -----------------------------------------------------------------------------
       
  1493 //
       
  1494 // r_notepad_empty_list
       
  1495 // "No Memos"
       
  1496 //
       
  1497 // -----------------------------------------------------------------------------
       
  1498 //
       
  1499 RESOURCE TBUF r_notepad_empty_list
       
  1500     {
       
  1501     buf = qtn_nmake_no_memos;    
       
  1502     }
       
  1503 
       
  1504 // -----------------------------------------------------------------------------
       
  1505 //
       
  1506 // r_notepad_empty_list_primary_text
       
  1507 // Empty list primary text
       
  1508 //
       
  1509 // -----------------------------------------------------------------------------
       
  1510 //
       
  1511 RESOURCE TBUF r_notepad_empty_list_primary_text
       
  1512     {
       
  1513     buf = qtn_nmake_no_memos_primary_text;    
       
  1514     }
       
  1515 
       
  1516 // -----------------------------------------------------------------------------
       
  1517 //
       
  1518 // r_notepad_empty_list_secondary_text
       
  1519 // Empty list Secondary text
       
  1520 //
       
  1521 // -----------------------------------------------------------------------------
       
  1522 //
       
  1523 RESOURCE TBUF r_notepad_empty_list_secondary_text
       
  1524     {
       
  1525     buf = qtn_nmake_no_memos_secondary_text;    
       
  1526     }
       
  1527 RESOURCE DIALOG r_send_notepad_note
       
  1528     {
       
  1529     flags = EAknWaitNoteFlags | EEikDialogFlagModeless;
       
  1530 //    buttons=R_AVKON_SOFTKEYS_EMPTY;
       
  1531 	buttons=R_AVKON_SOFTKEYS_CANCEL;
       
  1532     items=
       
  1533         {
       
  1534         DLG_LINE
       
  1535             {
       
  1536             type = EAknCtNote;
       
  1537             
       
  1538 	//id = EGeneralNote;
       
  1539 	  id      = ESendNotepadAttach;
       
  1540             control= AVKON_NOTE
       
  1541                 {
       
  1542                 layout = EWaitLayout;
       
  1543                	singular_label = qtn_gen_note_processing; 
       
  1544                 animation =R_QGN_GRAF_WAIT_BAR_ANIM;
       
  1545                 };
       
  1546             }
       
  1547         };
       
  1548     }
       
  1549     
       
  1550 //----------------------------------------------------
       
  1551 //
       
  1552 //    r_notepad_delete_query
       
  1553 //    Delete confirmation query
       
  1554 //
       
  1555 //----------------------------------------------------
       
  1556 //
       
  1557 RESOURCE DIALOG r_notepad_delete_query
       
  1558     {
       
  1559     flags = EGeneralQueryFlags;
       
  1560     buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
       
  1561     items=
       
  1562         {
       
  1563         DLG_LINE
       
  1564             {
       
  1565             type = EAknCtQuery;
       
  1566             id = EGeneralQuery;
       
  1567             control = AVKON_CONFIRMATION_QUERY
       
  1568                 {
       
  1569                 layout = EConfirmationLayout;
       
  1570                 };
       
  1571             }
       
  1572         };
       
  1573     }
       
  1574 
       
  1575 // -----------------------------------------------------------------------------
       
  1576 //
       
  1577 // r_notepad_empty_list_secondary_text_nontouch
       
  1578 // Empty list Secondary text for non touch
       
  1579 //
       
  1580 // -----------------------------------------------------------------------------
       
  1581 //
       
  1582 
       
  1583  RESOURCE TBUF r_notepad_empty_list_secondary_text_nontouch
       
  1584   {
       
  1585      buf = qtn_nmake_no_memos_secondary_text_nontouch ;
       
  1586   } 
       
  1587 // Default templates
       
  1588 //
       
  1589 #include "NpdDefaultTemplates.ra"
       
  1590 
       
  1591 // End of File
       
  1592