bintools/rcomp/tsrc/ERROR1.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 identify common errors and their diagnostics.
       
    16 * Pute, December 1996.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 NAME TUTE
       
    26 #if defined (STUPID)
       
    27 CHARACTER_SET stupid
       
    28 #endif
       
    29 
       
    30 CHARACTER_SET CP1252
       
    31 
       
    32 #include "error1.rh"
       
    33 
       
    34 
       
    35 
       
    36 
       
    37 
       
    38 STRUCT LISTITEMS WORD
       
    39 {
       
    40 #if defined (MAIN_SYNTAX_ERROR_1)
       
    41     STRICT strings[];
       
    42 #else
       
    43     STRUCT strings[];
       
    44 #endif
       
    45 }
       
    46 
       
    47 #if !defined (ERROR_MISSING_STRUCT)
       
    48 STRUCT LIST
       
    49 {
       
    50     WORD type;
       
    51     STRUCT items;
       
    52 }
       
    53 #endif
       
    54 
       
    55 
       
    56 
       
    57 STRUCT TBUF
       
    58     {
       
    59     BUF buf; /* non-zero terminated text string */
       
    60     }
       
    61 
       
    62 STRUCT LBUF
       
    63     {
       
    64     LTEXT txt; // leading-byte counted text string
       
    65     }
       
    66 
       
    67 STRUCT LBUF16
       
    68     {
       
    69 	LTEXT16 txt; // leading byte counted wide string
       
    70 	}
       
    71 
       
    72 STRUCT ARRAY
       
    73     {
       
    74     STRUCT items[];
       
    75     }
       
    76 
       
    77 STRUCT BUTTON
       
    78     {
       
    79     WORD id;
       
    80 	WORD flags;
       
    81     LTEXT txt;
       
    82 	LTEXT txt2;
       
    83 	LTEXT bmp;
       
    84     }
       
    85 
       
    86 STRUCT FLPTED
       
    87 	{
       
    88 	WORD maxlength;
       
    89 	DOUBLE min;
       
    90 	DOUBLE max;
       
    91 	}
       
    92 
       
    93 STRUCT MENU_BAR
       
    94     {
       
    95     STRUCT titles[]; // MENU_BAR_ITEMs
       
    96     }
       
    97 
       
    98 STRUCT MENU_TITLE
       
    99     {
       
   100     LLINK menu_pane;
       
   101     LTEXT txt;
       
   102     }
       
   103 
       
   104 
       
   105 RESOURCE LIST list_1
       
   106 {
       
   107     type = 5;
       
   108     items = LISTITEMS
       
   109     {
       
   110     strings = 
       
   111         {
       
   112         LBUF16 {txt = "item 1"; },
       
   113         LBUF16 {txt = "item 2"; }
       
   114         };
       
   115     };
       
   116 }
       
   117 
       
   118 
       
   119 
       
   120 #if defined (ERROR_INVALID_MEMBER)
       
   121 RESOURCE TBUF unbroken_string { bof = "first part, second part"; }
       
   122 #else
       
   123 RESOURCE TBUF unbroken_string { buf = "first part, second part"; }
       
   124 #endif
       
   125 
       
   126 
       
   127 RESOURCE TBUF broken_string { buf = "first part," <42>  <64>   <128>   
       
   128                                       <0x1f> // escape
       
   129                                     " second part"; }
       
   130 
       
   131 
       
   132 
       
   133 RESOURCE TBUF sys_special_characters { buf="+-*/<,>.NSWE"; }
       
   134 
       
   135 RESOURCE TBUF sys_string { buf="%s"; }
       
   136 RESOURCE TBUF sys_dimmed_msg {buf="This item is not available";}
       
   137 RESOURCE TBUF sys_locked_msg {buf="This item cannot be changed";}
       
   138 RESOURCE TBUF sys_busy { buf="Busy"; }
       
   139 RESOURCE TBUF sys_scanning { buf="Scanning"; }
       
   140 RESOURCE TBUF sys_printing_to { buf="Printing to %s";}
       
   141 RESOURCE TBUF sys_page_is { buf="(page %u)";}
       
   142 
       
   143 RESOURCE ARRAY sys_array_one
       
   144     {
       
   145     items=
       
   146         {
       
   147         LBUF { txt="Esc"; },
       
   148         LBUF { txt="Enter"; },
       
   149         LBUF { txt="Tab"; },
       
   150 		LBUF { txt="Del"; },
       
   151 		LBUF { txt="Space"; }
       
   152         };
       
   153     }
       
   154 
       
   155 RESOURCE BUTTON sys_button_one
       
   156     {
       
   157     id=3;
       
   158     flags=5;
       
   159     txt="Text";
       
   160     txt2="";
       
   161     bmp="Bitmap placeholder";
       
   162     }
       
   163 
       
   164 RESOURCE FLPTED sys_flpted_one
       
   165     {
       
   166     maxlength=18;
       
   167     min=0.0;
       
   168     max=9.9e99;
       
   169     }
       
   170 
       
   171 RESOURCE MENU_BAR sys_menubar_one
       
   172     {
       
   173     titles=
       
   174         {
       
   175         MENU_TITLE { menu_pane=1; txt="a"; },
       
   176         MENU_TITLE { menu_pane=2; txt="ab"; },
       
   177         MENU_TITLE { menu_pane=3; txt="abc"; },
       
   178         MENU_TITLE { menu_pane=4; txt="abcd"; },
       
   179         MENU_TITLE { menu_pane=5; txt="abcde"; },
       
   180         MENU_TITLE { menu_pane=6; txt="abcdef"; },
       
   181         MENU_TITLE { menu_pane=7; txt="abcdefg"; },
       
   182         MENU_TITLE { menu_pane=8; txt="abcdefgh"; }
       
   183         };
       
   184     }