|
1 /* |
|
2 * Copyright (c) 2010 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 "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 * |
|
16 */ |
|
17 |
|
18 // RESOURCE IDENTIFIER |
|
19 NAME MCSE // 4 letter ID |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <eikon.rh> |
|
24 #include <avkon.rsg> |
|
25 #include <avkon.rh> |
|
26 #include <appinfo.rh> |
|
27 #include "MCSExample.hrh" |
|
28 #include "MCSExample.rls" |
|
29 |
|
30 // RESOURCE DEFINITIONS |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 // Define the resource file signature |
|
34 // This resource should be empty. |
|
35 // |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 RESOURCE RSS_SIGNATURE |
|
39 { |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 // Default Document Name |
|
45 // |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 RESOURCE TBUF r_default_document_name |
|
49 { |
|
50 buf="MCSE"; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 // Define default menu and CBA key. |
|
56 // |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 RESOURCE EIK_APP_INFO |
|
60 { |
|
61 menubar = r_menubar; |
|
62 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
63 } |
|
64 |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 // r_menubar |
|
69 // Main menubar |
|
70 // |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 RESOURCE MENU_BAR r_menubar |
|
74 { |
|
75 titles = |
|
76 { |
|
77 MENU_TITLE { menu_pane = r_menu; } |
|
78 }; |
|
79 } |
|
80 |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 // r_menu |
|
85 // Menu for "Options" |
|
86 // |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 RESOURCE MENU_PANE r_menu |
|
90 { |
|
91 items = |
|
92 { |
|
93 // added the new Options menu command here |
|
94 MENU_ITEM |
|
95 { |
|
96 command = ECommand1; |
|
97 txt = qtn_command1; |
|
98 }, |
|
99 MENU_ITEM |
|
100 { |
|
101 command = ECommand2; |
|
102 txt = qtn_command2; |
|
103 }, |
|
104 MENU_ITEM |
|
105 { |
|
106 command = EHelp; |
|
107 txt = qtn_help; |
|
108 }, |
|
109 MENU_ITEM |
|
110 { |
|
111 command = EAbout; |
|
112 txt = qtn_about; |
|
113 }, |
|
114 MENU_ITEM |
|
115 { |
|
116 command = EAknSoftkeyExit; |
|
117 txt = qtn_exit; |
|
118 } |
|
119 }; |
|
120 } |
|
121 |
|
122 // ----------------------------------------------------------------------------- |
|
123 // |
|
124 // About dialog resource. |
|
125 // |
|
126 // ----------------------------------------------------------------------------- |
|
127 // |
|
128 RESOURCE DIALOG r_about_query_dialog |
|
129 { |
|
130 flags = EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
131 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
132 items= |
|
133 { |
|
134 DLG_LINE |
|
135 { |
|
136 type = EAknCtPopupHeadingPane; |
|
137 id = EAknMessageQueryHeaderId; |
|
138 itemflags = EEikDlgItemNonFocusing; |
|
139 control = AVKON_HEADING |
|
140 { |
|
141 }; |
|
142 }, |
|
143 DLG_LINE |
|
144 { |
|
145 type = EAknCtMessageQuery; |
|
146 id = EAknMessageQueryContentId; |
|
147 control = AVKON_MESSAGE_QUERY |
|
148 { |
|
149 }; |
|
150 } |
|
151 }; |
|
152 } |
|
153 |
|
154 RESOURCE DIALOG r_icon_query_dialog |
|
155 { |
|
156 flags = EGeneralQueryFlags; |
|
157 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
158 form = r_icon_form; |
|
159 } |
|
160 |
|
161 RESOURCE FORM r_icon_form |
|
162 { |
|
163 flags = EEikFormUseDoubleSpacedFormat|EEikFormEditModeOnly; |
|
164 items = |
|
165 { |
|
166 DLG_LINE |
|
167 { |
|
168 type = EEikCtEdwin; |
|
169 prompt = "Major skin ID"; |
|
170 id = EMyFirstLine; |
|
171 control = EDWIN |
|
172 { |
|
173 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
174 width = 30; |
|
175 maxlength = 30; |
|
176 // added to limit expanding in forms. |
|
177 // If you want full screen use 6 here |
|
178 max_view_height_in_lines = 1; |
|
179 // if you have the line above, you must have this. |
|
180 // It's calculable from LAF |
|
181 base_line_delta = 21; |
|
182 }; |
|
183 }, |
|
184 DLG_LINE |
|
185 { |
|
186 type = EEikCtEdwin; |
|
187 prompt = "Minor skin ID"; |
|
188 id = EMySecondLine; |
|
189 control = EDWIN |
|
190 { |
|
191 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
192 width = 30; |
|
193 maxlength = 30; |
|
194 // added to limit expanding in forms. |
|
195 // If you want full screen use 6 here |
|
196 max_view_height_in_lines = 1; |
|
197 // if you have the line above, you must have this. |
|
198 // It's calculable from LAF |
|
199 base_line_delta = 21; |
|
200 }; |
|
201 }, |
|
202 DLG_LINE |
|
203 { |
|
204 type = EEikCtEdwin; |
|
205 prompt = "MIF/MBM file name"; |
|
206 id = EMyThirdLine; |
|
207 control = EDWIN |
|
208 { |
|
209 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
210 width = 30; |
|
211 maxlength = 30; |
|
212 // added to limit expanding in forms. |
|
213 // If you want full screen use 6 here |
|
214 max_view_height_in_lines = 1; |
|
215 // if you have the line above, you must have this. |
|
216 // It's calculable from LAF |
|
217 base_line_delta = 21; |
|
218 }; |
|
219 }, |
|
220 DLG_LINE |
|
221 { |
|
222 type = EEikCtEdwin; |
|
223 prompt = "MIF/MBM bitmap ID"; |
|
224 id = EMyFourthLine; |
|
225 control = EDWIN |
|
226 { |
|
227 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
228 width = 30; |
|
229 maxlength = 30; |
|
230 // added to limit expanding in forms. |
|
231 // If you want full screen use 6 here |
|
232 max_view_height_in_lines = 1; |
|
233 // if you have the line above, you must have this. |
|
234 // It's calculable from LAF |
|
235 base_line_delta = 21; |
|
236 }; |
|
237 }, |
|
238 DLG_LINE |
|
239 { |
|
240 type = EEikCtEdwin; |
|
241 prompt = "MIF/MBM mask ID"; |
|
242 id = EMyFifthLine; |
|
243 control = EDWIN |
|
244 { |
|
245 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
246 width = 30; |
|
247 maxlength = 30; |
|
248 // added to limit expanding in forms. |
|
249 // If you want full screen use 6 here |
|
250 max_view_height_in_lines = 1; |
|
251 // if you have the line above, you must have this. |
|
252 // It's calculable from LAF |
|
253 base_line_delta = 21; |
|
254 }; |
|
255 }, |
|
256 DLG_LINE |
|
257 { |
|
258 type = EEikCtEdwin; |
|
259 prompt = "Presenceicon"; |
|
260 id = EMySixthLine; |
|
261 control = EDWIN |
|
262 { |
|
263 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
264 width = 30; |
|
265 maxlength = 30; |
|
266 // added to limit expanding in forms. |
|
267 // If you want full screen use 6 here |
|
268 max_view_height_in_lines = 1; |
|
269 // if you have the line above, you must have this. |
|
270 // It's calculable from LAF |
|
271 base_line_delta = 21; |
|
272 }; |
|
273 } |
|
274 }; |
|
275 } |
|
276 |
|
277 |
|
278 |
|
279 // ----------------------------------------------------------------------------- |
|
280 // |
|
281 // Resources for messages. |
|
282 // |
|
283 // ----------------------------------------------------------------------------- |
|
284 // |
|
285 RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; } |
|
286 RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; } |
|
287 RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; } |
|
288 RESOURCE TBUF r_command1_text { buf=qtn_command1_text; } |
|
289 |
|
290 |
|
291 // ---------------------------------------------------------------------------- |
|
292 // |
|
293 // r_localisable_app_info |
|
294 // |
|
295 // ---------------------------------------------------------------------------- |
|
296 // |
|
297 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info |
|
298 { |
|
299 short_caption = qtn_caption_string; |
|
300 caption_and_icon = |
|
301 CAPTION_AND_ICON_INFO |
|
302 { |
|
303 caption = qtn_caption_string; |
|
304 |
|
305 number_of_icons = 1; |
|
306 icon_file = "\\resource\\apps\\MCSExample_0xEB753B18.mif"; |
|
307 }; |
|
308 } |
|
309 |
|
310 // End of File |