|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 STRUCT TBUF |
|
18 { |
|
19 BUF buf; /* non-zero terminated text string */ |
|
20 } |
|
21 |
|
22 STRUCT LBUF |
|
23 { |
|
24 LTEXT txt; // leading-byte counted text string |
|
25 } |
|
26 |
|
27 STRUCT ARRAY |
|
28 { |
|
29 STRUCT items[]; |
|
30 } |
|
31 |
|
32 STRUCT BUTTON |
|
33 { |
|
34 WORD id; |
|
35 WORD flags; |
|
36 LTEXT txt; |
|
37 LTEXT txt2; |
|
38 LTEXT bmp; |
|
39 } |
|
40 |
|
41 STRUCT FLPTED |
|
42 { |
|
43 WORD maxlength; |
|
44 DOUBLE min; |
|
45 DOUBLE max; |
|
46 } |
|
47 |
|
48 STRUCT MENU_BAR |
|
49 { |
|
50 STRUCT titles[]; // MENU_BAR_ITEMs |
|
51 } |
|
52 |
|
53 STRUCT MENU_TITLE |
|
54 { |
|
55 LLINK menu_pane; |
|
56 LTEXT txt; |
|
57 } |
|
58 |
|
59 |
|
60 // NB, the T_RSC test code currently relies on these resources being |
|
61 // numbered 1 - 8 |
|
62 |
|
63 |
|
64 RESOURCE TBUF sys_special_characters { buf="+-*/<,>."<0x1F>"NSWE"; } |
|
65 |
|
66 RESOURCE TBUF sys_string { buf="%s"; } |
|
67 RESOURCE TBUF sys_dimmed_msg {buf="This item is not available";} |
|
68 RESOURCE TBUF sys_locked_msg {buf="This item cannot be changed";} |
|
69 RESOURCE TBUF sys_busy { buf="Busy"; } |
|
70 RESOURCE TBUF sys_scanning { buf="Scanning"; } |
|
71 RESOURCE TBUF sys_printing_to { buf="Printing to %s";} |
|
72 RESOURCE TBUF sys_page_is { buf="(page %u)";} |
|
73 |
|
74 |
|
75 RESOURCE LBUF r_text_signature { txt = "Signature"; } |
|
76 |
|
77 |
|
78 |
|
79 RESOURCE ARRAY sys_array_one |
|
80 { |
|
81 items= |
|
82 { |
|
83 LBUF { txt="Esc"; }, |
|
84 LBUF { txt="Enter"; }, |
|
85 LBUF { txt="Tab"; }, |
|
86 LBUF { txt="Del"; }, |
|
87 LBUF { txt="Space"; } |
|
88 }; |
|
89 } |
|
90 |
|
91 RESOURCE BUTTON sys_button_one |
|
92 { |
|
93 id=3; |
|
94 flags=5; |
|
95 txt="Text"; |
|
96 txt2=""; |
|
97 bmp="Bitmap placeholder"; |
|
98 } |
|
99 |
|
100 RESOURCE FLPTED sys_flpted_one |
|
101 { |
|
102 maxlength=18; |
|
103 min=0.0; |
|
104 max=9.9e99; |
|
105 } |
|
106 |
|
107 RESOURCE MENU_BAR sys_menubar_one |
|
108 { |
|
109 titles= |
|
110 { |
|
111 MENU_TITLE { menu_pane=1; txt="a"; }, |
|
112 MENU_TITLE { menu_pane=2; txt="ab"; }, |
|
113 MENU_TITLE { menu_pane=3; txt="abc"; }, |
|
114 MENU_TITLE { menu_pane=4; txt="abcd"; }, |
|
115 MENU_TITLE { menu_pane=5; txt="abcde"; }, |
|
116 MENU_TITLE { menu_pane=6; txt="abcdef"; }, |
|
117 MENU_TITLE { menu_pane=7; txt="abcdefg"; }, |
|
118 MENU_TITLE { menu_pane=8; txt="abcdefgh"; } |
|
119 }; |
|
120 } |
|
121 |
|
122 STRUCT HORROR |
|
123 { |
|
124 LTEXT8 txt8; |
|
125 LTEXT16 txt16; |
|
126 } |
|
127 |
|
128 RESOURCE HORROR sys_alignment_horror0 |
|
129 { |
|
130 txt8=""; |
|
131 txt16=""; |
|
132 } |
|
133 |
|
134 RESOURCE HORROR sys_alignment_horror1 |
|
135 { |
|
136 txt8="x"; |
|
137 txt16="x"; |
|
138 } |
|
139 |
|
140 RESOURCE HORROR sys_alignment_horror2 |
|
141 { |
|
142 txt8="xy"; |
|
143 txt16="xy"; |
|
144 } |
|
145 |
|
146 RESOURCE HORROR sys_alignment_horror3 |
|
147 { |
|
148 txt8="xyz"; |
|
149 txt16="xyz"; |
|
150 } |
|
151 |
|
152 RESOURCE ARRAY sys_alignment_horror_array |
|
153 { |
|
154 items= |
|
155 { |
|
156 HORROR { txt8=""; txt16="abcdef"; }, |
|
157 HORROR { txt8="a"; txt16="bcdef"; }, |
|
158 HORROR { txt8="ab"; txt16="cdef"; }, |
|
159 HORROR { txt8="abc"; txt16="def"; }, |
|
160 HORROR { txt8="abcd"; txt16="ef"; }, |
|
161 HORROR { txt8="abcde"; txt16="f"; }, |
|
162 HORROR { txt8="abcdef"; txt16=""; } |
|
163 }; |
|
164 } |
|
165 |