0
|
1 |
/*------------------------------------------------------------------
|
|
2 |
-
|
|
3 |
* Software Name : UserEmulator
|
|
4 |
* Version : v4.2.1309
|
|
5 |
*
|
|
6 |
* Copyright (c) 2009 France Telecom. All rights reserved.
|
|
7 |
* This software is distributed under the License
|
|
8 |
* "Eclipse Public License - v 1.0" the text of which is available
|
|
9 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
10 |
*
|
|
11 |
* Initial Contributors:
|
|
12 |
* France Telecom
|
|
13 |
*
|
|
14 |
* Contributors:
|
|
15 |
*------------------------------------------------------------------
|
|
16 |
-
|
|
17 |
* File Name: UserEmulator.rss
|
|
18 |
*
|
|
19 |
* Created: 13/08/2009
|
|
20 |
* Author(s): Marcell Kiss, Reshma Sandeep Das
|
|
21 |
*
|
|
22 |
* Description:
|
|
23 |
* This file contains all the resources for the UserEmulator.
|
|
24 |
*------------------------------------------------------------------
|
|
25 |
-
|
|
26 |
*
|
|
27 |
*/
|
|
28 |
|
|
29 |
// RESOURCE IDENTIFIER
|
|
30 |
NAME USER // 4 letter ID
|
|
31 |
|
|
32 |
|
|
33 |
// Common Include files
|
|
34 |
#include <eikon.rh>
|
|
35 |
#include <avkon.rsg>
|
|
36 |
#include <avkon.rh>
|
|
37 |
#include <appinfo.rh>
|
|
38 |
|
|
39 |
//Component Include files
|
|
40 |
#include "UserEmulator.hrh"
|
|
41 |
#include "UserEmulator.rls"
|
|
42 |
|
|
43 |
// RESOURCE DEFINITIONS
|
|
44 |
// -----------------------------------------------------------------------------
|
|
45 |
//
|
|
46 |
// Define the resource file signature
|
|
47 |
// This resource should be empty.
|
|
48 |
//
|
|
49 |
// -----------------------------------------------------------------------------
|
|
50 |
//
|
|
51 |
RESOURCE RSS_SIGNATURE
|
|
52 |
{
|
|
53 |
}
|
|
54 |
|
|
55 |
// -----------------------------------------------------------------------------
|
|
56 |
//
|
|
57 |
// Default Document Name
|
|
58 |
//
|
|
59 |
// -----------------------------------------------------------------------------
|
|
60 |
//
|
|
61 |
RESOURCE TBUF r_default_document_name
|
|
62 |
{
|
|
63 |
buf=qtn_user;
|
|
64 |
}
|
|
65 |
|
|
66 |
// -----------------------------------------------------------------------------
|
|
67 |
// EIK_APP_INFO
|
|
68 |
// Define default menu and CBA key.
|
|
69 |
// -----------------------------------------------------------------------------
|
|
70 |
//
|
|
71 |
RESOURCE EIK_APP_INFO
|
|
72 |
{
|
|
73 |
menubar = r_menubar;
|
|
74 |
cba = r_softkeys_scripts;
|
|
75 |
}
|
|
76 |
|
|
77 |
// -----------------------------------------------------------------------------
|
|
78 |
// r_softkeys_scripts
|
|
79 |
// Defines the CBA buttons for the scripts view
|
|
80 |
// -----------------------------------------------------------------------------
|
|
81 |
//
|
|
82 |
RESOURCE CBA r_softkeys_scripts
|
|
83 |
{
|
|
84 |
buttons =
|
|
85 |
{
|
|
86 |
AVKON_CBA_BUTTON { id = EAknSoftkeyOptions; txt = qtn_softkey_options; },
|
|
87 |
AVKON_CBA_BUTTON { id = EAknSoftkeyExit; txt = qtn_exit; },
|
|
88 |
AVKON_CBA_BUTTON { id = ESelectRunScript; txt = qtn_run_scripts;}
|
|
89 |
};
|
|
90 |
}
|
|
91 |
|
|
92 |
RESOURCE CBA r_softkeys_noscripts
|
|
93 |
{
|
|
94 |
buttons =
|
|
95 |
{
|
|
96 |
AVKON_CBA_BUTTON { id = EAknSoftkeyOptions; txt = qtn_softkey_options; },
|
|
97 |
AVKON_CBA_BUTTON { id = EAknSoftkeyExit; txt = qtn_exit; }
|
|
98 |
};
|
|
99 |
}
|
|
100 |
|
|
101 |
// -----------------------------------------------------------------------------
|
|
102 |
// r_menubar
|
|
103 |
// Main menubar
|
|
104 |
// -----------------------------------------------------------------------------
|
|
105 |
//
|
|
106 |
RESOURCE MENU_BAR r_menubar
|
|
107 |
{
|
|
108 |
titles =
|
|
109 |
{
|
|
110 |
MENU_TITLE { menu_pane = r_menu; txt = "";},
|
|
111 |
MENU_TITLE { menu_pane = r_menupane_scripts; txt = ""; }
|
|
112 |
};
|
|
113 |
}
|
|
114 |
// -----------------------------------------------------------------------------
|
|
115 |
// r_menupane_scripts
|
|
116 |
// Defines the menu pane for the scripts view
|
|
117 |
// -----------------------------------------------------------------------------
|
|
118 |
//
|
|
119 |
RESOURCE MENU_PANE r_menupane_scripts
|
|
120 |
{
|
|
121 |
items =
|
|
122 |
{
|
|
123 |
MENU_ITEM
|
|
124 |
{
|
|
125 |
command = ESelectRunScript;
|
|
126 |
txt = qtn_run_scripts;
|
|
127 |
},
|
|
128 |
MENU_ITEM
|
|
129 |
{
|
|
130 |
command = EMenuSelectCmdId;
|
|
131 |
txt = qtn_select;
|
|
132 |
cascade = r_markunmark_submenu;
|
|
133 |
},
|
|
134 |
MENU_ITEM
|
|
135 |
{
|
|
136 |
command = ERecordKeys;
|
|
137 |
txt = qtn_recordkeys;
|
|
138 |
},
|
|
139 |
MENU_ITEM
|
|
140 |
{
|
|
141 |
command = ERandomTestStart;
|
|
142 |
txt = qtn_randomtest_start;
|
|
143 |
},
|
|
144 |
MENU_ITEM
|
|
145 |
{
|
|
146 |
command = ESettings;
|
|
147 |
txt = qtn_settings;
|
|
148 |
},
|
|
149 |
MENU_ITEM
|
|
150 |
{
|
|
151 |
command = ESystemInfo;
|
|
152 |
txt = qtn_systemInfo;
|
|
153 |
}
|
|
154 |
};
|
|
155 |
}
|
|
156 |
|
|
157 |
// -----------------------------------------------------------------------------
|
|
158 |
// r_markunmark_submenu
|
|
159 |
// Defines the mark/unmark sub menu pane for the scripts view
|
|
160 |
// -----------------------------------------------------------------------------
|
|
161 |
//
|
|
162 |
RESOURCE MENU_PANE r_markunmark_submenu
|
|
163 |
{
|
|
164 |
items =
|
|
165 |
{
|
|
166 |
MENU_ITEM
|
|
167 |
{
|
|
168 |
command = EMark;
|
|
169 |
txt = qtn_mark;
|
|
170 |
},
|
|
171 |
MENU_ITEM
|
|
172 |
{
|
|
173 |
command = EMarkAll;
|
|
174 |
txt = qtn_markall;
|
|
175 |
},
|
|
176 |
MENU_ITEM
|
|
177 |
{
|
|
178 |
command = EUnmark;
|
|
179 |
txt = qtn_unmark;
|
|
180 |
},
|
|
181 |
MENU_ITEM
|
|
182 |
{
|
|
183 |
command = EUnmarkAll;
|
|
184 |
txt = qtn_unmarkall;
|
|
185 |
}
|
|
186 |
|
|
187 |
|
|
188 |
};
|
|
189 |
}
|
|
190 |
// -----------------------------------------------------------------------------
|
|
191 |
// r_menu
|
|
192 |
// Menu options for general menu pane
|
|
193 |
// -----------------------------------------------------------------------------
|
|
194 |
|
|
195 |
RESOURCE MENU_PANE r_menu
|
|
196 |
{
|
|
197 |
items =
|
|
198 |
{
|
|
199 |
MENU_ITEM
|
|
200 |
{
|
|
201 |
command = EHelp;
|
|
202 |
txt = qtn_help;
|
|
203 |
},
|
|
204 |
MENU_ITEM
|
|
205 |
{
|
|
206 |
command = EAbout;
|
|
207 |
txt = qtn_about;
|
|
208 |
},
|
|
209 |
MENU_ITEM
|
|
210 |
{
|
|
211 |
command = EAknSoftkeyExit;
|
|
212 |
txt = qtn_exit;
|
|
213 |
}
|
|
214 |
};
|
|
215 |
}
|
|
216 |
|
|
217 |
// -----------------------------------------------------------------------------
|
|
218 |
// r_about_query_dialog
|
|
219 |
// About dialog resource.
|
|
220 |
// -----------------------------------------------------------------------------
|
|
221 |
//
|
|
222 |
RESOURCE DIALOG r_about_query_dialog
|
|
223 |
{
|
|
224 |
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
|
|
225 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
|
|
226 |
items=
|
|
227 |
{
|
|
228 |
DLG_LINE
|
|
229 |
{
|
|
230 |
type = EAknCtPopupHeadingPane;
|
|
231 |
id = EAknMessageQueryHeaderId;
|
|
232 |
itemflags = EEikDlgItemNonFocusing;
|
|
233 |
control = AVKON_HEADING
|
|
234 |
{
|
|
235 |
};
|
|
236 |
},
|
|
237 |
DLG_LINE
|
|
238 |
{
|
|
239 |
type = EAknCtMessageQuery;
|
|
240 |
id = EAknMessageQueryContentId;
|
|
241 |
control = AVKON_MESSAGE_QUERY
|
|
242 |
{
|
|
243 |
};
|
|
244 |
}
|
|
245 |
};
|
|
246 |
}
|
|
247 |
|
|
248 |
|
|
249 |
// -----------------------------------------------------------------------------
|
|
250 |
//
|
|
251 |
// Resources for messages.
|
|
252 |
//
|
|
253 |
// -----------------------------------------------------------------------------
|
|
254 |
//
|
|
255 |
RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }
|
|
256 |
RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; }
|
|
257 |
RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; }
|
|
258 |
RESOURCE TBUF r_ue_error_app_not_present {buf = qtn_ue_error_app_not_present;}
|
|
259 |
RESOURCE TBUF r_setting_path_selector {buf = qtn_scripts_path;}
|
|
260 |
RESOURCE TBUF r_setting_log_selector {buf = qtn_log_path;}
|
|
261 |
RESOURCE TBUF r_setting_log_status {buf = qtn_logstatus;}
|
|
262 |
RESOURCE TBUF r_setting_randomtest_status {buf = qtn_random_test;}
|
|
263 |
RESOURCE TBUF r_setting_randomtest {buf = qtn_appid;}
|
|
264 |
|
|
265 |
RESOURCE TBUF r_text_confirmation_overwrite_file {buf = qtn_confirmation_overwrite_file;}
|
|
266 |
RESOURCE TBUF r_text_system_details {buf = qtn_systemInfo;}
|
|
267 |
RESOURCE TBUF r_format_system_details {buf = qtn_format_system_details;}
|
|
268 |
RESOURCE TBUF r_format_system_details_file {buf = qtn_format_system_details_file;}
|
|
269 |
RESOURCE TBUF r_binary_options {buf = qtn_binary_options;}
|
|
270 |
// ----------------------------------------------------------------------------
|
|
271 |
//
|
|
272 |
// r_localisable_app_info
|
|
273 |
// localisable application information
|
|
274 |
// ----------------------------------------------------------------------------
|
|
275 |
//
|
|
276 |
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
|
|
277 |
{
|
|
278 |
short_caption = qtn_caption_string;
|
|
279 |
caption_and_icon =
|
|
280 |
CAPTION_AND_ICON_INFO
|
|
281 |
{
|
|
282 |
caption = qtn_caption_string;
|
|
283 |
|
|
284 |
number_of_icons = 1;
|
|
285 |
icon_file = qtn_caption_iconfile;
|
|
286 |
};
|
|
287 |
}
|
|
288 |
|
|
289 |
// -----------------------------------------------------------------------------
|
|
290 |
// r_dialog_settings
|
|
291 |
// Settings dialog
|
|
292 |
// -----------------------------------------------------------------------------
|
|
293 |
//
|
|
294 |
RESOURCE DIALOG r_dialog_settings
|
|
295 |
{
|
|
296 |
title = qtn_settings_title;
|
|
297 |
buttons = R_AVKON_SOFTKEYS_SELECT_CLOSE;
|
|
298 |
flags = EAknDialogSelectionList;
|
|
299 |
items = {};
|
|
300 |
}
|
|
301 |
|
|
302 |
// -----------------------------------------------------------------------------
|
|
303 |
// r_setting_item_list
|
|
304 |
// Settings item list
|
|
305 |
// -----------------------------------------------------------------------------
|
|
306 |
//
|
|
307 |
RESOURCE AVKON_SETTING_ITEM_LIST r_setting_item_list
|
|
308 |
{
|
|
309 |
title = qtn_settings_title;
|
|
310 |
}
|
|
311 |
|
|
312 |
// -----------------------------------------------------------------------------
|
|
313 |
// r_text_setting_page
|
|
314 |
// Text settings item page
|
|
315 |
// -----------------------------------------------------------------------------
|
|
316 |
//
|
|
317 |
RESOURCE AVKON_SETTING_PAGE r_text_setting_page
|
|
318 |
{
|
|
319 |
type = EEikCtEdwin;
|
|
320 |
editor_resource_id = r_name_edwin;
|
|
321 |
}
|
|
322 |
|
|
323 |
// ----------------------------------------------------------------------------
|
|
324 |
// r_name_edwin
|
|
325 |
// edwin resource editor
|
|
326 |
// ----------------------------------------------------------------------------
|
|
327 |
//
|
|
328 |
RESOURCE EDWIN r_name_edwin
|
|
329 |
{
|
|
330 |
width = 1000;
|
|
331 |
maxlength = 128;
|
|
332 |
}
|
|
333 |
|
|
334 |
// ----------------------------------------------------------------------------
|
|
335 |
// r_log_setting_list
|
|
336 |
// Settings item list for log settings list
|
|
337 |
// ----------------------------------------------------------------------------
|
|
338 |
//
|
|
339 |
RESOURCE AVKON_SETTING_ITEM_LIST r_log_setting_list
|
|
340 |
{
|
|
341 |
title = qtn_settings_title;
|
|
342 |
}
|
|
343 |
|
|
344 |
// ----------------------------------------------------------------------------
|
|
345 |
// r_log_setting_page
|
|
346 |
// Settings item list for log settings
|
|
347 |
// ----------------------------------------------------------------------------
|
|
348 |
//
|
|
349 |
RESOURCE AVKON_SETTING_PAGE r_log_setting_page
|
|
350 |
{
|
|
351 |
type = EEikCtEdwin;
|
|
352 |
editor_resource_id = r_name_log_edwin;
|
|
353 |
}
|
|
354 |
|
|
355 |
// ----------------------------------------------------------------------------
|
|
356 |
// r_name_log_edwin
|
|
357 |
// Edwin editor
|
|
358 |
// ----------------------------------------------------------------------------
|
|
359 |
//
|
|
360 |
RESOURCE EDWIN r_name_log_edwin
|
|
361 |
{
|
|
362 |
width = 1000;
|
|
363 |
maxlength = 256;
|
|
364 |
}
|
|
365 |
|
|
366 |
// ----------------------------------------------------------------------------
|
|
367 |
// r_appid_setting_page
|
|
368 |
// Edwin editor for entering the Application uids
|
|
369 |
// ----------------------------------------------------------------------------
|
|
370 |
//
|
|
371 |
RESOURCE AVKON_SETTING_PAGE r_appid_setting_page
|
|
372 |
{
|
|
373 |
type = EEikCtEdwin;
|
|
374 |
editor_resource_id = r_appid_edwin;
|
|
375 |
}
|
|
376 |
|
|
377 |
RESOURCE EDWIN r_appid_edwin
|
|
378 |
{
|
|
379 |
width = 1000;
|
|
380 |
maxlength = 250;
|
|
381 |
}
|
|
382 |
// ----------------------------------------------------------------------------
|
|
383 |
// r_binary_setting_page
|
|
384 |
// Binary popup settings page for log settings
|
|
385 |
// ----------------------------------------------------------------------------
|
|
386 |
//
|
|
387 |
RESOURCE AVKON_SETTING_PAGE r_binary_setting_page
|
|
388 |
{
|
|
389 |
label = r_binary_options;
|
|
390 |
type = EAknCtPopupSettingList;
|
|
391 |
editor_resource_id = r_binary_editor;
|
|
392 |
|
|
393 |
}
|
|
394 |
|
|
395 |
RESOURCE POPUP_SETTING_LIST r_binary_editor
|
|
396 |
{
|
|
397 |
}
|
|
398 |
|
|
399 |
RESOURCE AVKON_POPUP_SETTING_TEXTS r_binary_texts
|
|
400 |
{
|
|
401 |
setting_texts_resource = r_binary_switch_on_off_text;
|
|
402 |
popped_up_texts_resource = r_binary_switch_on_off_text_popped_up;
|
|
403 |
}
|
|
404 |
|
|
405 |
RESOURCE ARRAY r_binary_switch_on_off_text
|
|
406 |
{
|
|
407 |
items =
|
|
408 |
{
|
|
409 |
AVKON_ENUMERATED_TEXT { value = 0; text = qtn_off; },
|
|
410 |
AVKON_ENUMERATED_TEXT { value = 1; text = qtn_on; }
|
|
411 |
};
|
|
412 |
}
|
|
413 |
|
|
414 |
RESOURCE ARRAY r_binary_switch_on_off_text_popped_up
|
|
415 |
{
|
|
416 |
items =
|
|
417 |
{
|
|
418 |
LBUF { txt = qtn_off; },
|
|
419 |
LBUF { txt = qtn_on; }
|
|
420 |
};
|
|
421 |
}
|
|
422 |
|
|
423 |
// ----------------------------------------------------------------------------
|
|
424 |
// r_query_confirmation
|
|
425 |
// Query confirmation dialog
|
|
426 |
// ----------------------------------------------------------------------------
|
|
427 |
//
|
|
428 |
RESOURCE DIALOG r_query_confirmation
|
|
429 |
{
|
|
430 |
flags = EGeneralQueryFlags;
|
|
431 |
buttons = R_AVKON_SOFTKEYS_YES_NO;
|
|
432 |
items =
|
|
433 |
{
|
|
434 |
DLG_LINE
|
|
435 |
{
|
|
436 |
type = EAknCtQuery;
|
|
437 |
id = EConfirmationQuery;
|
|
438 |
control = AVKON_CONFIRMATION_QUERY
|
|
439 |
{
|
|
440 |
layout = EConfirmationQueryLayout;
|
|
441 |
};
|
|
442 |
}
|
|
443 |
};
|
|
444 |
}
|
|
445 |
|
|
446 |
// ----------------------------------------------------------------------------
|
|
447 |
// r_dialog_info
|
|
448 |
// dialog displaying system information of the device
|
|
449 |
// ----------------------------------------------------------------------------
|
|
450 |
//
|
|
451 |
RESOURCE DIALOG r_dialog_info
|
|
452 |
{
|
|
453 |
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
|
|
454 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
|
|
455 |
items =
|
|
456 |
{
|
|
457 |
DLG_LINE
|
|
458 |
{
|
|
459 |
type = EAknCtPopupHeadingPane;
|
|
460 |
id = EAknMessageQueryHeaderId;
|
|
461 |
control = AVKON_HEADING
|
|
462 |
{
|
|
463 |
};
|
|
464 |
},
|
|
465 |
DLG_LINE
|
|
466 |
{
|
|
467 |
type = EAknCtMessageQuery;
|
|
468 |
id = EAknMessageQueryContentId;
|
|
469 |
control = AVKON_MESSAGE_QUERY
|
|
470 |
{
|
|
471 |
};
|
|
472 |
}
|
|
473 |
};
|
|
474 |
}
|
|
475 |
|
|
476 |
|
|
477 |
// ----------------------------------------------------------------------------
|
|
478 |
// R_FILE_DIALOG
|
|
479 |
// Query dialog to get the input script name during recording
|
|
480 |
// ----------------------------------------------------------------------------
|
|
481 |
//
|
|
482 |
RESOURCE DIALOG r_file_dialog
|
|
483 |
{
|
|
484 |
flags = EGeneralQueryFlags;
|
|
485 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
|
|
486 |
items=
|
|
487 |
{
|
|
488 |
DLG_LINE
|
|
489 |
{
|
|
490 |
type = EAknCtQuery;
|
|
491 |
id = EGeneralQuery;
|
|
492 |
control= AVKON_DATA_QUERY
|
|
493 |
{
|
|
494 |
layout = EDataLayout;
|
|
495 |
label = qtn_text_query;
|
|
496 |
control = EDWIN
|
|
497 |
{
|
|
498 |
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
|
|
499 |
width = 5;
|
|
500 |
maxlength = 192;
|
|
501 |
// added to limit expanding in forms.
|
|
502 |
// If you want full screen use 6 here
|
|
503 |
max_view_height_in_lines = 5;
|
|
504 |
// if you have the line above, you must have this.
|
|
505 |
// It's calculable from LAF
|
|
506 |
base_line_delta = 21;
|
|
507 |
};
|
|
508 |
};
|
|
509 |
}
|
|
510 |
};
|
|
511 |
}
|
|
512 |
// End of File
|