bintools/rcomp/tsrc/TUTEXT.RSS
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2004-2009 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 the License "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: 
       
    15 * This is used to exercise the CHARACTER_SET and 8/16 bit text functionality
       
    16 * of the resource compiler.
       
    17 * Pute, December 1996.
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 NAME TUTE
       
    27 UID2	0x75632096		// supply UID2 via source
       
    28 
       
    29 
       
    30 CHARACTER_SET CP1252
       
    31 
       
    32 
       
    33 STRUCT LISTITEMS WORD
       
    34 {
       
    35     STRUCT strings[];
       
    36 }
       
    37 
       
    38 
       
    39 STRUCT LIST
       
    40 {
       
    41     WORD type;
       
    42 	STRUCT items;
       
    43 }
       
    44 
       
    45 
       
    46 
       
    47 
       
    48 STRUCT TBUF
       
    49     {
       
    50     BUF buf; /* non-zero terminated text string */
       
    51     }
       
    52 
       
    53 STRUCT LBUF
       
    54     {
       
    55     LTEXT txt; // leading-byte counted text string
       
    56     }
       
    57 
       
    58 STRUCT LBUF16
       
    59     {
       
    60 	LTEXT16 txt; // leading byte counted wide string
       
    61 	}
       
    62 
       
    63 STRUCT ARRAY
       
    64     {
       
    65     STRUCT items[];
       
    66     }
       
    67 
       
    68 STRUCT BUTTON
       
    69     {
       
    70     WORD id;
       
    71 	WORD flags;
       
    72     LTEXT txt;
       
    73 	LTEXT txt2;
       
    74 	LTEXT bmp;
       
    75     }
       
    76 
       
    77 STRUCT FLPTED
       
    78 	{
       
    79 	WORD maxlength;
       
    80 	DOUBLE min;
       
    81 	DOUBLE max;
       
    82 	}
       
    83 
       
    84 STRUCT MENU_BAR
       
    85     {
       
    86     STRUCT titles[]; // MENU_BAR_ITEMs
       
    87     }
       
    88 
       
    89 STRUCT MENU_TITLE
       
    90     {
       
    91     LLINK menu_pane;
       
    92     LTEXT txt;
       
    93     }
       
    94 
       
    95 
       
    96 
       
    97 RESOURCE LIST list_1
       
    98 {
       
    99     type = 5;
       
   100 	items = LISTITEMS
       
   101 	{
       
   102 	    strings = 
       
   103 		{
       
   104 		    LBUF16 {txt = "item 1"; },
       
   105 			LBUF16 {txt = "item 2"; }
       
   106 		};
       
   107 	};
       
   108 }
       
   109 
       
   110 
       
   111 // The following strings contain characters in (or at the boundary of)
       
   112 // the region of code points where Microsoft's code page 1252
       
   113 // deviates from ISO Latin 1.  The mappings to Unicode should become
       
   114 // sparse at this point, but the results should display in the same
       
   115 // way on properly configured systems.
       
   116 
       
   117 
       
   118 // The special characters highlighted below should be contiguous in
       
   119 // the CP1252 output but in Unicode output, NOT USED(1) and the
       
   120 // Y with diaeresis should have values FFFE and 0178 respectively.
       
   121 
       
   122 RESOURCE TBUF begin_except { buf = "tilde -" <126>
       
   123                                    "- DELETE -" <127>
       
   124                                    "- Euro sign -" <128>
       
   125                                    "- NOT USED (1) -" <129> "-.";
       
   126                            }
       
   127 
       
   128 
       
   129 RESOURCE TBUF end_except   { buf = "Y with diaeresis -" <159>
       
   130                                    "- NBSP -" <160>
       
   131                                    "- Inverted exclm -" <161> "-.";
       
   132                            }
       
   133 
       
   134 
       
   135 
       
   136 
       
   137 RESOURCE TBUF special_string { buf = "this -" <133> "- is horizontal ellipsis"; }
       
   138 
       
   139 
       
   140 
       
   141 
       
   142 RESOURCE TBUF unbroken_string { buf = "first part, second part"; }
       
   143 
       
   144 RESOURCE TBUF broken_string { buf = "first part," <42>  <64>   <128>   
       
   145                                       <0x1f> // escape
       
   146                                     " second part"; }
       
   147 
       
   148 
       
   149 
       
   150 RESOURCE TBUF sys_special_characters { buf="+-*/<,>.NSWE"; }
       
   151 
       
   152 RESOURCE TBUF sys_string { buf="%s"; }
       
   153 RESOURCE TBUF sys_dimmed_msg {buf="This item is not available";}
       
   154 RESOURCE TBUF sys_locked_msg {buf="This item cannot be changed";}
       
   155 RESOURCE TBUF sys_busy { buf="Busy"; }
       
   156 RESOURCE TBUF sys_scanning { buf="Scanning"; }
       
   157 RESOURCE TBUF sys_printing_to { buf="Printing to %s";}
       
   158 RESOURCE TBUF sys_page_is { buf="(page %u)";}
       
   159 
       
   160 RESOURCE ARRAY sys_array_one
       
   161     {
       
   162     items=
       
   163         {
       
   164         LBUF { txt="Esc"; },
       
   165         LBUF { txt="Enter"; },
       
   166         LBUF { txt="Tab"; },
       
   167 		LBUF { txt="Del"; },
       
   168 		LBUF { txt="Space"; }
       
   169         };
       
   170     }
       
   171 
       
   172 RESOURCE BUTTON sys_button_one
       
   173     {
       
   174     id=3;
       
   175     flags=5;
       
   176     txt="Text";
       
   177     txt2="";
       
   178     bmp="Bitmap placeholder";
       
   179     }
       
   180 
       
   181 RESOURCE FLPTED sys_flpted_one
       
   182     {
       
   183     maxlength=18;
       
   184     min=0.0;
       
   185     max=9.9e99;
       
   186     }
       
   187 
       
   188 RESOURCE MENU_BAR sys_menubar_one
       
   189     {
       
   190     titles=
       
   191         {
       
   192         MENU_TITLE { menu_pane=1; txt="a"; },
       
   193         MENU_TITLE { menu_pane=2; txt="ab"; },
       
   194         MENU_TITLE { menu_pane=3; txt="abc"; },
       
   195         MENU_TITLE { menu_pane=4; txt="abcd"; },
       
   196         MENU_TITLE { menu_pane=5; txt="abcde"; },
       
   197         MENU_TITLE { menu_pane=6; txt="abcdef"; },
       
   198         MENU_TITLE { menu_pane=7; txt="abcdefg"; },
       
   199         MENU_TITLE { menu_pane=8; txt="abcdefgh"; }
       
   200         };
       
   201     }