equal
deleted
inserted
replaced
33 #include <npdlib.loc> |
33 #include <npdlib.loc> |
34 #include <npdtemp.loc> |
34 #include <npdtemp.loc> |
35 #include <data_caging_paths_strings.hrh> |
35 #include <data_caging_paths_strings.hrh> |
36 #include <AiwCommon.rh> |
36 #include <AiwCommon.rh> |
37 #include <AknFep.rsg> |
37 #include <AknFep.rsg> |
|
38 #include <avkon.hrh> |
38 |
39 |
39 // CONSTANTS |
40 // CONSTANTS |
40 #define NOTEPAD_DATABASE "c:Notepad.dat" |
41 #define NOTEPAD_DATABASE "c:Notepad.dat" |
41 #define TEMPLATE_DATABASE "c:Template.nsc" |
42 #define TEMPLATE_DATABASE "c:Template.nsc" |
42 #define NPDLIB_MBM_FILE APP_BITMAP_DIR"\\npdlib.mif" |
43 #define NPDLIB_MBM_FILE APP_BITMAP_DIR"\\npdlib.mif" |
82 { |
83 { |
83 buf = TEMPLATE_DATABASE; |
84 buf = TEMPLATE_DATABASE; |
84 } |
85 } |
85 |
86 |
86 // ----------------------------------------------------------------------------- |
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 // r_notepad_the_first_listbox_item |
|
90 // the first notepad item, New note. |
|
91 // |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 RESOURCE TBUF r_notepad_the_first_listbox_item |
|
95 { |
|
96 buf = qtn_nmake_om_add_new; |
|
97 } |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
87 // |
100 // |
88 // r_notepad_model |
101 // r_notepad_model |
89 // Model of Notepad application. |
102 // Model of Notepad application. |
90 // |
103 // |
91 // ----------------------------------------------------------------------------- |
104 // ----------------------------------------------------------------------------- |
94 { |
107 { |
95 data_file = r_notepad_datafile_name; |
108 data_file = r_notepad_datafile_name; |
96 listing_style = ENotepadListingStyleNP; |
109 listing_style = ENotepadListingStyleNP; |
97 date_format = R_QTN_DATE_SHORT_WITH_ZERO; |
110 date_format = R_QTN_DATE_SHORT_WITH_ZERO; |
98 time_format = R_QTN_TIME_USUAL_WITH_ZERO; |
111 time_format = R_QTN_TIME_USUAL_WITH_ZERO; |
|
112 first_note = r_notepad_the_first_listbox_item; |
99 } |
113 } |
100 |
114 |
101 // ----------------------------------------------------------------------------- |
115 // ----------------------------------------------------------------------------- |
102 // |
116 // |
103 // r_notepad_list_dialog |
117 // r_notepad_list_dialog |
345 }; |
359 }; |
346 } |
360 } |
347 |
361 |
348 // ----------------------------------------------------------------------------- |
362 // ----------------------------------------------------------------------------- |
349 // |
363 // |
|
364 // r_menupane_markable_list_edit_list_implementation |
|
365 // mark parent menu |
|
366 // |
|
367 // ----------------------------------------------------------------------------- |
|
368 // |
|
369 RESOURCE MENU_PANE r_menupane_markable_list_edit_list_implementation |
|
370 { |
|
371 items = |
|
372 { |
|
373 MENU_ITEM { cascade=r_menupane_markable_list_implementation; command=EAknCmdEditListMenu; txt=qtn_options_list; } |
|
374 }; |
|
375 |
|
376 } |
|
377 |
|
378 // ----------------------------------------------------------------------------- |
|
379 // |
|
380 // r_menupane_markable_list_implementation |
|
381 // mark child menu |
|
382 // |
|
383 // ----------------------------------------------------------------------------- |
|
384 // |
|
385 RESOURCE MENU_PANE r_menupane_markable_list_implementation |
|
386 { |
|
387 items = |
|
388 { |
|
389 MENU_ITEM{ command=EAknCmdMark; txt=qtn_options_list_mark_one; flags=EEikMenuItemSpecific; }, |
|
390 MENU_ITEM{ command=EAknCmdUnmark; txt=qtn_options_list_unmark_one; flags=EEikMenuItemSpecific; }, |
|
391 MENU_ITEM{ command=EAknMarkAll; txt=qtn_options_list_mark_all;}, |
|
392 MENU_ITEM{ command=EAknUnmarkAll; txt=qtn_options_list_unmark_all;} |
|
393 }; |
|
394 } |
|
395 |
|
396 // ----------------------------------------------------------------------------- |
|
397 // |
350 // r_notepad_list_menubar |
398 // r_notepad_list_menubar |
351 // Menu bar of Notepad list mode. |
399 // Menu bar of Notepad list mode. |
352 // |
400 // |
353 // ----------------------------------------------------------------------------- |
401 // ----------------------------------------------------------------------------- |
354 // |
402 // |
361 menu_pane = r_notepad_list_menu_second; |
409 menu_pane = r_notepad_list_menu_second; |
362 txt = ""; |
410 txt = ""; |
363 }, |
411 }, |
364 MENU_TITLE |
412 MENU_TITLE |
365 { |
413 { |
366 menu_pane=R_AVKON_MENUPANE_MARKABLE_LIST_EDIT_LIST_IMPLEMENTATION; |
414 menu_pane = r_menupane_markable_list_edit_list_implementation; |
367 txt = ""; |
415 txt = ""; |
368 }, |
416 }, |
369 MENU_TITLE |
417 MENU_TITLE |
370 { |
418 { |
371 menu_pane = r_notepad_list_menu_first; |
419 menu_pane = r_notepad_list_menu_first; |