|
1 /* |
|
2 * Copyright (c) 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 "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 |
|
19 |
|
20 |
|
21 NAME MATT |
|
22 |
|
23 #include <eikon.rh> |
|
24 #include <eikon.rsg> |
|
25 #include <avkon.rh> |
|
26 #include <avkon.rsg> |
|
27 #include <avkon.mbg> |
|
28 #include <AvkonIcons.hrh> |
|
29 |
|
30 #include "launcher.hrh" |
|
31 #include <data_caging_paths_strings.hrh> |
|
32 #include <appinfo.rh> |
|
33 #include <CommonDialogs.hrh> // Enumerations |
|
34 #include <CommonDialogs.rh> // Resource structures |
|
35 |
|
36 |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 // Define the resource file signature |
|
40 // This resource should be empty. |
|
41 // |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 RESOURCE RSS_SIGNATURE { } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 // Default Document Name |
|
49 // |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 RESOURCE TBUF r_default_document_name { buf=""; } |
|
53 |
|
54 // --------------------------------------------------------- |
|
55 // |
|
56 // Define default menu and CBA key. |
|
57 // |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 RESOURCE EIK_APP_INFO |
|
61 { |
|
62 status_pane = r_launcher_status_pane; |
|
63 //menubar = r_launcher_menubar; |
|
64 //cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
65 } |
|
66 |
|
67 |
|
68 //---------------------------------------------------- |
|
69 // |
|
70 // r_launcher_hotkeys |
|
71 // |
|
72 //---------------------------------------------------- |
|
73 // |
|
74 RESOURCE HOTKEYS r_launcher_hotkeys |
|
75 { |
|
76 control= |
|
77 { |
|
78 HOTKEY { command=EAknCmdExit; key='e'; } |
|
79 }; |
|
80 } |
|
81 |
|
82 |
|
83 //---------------------------------------------------- |
|
84 // |
|
85 // r_launcher_view1 |
|
86 // |
|
87 //---------------------------------------------------- |
|
88 // |
|
89 RESOURCE AVKON_VIEW r_launcher_view1 |
|
90 { |
|
91 hotkeys=r_launcher_hotkeys; |
|
92 menubar=r_launcher_menubar_view1; |
|
93 cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
94 } |
|
95 |
|
96 //---------------------------------------------------- |
|
97 // |
|
98 // r_launcher_menubar_view1 |
|
99 // |
|
100 //---------------------------------------------------- |
|
101 // |
|
102 RESOURCE MENU_BAR r_launcher_menubar_view1 |
|
103 { |
|
104 titles= |
|
105 { |
|
106 MENU_TITLE { menu_pane=r_launcher_app_menu; txt="App"; }, |
|
107 MENU_TITLE { menu_pane=r_launcher_view1_menu; txt="View"; } |
|
108 }; |
|
109 } |
|
110 |
|
111 //---------------------------------------------------- |
|
112 // |
|
113 // r_launcher_view1_menu |
|
114 // |
|
115 //---------------------------------------------------- |
|
116 // |
|
117 RESOURCE MENU_PANE r_launcher_view1_menu |
|
118 { |
|
119 items= |
|
120 { |
|
121 MENU_ITEM { command=ECmdLaunchApps; cascade=r_launcher_launchapps_submenu; txt="Launch apps"; }, |
|
122 MENU_ITEM { command=ECmdLaunchOptions; cascade=r_launcher_launchoptions_submenu; txt = "Launch options"; }, |
|
123 MENU_ITEM { command=ECmdRefreshList; txt = "Refresh list"; }, |
|
124 MENU_ITEM { command=EAknMarkAll; txt="Select all"; }, |
|
125 MENU_ITEM { command=EAknUnmarkAll; txt="Unselect all"; } |
|
126 }; |
|
127 } |
|
128 |
|
129 RESOURCE MENU_PANE r_launcher_launchapps_submenu |
|
130 { |
|
131 items = |
|
132 { |
|
133 MENU_ITEM { command=ECmdLaunchAppsWithAutoClose; txt="Autoclose"; }, |
|
134 MENU_ITEM { command=ECmdLaunchAppsWithoutAutoClose; txt="No autoclose"; } |
|
135 }; |
|
136 } |
|
137 |
|
138 RESOURCE MENU_PANE r_launcher_launchoptions_submenu |
|
139 { |
|
140 items = |
|
141 { |
|
142 MENU_ITEM { command=ECmdSkipHiddenAndEmbedOnly; txt="Skip hidden & embed"; flags = EEikMenuItemRadioStart | EEikMenuItemSymbolOn; }, |
|
143 MENU_ITEM { command=ECmdDoNotSkipAnyFiles; txt="Do not skip any entries"; flags = EEikMenuItemRadioEnd; } |
|
144 }; |
|
145 } |
|
146 |
|
147 //---------------------------------------------------- |
|
148 // |
|
149 // r_launcher_view2 |
|
150 // |
|
151 //---------------------------------------------------- |
|
152 // |
|
153 RESOURCE AVKON_VIEW r_launcher_view2 |
|
154 { |
|
155 hotkeys=r_launcher_hotkeys; |
|
156 menubar=r_launcher_menubar_view2; |
|
157 cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
158 } |
|
159 |
|
160 //---------------------------------------------------- |
|
161 // |
|
162 // r_launcher_menubar_view2 |
|
163 // |
|
164 //---------------------------------------------------- |
|
165 // |
|
166 RESOURCE MENU_BAR r_launcher_menubar_view2 |
|
167 { |
|
168 titles= |
|
169 { |
|
170 MENU_TITLE { menu_pane=r_launcher_app_menu; txt="App"; }, |
|
171 MENU_TITLE { menu_pane=r_launcher_view2_menu; txt="View"; } |
|
172 }; |
|
173 } |
|
174 |
|
175 //---------------------------------------------------- |
|
176 // |
|
177 // r_launcher_view2_menu |
|
178 // ?description |
|
179 // |
|
180 //---------------------------------------------------- |
|
181 // |
|
182 RESOURCE MENU_PANE r_launcher_view2_menu |
|
183 { |
|
184 items= |
|
185 { |
|
186 MENU_ITEM { command=ECmdClearWindow; txt = "Clear window"; } |
|
187 }; |
|
188 } |
|
189 |
|
190 //---------------------------------------------------- |
|
191 // |
|
192 // r_launcher_view3 |
|
193 // |
|
194 //---------------------------------------------------- |
|
195 // |
|
196 RESOURCE AVKON_VIEW r_launcher_view3 |
|
197 { |
|
198 hotkeys=r_launcher_hotkeys; |
|
199 cba=R_AVKON_SOFTKEYS_QUIT; |
|
200 } |
|
201 |
|
202 |
|
203 //---------------------------------------------------- |
|
204 // |
|
205 // r_launcher_app_menu |
|
206 // |
|
207 //---------------------------------------------------- |
|
208 // |
|
209 |
|
210 RESOURCE MENU_PANE r_launcher_app_menu |
|
211 { |
|
212 items= |
|
213 { |
|
214 MENU_ITEM { command=ECmdDLLInfo; cascade=r_launcher_dllinfo_submenu; txt = "DLL info"; }, |
|
215 MENU_ITEM { command=ECmdStopLaunch; txt = "Stop launch"; }, |
|
216 MENU_ITEM { command=ECmdDeleteLog; txt = "Delete log(s)"; }, |
|
217 MENU_ITEM { command=ECmdAbout; txt = "About"; }, |
|
218 MENU_ITEM { command=EAknCmdExit; txt="Exit"; } |
|
219 }; |
|
220 } |
|
221 |
|
222 RESOURCE MENU_PANE r_launcher_dllinfo_submenu |
|
223 { |
|
224 items = |
|
225 { |
|
226 MENU_ITEM { command=ECmdCompareDLLs; txt="DLL BC Analysis"; } |
|
227 }; |
|
228 } |
|
229 |
|
230 //---------------------------------------------------- |
|
231 |
|
232 RESOURCE STATUS_PANE_APP_MODEL r_launcher_status_pane |
|
233 { |
|
234 panes= |
|
235 { |
|
236 SPANE_PANE |
|
237 { |
|
238 id = EEikStatusPaneUidNavi; |
|
239 type = EAknCtNaviPane; |
|
240 resource = r_launcher_navi_decorator; |
|
241 } |
|
242 }; |
|
243 } |
|
244 |
|
245 //---------------------------------------------------- |
|
246 // |
|
247 // r_launcher_navi_decorator |
|
248 // ?description |
|
249 // |
|
250 //---------------------------------------------------- |
|
251 // |
|
252 RESOURCE NAVI_DECORATOR r_launcher_navi_decorator |
|
253 { |
|
254 type = ENaviDecoratorControlTabGroup; |
|
255 control = TAB_GROUP |
|
256 { |
|
257 tab_width = EAknTabWidthWithTwoTabs; |
|
258 active = 0; |
|
259 tabs = { |
|
260 TAB |
|
261 { |
|
262 id = ELauncherView1Tab; |
|
263 txt = "Apps"; |
|
264 }, |
|
265 TAB |
|
266 { |
|
267 id = ELauncherView2Tab; |
|
268 txt = "Out"; |
|
269 } |
|
270 }; |
|
271 }; |
|
272 } |
|
273 |
|
274 |
|
275 // --------------------------------------------------------- |
|
276 // |
|
277 // r_launcher_about_dialog |
|
278 // About dialog - show version and copyright info etc. |
|
279 // |
|
280 // --------------------------------------------------------- |
|
281 // |
|
282 |
|
283 RESOURCE DIALOG r_launcher_about_dialog |
|
284 { |
|
285 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
286 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
287 items= |
|
288 { |
|
289 DLG_LINE |
|
290 { |
|
291 type = EAknCtPopupHeadingPane; |
|
292 id = EAknMessageQueryHeaderId; |
|
293 control = AVKON_HEADING |
|
294 { |
|
295 label = "About Launcher"; |
|
296 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; |
|
297 }; |
|
298 }, |
|
299 DLG_LINE |
|
300 { |
|
301 type = EAknCtMessageQuery; |
|
302 id = EAknMessageQueryContentId; |
|
303 control = AVKON_MESSAGE_QUERY |
|
304 { |
|
305 message = "Version 3.7.0 - 29th May 2009. Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Licensed under Eclipse Public License v1.0."; |
|
306 }; |
|
307 } |
|
308 }; |
|
309 } |
|
310 |
|
311 // --------------------------------------------------------- |
|
312 // |
|
313 // r_yes_no_dialog |
|
314 // |
|
315 // |
|
316 // --------------------------------------------------------- |
|
317 // |
|
318 RESOURCE DIALOG r_yes_no_dialog |
|
319 { |
|
320 flags = EGeneralQueryFlags; |
|
321 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
322 items = |
|
323 { |
|
324 DLG_LINE |
|
325 { |
|
326 type = EAknCtQuery; |
|
327 id = EYesNoQuery; |
|
328 control = AVKON_CONFIRMATION_QUERY |
|
329 { |
|
330 layout = EConfirmationQueryLayout; |
|
331 label = ""; |
|
332 }; |
|
333 } |
|
334 }; |
|
335 } |
|
336 |
|
337 // --------------------------------------------------------- |
|
338 // |
|
339 // r_general_progress_note |
|
340 // |
|
341 // |
|
342 // --------------------------------------------------------- |
|
343 // |
|
344 RESOURCE DIALOG r_general_progress_note |
|
345 { |
|
346 flags = EAknProgressNoteFlags; |
|
347 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
348 items= |
|
349 { |
|
350 DLG_LINE |
|
351 { |
|
352 type = EAknCtNote; |
|
353 id = EProgressNote; |
|
354 control = AVKON_NOTE |
|
355 { |
|
356 layout = EProgressLayout; |
|
357 singular_label = "Analysing DLLs"; |
|
358 }; |
|
359 } |
|
360 }; |
|
361 } |
|
362 |
|
363 // --------------------------------------------------------- |
|
364 // |
|
365 // r_general_wait_note |
|
366 // |
|
367 // |
|
368 // --------------------------------------------------------- |
|
369 // |
|
370 RESOURCE DIALOG r_general_wait_note |
|
371 { |
|
372 flags = EAknWaitNoteFlags | EEikDialogFlagNotifyEsc; |
|
373 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
374 items = |
|
375 { |
|
376 DLG_LINE |
|
377 { |
|
378 type = EAknCtNote; |
|
379 id = EWaitNote; |
|
380 control= AVKON_NOTE |
|
381 { |
|
382 layout = EWaitLayout; |
|
383 animation = R_QGN_GRAF_WAIT_BAR_ANIM; |
|
384 }; |
|
385 } |
|
386 }; |
|
387 } |
|
388 |
|
389 // --------------------------------------------------------- |
|
390 // |
|
391 // r_memory_selection_dialog |
|
392 // |
|
393 // |
|
394 // --------------------------------------------------------- |
|
395 // |
|
396 RESOURCE MEMORYSELECTIONDIALOG r_memory_selection_dialog |
|
397 { |
|
398 title = "Choose memory:"; |
|
399 } |
|
400 |
|
401 // --------------------------------------------------------- |
|
402 // |
|
403 // r_file_selection_dialog |
|
404 // |
|
405 // |
|
406 // --------------------------------------------------------- |
|
407 // |
|
408 RESOURCE FILESELECTIONDIALOG r_file_selection_dialog |
|
409 { |
|
410 title = "Select input file:"; |
|
411 //root_path = "C:\\Data\\"; |
|
412 filters = |
|
413 { |
|
414 FILTER |
|
415 { |
|
416 filter_type = EAttributeFilter; |
|
417 filter_style = EExclusiveFilter; |
|
418 filter_data = { "SH", "R" }; // Excludes system, hidden and read-only attributes |
|
419 } |
|
420 }; |
|
421 } |
|
422 |
|
423 // --------------------------------------------------------- |
|
424 // |
|
425 // New framework: |
|
426 // Secure platform and scalable UI changes |
|
427 // |
|
428 // --------------------------------------------------------- |
|
429 // |
|
430 RESOURCE LOCALISABLE_APP_INFO r_launcher_localisable_app_info |
|
431 { |
|
432 short_caption = "Launcher"; |
|
433 caption_and_icon = |
|
434 CAPTION_AND_ICON_INFO |
|
435 { |
|
436 caption = "Launcher"; |
|
437 |
|
438 number_of_icons = 1; |
|
439 |
|
440 // Note for ROM-based apps it is recommended to add the drive letter |
|
441 // icon_file = "z:"APP_BITMAP_DIR"\\myapp_aif.mif"; |
|
442 icon_file = APP_BITMAP_DIR"\\launcher_aif.mif"; |
|
443 }; |
|
444 } |
|
445 |