data/testpublisher/data/testpublisher.rss
changeset 0 b856a9924bbc
equal deleted inserted replaced
-1:000000000000 0:b856a9924bbc
       
     1 /*
       
     2 * Copyright (c) {Year(s)} {Copyright owner}.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * {Name} {Company} ? Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * {Name} {Company} ? {{Description of contribution}}
       
    14 *
       
    15 * Description:
       
    16 * {{Description of the file}}
       
    17 *
       
    18 */
       
    19 
       
    20 //  RESOURCE IDENTIFIER
       
    21 NAME TEST	// 4 letter ID
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <eikon.rh>
       
    26 #include <avkon.rsg>
       
    27 #include <avkon.rh>
       
    28 #include <appinfo.rh>
       
    29 #include "TestPublisher.hrh"
       
    30 #include "TestPublisher.rls"
       
    31 
       
    32 //  RESOURCE DEFINITIONS
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 //	Define the resource file signature
       
    36 //	This resource should be empty.
       
    37 //
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 RESOURCE RSS_SIGNATURE
       
    41 	{
       
    42 	}
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 //	Default Document Name
       
    47 //
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 RESOURCE TBUF r_default_document_name
       
    51 	{
       
    52 	buf="TEST";
       
    53 	}
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 //	Define default menu and CBA key.
       
    58 //
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 RESOURCE EIK_APP_INFO
       
    62 	{
       
    63 	menubar = r_menubar;
       
    64 	cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
       
    65 	}
       
    66 
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 //   r_menubar
       
    71 //   Main menubar
       
    72 //
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 RESOURCE MENU_BAR r_menubar
       
    76 	{
       
    77 	titles =
       
    78 		{
       
    79 		MENU_TITLE { menu_pane = r_menu; }
       
    80 		};
       
    81 	}
       
    82 
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 //   r_menu
       
    87 //   Menu for "Options"
       
    88 //
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 RESOURCE MENU_PANE r_menu
       
    92 	{
       
    93 	items =
       
    94 		{
       
    95 		// added the new Options menu command here
       
    96 		MENU_ITEM
       
    97 				{
       
    98 				command = ECommand1;
       
    99 				txt = qtn_command1;
       
   100 				},
       
   101 		MENU_ITEM
       
   102 				{
       
   103 				command = ECommand2;
       
   104 				txt = qtn_command2;
       
   105 				},
       
   106 		MENU_ITEM
       
   107 				{
       
   108 				command = EAbout;
       
   109 				txt = qtn_about;
       
   110 				},
       
   111 		MENU_ITEM
       
   112 				{
       
   113 				command = EAknSoftkeyExit;
       
   114 				txt = qtn_exit;
       
   115 				}
       
   116 		};
       
   117 	}
       
   118 
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 // About dialog resource.
       
   122 //
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 RESOURCE DIALOG r_about_query_dialog
       
   126 	{
       
   127 	flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   128 	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   129 	items=
       
   130 		{
       
   131 		DLG_LINE 
       
   132 			{
       
   133 			type = EAknCtPopupHeadingPane;
       
   134 			id = EAknMessageQueryHeaderId;
       
   135 			itemflags = EEikDlgItemNonFocusing;
       
   136 			control = AVKON_HEADING
       
   137 				{
       
   138 				};
       
   139 			},
       
   140 		DLG_LINE
       
   141 			{
       
   142 			type = EAknCtMessageQuery;
       
   143 			id = EAknMessageQueryContentId;
       
   144 			control = AVKON_MESSAGE_QUERY
       
   145 				{
       
   146 				};
       
   147 			}
       
   148 		};
       
   149 	}
       
   150 
       
   151 
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 // Resources for messages.
       
   155 //
       
   156 // -----------------------------------------------------------------------------
       
   157 //
       
   158 RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }
       
   159 RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; }
       
   160 RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; }
       
   161 RESOURCE TBUF r_command1_text { buf=qtn_command1_text; }
       
   162 
       
   163 
       
   164 // ---------------------------------------------------------------------------- 
       
   165 //
       
   166 // r_localisable_app_info
       
   167 //
       
   168 // ---------------------------------------------------------------------------- 
       
   169 //
       
   170 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
       
   171 	{
       
   172 	short_caption = qtn_caption_string;
       
   173 	caption_and_icon = 
       
   174 	CAPTION_AND_ICON_INFO
       
   175 		{
       
   176 		caption = qtn_caption_string;
       
   177 
       
   178 		number_of_icons = 1;
       
   179 		icon_file = "\\resource\\apps\\TestPublisher_0xE5555555.mif";
       
   180 		};
       
   181 	}
       
   182 
       
   183 // End of File