examples/ToolsAndUtilities/Localise/HelloWorld.rss

00001 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 //
00015 
00016 NAME HEWO
00017 
00018 #include <eikon.rh>
00019 #include <eikcore.rsg>
00020 #include <appinfo.rh>
00021 
00022 #include "HelloWorld.hrh"
00023 
00024 // Conditional compile, depending on locale
00025 #ifdef LANGUAGE_01    // if language code is for UK
00026  #include "01/01-strings.rls"
00027 #elif defined LANGUAGE_03  // if language code is for German
00028  #include "03/03-strings.rls"
00029 #endif      
00030 // end conditional compile
00031 
00032 RESOURCE RSS_SIGNATURE { }
00033 
00034 RESOURCE TBUF { buf=""; }
00035 
00036 RESOURCE EIK_APP_INFO
00037         {
00038         hotkeys=r_example_hotkeys;
00039         menubar=r_example_menubar;
00040         }
00041 
00042 RESOURCE HOTKEYS r_example_hotkeys
00043     {
00044     control=
00045         {
00046         HOTKEY { command=EEikCmdExit; key='e'; }
00047         };
00048     }
00049 
00050 RESOURCE MENU_BAR r_example_menubar
00051     {
00052     titles=
00053         {
00054         MENU_TITLE { menu_pane=r_example_first_menu; txt=STRING_r_example_first_menu_name; }
00055                 };
00056     }
00057 
00058 
00059 RESOURCE MENU_PANE r_example_first_menu
00060         {
00061         items=
00062                 {
00063                 MENU_ITEM { command=EExampleItem0; txt=STRING_r_example_item0; },
00064                 MENU_ITEM { command=EExampleItem1; txt=STRING_r_example_item1; },
00065                 MENU_ITEM { command=EExampleItem2; txt=STRING_r_example_item2; },
00066                 MENU_ITEM { command=EEikCmdExit; txt=STRING_r_example_menu_exit; }
00067         };
00068     }
00069 
00070 RESOURCE TBUF r_example_text_Hello { buf=STRING_r_example_hello_text; }
00071 RESOURCE TBUF r_example_text_Item0 { buf=STRING_r_example_item0; }
00072 RESOURCE TBUF r_example_text_Item1 { buf=STRING_r_example_item1; }
00073 RESOURCE TBUF r_example_text_Item2 { buf=STRING_r_example_item2; }
00074 
00075 RESOURCE LOCALISABLE_APP_INFO r_lai
00076         {
00077         short_caption = STRING_r_example_short_caption;
00078         caption_and_icon =
00079                 {
00080                 CAPTION_AND_ICON_INFO
00081                         {
00082                         caption = STRING_r_example_caption;
00083                         number_of_icons = 3; // each icon must be a bitmap/mask pair
00084                         icon_file = STRING_r_example_iconfile;
00085                         }
00086                 };                                                      
00087         }

Generated on Thu Jan 21 10:32:58 2010 for TB10.1 Example Applications by  doxygen 1.5.3